[OpenLayers-Trac] [OpenLayers] #109: Pull all strings out and into a single js file for localization
OpenLayers
trac at openlayers.org
Fri Feb 15 15:49:27 EST 2008
#109: Pull all strings out and into a single js file for localization
----------------------+-----------------------------------------------------
Reporter: euzuro | Owner: tschaub
Type: task | Status: assigned
Priority: minor | Milestone: 2.6 Release
Component: general | Version: 2.3
Resolution: | Keywords:
State: Commit |
----------------------+-----------------------------------------------------
Changes (by ahocevar):
* state: Review => Commit
Comment:
I am totally convinced that this is now as it should be. Plus, it can
easily be expanded later to also do some l10n stuff, using
OpenLayers.Number.Format (e.g. for the scale).
Thank you madair and tschaub for the great work!
There might be problems with the single-file build, so I uploaded a new
patch that adds a @requires for Lang/en.js to OpenLayers.js.
I saw that the patch pulls out /some/ console messages, but not /all/. I
think this is ok. In my opinion, console messages do not have to be
translated at all, because the user will not see them. In my new patch all
language resources that are only used in console messages are commented as
{{{//console message}}}. The idea is that contributors who want to create
language files for other languages do not have to translate those.
I hope you agree with those minor changes. Feel free to commit.
--
Ticket URL: <http://trac.openlayers.org/ticket/109#comment:16>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list