A set of tools for configuring the Logitech G19 keyboard. Based in: https://github.com/Gnome15/gnome15
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
965 B

4 years ago
  1. #!/bin/bash
  2. echo -e "Locale: \c"
  3. read locale
  4. if [ -n "${locale}" ]; then
  5. cd $(dirname $0)
  6. basedir=$(pwd)
  7. for i in src/*; do
  8. if [ -d ${i} ]; then
  9. modname=$(basename $i)
  10. echo $modname
  11. pushd ${i} >/dev/null
  12. mkdir -p i18n
  13. # Generate python / ui
  14. pushd i18n >/dev/null
  15. for i in *.pot; do
  16. bn=$(basename $i .pot).${locale}.po
  17. msginit --no-translator --input=${i} --output=${bn} --locale=${locale}
  18. done
  19. popd >/dev/null
  20. # Generate theme
  21. for j in *
  22. do
  23. if [ -d $j/i18n ]; then
  24. pushd $j/i18n >/dev/null
  25. for k in *.pot ; do
  26. bn=$(basename $k .pot).${locale}.po
  27. echo "$k -> $bn [$locale]"
  28. msginit --no-translator --input=${k} --output=${bn} --locale=${locale}
  29. done
  30. popd >/dev/null
  31. fi
  32. done
  33. popd >/dev/null
  34. fi
  35. done
  36. fi