Commit c1006d87 authored by Pino Toscano's avatar Pino Toscano

i18n: prune @-langs earlier on translation import

As Android does not support languages with @, remove their po files
before invoking a2po instead of removing their results afterwards.
parent 7c26d30c
......@@ -15,9 +15,9 @@ function export_pot_file # First parameter will be the path of the pot file we h
function import_po_files # First parameter will be a path that will contain several .po files with the format LANG.po
# Android doesn't support languages with an @
find "$podir" -type f -name "*@*.po" -delete
ANSI_COLORS_DISABLED=1 a2po import --ignore-fuzzy --android res/ --gettext $podir
#Android doesn't support languages with an @
rm -r res/values-*@*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment