-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3078 from linggao/issue2716
Issue 2716 - part 1: Update the translation scripts to meet the new r…
- Loading branch information
Showing
1 changed file
with
4 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# this command copies the out.gotext.json files from locales and cli/locales to i18n_translation directory | ||
# copy the out.gotext.json files from locales and cli/locales to i18n_translation directory | ||
cp $PKGPATH/locales/en/out.gotext.json $PKGPATH/i18n_translation/original/anax.out.gotext.json.auto | ||
|
||
# remove unnecessary fields and add NLS_CHARSET=UTF-8 comments for translation process | ||
cat $PKGPATH/i18n_translation/original/anax.out.gotext.json.auto | jq 'del(.messages[].placeholders)| del(.messages[].id) | del(.messages[].translatorComment) | del(.messages[].fuzzy) ' | sed 's/"message":/"id":/g' | sed '1 i // NLS_CHARSET=UTF-8' > $PKGPATH/i18n_translation/anax.out.gotext.json | ||
|
||
cp $PKGPATH/cli/locales/en/out.gotext.json $PKGPATH/i18n_translation/original/hzn.out.gotext.json.auto | ||
|
||
# remove unnecessary fields and add NLS_CHARSET=UTF-8 comments for translation process | ||
cat $PKGPATH/i18n_translation/original/hzn.out.gotext.json.auto | jq 'del(.messages[].placeholders)| del(.messages[].id) | del(.messages[].translatorComment) | del(.messages[].fuzzy) ' | sed 's/"message":/"id":/g' | sed '1 i // NLS_CHARSET=UTF-8' > $PKGPATH/i18n_translation/hzn.out.gotext.json | ||
# remove unnecessary fields for translation process | ||
cat $PKGPATH/i18n_translation/original/anax.out.gotext.json.auto | jq '.messages | del(.[].placeholders) | del(.[].id) | del(.[].translatorComment) | del(.[].fuzzy) ' | sed 's/"message":/"id":/g' > $PKGPATH/i18n_translation/anax.out.gotext.json | ||
cat $PKGPATH/i18n_translation/original/hzn.out.gotext.json.auto | jq '.messages | del(.[].placeholders) | del(.[].id) | del(.[].translatorComment) | del(.[].fuzzy) ' | sed 's/"message":/"id":/g' > $PKGPATH/i18n_translation/hzn.out.gotext.json | ||
|