Monday, January 09, 2012

Support for #gender and #plural in #JavaScript may mean refactoring code

There are all kinds of valid reasons to revisit code. Improving the design of existing code is definitely one. Often code is changed because additional code needs to be applied. Sometimes, like in the case of implementing JQuery in our JavaScript code, it leads to code that performs better and it has many additional features that are now available to use.

One of the ambitions at translatewiki.net has been the support of GENDER and PLURAL in the messages used in JavaScript code. In order to provide such support, there is a need for functionality that provides the same functionality we have had for so long in PHP.

The JavaScript code to support GENDER and PLURAL has been written. It makes use of JQuery functionality and when the maintainers are lucky, their code already supports it. For the localisers at translatewiki.net, the answer "the software is written in JavaScript" is no longer a valid reason not to expect messages to be changed,
Thanks,
     GerardM

No comments: