Patch. Remove unused keys from en.txt

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Message
Author
User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Patch. Remove unused keys from en.txt

#31 Post by adrian_broher »

There is also UserStringNop, which wraps translatable literals in c++, that are stored in a variable and translated at a later time. You can ignore UserString most of the time if it has something else than a string literal as a parameter.
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Patch. Remove unused keys from en.txt

#32 Post by adrian_broher »

The hotkey doesn't create the translation key on the fly anymore, but now holds a description attribute, which contains the translation key. The translation key is passed via the factory method and is wrapped by a UserStringNop call.
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

Post Reply