Skip to content

Commit

Permalink
po: Use the glib preset for i18n
Browse files Browse the repository at this point in the history
It defines keywords and flags for us, as well as uses the LINGUAS file.
  • Loading branch information
piotrdrag committed Nov 7, 2017
1 parent 34c7fa9 commit 37f3f17
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions po/meson.build
Original file line number Diff line number Diff line change
@@ -1,32 +1,7 @@
i18n = import('i18n')

langs = [
'en_GB',
]

i18n.gettext('emeus',
languages: langs,
preset: 'glib',
args: [
'--default-domain=' + meson.project_name(),
'--from-code=UTF-8',
'--add-comments',
'--msgid-bugs-address=https://github.com/ebassi/emeus/issues/new',

'--keyword=_',
'--keyword=N_',
'--keyword=C_:1c,2',
'--keyword=NC_:1c,2',
'--keyword=g_dcgettext:2',
'--keyword=g_dngettext:2,3',
'--keyword=g_dpgettext2:2c,3',

'--flag=N_:1:pass-c-format',
'--flag=C_:2:pass-c-format',
'--flag=NC_:2:pass-c-format',
'--flag=g_dngettext:2:pass-c-format',
'--flag=g_strdup_printf:1:c-format',
'--flag=g_string_printf:2:c-format',
'--flag=g_string_append_printf:2:c-format',
'--flag=g_error_new:3:c-format',
'--flag=g_set_error:4:c-format',
])

0 comments on commit 37f3f17

Please sign in to comment.