| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_isLocalizable { |
| |
| local DIR='' |
| local -a DIRS |
| |
| |
| |
| local LOCATION="$1" |
| |
| |
| |
| if [[ $LOCATION == '' ]];then |
| LOCATION=${ACTIONVAL} |
| fi |
| |
| |
| |
| if [[ -f $LOCATION ]];then |
| LOCATION=$(dirname $LOCATION) |
| fi |
| |
| |
| cli_checkFiles -e $LOCATION |
| |
| |
| |
| DIRS[++((${#DIRS[*]}))]="${TCAR_WORKDIR}/Identity/Models/Themes/[[:alnum:]-]+/(Distro/$(\ |
| cli_getPathComponent --release-pattern)/Anaconda|Concept|Posters|Media)" |
| DIRS[++((${#DIRS[*]}))]="${TCAR_WORKDIR}/Documentation/Models/Docbook/[[:alnum:]-]+$" |
| DIRS[++((${#DIRS[*]}))]="${TCAR_WORKDIR}/Scripts/Bash$" |
| |
| |
| |
| |
| |
| |
| for DIR in ${DIRS[@]};do |
| if [[ $LOCATION =~ $DIR ]];then |
| return 0 |
| fi |
| done |
| |
| |
| return 1 |
| |
| } |