Skip to content

Commit 5c8e835

Browse files
committed
Fix language names
1 parent 20fb276 commit 5c8e835

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

parser/functions.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,19 @@ function build_lang(&$language) {
205205
// Sort and save.
206206
ksort($translations);
207207
save_json($lang.'.json', $translations);
208-
$language->lastupdate = time();
209208

209+
$language->lastupdate = time();
210210
$language->translated = count($translations);
211+
$lmsstring = get_translation_strings($langfoldername, 'langconfig');
212+
$language->name = $lmsstring['thislanguage'];
213+
211214
$percentage = floor($language->translated/$STATS->total * 100);
212215
$bar = progressbar($percentage);
216+
213217
if (strlen($lang) <= 2 && !$parent) {
214218
echo "\t";
215219
}
220+
216221
echo "\t\t$language->translated of $STATS->total -> $percentage% $bar ($language->local local)\n";
217222
}
218223

parser/parse.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function get_languages {
6262
if [ -f $LANG_JSON ] && [ $force -eq 0 ]; then
6363
md5_old=`jq -r .\"$lang\".md5 $LANG_JSON`
6464
if [[ "$md5" == "$md5_old" ]]; then
65-
echo "Same Md5 on $name ($lang) language, skipping..."
65+
echo "Same Md5 on $name ($lang) language, skipping..."
6666
continue;
6767
fi
6868
fi

0 commit comments

Comments
 (0)