Author Topic: Patch - translate transformer  (Read 2478 times)

0 Members and 1 Guest are viewing this topic.

Offline Frank

Patch - translate transformer
« on: September 18, 2010, 05:50:09 AM »
I have a slight impression that transformers are not translatable. :/

rename "Aufspanntransformator" to "PowerSource"
rename "Abspanntransformator" to "PowerDest"

and translate this

Offline TurfIt

Re: Patch - translate transformer
« Reply #1 on: September 18, 2010, 06:47:30 AM »
Code: [Select]
- const char *get_name() const {return "Aufspanntransformator";}
+ const char *get_name() const {return translator::translate("PowerSource");}
The call to the translator is unnecessary here. The "Aufspanntransformator" name is already being passed to the translator for display in the info window title; The appropriate entry in the xx.tab file is simply missing...

Code: [Select]
- const char *get_name() const {return "Aufspanntransformator";}
+ const char *get_name() const {return "PowerSource";}
would be fine to change from a german to an english basis for the translator. Same for "PowerDest".

Offline Frank

Re: Patch - translate transformer
« Reply #2 on: September 18, 2010, 07:10:49 AM »
...
Code: [Select]
- const char *get_name() const {return "Aufspanntransformator";}
+ const char *get_name() const {return "PowerSource";}
would be fine to change from a german to an english basis for the translator. Same for "PowerDest".

ops, sorry

ok, import to Translator

rename can later