Skip to content

Commit

Permalink
Perform missing translation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Sep 19, 2023
1 parent c696796 commit 2192f5d
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 1,428 deletions.
2 changes: 1 addition & 1 deletion .github/steps/create-issue-if-override-files-updated
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ echo $UPDATE_CHECK_EXIT_CODE
echo $NG_CHECK_EXIT_CODE

if [ $UPDATE_CHECK_EXIT_CODE -ne 0 -a $NG_CHECK_EXIT_CODE -eq 0 ] ; then
gh issue create --title "Upstream files overridden are updated" --body "Uptream files overridden are updated. see https://github.com/quarkusio/es.quarkus.io/blob/master/l10n/stats/override.csv for more details."
gh issue create --title "Upstream files overridden are updated" --body "Upstream files overridden are updated. see https://github.com/quarkusio/pt.quarkus.io/blob/master/l10n/stats/override.csv for more details."
fi
2 changes: 1 addition & 1 deletion bin/apply-tmx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cd $L10N_HOME

source config/l10n-kit.conf

pretranslate --similarity=$SIMILARITY --tm=$TMX_FILE_PATH --template=l10n/po/es_ES --input=l10n/po/es_ES --output=l10n/po/es_ES
pretranslate --similarity=$SIMILARITY --tm=$TMX_FILE_PATH --template=l10n/po/pt_BR --input=l10n/po/pt_BR --output=l10n/po/pt_BR

for ITEM in `\find l10n/po/$TARGET_LANG -name "*.po"`; do
if [ -f $ITEM ] ; then
Expand Down
10 changes: 5 additions & 5 deletions bin/machine-translate
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ source config/l10n-kit.conf

mkdir -p vendor
curl -L https://github.com/doc-l10n-kit/quarkus-adoc-po-translator/releases/download/$QUARKUS_ADOC_PO_TRANSLATOR_VERSION/quarkus-adoc-po-translator-runner.jar -o vendor/quarkus-adoc-po-translator-runner.jar
find l10n/po/es_ES/_data/ -name "*.yaml.po" | xargs java -jar vendor/quarkus-adoc-po-translator-runner.jar --srcLang=en --dstLang=es
find l10n/po/es_ES/_includes/ -name "*.html.po" | xargs java -jar vendor/quarkus-adoc-po-translator-runner.jar --srcLang=en --dstLang=es
find l10n/po/es_ES/_redirects/ -name "*.md.po" | xargs java -jar vendor/quarkus-adoc-po-translator-runner.jar --srcLang=en --dstLang=es
find l10n/po/es_ES/_guides/ -name "*.adoc.po" | xargs java -jar vendor/quarkus-adoc-po-translator-runner.jar --srcLang=en --dstLang=es
find l10n/po/es_ES/_posts/ -name "*.adoc.po" | xargs java -jar vendor/quarkus-adoc-po-translator-runner.jar --srcLang=en --dstLang=es
find l10n/po/pt_BR/_data/ -name "*.yaml.po" | xargs java -jar vendor/quarkus-adoc-po-translator-runner.jar --srcLang=en --dstLang=pt
find l10n/po/pt_BR/_includes/ -name "*.html.po" | xargs java -jar vendor/quarkus-adoc-po-translator-runner.jar --srcLang=en --dstLang=pt
find l10n/po/pt_BR/_redirects/ -name "*.md.po" | xargs java -jar vendor/quarkus-adoc-po-translator-runner.jar --srcLang=en --dstLang=pt
find l10n/po/pt_BR/_guides/ -name "*.adoc.po" | xargs java -jar vendor/quarkus-adoc-po-translator-runner.jar --srcLang=en --dstLang=pt
find l10n/po/pt_BR/_posts/ -name "*.adoc.po" | xargs java -jar vendor/quarkus-adoc-po-translator-runner.jar --srcLang=en --dstLang=pt

bin/normalize
2 changes: 1 addition & 1 deletion bin/update-override-stats
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ echo "Filename, Last modified, Upstream Last modified, Up to date" > l10n/stats/
for ITEM in `\find l10n/override`; do
if [ -f $ITEM ] ; then

RELATIVE_FILE_PATH=`echo $ITEM | sed -e "s|^l10n\/override\/es_ES\/||"`
RELATIVE_FILE_PATH=`echo $ITEM | sed -e "s|^l10n\/override\/pt_BR\/||"`
RELATIVE_FILE_DIR=$(dirname $RELATIVE_FILE_PATH);

UPSTREAM_FILE_UTIME=`cd upstream; git log -1 --format=%ct -- $RELATIVE_FILE_PATH`
Expand Down
16 changes: 8 additions & 8 deletions bin/update-translation-stats
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ cd $L10N_HOME
source config/l10n-kit.conf

echo "Filename, Fuzzy Messages, Total Messages, Fuzzy Words, Total Words, Achievement" > l10n/stats/translation.csv
pocount --csv `find l10n/po/es_ES/_guides/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk6 >> l10n/stats/translation.csv
pocount --csv `find l10n/po/es_ES/_posts/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk6 >> l10n/stats/translation.csv
pocount --csv `find l10n/po/es_ES/_includes/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk6 >> l10n/stats/translation.csv
pocount --csv `find l10n/po/es_ES/_data/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk6 >> l10n/stats/translation.csv
pocount --csv `find l10n/po/pt_BR/_guides/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk6 >> l10n/stats/translation.csv
pocount --csv `find l10n/po/pt_BR/_posts/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk6 >> l10n/stats/translation.csv
pocount --csv `find l10n/po/pt_BR/_includes/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk6 >> l10n/stats/translation.csv
pocount --csv `find l10n/po/pt_BR/_data/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk6 >> l10n/stats/translation.csv

echo "Filename, Fuzzy Messages, Total Messages, Fuzzy Words, Total Words, Achievement" > l10n/stats/translation-sorted-by-fuzzy-words.csv
pocount --csv `find l10n/po/es_ES/_guides/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk4 >> l10n/stats/translation-sorted-by-fuzzy-words.csv
pocount --csv `find l10n/po/es_ES/_posts/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk4 >> l10n/stats/translation-sorted-by-fuzzy-words.csv
pocount --csv `find l10n/po/es_ES/_includes/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk4 >> l10n/stats/translation-sorted-by-fuzzy-words.csv
pocount --csv `find l10n/po/es_ES/_data/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk4 >> l10n/stats/translation-sorted-by-fuzzy-words.csv
pocount --csv `find l10n/po/pt_BR/_guides/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk4 >> l10n/stats/translation-sorted-by-fuzzy-words.csv
pocount --csv `find l10n/po/pt_BR/_posts/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk4 >> l10n/stats/translation-sorted-by-fuzzy-words.csv
pocount --csv `find l10n/po/pt_BR/_includes/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk4 >> l10n/stats/translation-sorted-by-fuzzy-words.csv
pocount --csv `find l10n/po/pt_BR/_data/ -name "*.adoc.po"` | awk -F ',' 'NR>1 && $9>0 {print $1 "," $5 "," $9 "," $6 "," $10 "," 100-int($6*100/$10) "%"}' | sort --reverse -t, -nk4 >> l10n/stats/translation-sorted-by-fuzzy-words.csv
6 changes: 0 additions & 6 deletions l10n/stats/override.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
Filename, Last modified, Upstream Last modified, Up to date
l10n/override/es_ES/_includes/recent-posts-band.html, 2023-07-12 08:38:19 +0000, 2023-07-05 14:00:36 +0000, OK
l10n/override/es_ES/_includes/index-docs.html, 2023-07-12 08:38:19 +0000, 2023-07-05 14:00:36 +0000, OK
l10n/override/es_ES/_includes/homepage-userstory-callout.html, 2023-07-12 08:38:19 +0000, 2023-07-05 14:00:36 +0000, OK
l10n/override/es_ES/_includes/index-guides.html, 2023-07-12 08:38:19 +0000, 2023-07-05 14:00:36 +0000, OK
l10n/override/es_ES/_data/projectfooter.yaml, 2023-07-12 08:38:19 +0000, 2023-06-23 14:35:45 +0000, OK
l10n/override/es_ES/CNAME, 2022-06-08 19:11:39 +0000, 2019-03-07 11:48:18 +0000, OK
Loading

0 comments on commit 2192f5d

Please sign in to comment.