← Back to team overview

kicad-developers team mailing list archive

Bug 2086382 Patch - Translation of Hotkey descriptions

 

--000e0cd2984c13641f0462e55fdc Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi Guys,

Attached is a patch which allows the Hotkey descriptions to be
translated by the translators. This includes changes to Pcbnew,
EESchema and Gerbview to move the hotkey information message from
being initialised statically and makes them initialised via a call to
a new initialisation function dynamically.

This changes the hotkey information from wxT( "" ) to _( "" ) so that
poedit can extract the text for translation.

Changes are made to kicad-source/pcbnew/hotkeys.cpp,
kicad-source/eeschema/hotkeys.cpp, and
kicad-source/gerbview/hotkeys.cpp. Each one introduces a new
initialisation function for the hot key descriptions. A call to the
hot key init function is added to pcbnew.cpp, eeschema.cpp, and
gerbview.cpp.

Please review the patch and let me know if there are any changes
required or preferred methods to achieving this bug fix. It would be
nice for the translators to be able to translate this information as
it is probably one of the most used pieces of "help"

Built and tested on Windows XP. I am still setting up my linux box so
it is not yet tested on linux, but I don't foresee any problems.

Best Regards,

Brian.
 --000e0cd2984c13641f0462e55fdc Content-Type: application/octet-stream; 
name="kicad_hotkey_translation.patch"
Content-Disposition: attachment; filename="kicad_hotkey_translation.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fr6n2knz0

[Attachment content not displayed.] --000e0cd2984c13641f0462e55fdc-- 




Follow ups