| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function cli_isLocalized { |
| |
| local DIR='' |
| local -a DIRS |
| |
| |
| local LOCALIZED='false' |
| |
| |
| |
| local LOCATION="$1" |
| |
| |
| |
| if [[ -f $LOCATION ]];then |
| LOCATION=$(dirname $LOCATION) |
| fi |
| |
| |
| cli_checkFiles $LOCATION -d |
| |
| |
| |
| |
| DIRS[++((${#DIRS[*]}))]="$(cli_getRepoTLDir)/Identity/Models/Themes/[[:alnum:]-]+/(Distro/$(\ |
| cli_getPathComponent --release-pattern)/Anaconda|Concept|Posters|Media)" |
| DIRS[++((${#DIRS[*]}))]="$(cli_getRepoTLDir)/Manuals/[[:alnum:]-]+$" |
| DIRS[++((${#DIRS[*]}))]="$(cli_getRepoTLDir)/Scripts/Bash$" |
| |
| |
| |
| |
| |
| |
| for DIR in ${DIRS[@]};do |
| if [[ $LOCATION =~ $DIR ]];then |
| LOCALIZED='true' |
| break |
| fi |
| done |
| |
| |
| echo "$LOCALIZED" |
| |
| } |