Opened 4 years ago

Last modified 15 months ago

#3972 new defect

Tooltips and loading screen tips should not hardcode the numbers but use sprintf — at Initial Version

Reported by: elexis Owned by:
Priority: Must Have Milestone: Backlog
Component: Internationalization & Localization Keywords:
Cc: Patch:

Description

#3904 is one of many examples of tooltips being wrong due to hardcoded numbers being present in translated strings, which are often not updated when the balancing is changed.

https://s21.postimg.org/u0zbi3q2f/mauryans_ship_garrison.jpg

Besides being wrong often, it also adds pointless overhead when doing balancing or translations.

Instead it should access the template data directly and fill in the numbers using sprintf.

The loading screen tips can be found in binaries/data/mods/public/gui/text/tips/. Maybe these numbers could just be removed in the first place.

Change History (0)

Note: See TracTickets for help on using tickets.