Translatability
FrankT - August 29, 2009 - 16:36
| Project: | Weekly Archive by Node Type |
| Version: | 6.x-2.4 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Prometheus6 |
| Status: | closed |
Jump to:
Description
I'm about to translate the module and found out that the month names (January, February) are not translatable. Probably it's the same with the day names (monday, tuesday,...).
By the way: I suggest to add a component 'User interface' for week issues (currently only code is available).

#1
There is now a "User interface" component.
The month and day names are created using the PHP date() function.
<?php$link_data['month'] = date('F', $start_week_ts);
$link_data['mon'] = date('M', $start_week_ts);
$link_data['monthno'] = date('m', $start_week_ts);
$link_data['day'] = date('d', $start_week_ts);
$link_data['dayname'] = date('l', $start_week_ts);
$link_data['sdayname'] = date('D', $start_week_ts);
?>
That should actually handle it on a properly configured system.
#2
New version has a new dependency on date_api, but that means translations of month and day names are handled. Still needs translations for the form strings etc, of course, so there's a .pot file in there too.
#3
Thank you, things look fine so far but I have some new issues (should be finished then):
The title of page /archive/story seems to be the string 'Weekly %type archives'. The title of the page seems to be untranslatable (a block has the same title, for the block the string can be translated).
On page '/admin/settings/week' there is a string 'Create block containing a list of weekly archives, collectively or by node type. ' which seems to be untranslatable, too.
#4
Okay, get the latest version and use the .pot file in there.
#5
#6
Five + days with no problem