Open GoogleCodeExporter opened 8 years ago
Sounds great.
I'll have a look at put in trunk as soon as i have a chance.
Do you have sample Locale changes?
And of course, a legal note, that all of the changes are under the Apache
Licence yada yada... :-)
Original comment by ayman.al...@gmail.com
on 8 Jul 2010 at 1:12
Legal note: All the changes I provide here are under the Apache Licence
(Do you need anything else or is that good enough?)
I tested a bit further and found (and fixed) 3 small problems with my first
attempt:
1.) Encoding of localized configuration: Previously the default platform
encoding was used which differs (e.g. CP1252 on German Windows, UTF-8 on most
Linux system etc.). I made yet another small change to JarServiceProvider to
always use UTF-8 (which shouldn't make any difference to the existing English
files)
2.) Popup menu which contains submenu (e.g. "Surround with" for JavaSyntax): To
properly localize the "Surround with" menu entry in my old version one would
have to copy the whole PopupMenu property to the localized configuration and
then change the one string to a localized version. Instead I added a property
"SURROUND_WITH" to default English configuration and reference this in
PopupMenu via ${SURROUND_WITH}. That way the localized config only needs to
translate this one property.
3.) Because JarServiceProvider.readProperties always uses lowercase filename my
earlier description was wrong: Swiss config file would have to be named
"config_de_ch.properties", not "config_de_CH.properties"
I attached a revised version of the locale patch file (replaces the earlier
version) as well as an example for German configuration. To see the German
configuration you can start SyntaxTester e.g. with
java -Duser.language=de -cp jsyntaxpane_resources_de.jar;jsyntaxpane-0.9.5.jar
jsyntaxpane.SyntaxTester
This jar file contains only translations for default kit and javasyntaxkit, so
there might be some remaining English menu entries for other kits.
Original comment by martin.z...@consol.de
on 14 Jul 2010 at 11:47
Attachments:
Looking at these now
Original comment by ayman.al...@gmail.com
on 21 Jul 2010 at 6:50
I created a new branch, finally after several failed attempts and screwing up
the repo.
I18n will be in r0.9.6 for now and then shortly put into trunk.
see r144
Original comment by ayman.al...@gmail.com
on 21 Jul 2010 at 8:58
Thanks, that's great news :)
Original comment by martin.z...@consol.de
on 21 Jul 2010 at 9:01
Hello,
an exception prevents the ReplaceDialog from starting when there is no bundle
for the current locale. The following patch fixes it:
http://patch-tracker.debian.org/patch/series/view/libjsyntaxpane-java/0.9.6~r156
-4/load-bundle-i18n
Bye, Mt
Original comment by martin.q...@ens-rennes.fr
on 21 Aug 2013 at 9:44
Attachments:
Original issue reported on code.google.com by
martin.z...@consol.de
on 8 Jul 2010 at 7:41Attachments: