I got your point! We can add these kind of arrays to add many languages. But in OM we are using files to give the localized words like this. Using keys to load values,
<input type="submit" value="" wicket:id="ajax-cancel-button" wicket:ommessage="title:157" /> I think Maxim can give me a clue to load suitable values from those file to this javascript arrays( https://github.com/bay73/whiteboard/blob/master/src/translate.js)! Thanks! On Fri, Sep 6, 2013 at 11:43 AM, Bogdanov Andrey <[email protected]> wrote: > Yes, you are righ - documentation about this topic is very poor. > > Now I've made some translation to Russian - you could see translate.js > script which I've commited to the https://github.com/bay73/whiteboard.git. > This is simple dictionary - any language could be added there. > > Now I could set locale like this: > > <script> > goog.LOCALE = 'ru'; > </script> > <script src="translate.js"></script> > <script src="whiteboard.js"></script> > > Regards, > Andrey Bogdanov > > > Пятница, 6 сентября 2013, 0:49 +05:30 от Andun Sameera <[email protected] > >: > > I tried to find some material related to localization. But finding help > for Closure is a tough task. Cant we use a normal Javascript way to handle > run-time change of languages? > > > On Thu, Sep 5, 2013 at 6:19 PM, Bogdanov Andrey > <[email protected]<https://e.mail.ru/sentmsg?mailto=mailto%[email protected]> > > wrote: > > Hi Andun, > > I've push a version which allows to clear background. > You could call board.setBackground() or board.setBackground('') - it > will work > > Also I've surrounded all nessages with goog.getMsg call, so we could add > internationalization. > > Regards, > Andrey > > > > > Среда, 4 сентября 2013, 22:51 +05:30 от Andun Sameera > <[email protected]<https://e.mail.ru/sentmsg?mailto=mailto%[email protected]> > >: > > I have re-factored the code and committed. Also I have added undo for > DOC > addition, page navigation. Also there is another small problem which Andrey > can answer me. How can we go to a empty background from? I tired to set a > "" as the url. But didn't work. > > Thanks! > > > > > > > > -- > Regards > Andun S.L. Gunawardana > Undergraduate > Department of Computer Science And Engineering > University of Moratuwa > Sri Lanka > > Blog - http://www.insightforfuture.blogspot.com/ > LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703 > Twitter -http://twitter.com/AndunSLG > > > > > > > > -- > Андрей Богданов > -- Regards Andun S.L. Gunawardana Undergraduate Department of Computer Science And Engineering University of Moratuwa Sri Lanka Blog - http://www.insightforfuture.blogspot.com/ LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703 Twitter -http://twitter.com/AndunSLG
