<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">I wouldn't think this to be too hard.<br><br>In most internationalized applications I've seen, there is typically a "lang" or "strings" file that contains all of the strings for a given application.&nbsp; Then when the code needs a string it will call a global variable containing that error/warning/info message.&nbsp; This way all of the needed translation is isolated to a single file.&nbsp; Changing languages becomes a matter of loading an alternate language file.<br><br>So there could be a collection of language files:<br>strings.en.js<br>strings.es.js<br>strings.fr.js<br>strnigs.de.js<br><br>And then provide some basic facilities for switching between them. In fact, each of those files could be a JSON object that gets loaded to a
 global object/variable.<br><br>I may be just spewing bad ideas... but so long as the creative juices were flowing I'd thought I'd share.<br><br>-Duck<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jachym Cepicky &lt;jachym.cepicky@gmail.com&gt;<br>To: Bart van den Eijnden (OSGIS) &lt;bartvde@osgis.nl&gt;<br>Cc: "dev@openlayers" &lt;dev@openlayers.org&gt;<br>Sent: Thursday, October 18, 2007 8:58:42 AM<br>Subject: Re: [OpenLayers-Dev] status of translation possibilities<br><br>
Bart van den Eijnden (OSGIS) píše v Čt 18. 10. 2007 v 15:44 +0200:<br>&gt; Hi Chris,<br>&gt; <br>&gt; I think it is acceptable to have a global setting. I can't imagine a <br>&gt; common use case (for myself) where one map would be in English and <br>&gt; another one in Dutch on the same page. It is important though that it
 is <br>&gt; possible to switch languages.<br>&gt; <br>+1<br><br>jachym<br><br>&gt; Best regards,<br>&gt; Bart<br>&gt; <br>&gt; Christopher Schmidt schreef:<br>&gt; &gt; On Thu, Oct 18, 2007 at 03:23:50PM +0200, Jachym Cepicky wrote:<br>&gt; &gt;&nbsp;  <br>&gt; &gt;&gt; Hi,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I would like to ask about the status of OpenLayers language
 support.<br>&gt; &gt;&gt; There are not many strings, which could be translated, however,
 some are<br>&gt; &gt;&gt; there and IMHO we should (de)find a way, how to make this
 possible. Was<br>&gt; &gt;&gt; there some discussion to this topic?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; IMHO, new map attribute "lang" should be defined, as well as new
 method<br>&gt; &gt;&gt; OpenLayer.Util.getOLString("English text") (or similar). <br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Any suggestions? Should I write something like this? Is there
 already<br>&gt; &gt;&gt; some code out there?<br>&gt; &gt;&gt;&nbsp; &nbsp;  <br>&gt; &gt;<br>&gt; &gt; No code yet, but I agree that now is the time.<br>&gt; &gt;<br>&gt; &gt; <a href="http://trac.openlayers.org/wiki/RFC/Internationalization" target="_blank">http://trac.openlayers.org/wiki/RFC/Internationalization</a><br>&gt; &gt;<br>&gt; &gt; Is my start at an RFC, which never went far enough.<br>&gt; &gt;<br>&gt; &gt; My belief is that we should make this a global setting, rather than
 a<br>&gt; &gt; per-map configuration. This would mean you could not have multiple<br>&gt; &gt; languages on the same page at the same time, but would also mean
 you<br>&gt; &gt; don't need a reference to the map object in order to get a correct<br>&gt; &gt; translation string. I don't know if the trade off is worth it. What
 do<br>&gt; &gt; other people think?&nbsp; <br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; &gt;&nbsp;  <br>&gt; <br>&gt; <br>-- <br>Jachym Cepicky<br>e-mail: <a ymailto="mailto:jachym.cepicky@gmail.com" href="mailto:jachym.cepicky@gmail.com">jachym.cepicky@gmail.com</a><br>URL: <a href="http://les-ejk.cz" target="_blank">http://les-ejk.cz</a><br>GPG: <a href="http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub" target="_blank">http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub</a><br><br></div><br></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>