Hi Wilson,

Thanks so much for your message.

Are you translating OAE into a new language or is the language already  
available as an option. If it's a new language, you'll first have to  
add the language as an option to /dev/configuration/config.js (the  
Languages property). Once that's done, your language will become an  
option in the list of available languages.

Once that's done and the user has set that language as his languages,  
you should be able to take the widget's config file

"i18n": {
   "default": {
     "bundle": "/devwidgets/recentchangedcontent/bundles/ 
default.properties",
     "description": "My recent content",
     "name": "My recent content"
   }
},

and add your language to it.

"i18n": {
   "default": {
     "bundle": "/devwidgets/recentchangedcontent/bundles/ 
default.properties",
     "description": "My recent content",
     "name": "My recent content"
   },
   "<yourlanguagecode>":{
     "bundle": "/devwidgets/recentchangedcontent/bundles/ 
<yourlanguagecode>.properties",
     "description": "Translation of the description",
     "name": "Translation of the widget name"
   }
},

In order for you to be able to see the changes you make, you might  
have to clear your cache first. Please let us know if you encounter  
any problems.

Hope that helps,
Nicolaas


On 9 Jul 2012, at 12:13, 无影 wrote:

> Hi,I'm wilson and I'm doing the localization of sakaiOAE and now I'm  
> asking for help:
>
> How can I change the name of a widget(for example "my recent  
> content")? I can change it in \devwidgets\recentchangedcontent 
> \config.json but it doesn't change in the page.I want to change it  
> and translage it into anthoer language.
> thanks,
> Wilson Lee
> _______________________________________________
> oae-dev mailing list
> [email protected]
> http://collab.sakaiproject.org/mailman/listinfo/oae-dev

_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to