the-butterfly-effect / tbe

The Butterfly Effect, a realistic physics simulation game
http://the-butterfly-effect.org
GNU General Public License v2.0
95 stars 13 forks source link

I18N: Make undo/redo action texts a less awkward #260

Closed Wuzzy2 closed 8 years ago

Wuzzy2 commented 8 years ago

The action names of the undo and redo actions in the edit menu were pretty awkward and ungrammatical for other languages. For instance, in German it showed texts like “Rückgängig Bewegen Holzbalken”, which is hilariously ungrammatical. With some use of format strings, translations should be now be slightly easier.

It is slightly better, but still a bit awkward, since Qt mindlessly concatenates “Undo” and the action of the “undoing” (i.e. “Move Birch Bar”), which is of course bad for translation.

EDIT: The last paragraph doesn't apply anymore. Simply reverting to Qt's default undo/redo action strings did the trick. :-) This means this PR now fixes the undo/redo texts for foreign languages.