My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 22: Localization
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  inner.ground
Closed:  May 2008
Cc:  stephen.yeargin, eric.p.lemoine
Type-Enhancement
Priority-Medium
Milestone-Release0.7
Localization


Sign in to add a comment
 
Reported by stephen.yeargin, Mar 01, 2008
Begin process of adapting PacerCMS for a specific region or language by
adding locale-specific components and translating text. This will be
accomplished in both the default Smarty template and throughout the Site
Administrator using a special GetText implementation.
Comment 1 by stephen.yeargin, Mar 01, 2008
Work began in R108
Comment 2 by stephen.yeargin, Apr 04, 2008
Eric is getting this error on his install. I am not sure how you can send a variable
as a constant. Perhaps we use a switch() here?

---

Warning: setlocale() [function.setlocale]: Passing locale category name as string is
deprecated. Use the LC_* -constants instead in
.\pacercms\locale\tools\php-gettext\gettext.inc on line 137

Warning: setlocale() [function.setlocale]: Invalid locale category name LC_MESSAGES,
must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME in
.\pacercms\locale\tools\php-gettext\gettext.inc on line 137
Cc: eric.p.lemoine
Comment 3 by stephen.yeargin, Apr 04, 2008
(No comment was entered for this change.)
Labels: Localization
Comment 4 by stephen.yeargin, Apr 05, 2008
Out of office for weekend, but here is the fix from Eric.


@locale/tools/php-gettext/gettext.inc:137

    -            else $ret = setlocale($category, $locale);
    +        if (!defined($category)) $ret = setlocale(LC_ALL, $locale);
    +           else $ret = setlocale(constant($category), $locale); //passing
strings is deprecated as per PHP >= 4.2.0
Comment 5 by stephen.yeargin, May 08, 2008
Released.
Status: Fixed
Sign in to add a comment

Hosted by Google Code