Permalink
Browse files

Added support for source code comments directed to translators, thank…

…s to Akien. :)
  • Loading branch information...
1 parent e3d414e commit debdf958b8cdf577455854e6675440ded542cbfc @Bertram25 Bertram25 committed Apr 6, 2014
Showing with 5 additions and 5 deletions.
  1. +4 −4 po/CMakeLists.txt
  2. +1 −1 src/modes/battle/battle_command.cpp
View
@@ -65,13 +65,13 @@ MACRO(VALYRIATEAR_GETTEXT_UPDATE_PO _potFile _languages)
ADD_CUSTOM_TARGET(
update-pot
# Standard keywords
- COMMAND xgettext -C --files-from=translatable-files --directory=. --output=${_potFile} -d valyriatear --keyword=_ --keyword=N_ --keyword=Translate --keyword=UTranslate --from-code=UTF-8
+ COMMAND xgettext -c/ -C --files-from=translatable-files --directory=. --output=${_potFile} -d valyriatear --keyword=_ --keyword=N_ --keyword=Translate --keyword=UTranslate --from-code=UTF-8
# Contextual translation keywords
- COMMAND xgettext -C --files-from=translatable-files -j --directory=. --output=${_potFile} -d valyriatear --keyword=CTranslate --keyword=CUTranslate --from-code=UTF-8
+ COMMAND xgettext -c/ -C --files-from=translatable-files -j --directory=. --output=${_potFile} -d valyriatear --keyword=CTranslate --keyword=CUTranslate --from-code=UTF-8
# C-formatted translation keywords
- COMMAND xgettext -C --files-from=translatable-files -j --directory=. --output=${_potFile} -d valyriatear --keyword=VTranslate:1 --from-code=UTF-8
+ COMMAND xgettext -c/ -C --files-from=translatable-files -j --directory=. --output=${_potFile} -d valyriatear --keyword=VTranslate:1 --from-code=UTF-8
COMMAND bash create_map_names_translatable_strings.sh
- COMMAND xgettext -C --directory=. -j --output=${_potFile} -d valyriatear --keyword=Translate --from-code=UTF-8 map_names_tr.lua
+ COMMAND xgettext -c/ -C --directory=. -j --output=${_potFile} -d valyriatear --keyword=Translate --from-code=UTF-8 map_names_tr.lua
# The pot file is ready - We can remove the temp files
COMMAND rm -f translatable-files
@@ -1231,7 +1231,7 @@ std::string _TurnIntoSeconds(uint32 milliseconds)
uint32 seconds = milliseconds / 1000;
uint32 dec = (milliseconds / 100) - (seconds * 10);
std::string formatted_seconds = NumberToString(seconds) + "." + NumberToString(dec);
- // TRANSLATORS: this is about displaying a time: eg 4.2s
+ /// TRANSLATORS: this is about displaying a time: eg 4.2s
formatted_seconds = VTranslate("%ss", formatted_seconds);
return formatted_seconds;
}

0 comments on commit debdf95

Please sign in to comment.