1
leiker
Language issue in CBB
  • 2005/9/14 10:39

  • leiker

  • Just popping in

  • Posts: 13

  • Since: 2004/2/1 1


Hi,

I just installed CBB and made an Swedish translation (since a could not find one) but cant find where do get rid of "today" and "yesterday" in my posts. I.e. In all posts is says when it was posted, today, yesterday, date etc. I have the "posted" translated ok, but today and yesterday I cant get rid of. In main.php I've found these lines:
define("_MD_TODAY", "\To\d\a\y G:i:s");
define("_MD_YESTERDAY", "\Ye\s\\te\\r\d\a\y G:i:s");
but if a exchange "\To\d\a\y" with the swedish word for today the result is rubbish. I suppose the \ means something, but what?
Any suggestions?

Thanks,

Leif

2
davidthomas1
Re: Language issue in CBB

It looks like a PHP date format string.

The special characters are escaped with '\' characters.

If you want to use the Swedish words for 'today' and 'tomorrow' you will need to escape the correct letters in those words. Otherwise PHP thinks they are date symbols (i.e d=day etc...)

From the PHP website :

Quote:

You can prevent a recognized character in the format string from being expanded by escaping it with a preceding backslash. If the character with a backslash is already a special sequence, you may need to also escape the backslash.


You can see date info in the PHP manual here: PHP Date

Here's a Swedish PHP site where you can probably find something useful :

Swedish PHP Support

sorry I can't give you the exact code but hope it helps!

all the best,

D
みんなちがってみんないい。

XOOPS 2.0.13.2

3
leiker
Re: Language issue in CBB
  • 2005/9/14 11:44

  • leiker

  • Just popping in

  • Posts: 13

  • Since: 2004/2/1 1


My deepest gratidude, that solved my problem! Tried to solve this on my own for a couple of hours, then posted to this forum and got the correct answer almost instantly, great!

Thanks David!

Leif

Login

Who's Online

201 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 201


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits