Magellan Linux

Diff of /tags/installer-simple-0_4_91_20160616_1/generate-po.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2350 by niro, Sat Jan 4 00:37:47 2014 UTC revision 2356 by niro, Mon Jan 6 12:24:58 2014 UTC
# Line 49  generate_po() Line 49  generate_po()
49   if [ ! -f "${pot}" ]   if [ ! -f "${pot}" ]
50   then   then
51   echo "Error: ${pot} missing - run --create-pot or --append-pot"   echo "Error: ${pot} missing - run --create-pot or --append-pot"
52   exit 1   exit 1
53   fi   fi
54    
55   for lang in ${languages}   for lang in ${languages}
# Line 58  generate_po() Line 58  generate_po()
58   if [ -f "${po}" ]   if [ -f "${po}" ]
59   then   then
60   echo "Updating lang '${lang}'"   echo "Updating lang '${lang}'"
61   msgmerge --quiet --no-fuzzy-matching --no-wrap --update "${po}" "${pot}"   msgmerge --quiet --no-fuzzy-matching --no-wrap --sort-by-file --update "${po}" "${pot}"
62   else   else
63   echo "Processing lang '${lang}'"   echo "Processing lang '${lang}'"
64   install -d locale/"${lang}"   install -d locale/"${lang}"
65   install -m0644 "${pot}" "${po}"   msginit --no-wrap --no-translator --locale="${lang}"  --input="${pot}" --output-file="${po}"
66   fi   fi
67   done   done
68  }  }

Legend:
Removed from v.2350  
changed lines
  Added in v.2356