#1527 setlocale() problem

closed-fixed
None
5
2005-05-17
2005-05-17
No

PhpWebSite Version: 0.10.1 (phpwebsite-0.10.1-full.tar.gz)

In this file
./modstats/class/StatsHits.php on row 211

this code doesn't work for italian language

$tags["CURR_MONTH_TITLE"] =
$_SESSION["translate"]->it("Viewing") . ' ' . date('F')
. $_SESSION["translate"]->it("'s Unique Visits") .
" (".$_REQUEST["graph_year_fld_YEAR"].")";

my workaround is:

setlocale (LC_TIME, "it_IT");
$tags["CURR_MONTH_TITLE"] =
$_SESSION["translate"]->it("Visite uniche nel mese di")
. ' ' . ucfirst(strftime('%B')) .
" (".$_REQUEST["graph_year_fld_YEAR"].")";

The same problem there is on row 223 in the same file.

Discussion

  • Darren Greene

    Darren Greene - 2005-05-17
    • assigned_to: nobody --> dg49379
    • status: open --> closed-fixed
     
  • Darren Greene

    Darren Greene - 2005-05-17

    Logged In: YES
    user_id=783140

    This has been fixed in CVS.

    Thanks,
    Darren

     

Log in to post a comment.