Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/ https://fsfe.org
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.

translations.sh 418B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. inc_translations=true
  3. [ -z "$inc_filenames" ] && . "$basedir/build/filenames.sh"
  4. [ -z "$inc_languages" ] && . "$basedir/build/languages.sh"
  5. get_textsfile(){
  6. # get the texts file for a given language
  7. # fall back to English if necessary
  8. lang="$1"
  9. if [ -f "$basedir/tools/texts-${1}.xml" ]; then
  10. echo "$basedir/tools/texts-${1}.xml"
  11. else
  12. echo "$basedir/tools/texts-en.xml"
  13. fi
  14. }