How to proceed when accesskey isn't preserved in translations - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8) +--- Thread: How to proceed when accesskey isn't preserved in translations (/showthread.php?tid=1065) |
How to proceed when accesskey isn't preserved in translations - Knitter - 2010-10-18 Hi, I'm trying to translate GetSimple to Portuguese, I know that there is a pt_BR translation in SVN, but I'm working on pt_PT, and I'm having a few doubts about accesskeys. There are some cases where, after translating the string, the letter used for the accesskey is removed, because it doesn't exist in any of the resulting translation words. Is there a way for translations to change the accesskey? What should a translator do when the accesskey disappears from the string? How to proceed when accesskey isn't preserved in translations - Knitter - 2010-10-19 Hi, I found a bit of time to look at the code, all accesskeys are hard coded into the HTML of the admin pages. I'm preparing a patch with a suggestion that would allow the accesskeys to be set by translators in the translation file. I've create a small function that looks for an emphasized letter in a given string and returns that letter, this could be used in places where accesskeys are defined. I'll post a patch as soon as I have something more solid. |