ChrisFeline / ToNSaveManager

Save tool and manager for VRChat world: Terrors of Nowhere
MIT License
44 stars 9 forks source link

Localization: Add additional keys for round-tag abbreviations #46

Open sageyx2002 opened 2 weeks ago

sageyx2002 commented 2 weeks ago

Hey there!

While creating the German locale, I noticed these two lines and thought I'd open a quick issue on this:

https://github.com/ChrisFeline/ToNSaveManager/blob/4ab3d6cff2ecc2ccd6b1b99f2333fa50c866d2ff/Localization/Language/en-US.json#L77-L78

I'd like to suggest adding some additional keys to allow for locale-specific replacement of these tags. My assumption is that these tags are referring to the English words "Respawn"/"Respawned", "Win"/"Won", and "Death"/"Died". Other languages might use different abbreviations, which can make these harder to interpret.

Additionally, adding a line to the tooltip on Line 78 might be useful, to explain what the abbreviations refer to. While I'm no expert on other languages, I believe the Japanese translation could use a single Kanji character in place as well, which might make it even more intuitive.

ChrisFeline commented 2 weeks ago

I will consider it. Also: D should stand for Disconnected, but I haven't felt like implementing it properly.

nomlasvrc commented 1 week ago

These tags in Japanese are ꈻ, 勝, and ꖭ, but this notation is not often used in Japanese, and some players will think it is Chinese. Perhaps the easiest to understand for Japanese are pictograms such as šŸ”„, šŸ†, and šŸ”Œ. Either way, I think it is a good idea to add a line explaining!

ChrisFeline commented 1 week ago

The reason I haven't addressed this issue yet is because the tags are hardcoded into an enumerator. Really a bad decision on my side.

I have tried using emojis on windows forms with the current font I've been using and it looks like this: image Do you think this looks good enough? If so I will proceed to replace the tags and add a more descriptive tool tip for the control.

For example: "SETTINGS.SHOWWINLOSE.TT": "Entries will show a tag based on the source that triggered the save.\nšŸ”„ Respawned.\nšŸ† Survived.\nšŸ”Œ Disconnected.",

sageyx2002 commented 1 week ago

That looks great on my end, good idea from nomlasvrc! I already updated my fork, made minor adjustments to it, as well as adding the line you provided preemptively, can update that prior to sending a pull request should you wish to change it šŸ˜ƒ

ChrisFeline commented 1 week ago

@sageyx2002 That commit will not change the tool tip, it will change the whole label for the toggle. The example is still just an idea, I am working internally on how to implement this in a way that works for me and everyone. Also the next update will take some time, as it will be released with the next version of ToN. So, there will be a lot of translation changes and additions.

sageyx2002 commented 1 week ago

Got it! Going to keep that in mind.

ChrisFeline commented 1 week ago

Alright, I implemented this request. But please wait before updating your strings. There will be 3 new keys:

"SAVE.TAG_R": "šŸ”„",
"SAVE.TAG_W": "šŸ†",
"SAVE.TAG_D": "šŸ”Œ",

These might change on release, but not worries.

These will most likely not need a translation, as this is pretty much globally visible. There's a bit of a downside, I can't add these to the information in the settings window as they show as question marks. So instead I've changed the text and the context for the toggle label that enables this feature: image

The tooltip for this entry will also change:

"SETTINGS.SHOWWINLOSE.TT": "Entries will show a tag based on the source that triggered the save.\n$$SAVE.TAG_R$$ Respawned.\n$$SAVE.TAG_W$$ Survived.\n$$SAVE.TAG_D$$ Disconnected.",

Note that this tooltip has string templates that inherit content from other keys. $$SAVE.TAG_R$$

Thank you for your suggestions, hope this will be enough.

sageyx2002 commented 1 week ago

Absolutely! This is great! I was a bit fast on that commit, and I will wait before updating. Thank you for the quick update!

nomlasvrc commented 1 week ago

Thank you for adopting my idea! I am relieved that the pictograms are displayed correctly. I added the Japanese translation of that tooltip in a separate branch.