[Piwik-trac] [Piwik] #62: Making piwik translation ready
Piwik
trac at piwik.org
Sat Apr 5 16:24:37 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 mauser):
Just several quick comments and issues to discuss.
1. Exceptions.
Message translation cannot be done in Piwik_Exception class, because
getMessage() method is not overridable. I will check for translations in
Piwik_ExceptionHandler.
2. Javascript strings duplication.
We certainly need definitions in translation files, so the only way is not
to put default string in js code, and by default load english strings.
3. Column labels.
I haven't understood all of datatables code yet, but we can call
_pk_translate() in javascripts on column labels (and somewhere store
original labels to keep working sort functions etc.). The same applies to
other chart labels, but I need some help with it in order not to waste
much time on it :)
--
Ticket URL: <http://dev.piwik.org/trac/ticket/62#comment:17>
Piwik <http://piwik.org>
Piwik, open source web analytics software
More information about the Piwik-trac
mailing list