Skip to content

Commit 02f6776

Browse files
committed
Use locale instead of /inc/i18n/ folder
1 parent 4a7cfa3 commit 02f6776

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/v-change-user-language

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ is_language_valid() {
2424
log_event "$E_INVALID" "$ARGUMENTS"
2525
exit $E_INVALID
2626
fi
27-
if [ ! -e "$HESTIA/web/inc/i18n/$1.php" ]; then
27+
if [ ! -d "$HESTIA/web/locale/$1" ]; then
2828
echo "Error: language $1 doesn't exist"
2929
log_event "$E_NOTEXIST" "$ARGUMENTS"
3030
exit $E_NOTEXIST

bin/v-list-sys-languages

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ csv_list() {
6262
#----------------------------------------------------------#
6363

6464
# Defining language list
65-
languages=$(ls $HESTIA/web/inc/i18n/ |cut -f 1 -d .)
65+
languages=$(ls $HESTIA/web/locale |cut -f 1 -d .)
6666

6767
# Listing data
6868
case $format in

0 commit comments

Comments
 (0)