Small HTML tool that checks JavaScript i18n for completeness
While translating the JavaScript i18n messages, I wrote a small tool that checks the arrays in com.cnprog.i18n.js
for completeness, and provides an alphabetically ordered template with all necessary words for new translations.
This way, it is easy to keep track what languages a word has already been translated to, and which ones it hasn't yet.
Screen shot:
It's pure HTML and JavaScript and consists of a .html and a .js file.
At the moment, it needs to reside in the /forum/skins/default/media/js
directory, though that is easily changed (just modify the paths in the <script>
tags).
This could probably be useful for people translating the messages.
Should it be available as download somewhere? Or should it be part of the project? I'll be happy to push it into the repo, but the js
directory is probably not the right place for it.
Being a HTML file, it would need to be below the web root. It would be harmless security wise, as nothing dynamic is being done anywhere.
What do you think?
The files can be downloaded here. Just drop them into the /js
dir and call m/default/media/js/org.askbot.output-words.html
to see it in action.
This is a quick and dirty tool right now - the HTML is not valid, has no doctype, and it was not tested outside Firefox 3.6!