Hi,
when I perform Extract strings with Translation template extractor I have the following error :
* The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings there. At t($calendar->timestampToStr($c,$timestamp),array(),$langcode) in calendar_systems.module on line 298. Read more at http://drupal.org/node/322732
* The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings there. At t('!long-month-name '.$calendar->timestampToStr($c,$timestamp),array('!long-month-name'=>''),$langcode) in calendar_systems.module on line 304. Read more at http://drupal.org/node/322732

Comments

sinasalek’s picture

Issue tags: +6.x-1.6 roadmap

Marked

sinasalek’s picture

Currently it's not possible , doing so will make it impossible to translate month,week,day names
It requires refactoring part of the code which will happen in future releases
l10n support is also very useful which makes it possible to display for example Gregorian calendar for a French site with text in French

sinasalek’s picture

Version: 6.x-1.43 » 6.x-1.x-dev
Assigned: Unassigned » sinasalek
Issue tags: -6.x-1.6 roadmap +6.x-2.x roadmap
sinasalek’s picture

Moving to 3.x roadmap

sinasalek’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Issue tags: -6.x-1.6 roadmap +3.x roadmap
sinasalek’s picture

Component: User interface » Code

In recent versions of Drupal 7, date strings are translatable due to a new change in format_date function , calendar systems updated to benefit from this new feature
However date strings from all plugins should be added in some way

sinasalek’s picture

Issue tags: +Roadmap
sinasalek’s picture

Status: Active » Postponed
sinasalek’s picture

Category: task » feature
Status: Postponed » Fixed

It's implemented now however there is no way for dynamic translations to be extractable in Drupal.
Instead users should visit calendar systems admin page for the translations to be added as translation strings. After that they can be translated or extracted using locale module's export tools
http://drupal.org/project/stringoverrides can also be used to translate strings to default language

Status: Fixed » Closed (fixed)
Issue tags: -Roadmap, -Hijri, -3.x roadmap

Automatically closed -- issue fixed for 2 weeks with no activity.