| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function tcar_getLocalizationDir { |
| |
| |
| |
| |
| LOCATION=$(tcar_checkRepoDirSource "${1}") |
| |
| |
| |
| if [[ -f ${LOCATION} ]];then |
| LOCATION=$(dirname ${LOCATION}) |
| fi |
| |
| |
| case "${2}" in |
| |
| '--no-lang' ) |
| LOCATION=$(echo "${LOCATION}" \ |
| | sed -r -e "s!(Identity|Scripts|Documentation)!Locales/\1!") |
| ;; |
| |
| * ) |
| LOCATION=$(echo "${LOCATION}" \ |
| | sed -r -e "s!(Identity|Scripts|Documentation)!Locales/\1!")/${TCAR_SCRIPT_LANG_LC} |
| ;; |
| |
| esac |
| |
| |
| echo "${LOCATION}" |
| |
| } |