Am Dienstag, 16. Juni 2009 21:40:53 schrieb Zero3: > Matthew Toseland skrev: > > On Sunday 14 June 2009 13:11:40 Zero3 wrote: > >> Matthew Toseland skrev: > >>> Does the new windows installer set up Freenet to use the correct > >>> language? Obviously it asks you, but after that does the node use the > >>> correct language? And does it pick up the system locale in the first > >>> place? IIRC the language selection isn't very obvious? > >> > >> Yes, it does! I just mentioned this in another reply to you about the > >> language IDs? > >> > >> Upon loading, the Windows installer automatically pre-selects the > >> correct translation according to the OS locale. If no match is found, it > >> falls back to English. The language box is located at the top of the > >> main GUI as in this screenshot: > >> > >> http://privat.zero3.dk/FreenetInstaller_Snapshot.png > >> > >> When the user selects another language from the drop-down box, the GUI > >> is immediately translated into that language. I don't think it can be > >> much more simple and intuitive than that. > >> > >> This value is also passed on to the node via "node.l10n=Deutsch" > >> (example for German) in freenet.ini. (I don't think that specifying a > >> language by the localized name is ideal, but that seems to be how the > >> node wants it. I *did* ask if this could be changed to standardized > >> language IDs a while ago...) > > > > IIRC both work. > > Which kind of IDs does it accept? I'd really like to switch over to that > instead. freenet.l10n.L10n.java shows you the strings: /** @see "http://www.omniglot.com/language/names.htm" */ public enum LANGUAGE { ENGLISH("en", "English", "eng"), SPANISH("es", "Espa?ol", "spa"), DANISH("da", "Dansk", "dan"), GERMAN("de", "Deutsch", "deu"), FINNISH("fi", "Suomi", "fin"), FRENCH("fr", "Fran?ais", "fra"), ITALIAN("it", "Italiano", "ita"), NORWEGIAN("no", "Norsk", "nor"), POLISH("pl", "Polski", "pol"), SWEDISH("se", "Svenska", "svk"), CHINESE("zh-cn", "??(??)", "chn"), CHINESE_TAIWAN("zh-tw", "??(??)", "zh-tw"), UNLISTED("unlisted", "unlisted", "unlisted");
any string listed here can be used. > - Zero3 > _______________________________________________ > Devl mailing list > Devl at freenetproject.org > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl