[Piwik-trac] [Piwik] #62: Making piwik translation ready
Piwik
trac at piwik.org
Thu Apr 3 22:47:09 CEST 2008
#62: Making piwik translation ready
--------------------+-------------------------------------------------------
Reporter: matt | Owner:
Type: Task | Status: new
Priority: major | Milestone: Stable release
Component: Core | Version:
Resolution: | Keywords: i18n translation translate internationalization
--------------------+-------------------------------------------------------
Comment (by matt):
''' * agree, please create a new ticket with your specification
* for exception there is no point trying to translate the few exceptions
that would occur before the translations files are loaded. Everything
after the call to {{{Piwik::loadPlugins()}}} (line 305 in
/trunk/modules/FrontController.php) can be translated, but the few
exceptions before this line cannot. I would suggest to go for
Exception('Message in english') and Exception('IndexTranslation') : both
of them would work. ie, if the dev doesnt care about translations, it's ok
it stays the same simple syntax. If he cares, then he puts in an index and
he has to add the entry in the english language file. The class name would
be {{{Piwik_Exception}}}
* the problem in the current architecture I can see is that we have to
duplicate the JS strings, which is annoying. Is there any other solution
you can think of?
* other than that your changes are good :)
* can you think of other things to be done in order to have a proper i18n
support? I can think of
* "right to left" language support
* proper date translation handling
* table column labels
--
Ticket URL: <http://dev.piwik.org/trac/ticket/62#comment:16>
Piwik <http://piwik.org>
Piwik, open source web analytics software
More information about the Piwik-trac
mailing list