diff options
Diffstat (limited to 'meson/test cases/frameworks/6 gettext/generated')
3 files changed, 44 insertions, 0 deletions
diff --git a/meson/test cases/frameworks/6 gettext/generated/desktopgenerator.py b/meson/test cases/frameworks/6 gettext/generated/desktopgenerator.py new file mode 100644 index 000000000..e49c2d6dc --- /dev/null +++ b/meson/test cases/frameworks/6 gettext/generated/desktopgenerator.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 + +import os, sys, shutil + +ifile = sys.argv[1] +ofile = sys.argv[2] + +try: + os.unlink(ofile) +except FileNotFoundError: + pass + +shutil.copy(ifile, ofile) diff --git a/meson/test cases/frameworks/6 gettext/generated/meson.build b/meson/test cases/frameworks/6 gettext/generated/meson.build new file mode 100644 index 000000000..5ed9205e9 --- /dev/null +++ b/meson/test cases/frameworks/6 gettext/generated/meson.build @@ -0,0 +1,16 @@ +dgen = find_program('desktopgenerator.py') + +desktop_in_file = custom_target('something.desktop.in', + input : ['something.desktop.in.in'], + output : 'something.desktop.in', + command : [dgen, '@INPUT@', '@OUTPUT@'], +) + +i18n.merge_file( + input : desktop_in_file, + output : 'something.desktop', + type : 'desktop', + po_dir : '../po', + install: true, + install_dir: join_paths(get_option('datadir'), 'applications'), +) diff --git a/meson/test cases/frameworks/6 gettext/generated/something.desktop.in.in b/meson/test cases/frameworks/6 gettext/generated/something.desktop.in.in new file mode 100644 index 000000000..e2094fdc2 --- /dev/null +++ b/meson/test cases/frameworks/6 gettext/generated/something.desktop.in.in @@ -0,0 +1,15 @@ +[Desktop Entry] +Name=Something doer +Comment=Do something +# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! +Keywords=zip;tar;extract;unpack; +TryExec=file-roller +Exec=file-roller %U +StartupNotify=true +Terminal=false +Type=Application +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=something +Categories=GTK;GNOME;Utility +X-GNOME-DocPath=file-roller/file-roller.xml +X-GNOME-UsesNotifications=true |