[Piwik-trac] [Piwik] #62: Making piwik translation ready
Piwik
trac at piwik.org
Thu Apr 3 10:07:23 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):
* I suggest creating seperate ticket for the translation plugin
* my idea for exceptions is:
* extend Exception class so we can pass 2 arguments throwing an
Exception
* first one is translation string, second english message i.e.
{{{
throw new PiwikException("General_PluginNotFound","Plugin not found");
}}}
* in Exception handler we check {{{ functions_exists("Piwik_Translate")
}}}
* if it does exist, and there is a translation we display translated
string
* if it does not, we display default english message
PS. I attached the right patch :)
--
Ticket URL: <http://dev.piwik.org/trac/ticket/62#comment:15>
Piwik <http://piwik.org>
Piwik, open source web analytics software
More information about the Piwik-trac
mailing list