Line 111: |
Line 111: |
| '''Try this on the test server first.''' | | '''Try this on the test server first.''' |
| === Add the translations === | | === Add the translations === |
− | | + | * export PERL5LIB=. |
| * ''/srv/off/scripts# ./add_users_translations_to_taxonomy.pl categories > /home/off/openfoodfacts-server/taxonomies/categories.txt'' | | * ''/srv/off/scripts# ./add_users_translations_to_taxonomy.pl categories > /home/off/openfoodfacts-server/taxonomies/categories.txt'' |
| * Review the diffs: ''git diff'' (there should be mostly additions) | | * Review the diffs: ''git diff'' (there should be mostly additions) |
Line 119: |
Line 119: |
| * ''/srv/off/translate# mv categories.* applied.20190513/'' | | * ''/srv/off/translate# mv categories.* applied.20190513/'' |
| | | |
| + | ==== Shortcuts ==== |
| + | Do not forget to git pull before, otherwise, the translations will be added to old versions of the taxonomies, and this will complicate merging. |
| + | <pre> |
| + | ./add_users_translations_to_taxonomy.pl states > /home/teolemon/clones/openfoodfacts-server/taxonomies/states.txt |
| + | ./add_users_translations_to_taxonomy.pl ingredients_analysis > /home/teolemon/clones/openfoodfacts-server/taxonomies/ingredients_analysis.txt |
| + | ./add_users_translations_to_taxonomy.pl additives > /home/teolemon/clones/openfoodfacts-server/taxonomies/additives.txt |
| + | ./add_users_translations_to_taxonomy.pl labels > /home/teolemon/clones/openfoodfacts-server/taxonomies/labels.txt |
| + | ./add_users_translations_to_taxonomy.pl ingredients > /home/teolemon/clones/openfoodfacts-server/taxonomies/ingredients.txt |
| + | ./add_users_translations_to_taxonomy.pl categories > /home/teolemon/clones/openfoodfacts-server/taxonomies/categories.txt |
| + | </pre> |
| === Build the taxonomy === | | === Build the taxonomy === |
| | | |