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.
Automatic extraction of translatable strings using xgettext possible.…
… It uses the new stellarium-remotecontrol domain. Strings that are already present in the stellarium domain are automatically excluded, if possible, to reduce duplication issues. Translations now use PHP-style tags, i.e. <?= tr("Translation") ?>, this allows xgettext support. Translations support optional placeholder arguments ( <?= tr("This %1 will be", "replaced") ?> ) Translation from JS code using the Main.tr method. This requires converting the xgettext-extracted strings to JS file which can then be used as a template to be filled with translated values by the server. The conversion is done by a python script through the RemoteControl-update-translationdata target. Made JS code pass JSHint validation
- Loading branch information
Showing
25 changed files
with
1,006 additions
and
187 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.