Localization Update (#23)

Improved localization support across MSE. Unless otherwise noted, updates apply to Chinese, French, German, Italian, Japanese, Korean, Portuguese, Russian, and Spanish

Locales have been updated, including the Dutch and Polish locales. These may still want to be improved by native speakers but are no longer full of untranslated English strings.

Type line word lists are now localized, and will change with the Set tab language option rather than needing files to be edited. Chinese types are sorted by Unicode, Japanese types are sorted by gojūon, the rest are alphabetized in their own language. Card type and super types have also been reordered accordingly.

Added spellcheck dictionaries for most languages. Chinese and Japanese have instead had their spellchecking disabled so they don't have their entire cards underlined.
Updated the Beleren, MPlantin, and Relay fonts to support Cyrillic characters.

Number maps have been added to assist with localized keywords.
Localized keyword files have been added up to Lost Caverns of Ixalan. To use these, rename the magic.mse-game/keywords file to "keywords_en", then rename the keyword file of your choice to "keywords".
Craft has a simplified reminder text for most languages. The craft_code function in magic.mse-game/scripts provides a template for using the more comprehensive version English uses, with German having access to it as well so far.

Localized auto-frames for M15 Adventures, M15 Sagas, Mainframe Tokens, M15 Mainframe, Mainframe DFC, and GenevensiS frames

Added Totem armor -> Umbra armor to auto errata script, and updated it to allow for localized replacements

Did about as much stats page localization as we can get away with. French has been completed, other languages will need the stats names and help trace done by someone who actually knows the language.
---------

Co-authored-by: cajun <kajunkittyavenger@gmail.com>
This commit is contained in:
GenevensiS
2024-01-05 10:02:40 +01:00
committed by GitHub
parent 33d04480e5
commit 1adaf70609
137 changed files with 709925 additions and 194920 deletions

View File

@@ -188,11 +188,11 @@ init script:
is_miracle := {styling.front_style == "miracle"}
is_class := {styling.front_style == "class"}
is_nyx := {styling.front_style == "nyx" or chosen(styling.other_options, choice:"nyx front")}
is_vehicle := {styling.front_style == "vehicle" or chosen(styling.other_options, choice:"vehicle front") or (chosen(styling.other_options, choice:"automate type frames") and match_vehicle(card.type))}
is_vehicle := {styling.front_style == "vehicle" or chosen(styling.other_options, choice:"vehicle front") or (chosen(styling.other_options, choice:"automate type frames") and lang_setting("is_vehicle")(card.sub_type))}
is_map := {styling.front_style == "map"}
is_snow := {styling.front_style == "snow" or chosen(styling.other_options, choice:"snow front") or (chosen(styling.other_options, choice:"automate type frames") and match_snow(card.type))}
is_snow := {styling.front_style == "snow" or chosen(styling.other_options, choice:"snow front") or (chosen(styling.other_options, choice:"automate type frames") and lang_setting("is_snow")(card.super_type))}
is_saga := {two_boxes() or three_boxes() or four_boxes()}
is_legend := {is_normal() and not is_map() and (chosen(styling.other_options, choice:"legendary front") or (contains(card.super_type, match:"Legendary") and set.auto_legends)) }
is_legend := {is_normal() and not is_map() and (chosen(styling.other_options, choice:"legendary front") or (lang_setting("is_legendary")(card.super_type) and set.auto_legends)) }
is_curtains := {contains(card.notes, match:"!curtain")}
is_mutate := {chosen(styling.other_options, choice:"front mutate") and is_normal() and not is_full() and not is_saga() and not is_map() and not front_clear()}
is_leveler := {styling.front_style == "leveler"}
@@ -207,11 +207,11 @@ init script:
back_miracle := {styling.back_style == "miracle"}
back_class := {styling.back_style == "class"}
back_nyx := {styling.back_style == "nyx" or chosen(styling.other_options, choice:"nyx back")}
back_vehicle := {styling.back_style == "vehicle" or chosen(styling.other_options, choice:"vehicle back") or (chosen(styling.other_options, choice:"automate type frames") and match_vehicle(card.type_2))}
back_vehicle := {styling.back_style == "vehicle" or chosen(styling.other_options, choice:"vehicle back") or (chosen(styling.other_options, choice:"automate type frames") and lang_setting("is_vehicle")(card.sub_type_2))}
back_map := {styling.back_style == "map"}
back_snow := {styling.back_style == "snow" or chosen(styling.other_options, choice:"snow back") or (chosen(styling.other_options, choice:"automate type frames") and match_snow(card.type_2))}
back_snow := {styling.back_style == "snow" or chosen(styling.other_options, choice:"snow back") or (chosen(styling.other_options, choice:"automate type frames") and lang_setting("is_snow")(card.super_type_2))}
back_saga := {back_two_boxes() or back_three_boxes() or back_four_boxes()}
back_legend := {back_normal() and not back_map() and (chosen(styling.other_options, choice: "legendary back") or (contains(card.super_type_2, match: "Legendary") and set.auto_legends))}
back_legend := {back_normal() and not back_map() and (chosen(styling.other_options, choice: "legendary back") or (set.auto_legends and lang_setting("is_legendary")(card.super_type_2)))}
back_mutate := {chosen(styling.other_options, choice:"back mutate") and back_normal() and not is_full() and not back_saga() and not back_map() and not back_clear()}
back_poke_walker := {mainframe_walkerb() and not is_full() and use_evobar()}
back_leveler := {styling.back_style == "leveler"}