[OpenLayers-Dev] Additional Lang Files
Christopher Schmidt
crschmidt at metacarta.com
Fri Jan 30 08:38:36 EST 2009
On Fri, Jan 30, 2009 at 08:57:22AM +0100, Jachym Cepicky wrote:
> Hi,
>
> IMHO ISO 639 (3 letter format) should be used [1] and all other
> formats (2 letters, 'locale' format) should only point to it.
This doesn't make sense from an implementation perspective. The
Accept-Language header, used by OpenLayers to search for an appropriate
language code, is 2-char based, not three-char based codes. This is
defined by RFC2616, which depends on RFC1766.
http://www.ietf.org/rfc/rfc1766.txt
-- Chris
> Jachym
>
> [1] http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt
>
> 2009/1/30 Chris Claydon <chris.claydon at autodesk.com>:
> > Hi,
> >
> >
> >
> > I work on the MapGuide Open Source project, which makes use of OpenLayers
> > via the Fusion open source viewer. We'd like to add support for Spanish,
> > Hungarian, and possibly Japanese localized strings to OpenLayers, and we
> > have a couple of questions?
> >
> >
> >
> > The format of the various JavaScript files in the Lang folder is not 100%
> > consistent. For example:
> >
> >
> >
> > 1) The cs-CZ.js file uses OpenLayers.Lang["cs-CZ"] to declare the array
> > of strings whereas fr.js uses OpenLayers.Lang.fr
> >
> > 2) Some languages use a two character locale designation (fr, de etc.)
> > and some use four characters (cs-CZ, sv-SE etc.)
> >
> > 3) Some files seem to base the settings on the 'en' version of the
> > strings. Eg. de.js (uses OpenLayers.Util.applyDefaults) Others just declare
> > the array independently. Eg. fr.js
> >
> >
> >
> > So, when creating new language resources, which is the best model to follow?
> > Is there any documentation on this, or any general guidelines?
> >
> >
> >
> > Any information would be much appreciated! We will happily contribute these
> > files to the OpenLayers project when they are completed.
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Chris C.
> >
> > _______________________________________________
> > Dev mailing list
> > Dev at openlayers.org
> > http://openlayers.org/mailman/listinfo/dev
> >
> >
>
>
>
> --
> Jachym Cepicky
> e-mail: jachym.cepicky gmail com
> URL: http://les-ejk.cz
> GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
--
Christopher Schmidt
MetaCarta
More information about the Dev
mailing list