summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorBernd Wachter <bwachter-tmw@lart.info>2010-12-15 21:46:04 +0200
committerBernd Wachter <bwachter-tmw@lart.info>2010-12-15 21:52:58 +0200
commit5b277b71cd2092767bcc99bf0e107a53dc9c7918 (patch)
tree4cdbd1aa731cac851be5be2c09eb593b44e5f015 /po
parent0b9665dfd783346df1c83e5db015604766963448 (diff)
downloadmana-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')
-rw-r--r--po/CMakeLists.txt8
-rw-r--r--po/POTFILES.in95
2 files changed, 7 insertions, 96 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()
diff --git a/po/POTFILES.in b/po/POTFILES.in
deleted file mode 100644
index e2fbe68b..00000000
--- a/po/POTFILES.in
+++ /dev/null
@@ -1,95 +0,0 @@
-# List of source files which contain translatable strings.
-# Generated using: grep "_(" -Irl src | sort
-
-src/client.cpp
-src/commandhandler.cpp
-src/commandhandler.h
-src/game.cpp
-src/gui/beingpopup.cpp
-src/gui/buy.cpp
-src/gui/buysell.cpp
-src/gui/changeemaildialog.cpp
-src/gui/changepassworddialog.cpp
-src/gui/charcreatedialog.cpp
-src/gui/charselectdialog.cpp
-src/gui/chat.cpp
-src/gui/confirmdialog.cpp
-src/gui/connectiondialog.cpp
-src/gui/debugwindow.cpp
-src/gui/equipmentwindow.cpp
-src/gui/help.cpp
-src/gui/inventorywindow.cpp
-src/gui/itemamount.cpp
-src/gui/itempopup.cpp
-src/gui/login.cpp
-src/gui/minimap.cpp
-src/gui/ministatus.cpp
-src/gui/npcdialog.cpp
-src/gui/npcpostdialog.cpp
-src/gui/okdialog.cpp
-src/gui/outfitwindow.cpp
-src/gui/popupmenu.cpp
-src/gui/quitdialog.cpp
-src/gui/recorder.cpp
-src/gui/recorder.h
-src/gui/register.cpp
-src/gui/sdlinput.cpp
-src/gui/sdlinput.h
-src/gui/sell.cpp
-src/gui/serverdialog.cpp
-src/gui/setup_audio.cpp
-src/gui/setup_colors.cpp
-src/gui/setup.cpp
-src/gui/setup_joystick.cpp
-src/gui/setup_keyboard.cpp
-src/gui/setup_players.cpp
-src/gui/setup_video.cpp
-src/gui/skilldialog.cpp
-src/gui/socialwindow.cpp
-src/gui/specialswindow.cpp
-src/gui/statuswindow.cpp
-src/gui/textdialog.cpp
-src/gui/trade.cpp
-src/gui/unregisterdialog.cpp
-src/gui/updatewindow.cpp
-src/gui/userpalette.cpp
-src/gui/widgets/channeltab.cpp
-src/gui/widgets/chattab.cpp
-src/gui/widgets/whispertab.cpp
-src/gui/windowmenu.cpp
-src/gui/worldselectdialog.cpp
-src/keyboardconfig.cpp
-src/localplayer.cpp
-src/log.h
-src/main.cpp
-src/net/manaserv/beinghandler.cpp
-src/net/manaserv/charhandler.cpp
-src/net/manaserv/chathandler.cpp
-src/net/manaserv/guildhandler.cpp
-src/net/manaserv/loginhandler.cpp
-src/net/manaserv/partyhandler.cpp
-src/net/manaserv/playerhandler.cpp
-src/net/manaserv/stats.cpp
-src/net/manaserv/tradehandler.cpp
-src/net/tmwa/adminhandler.cpp
-src/net/tmwa/buysellhandler.cpp
-src/net/tmwa/charserverhandler.cpp
-src/net/tmwa/chathandler.cpp
-src/net/tmwa/gamehandler.cpp
-src/net/tmwa/generalhandler.cpp
-src/net/tmwa/gui/guildtab.cpp
-src/net/tmwa/guildhandler.cpp
-src/net/tmwa/gui/partytab.cpp
-src/net/tmwa/inventoryhandler.cpp
-src/net/tmwa/loginhandler.cpp
-src/net/tmwa/network.cpp
-src/net/tmwa/partyhandler.cpp
-src/net/tmwa/playerhandler.cpp
-src/net/tmwa/specialhandler.cpp
-src/net/tmwa/tradehandler.cpp
-src/playerrelations.cpp
-src/resources/itemdb.cpp
-src/resources/monsterdb.cpp
-src/resources/monsterinfo.cpp
-src/utils/gettext.h
-src/utils/stringutils.h