Modify translation completeness labels in order for them to appear in Crowdin. (#14785)

This commit is contained in:
zoltanvb 2022-12-31 02:34:45 +01:00 committed by GitHub
parent 4609c7f90a
commit 8b536ec35d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 15 deletions

View File

@ -8914,23 +8914,23 @@ MSG_HASH(
"Yiddish - ײִדיש"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_95_PLUS,
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_95_PLUS,
">95%"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_75_PLUS,
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_75_PLUS,
"75-95%"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_50_PLUS,
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_50_PLUS,
"50-74%"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_25_PLUS,
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_25_PLUS,
"25-49%"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_25_MINUS,
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_25_MINUS,
"<25%"
)
MSG_HASH( /* FIXME Should be MENU_LABEL_VALUE */

View File

@ -6908,11 +6908,11 @@ static void setting_get_string_representation_uint_user_language(
modes[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)]);
} else {
rating = msg_hash_to_str(
translated[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)] > 95 ? MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_95_PLUS :
translated[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)] > 74 ? MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_75_PLUS :
translated[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)] > 49 ? MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_50_PLUS :
translated[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)] > 24 ? MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_25_PLUS :
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_25_MINUS);
translated[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)] > 95 ? MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_95_PLUS :
translated[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)] > 74 ? MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_75_PLUS :
translated[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)] > 49 ? MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_50_PLUS :
translated[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)] > 24 ? MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_25_PLUS :
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_25_MINUS);
snprintf(s, len, "%s [%s]",
modes[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)], rating);
}

View File

@ -3075,11 +3075,12 @@ enum msg_hash_enums
MENU_ENUM_LABEL_VALUE_LANG_CATALAN_VALENCIA,
MENU_ENUM_LABEL_VALUE_LANG_WELSH,
MENU_ENUM_LABEL_VALUE_LANG_YIDDISH,
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_95_PLUS,
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_75_PLUS,
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_50_PLUS,
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_25_PLUS,
MENU_ENUM_LABEL_VALUE_LANG_COMPLETION_25_MINUS,
/* Entries beginning with MENU_ENUM_LABEL_VALUE_LANG will not be uploaded to Crowdin. */
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_95_PLUS,
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_75_PLUS,
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_50_PLUS,
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_25_PLUS,
MENU_ENUM_LABEL_VALUE_LNG_COMPLETION_25_MINUS,
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
MENU_ENUM_LABEL_VALUE_AI_SERVICE_NARRATOR_MODE,