summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre.ledru@scilab.org>2009-10-25 18:47:06 +0100
committerSylvestre Ledru <sylvestre.ledru@scilab.org>2009-10-25 18:47:06 +0100
commit20560ce67ebb3aaf8f2cc62051f5f81e8c9523a1 (patch)
tree3750aae2a8c13e1b5eb24e0f500dbca5815e16cf
parent7605c8d5a6c18fa04fad7e1a1c0d11a2da29b18a (diff)
downloadscilab-20560ce67ebb3aaf8f2cc62051f5f81e8c9523a1.zip
scilab-20560ce67ebb3aaf8f2cc62051f5f81e8c9523a1.tar.gz
Script which extracts string is now sorting the items. It creates nicer diff
-rw-r--r--scilab/tools/localization/updateLocalizationModule.sh4
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
59FILESCMD='find . -type f ' 59FILESCMD='find . -type f '
60# Gettext arg 60# Gettext arg
61XGETTEXT_OPTIONS="--add-location --strict --keyword=_ --from-code $FROM_CODE --omit-header " 61XGETTEXT_OPTIONS="--add-location --strict --keyword=_ --from-code $FROM_CODE --omit-header --sort-output "
62####### GENERATES THE FIND COMMAND 62####### GENERATES THE FIND COMMAND
63i=0 63i=0
64NB_ELEMENT=${#EXTENSIONS[@]} 64NB_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 ..."