Fix several lost translations
ClosedPublic

Authored by nwtour on Apr 16 2021, 6:18 PM.

Details

Summary

Idle builder (https://code.wildfiregames.com/D3290):

  • Add hotkey description for translate

"Other Hotkey" category:

  • updateTemplates.py does not process the construction translate(markForTranslation()). Split into different lines

Map pager:

  • Add missing markForTranslation()

Market:

  • Add missing translate()
Test Plan

x

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

nwtour requested review of this revision.Apr 16 2021, 6:18 PM
nwtour created this revision.
Freagarach added inline comments.
binaries/data/mods/public/gui/hotkeys/HotkeyMetadata.js
19 ↗(On Diff #17130)

Could be part of the prototype, like its category.

binaries/data/mods/public/gui/hotkeys/HotkeysPage.js
122 ↗(On Diff #17130)

Could be part of the prototype to avoid creating the string even when it is not needed.

nwtour updated this revision to Diff 17134.Apr 16 2021, 7:27 PM

Move string to prototype

@Freagarach Updated. Did I get the idea right?

nwtour updated this revision to Diff 17135.Apr 16 2021, 7:57 PM

remove Pagination.js (translation not lost - local misscondition)

You certainly got the idea :)

binaries/data/mods/public/gui/hotkeys/HotkeyMetadata.js
69 ↗(On Diff #17134)

This makes a bit more sense.

binaries/data/mods/public/gui/hotkeys/HotkeysPage.js
124 ↗(On Diff #17134)
198 ↗(On Diff #17134)
binaries/data/mods/public/gui/maps/mapbrowser/controls/Pagination.js
38–39 ↗(On Diff #17134)

These can be moved to the prototype also. :)

nwtour updated this revision to Diff 17136.Apr 16 2021, 8:28 PM

change var names

Freagarach accepted this revision.Apr 16 2021, 8:33 PM
  • Correct.
  • Good changes.

If you upload you patches using the webinterface, could you please set the repository next time? That way our linters will run and check your code :)

This revision is now accepted and ready to land.Apr 16 2021, 8:33 PM

If you upload you patches using the webinterface, could you please set the repository next time? That way our linters will run and check your code :)

Ok. I thought this was just for checking buildable of c ++ code

This revision was automatically updated to reflect the committed changes.
Owners added a subscriber: Restricted Owners Package.Apr 17 2021, 9:47 AM