GCRC / nunaliit

Nunaliit Atlas Framework
BSD 3-Clause "New" or "Revised" License
46 stars 15 forks source link

Localization of framework strings #343

Closed roikle closed 9 years ago

roikle commented 9 years ago

Would it be possible to add localization for specific strings used in the framework, such as: "Loading ...", "search the atlas" and "Cancel".

Alternatively these could be replaced with universal/language free icons (eg. spinning progress wheel, magnifying glass, and red x)?

jpfiset commented 9 years ago

Can you provide information about which "Cancel" button is not respecting the localization?

jpfiset commented 9 years ago

As far as the custom search label, you must localize it before passing it to Nunaliit. This is an example:

var _loc = function(str,args){ return $n2.loc(str,'iran',args); };

...

customService.setOption('searchWidgetText',_loc('search the Atlas'));
jpfiset commented 9 years ago

As far as the "Cancel" button is concerned, you must provide a translation in Farsi. It is not yet provided by your atlas.