Translate from within Foswiki views
A huge improvement would be a direct translation of strings within normal Foswiki views. For example if you turn on "?translateview=1" then all strings will have a small link to a translation view. As Foswiki has to resolve maketext strings anyway it would be a small change to create a link to the translation interface. In this way we could provide a better "in context" translation for the translators, who currently only have a string to translate but do not see how it will appear in the final page
To make this work with Pootle we would need something like:
http://translate.foswiki.org/de/pootle/pootle.po?translate=1&msgid=Yes&pofilename=pootle.po
Of course we will use POST instead of GET in this case.
Pootle has to find exactly one string which in maketext is the msgid. This seems currently not possible but maybe a "^string$" would help?
Motivate casual users to translate
We can put untranslated strings on our frontpage like this one:
http://beta.meedan.net
Therefore we have to
- find out the language of the visitor(javascript),
- get untranslated strings in his language of the project (get JSON or something else from pootle),
- display the string and present a link (javascript)
Its only a small widget, but I think it has great potential within open source projects in order to motivate people to translate