Page MenuHomeWildfire Games

group specific names and add context for translators
Needs ReviewPublic

Authored by Nescio on Jan 28 2021, 9:14 PM.

Details

Reviewers
None
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Summary

The specific names are often confusing for translators, as a quick forum search can show. This patch therefore excludes them from the buildings, units, misc. templates, and technologies groups and groups them together in a new separate specific names group.
Moreover, it allows adding a context to the <SpecificName> nodes in templates, and it adds a context to the specific names of all animals, because those are modern scientific names, not transliterations of a name in an ancient language.
The idea of adding a context was raised in D2995. D3491 showed which file needed to be edited.
As a consequence all specific names will probably have to be retranslated, but that should be actually less work than it might seem, since most languages just copy-paste the original string or leave them untranslated.

Test Plan

Check carefully and critically. I think it should work, but haven't (and couldn't) tested.

Event Timeline

Nescio created this revision.Jan 28 2021, 9:14 PM
Owners added a subscriber: Restricted Owners Package.Jan 28 2021, 9:14 PM
Nescio added inline comments.Jan 28 2021, 9:18 PM
binaries/data/mods/public/l10n/messages.json
557

Or maybe omit -templates-?

Build is green

builderr-debug-macos.txt
ld: warning: text-based stub file /System/Library/Frameworks//CoreAudio.framework/CoreAudio.tbd and library file /System/Library/Frameworks//CoreAudio.framework/CoreAudio are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox.tbd and library file /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//ForceFeedback.framework/ForceFeedback.tbd and library file /System/Library/Frameworks//ForceFeedback.framework/ForceFeedback are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreVideo.framework/CoreVideo.tbd and library file /System/Library/Frameworks//CoreVideo.framework/CoreVideo are out of sync. Falling back to library file for linking.
ld: warning: text-based stu

See https://jenkins.wildfiregames.com/job/macos-differential/3109/display/redirect for more details.

Nescio requested review of this revision.Jan 28 2021, 9:20 PM

I agree with this change. Pinging @Gallaecio just in case.

binaries/data/mods/public/l10n/messages.json
557

Well, if you include the technologies (as you've done), I agree ;)

582

?

Nescio added inline comments.Jan 29 2021, 12:36 PM
binaries/data/mods/public/l10n/messages.json
582

JSON and XML work differently. I don't think it's possible to have a context in technology files. Adding comments in the file is not possible either.

If many languages don’t touch these translations, I think it’s good to move them to a separate file to make the life of those translators easier.

However, I believe the use of context here may not be as intended: https://code.wildfiregames.com/D3491#154257