Warning, file /network/kdeconnect-android/StaticMessages.sh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #!/usr/bin/env bash 0002 0003 # The name of catalog we create (without the.pot extension), sourced from the scripty scripts 0004 FILENAME="kdeconnect-android" 0005 0006 function export_pot_file # First parameter will be the path of the pot file we have to create, includes $FILENAME 0007 { 0008 potfile=$1 0009 mkdir outdir 0010 ANSI_COLORS_DISABLED=1 a2po export --android res/ --gettext outdir 0011 mv outdir/template.pot $potfile 0012 rm -rf outdir 0013 } 0014 0015 function import_po_files # First parameter will be a path that will contain several .po files with the format LANG.po 0016 { 0017 podir=$1 0018 # Android doesn't support languages with an @ 0019 find "$podir" -type f -name "*@*.po" -delete 0020 # drop obsolete messages, as Babel cannot parse them -- see: 0021 # https://github.com/python-babel/babel/issues/206 0022 # https://github.com/python-babel/babel/issues/566 0023 find "$podir" -name '*.po' -exec msgattrib --no-obsolete -o {} {} \; 0024 ANSI_COLORS_DISABLED=1 a2po import --ignore-fuzzy --android res/ --gettext $podir 0025 } 0026 0027