Merged in CMaiku/pidgin (pull request #358)
Port to Meson's i18n.merge_file()
Approved-by: Eion Robb
Approved-by: Gary Kramlich
--- a/.hgignore Fri May 25 18:46:42 2018 -0500
+++ b/.hgignore Thu May 31 01:04:18 2018 +0000
@@ -13,7 +13,6 @@
--- a/libpurple/data/purple-url-handler.desktop.in.in Fri May 25 18:46:42 2018 -0500
+++ b/libpurple/data/purple-url-handler.desktop.in.in Thu May 31 01:04:18 2018 +0000
@@ -1,7 +1,7 @@
-_GenericName=Internet Messenger
-_Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, and more
+GenericName=Internet Messenger +Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, and more Exec=purple-url-handler %u
TryExec=purple-url-handler
--- a/libpurple/meson.build Fri May 25 18:46:42 2018 -0500
+++ b/libpurple/meson.build Thu May 31 01:04:18 2018 +0000
@@ -440,12 +440,11 @@
input : 'data/' + DESKTOP_FILE + '.in.in',
output : DESKTOP_FILE + '.in',
- desktop_file = custom_target(DESKTOP_FILE,
+ desktop_file = i18n.merge_file( - command : [intltool_merge, '--desktop-style', '-u',
- '-c', '@BUILD_DIR@/po/.intltool-merge-cache',
- meson.source_root() + '/po', '@INPUT@', '@OUTPUT@'],
+ po_dir : meson.source_root() + '/po', install_dir : get_option('datadir') + '/applications')
--- a/meson.build Fri May 25 18:46:42 2018 -0500
+++ b/meson.build Thu May 31 01:04:18 2018 +0000
@@ -267,9 +267,9 @@
conf.set('ENABLE_NLS', true)
- intltool_merge = find_program('intltool-merge')
# #######################################################################
--- a/pidgin/data/im.pidgin.Pidgin.appdata.xml.in Fri May 25 18:46:42 2018 -0500
+++ b/pidgin/data/im.pidgin.Pidgin.appdata.xml.in Thu May 31 01:04:18 2018 +0000
@@ -7,15 +7,15 @@
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0</project_license>
Pidgin is a chat program which lets you log in to accounts on multiple
chat networks simultaneously.
This means that you can be chatting with friends on AIM, talking to a
friend on Google Talk, and sitting in an IRC chat room all at the same
<launchable type="desktop-id">im.pidgin.Pidgin.desktop</launchable>
@@ -26,7 +26,7 @@
<screenshot type="default">
<image>https://www.pidgin.im/shared/img/contact_window.png</image>
- <_caption>Buddy list showing friends on different networks</_caption>
+ <caption>Buddy list showing friends on different networks</caption> --- a/pidgin/data/im.pidgin.Pidgin.desktop.in.in Fri May 25 18:46:42 2018 -0500
+++ b/pidgin/data/im.pidgin.Pidgin.desktop.in.in Thu May 31 01:04:18 2018 +0000
@@ -1,7 +1,7 @@
-_GenericName=Internet Messenger
-_Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, and more
+GenericName=Internet Messenger +Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, and more --- a/pidgin/meson.build Fri May 25 18:46:42 2018 -0500
+++ b/pidgin/meson.build Thu May 31 01:04:18 2018 +0000
@@ -203,21 +203,18 @@
input : 'data/' + DESKTOP_FILE + '.in.in',
output : DESKTOP_FILE + '.in',
- desktop_file = custom_target(DESKTOP_FILE,
+ desktop_file = i18n.merge_file( - command : [intltool_merge, '--desktop-style', '-u',
- '-c', '@BUILD_DIR@/po/.intltool-merge-cache',
- meson.source_root() + '/po', '@INPUT@', '@OUTPUT@'],
+ po_dir : meson.source_root() + '/po', install_dir : get_option('datadir') + '/applications')
- appdata = custom_target('im.pidgin.Pidgin.appdata.xml',
+ appdata = i18n.merge_file( input : 'data/im.pidgin.Pidgin.appdata.xml.in',
output : 'im.pidgin.Pidgin.appdata.xml',
- command : [intltool_merge, '--xml-style', '-u',
- '-c', '@BUILD_DIR@/po/.intltool-merge-cache',
- meson.source_root() + '/po', '@INPUT@', '@OUTPUT@'],
+ po_dir : meson.source_root() + '/po', install_dir : get_option('datadir') + '/metainfo')
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/po/LINGUAS Thu May 31 01:04:18 2018 +0000
@@ -0,0 +1,94 @@
--- a/po/meson.build Fri May 25 18:46:42 2018 -0500
+++ b/po/meson.build Thu May 31 01:04:18 2018 +0000
@@ -1,5 +1,1 @@
-ALL_LINGUAS='af am ar as ast az be@latin bg bn_IN bn br brx bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es_AR es et eu fa fi fr ga gl gu he hi hr hu id it ja ka kk km kn ko ks ku_IQ ku lt lv mai mhr mk ml mn mr ms_MY my_MM nb ne nl nn oc or pa pl ps pt_BR pt ro ru sd si sk sl sq sr@latin sr sv sw ta te th tr tt uk ur uz vi xh zh_CN zh_HK zh_TW'.split()
-i18n.gettext('pidgin', languages : ALL_LINGUAS)