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.
Now use Qt translation system instead of Gettext.
This allowed to get rid of the gettext runtime dependency, although gettext tools are still used to generate .pot/.po files along with lauchpad translation feature. Got also rid of the dirent library dependency (was used to list available translations).
- Loading branch information
Showing
48 changed files
with
243 additions
and
418 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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,25 +1,24 @@ | ||
SET(skycultures_DOMAIN stellarium-skycultures) | ||
SET(skycultures_POT ${skycultures_DOMAIN}.pot) | ||
|
||
GETTEXT_CREATE_TRANSLATIONS(${skycultures_DOMAIN} DEFAULT_TARGET | ||
GETTEXT_CREATE_TRANSLATIONS(stellarium-skycultures DEFAULT_TARGET | ||
aa ab ae af ak am an ar as ast av az ba be bg bh bi bn bo br bs ca ce ckb cs cv cy da de dv el en en_AU en_CA en_GB en_US eo es et eu fa fi fil fj fr ga gd gl gn gu haw he hi hr hrx ht hu hy ia id is it ja ka kg kk kn ko ky la lb lo lt lv mi mk ml mn mo mr ms mt nan nb nl nn oc os pa pl pt pt_BR ro ru sah se si sk sl sm sq sr su sv sw ta te tg th tl tr tt uk uz vi zh_CN zh_HK zh_TW zu | ||
) | ||
|
||
ADD_CUSTOM_TARGET( | ||
generate-pot-${skycultures_DOMAIN} | ||
${GETTEXT_XGETTEXT_EXECUTABLE} | ||
-o ${skycultures_POT} | ||
--keyword=_ | ||
-C | ||
--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 ${skycultures_POT}" | ||
VERBATIM | ||
) | ||
|
||
# Generate this POT file when building the "generate-pot" target. | ||
ADD_DEPENDENCIES(generate-pot generate-pot-${skycultures_DOMAIN}) | ||
|
||
# Discard this target if xgettext is not installed | ||
IF(${XGETTEXT_FOUND}) | ||
ADD_CUSTOM_TARGET( | ||
generate-pot-stellarium-skycultures | ||
${GETTEXT_XGETTEXT_EXECUTABLE} | ||
-o stellarium-skycultures.pot | ||
--keyword=_ | ||
-C | ||
--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-skycultures.pot" | ||
VERBATIM | ||
) | ||
|
||
# Generate this POT file when building the "generate-pot" target. | ||
ADD_DEPENDENCIES(generate-pot generate-pot-stellarium-skycultures) | ||
ENDIF() |
Oops, something went wrong.