Skip to content

Commit

Permalink
update_translation.sh updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed May 5, 2022
1 parent badd8d1 commit c47daa2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/update_translations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
# Update the translation files #
#############################################

#-- File for the Statistics
STATS_FILE="statistics.txt"

#-- Update the .po file of all the locale folders
cd app/resources/locale

#-- Create a blank file
echo "" > $STATS_FILE

#-- d is the locale directory
for d in */ ; do

Expand All @@ -17,5 +23,11 @@ for d in */ ; do
#-- Update all the .po files
msgmerge $LOCALE/$LOCALE.po template.pot -o $LOCALE/$LOCALE.po

#-- Add the statistics
echo $LOCALE >> $STATS_FILE
msgfmt --statistics $LOCALE/$LOCALE.po 2>> $STATS_FILE
echo "" >> $STATS_FILE


done

0 comments on commit c47daa2

Please sign in to comment.