diff options
author | Bernd Wachter <bwachter-tmw@lart.info> | 2010-12-15 21:46:04 +0200 |
---|---|---|
committer | Bernd Wachter <bwachter-tmw@lart.info> | 2010-12-15 21:52:58 +0200 |
commit | 5b277b71cd2092767bcc99bf0e107a53dc9c7918 (patch) | |
tree | 4cdbd1aa731cac851be5be2c09eb593b44e5f015 /po/CMakeLists.txt | |
parent | 0b9665dfd783346df1c83e5db015604766963448 (diff) | |
download | mana-5b277b71cd2092767bcc99bf0e107a53dc9c7918.tar.gz mana-5b277b71cd2092767bcc99bf0e107a53dc9c7918.tar.bz2 mana-5b277b71cd2092767bcc99bf0e107a53dc9c7918.tar.xz mana-5b277b71cd2092767bcc99bf0e107a53dc9c7918.zip |
Autogenerate list of translatable files for update-po
Reviewed by: Thorbjørn Lindeijer
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r-- | po/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 2d31fff0..4ee62c87 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -43,7 +43,12 @@ MACRO(MANA_GETTEXT_UPDATE_PO _potFile _languages) ADD_CUSTOM_TARGET( update-pot - COMMAND xgettext --files-from=POTFILES.in --directory=.. --output=${_potFile} -d mana --keyword=_ --keyword=N_ + COMMAND xgettext --files-from=translatable-files --directory=. --output=${_potFile} -d mana --keyword=_ --keyword=N_ + ) + + ADD_CUSTOM_TARGET( + update-translatable-files + COMMAND grep '_\(' -Irl ../src | sort > translatable-files ) FOREACH(_lang ${_languages}) @@ -55,6 +60,7 @@ MACRO(MANA_GETTEXT_UPDATE_PO _potFile _languages) ) ADD_DEPENDENCIES("update-translation-${_lang}" update-pot) ADD_DEPENDENCIES(update-po "update-translation-${_lang}") + ADD_DEPENDENCIES(update-pot update-translatable-files) ENDFOREACH() ENDMACRO() |