Skip to content

Commit

Permalink
Update SIERRA-EDITs to be right
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene authored Nov 16, 2023
1 parent d536b5f commit 41ed501
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions code/modules/client/preference_setup/background/02_language.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@

/datum/category_item/player_setup_item/background/languages/content()
. = list()
. += "<b>Языки</b><br>" // [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод
//. += "<b>Languages</b><br>" // [SIERRA-EDIT] - ORIGINAL
// [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод
// . += "<b>Languages</b><br>" // SIERRA-EDIT - ORIGINAL
. += "<b>Языки</b><br>"
// [/SIERRA-EDIT]
var/list/show_langs = get_language_text()
if(LAZYLEN(show_langs))
for(var/lang in show_langs)
. += lang
else
. += "Ваша фракция, раса или место проживания не позволяют вам выбрать дополнительные языки.<br>" // [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод
//. += "Your current species, faction or home system selection does not allow you to choose additional languages.<br>" // [SIERRA-EDIT] - ORIGINAL
// [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод
// . += "Your current species, faction or home system selection does not allow you to choose additional languages.<br>" // SIERRA-EDIT - ORIGINAL
. += "Ваша фракция, раса или место проживания не позволяют вам выбрать дополнительные языки.<br>"
// [/SIERRA-EDIT]
. = jointext(.,null)

/datum/category_item/player_setup_item/background/languages/OnTopic(href,list/href_list, mob/user)
Expand All @@ -41,18 +45,24 @@
else if(href_list["add_language"])

if(length(pref.alternate_languages) >= MAX_LANGUAGES)
alert(user, "Вы уже выбрали максимальное количество языков!") // [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод
//alert(user, "You have already selected the maximum number of languages!") // [SIERRA-EDIT] - ORIGINAL
// [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод
// alert(user, "You have already selected the maximum number of languages!") // SIERRA-EDIT - ORIGINAL
alert(user, "Вы уже выбрали максимальное количество языков!")
// [/SIERRA-EDIT]
return

sanitize_alt_languages()
var/list/available_languages = allowed_languages - free_languages
if(!LAZYLEN(available_languages))
alert(user, "Вы уже выбрали все доступные языки.") // [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод
//alert(user, "There are no additional languages available to select.") // [SIERRA-EDIT] - ORIGINAL
// [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод
// alert(user, "There are no additional languages available to select.") // SIERRA-EDIT - ORIGINAL
alert(user, "Вы уже выбрали все доступные языки.")
// [/SIERRA-EDIT]
else
var/new_lang = input(user, "Выберите дополнительный язык", "Character Generation", null) as null|anything in available_languages // [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод
//var/new_lang = input(user, "Select an additional language", "Character Generation", null) as null|anything in available_languages // [SIERRA-EDIT] - ORIGINAL
// [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод
// var/new_lang = input(user, "Select an additional language", "Character Generation", null) as null|anything in available_languages // SIERRA-EDIT - ORIGINAL
var/new_lang = input(user, "Выберите дополнительный язык", "Character Generation", null) as null|anything in available_languages
// [/SIERRA-EDIT]
if(new_lang)
pref.alternate_languages |= new_lang
return TOPIC_REFRESH
Expand Down

0 comments on commit 41ed501

Please sign in to comment.