Browse Source
While runtime gettext support was already working, this adds the missing piece of build integrations. With these changes, three new targets are now available to manage translation files: - vlc-pot: Regenerates the .pot files using xgettext - vlc-update-po: Regenerates the .po files from the current .pot files - vlc-gmo: Builds (but not installs) the translationspull/162/head
committed by
Jean-Baptiste Kempf
2 changed files with 20 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
i18n = import('i18n') |
|||
|
|||
add_project_arguments(f'-DGETTEXT_PACKAGE="@vlc_package_name@"', |
|||
language: ['c', 'cpp', 'objc']) |
|||
i18n.gettext(vlc_package_name, |
|||
args: [ |
|||
'--keyword=_', |
|||
'--keyword=N_', |
|||
'--keyword=_NS', |
|||
'--keyword=qtr', |
|||
'--keyword=Q_', |
|||
'--language=C++', |
|||
'--keyword=vlc_ngettext:1,2', |
|||
'--keyword=vlc_pgettext:1c,2', |
|||
'--keyword=_PNS:1c,2', |
|||
'--add-comments=xgettext:', |
|||
'--from-code=UTF-8', |
|||
]) |
|||
Loading…
Reference in new issue