Hello all, (bcc to Egon)
I have a little problem, I hope you can solve. Following the *.properties files in Jmol, the menu includes mnemonics. Now the problem is, I would like to have them inside the translatable string, e.g.: _File &File where the "_" or "&" marks the mnemonic-char. This is because e.g. "File" is translated, but the mnemonic is "F". But in the German translation "File"="Datei" and the "F" cannot be the mnemonic. An example on how to extract the mnemonic can be found at http://www.koders.com/java/fid4286AE64065F639100053D2AF7BD618E87A0DAD4.aspx in line 225. My idea: Instead of reading the mnemonic from the .properties file(s), src/org/openscience/jmol/app/GuiMap.java should contain the functions to a) find the mnemonic in a string and add it to a menu item b) remove the mnemonic-char (& or _) from the string for the menu entry E.g. GT._("&File") should return a string "&Datei". Then this string should be examined. IMHO it affects src/org/openscience/jmol/app/GuiMap.java and src/org/openscience/jmol/app/Jmol.java (protected JMenuItem createMenuItem()). It should not affect any other fle/function. What do you think about this? Is it possible? If yes, could you implement it (my Java knowledge was not good enough to implement it). BTW: I cannot access the IRC channel at the moment (moved to a new apartment and my online account is limited in several functions), so please write back or use ICQ (ICQ #148295333) for a direct discussion. Regards, Daniel ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
