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
Comment #1
sinasalek commentedMarked
Comment #2
sinasalek commentedCurrently 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
Comment #3
sinasalek commentedComment #4
sinasalek commentedMoving to 3.x roadmap
Comment #5
sinasalek commentedComment #6
sinasalek commentedIn 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
Comment #7
sinasalek commentedComment #8
sinasalek commentedComment #9
sinasalek commentedIt'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