[Sugar-devel] webL10n.js problems

Walter Bender walter.bender at gmail.com
Wed Apr 6 18:45:39 EDT 2016


Maybe I have stale bits or maybe I am doing something wrong, but I have
been wrestling with webL10n.js, which I believe is the recommend module to
use for localization in JavaScript programs for Sugar. Typical of what I am
experiencing is that any string with multiple punctuation characters will
not match the corresponding string in the localization.ini file. I've not
yet dug into the code, but has anyone else experienced something similar?
Or should I be using a different tool?

For example:

_('Mr Mouse is our Music Blocks conductor. Mr Mouse encourages you to
explore Music Blocks. Let us start our tour!')
will not match.

_('Mr Mouse is our Music Blocks conductor Mr Mouse encourages you to
explore Music Blocks Let us start our tour!')
will match.

regards.

-walter

-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
<http://www.sugarlabs.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20160406/62b2ce50/attachment.html>


More information about the Sugar-devel mailing list