kimoa / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
3 stars 0 forks source link

Localization of extensions not reliable #811

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Introduce localization resources in an ext-x.js extension file and load them 
with addLangData, the way this is done in for example ext-connector.js

2. The localized tooltip message comes correctly and seemingly reliably in 
Firefox and Chrome, but once in a while localization does not take place in 
Safari

In what browser did you experience this problem? (ALL, Firefox, Opera, etc)

I only saw this problem in Safari

In what version of SVG-edit does the problem occur? (Latest trunk, 2.5.1,
etc)

Alpha build

Please provide any additional information below.

I suspect a race condition between loading the icon images and the execution of 
your localization function, so that the function sometimes runs before the 
icons have been loaded and displayed 

Original issue reported on code.google.com by chrille....@gmail.com on 31 Mar 2011 at 9:34

GoogleCodeExporter commented 9 years ago
Don't have time to look at this carefully, but version 2.7 introduced some 
locale changes which might possibly have resolved this problem. It also allowed 
extensions to add a "langReady" callback which is passed an object with "lang" 
and "uiStrings" properties whenever the locale data is first made available or 
changed by the user and this callback will not be invoked until the locale data 
is available. Extensions can add strings to all locales and utilize this 
mechanism. If you have time, you might check whether the version in trunk still 
has this issue.

Original comment by bret...@gmail.com on 22 May 2014 at 11:36