diff options
author | Robert Tari <robert@tari.in> | 2022-08-14 19:51:41 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2022-08-16 18:05:14 +0200 |
commit | b0e1be9a0f8cdec2f243129887a6048e51b4eb67 (patch) | |
tree | 321d43bd225de70dd224cb9caf98aa870d2169ca /update-po.sh | |
parent | 81737116eb6d7f29730000c2f4e6571673c7c354 (diff) | |
download | ayatana-indicator-printers-b0e1be9a0f8cdec2f243129887a6048e51b4eb67.tar.gz ayatana-indicator-printers-b0e1be9a0f8cdec2f243129887a6048e51b4eb67.tar.bz2 ayatana-indicator-printers-b0e1be9a0f8cdec2f243129887a6048e51b4eb67.zip |
Whitespace fix
Diffstat (limited to 'update-po.sh')
-rwxr-xr-x | update-po.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/update-po.sh b/update-po.sh index 5f9e9fd..eded8f7 100755 --- a/update-po.sh +++ b/update-po.sh @@ -22,17 +22,17 @@ cp po/${GETTEXT_DOMAIN}.pot po/${GETTEXT_DOMAIN}.pot~ cd po/ cat LINGUAS | while read lingua; do - if [ ! -e ${lingua}.po ]; then - msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po - else - intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}) - fi - - sed -e 's/\.xml\.in\.h:/.xml.in:/g' \ - -e 's/\.ini\.in\.h:/.ini.in:/g' \ - -e 's/\.xml\.h:/.xml:/g' \ - -e 's/\.ini\.h:/.ini:/g' \ - -i ${lingua}.po + if [ ! -e ${lingua}.po ]; then + msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po + else + intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}) + fi + + sed -e 's/\.xml\.in\.h:/.xml.in:/g' \ + -e 's/\.ini\.in\.h:/.ini.in:/g' \ + -e 's/\.xml\.h:/.xml:/g' \ + -e 's/\.ini\.h:/.ini:/g' \ + -i ${lingua}.po done cd - 1>/dev/null |