I have found that when using this theme, some strings do not get localised, as when using default theme and others. For now, i have found the following:

  • When posting a new story, the text under the title: "Posted by %username on %date"
  • When posting a new comment, the text under the title: "By %username on %date"

I guess that these strings (in english) are fixed in the code of the theme. Does this make sense?

Comments

frjo’s picture

What version of Drupal are you using? It should work without problem with Drupal 4.6.x. I just tested on my own site and could not replicate your problem.

The cvs version of Slash is not tested yet with Drupal HEAD (what will become 4.7 soon) but it probably work OK. I just converted a format_name function I missed before to theme('username', $node).

alanza’s picture

I'm using drupal current 4.6 version and slash 4.6.0 version both from drupal downloads page.
I cannot find the msgids for the strings given in my previous message. Which are they?

alanza’s picture

I was taking a look at ...
Line 191 reads: $submitted = t('By %author on %date', ...
How can i localise the strings "By" and "on"?
By the way, i have seen the files for bluemarine theme and noticed that it's very different from slash. Are there more than one "kind" of themes?

alanza’s picture

I got it working right now. I had to change the theme a bit.

Changed By %author on %date to By %author at %date and now it works ok. I have a string for "By... at..." in my .po file, but not one for "By... on...".

I wonder if the issue reported is a bug in the theme or it's just that the .po file doesn't have an appropriate string...

frjo’s picture

Status: Active » Closed (works as designed)

There are several different types of themes. The new standard for Drupal 4.7 will be PHPTemplate, before it was xtemplate. Slash is a plain PHP theme. More info in the Theme developer's guide http://drupal.org/node/509.

I don't really get your problem with localizing the string "By %author on %date". If I would localize it into Swedish I just do something like "Av %author den %date" or why not "%date präntade %author dessa rader".