diff options
author | Sylvestre Ledru <sylvestre.ledru@scilab.org> | 2009-10-25 18:47:06 +0100 |
---|---|---|
committer | Sylvestre Ledru <sylvestre.ledru@scilab.org> | 2009-10-25 18:47:06 +0100 |
commit | 20560ce67ebb3aaf8f2cc62051f5f81e8c9523a1 (patch) | |
tree | 3750aae2a8c13e1b5eb24e0f500dbca5815e16cf /scilab | |
parent | 7605c8d5a6c18fa04fad7e1a1c0d11a2da29b18a (diff) | |
download | scilab-20560ce67ebb3aaf8f2cc62051f5f81e8c9523a1.zip scilab-20560ce67ebb3aaf8f2cc62051f5f81e8c9523a1.tar.gz |
Script which extracts string is now sorting the items. It creates nicer diff
Diffstat (limited to 'scilab')
-rw-r--r-- | scilab/tools/localization/updateLocalizationModule.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scilab/tools/localization/updateLocalizationModule.sh b/scilab/tools/localization/updateLocalizationModule.sh index dda46ae..45deb82 100644 --- a/scilab/tools/localization/updateLocalizationModule.sh +++ b/scilab/tools/localization/updateLocalizationModule.sh | |||
@@ -58,7 +58,7 @@ process_XML_files(){ | |||
58 | # Retrieve all the sources files | 58 | # Retrieve all the sources files |
59 | FILESCMD='find . -type f ' | 59 | FILESCMD='find . -type f ' |
60 | # Gettext arg | 60 | # Gettext arg |
61 | XGETTEXT_OPTIONS="--add-location --strict --keyword=_ --from-code $FROM_CODE --omit-header " | 61 | XGETTEXT_OPTIONS="--add-location --strict --keyword=_ --from-code $FROM_CODE --omit-header --sort-output " |
62 | ####### GENERATES THE FIND COMMAND | 62 | ####### GENERATES THE FIND COMMAND |
63 | i=0 | 63 | i=0 |
64 | NB_ELEMENT=${#EXTENSIONS[@]} | 64 | NB_ELEMENT=${#EXTENSIONS[@]} |
@@ -126,7 +126,7 @@ for MODULE in $MODULES; do | |||
126 | LOCALIZATION_FILE_LANG=$DIR_LANG/$MODULE_NAME.po | 126 | LOCALIZATION_FILE_LANG=$DIR_LANG/$MODULE_NAME.po |
127 | if test -f $LOCALIZATION_FILE_LANG; then | 127 | if test -f $LOCALIZATION_FILE_LANG; then |
128 | echo "........ Merging new locales for $l" | 128 | echo "........ Merging new locales for $l" |
129 | $MSGMERGE $LOCALIZATION_FILE_LANG $LOCALIZATION_FILE_US --output-file $LOCALIZATION_FILE_LANG > /dev/null | 129 | $MSGMERGE $LOCALIZATION_FILE_LANG $LOCALIZATION_FILE_US --sort-output --output-file $LOCALIZATION_FILE_LANG > /dev/null |
130 | else | 130 | else |
131 | echo "........ Localization file for $l in this module not existing" | 131 | echo "........ Localization file for $l in this module not existing" |
132 | echo "........ Creating it ..." | 132 | echo "........ Creating it ..." |