-
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.
localization scripts (folder) optimization
fix cgeo#8050 - add readme - fix: findmissintraslations does not work with languages whose abbreviation is longer than 2 characters - add as known false positives in readme (wont fix): findextratranslations finds 2 entries that are correct and therefore should not have been found
- Loading branch information
1 parent
c2c6097
commit 5352118
Showing
2 changed files
with
32 additions
and
1 deletion.
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,31 @@ | ||
Checks for installed languages | ||
============================== | ||
|
||
These scripts are only relevant if you are not sure whether the crowdin translations are up-to-date. | ||
|
||
* findmissingtranslations.sh | ||
|
||
Search of missing translation strings in the language files other than English. | ||
Creates a file <lang>.missing for all checked languages in this directory. | ||
|
||
Parameter: | ||
* all check all languages | ||
* <lang> check a dedicated language | ||
|
||
|
||
* findextratranslations.sh | ||
|
||
Search of redundant strings in | ||
|
||
Parameter: | ||
* -n only display | ||
* -f: force unused strings removal | ||
|
||
Known false positives: | ||
* auth_connected: | ||
* settings_reauthorize: | ||
Both defined in SettingsActivity.java, but not covered by the regex because of ternary operator (?:) before | ||
Sample: | ||
.setSummary(getString(hasToken | ||
? R.string.auth_connected | ||
: R.string.auth_unconnected)); |