#426: Make AgaviLocale a ParameterHolder, clean up Translation Manager method
names, add caching of locale instances, add default locale getters
-------------------------+--------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: normal | Milestone: 0.11
Component: translation | Version: 0.11.0RC2
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
You can then do {{{$locale->getParameter('mycustomparamfromzeconfig');}}}
(not possible before). As a side-effect, this removes the code that was
supposed to allow overwriting of LDML data from inside an
{{{<available_locale>}}}'s {{{<parameters>}}} block, which never worked
anyway.
{{{AgaviLocale getLocaleFromIdentifier($identifier)}}} becomes
{{{AgaviLocale getLocale($identifier[, $forceNew = false])}}}
{{{string getClosestMatchingLocale($identifier)}}} becomes {{{string
getLocaleIdentifier($identifier)}}}
Also, {{{getLocale()}}} won't always create a new instance of a locale,
unless necessary or asked for (second argument). Should improve
performance.
Old method names will be deprecated for now, but might get thrown out
before 0.11 final. 1.0 at the latest.
New: {{{getDefaultLocale()}}} and {{{getDefaultLocaleIdentifier()}}}.
Self-explanatory.
--
Ticket URL: <http://trac.agavi.org/ticket/426>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets