wuchuanbin / php-calendar

Automatically exported from code.google.com/p/php-calendar
0 stars 0 forks source link

The translation does not work. #81

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I'm using the Italian language.
1. Just load php-calendar in Italian.

What is the expected output? What do you see instead?
The months, in both the long form is in reduced form are not translated.

What version of the product are you using? On what operating system?
PHP-Calendar 2.0-beta10

Please provide any additional information below.
In the includes/display_month.php file at line 37 there is:
$heading_html->add(tag('th', day_name($d)));

I believe that the correct form is:
$heading_html->add(tag('th', _(day_name($d))));

In the same file at line 54 there is:
tag('caption', month_name($month)." $year"),
I replace it with:
tag('caption', _(month_name($month)) . " $year"),

One last thing, in the '.po' file. is missing the string of abbreviated month 
on 'May'

Thanks.

Original issue reported on code.google.com by sandroni...@gmail.com on 26 Aug 2011 at 11:52

GoogleCodeExporter commented 8 years ago
Hi,
you should add this change too in includes/display_month.php line 87:

87  menu_item_append_with_date($html, short_month_name($i),

87 menu_item_append_with_date($html, _(short_month_name($i)),

and may be replace :

34 $heading_html->add(tag('th', 'W'));

by

34 $heading_html->add(tag('th', _('W')));

Regards.

Original comment by bcot...@gmail.com on 21 Jun 2012 at 5:19

GoogleCodeExporter commented 8 years ago

Original comment by sproctor@gmail.com on 22 Apr 2013 at 9:27