branchrust_reboot/main/localization_improvementscancel
53 Commits over 0 Days - ∞cph!
Better phrase conflicts detection
Fixed 5 conflicts
Some phrase update fixes/clean up
Added an AssetPostprocessor that reloads the languages and refreshes the texts when a loc file changed
Fixed PhraseEditWindow dumping all engine-generated.json into engine.json when applying
Updated contexts
Phrase contexts
Fixed invalid hebrew json
Updated all phrases files, created the new ones for all languages with the existing translations
Moved phrases declared in code out of engine.json into a seperate file named engine-generated.json, so its clearer that manual edits will be stomped
Phrases coming from engine-generated.json cannot be edited via the phrase drawer. The window shows the assembly, class and property they come from
Refactored localization tools window, added steps drawer
UI_ServerEntry loc fix again, added vanilla and fixed the fallback
RustText code cleanup and comments
Server browser and nucleus loc fixes
Fixes when updating an existing code declared phrase values
Server entry gamemode tag loc fixes
Replaced ~50 instances of RustText.text for SetText or SetPhrase
Will do the rest later, 150 to go
Fixed language option label not resetting its formatting after switching from an RTL language
Fixed phrase edit not refreshing english base strings
Some cleanup
Restored the Rebuild Phrases menu item, as a fast path for most users
▋▅▇▇▅▅▍ ▌▍▇▄▍▅▆▆▊██ ▄█▋▋▄ ▄▍ ████.▊▆▍▋▉▍ ▅/▋
▆▌▊▅▊▆█ ▇▌▍▇▅█▊▉▍▄▌ ▄▄▊█▍ ▋▌ ▌▊▌▅.▌▌▋▇█▊
All buttons functionnal on the localization tools window
Removed the old menu items
Added a localization window where we can fire all the loc update actions from
Started moving everything to coroutines so it doesn't stall the main thread
Removed unused language from Translate::SupportedLanguages
Reorganized the loc menu items
Crowdin download within unity, wip
Fixed phrase contexts update catching RustText set to localized false
Updated phrase finder window
Fixed phrases using the same key and english being ignored by the phrase update
Fixed bbq loot panel title
Fixed 4 conflictings phrases
- setfreq_desc
- spin_desc
- drink_desc
- open_loot
Skip phrases in EntityMenu.cs, we catch these by attributes
Added a check looking for unused phrases and conflicts
Removed some unused/duped phrases
Some fixes for the phrase contexts update, it wasn't catching everything
Tooltips now use phrases
Converted and reserialized all UI prefabs using tooltips (~130 prefabs)
Some refactoring, make sure prefab phrase contexts arent stomped when running the phrase update
Fixed persistent assets in lists being explored as potential phrase contexts
Merged engine.json and phrases.json into a single file
Phrase update only look for code declared phrases
Added "Update Phrases Usage", which is basically the old update scanning the whole project, collecting everything and saving where phrases are used
Bug fixes following Phrase english field set to non serialized
Moved files around and renamed some classes
Added LocalizationToken attribute, use that everywhere instead. Much easier
LocalizeText use the new localization drawer
Removed its English field
Added a warning saying its obsolete
RustTextEditor and PhraseDrawer share the same drawing code
Phrase adding flow
Added exact match to PhraseSearchWindow and improved performance
English field of phrases is now non serialized, removed English from RustText
Added a button on PhraseDrawer to edit a phrase, opens a window that will amend changes to the json file directly
Phrases update now only collect phrases declared in code