forked from Stellarium/stellarium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract translatable strings for planetary features into separate tem…
…plate
- Loading branch information
Showing
7 changed files
with
76,405 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FILE(GLOB poscfiles RELATIVE "${CMAKE_SOURCE_DIR}/po/stellarium-planetary-features/" "*.po") | ||
LIST(SORT poscfiles) | ||
STRING(REGEX REPLACE ".po" "" outposcfiles "${poscfiles}") | ||
|
||
GETTEXT_CREATE_TRANSLATIONS(stellarium-planetary-features DEFAULT_TARGET ${outposcfiles}) | ||
|
||
# Discard this target if xgettext is not installed | ||
IF(${XGETTEXT_FOUND}) | ||
ADD_CUSTOM_TARGET( | ||
generate-pot-stellarium-planetary-features | ||
${GETTEXT_XGETTEXT_EXECUTABLE} | ||
-o stellarium-planetary-features.pot | ||
--keyword=_:1,2c | ||
--language=Python | ||
--add-comments=TRANSLATORS: | ||
--directory=${PROJECT_SOURCE_DIR} | ||
--files-from=POTFILES.in | ||
--copyright-holder=Stellarium's\ team | ||
--from-code=utf-8 | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
COMMENT "Generating stellarium-planetary-features.pot" | ||
VERBATIM | ||
) | ||
|
||
# Generate this POT file when building the "generate-pot" target. | ||
ADD_DEPENDENCIES(generate-pot generate-pot-stellarium-planetary-features) | ||
ENDIF() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Proper names of planetary features | ||
data/nomenclature.fab |
Oops, something went wrong.