Skip to content

Commit bbbc24e

Browse files
committed
Return the English name of the user's UI language
1 parent 4146329 commit bbbc24e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pinc/UserSuggestions.inc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ class UserSuggestions
104104
}
105105
}
106106
// if the user hasn't proofread any projects, lets assume they'll want to
107-
// proofread in the language the UI is in and fall back to English
107+
// proofread in the language the UI is in and fall back to English.
108+
// Project languages are in English, so we need to return the English
109+
// name of the language.
108110
if (!$user_languages) {
109111
$user_languages = [
110-
lang_name(short_lang_code(get_user_language($this->_username))) => 5,
112+
eng_name(short_lang_code(get_user_language($this->_username))) => 5,
111113
];
112114
$user_languages["English"] = 1;
113115
}

0 commit comments

Comments
 (0)