1
Mazarin
Letter r not shown in date
  • 2010/6/21 20:58

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


I have a strange problem with the date format in my Swedish translation.

In the file language/swedish/locale.php row 31 I define the Swedish translation for the yesterday variable, which in Swedish is "igår". This is what the line looks like:
define("_YESTERDAY""Igår H:i");


Now, the strange thing is that the r in "Igår" is not showing, despite my backslash in front of it (if remove the backslash it will of course display the corresponding date of the reserved letter r.

Any idea why this is and what to do to solve it?

2
culex
Re: Letter r not shown in date
  • 2010/6/21 21:31

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Quote:

\r


In php makes linefeed. If you need to escape it use like this

Quote:

define("_YESTERDAY", "\i\g\å\\r H:i");


In this example I'd had to use trible and double because of code sanitazion
Programming is like sex:
One mistake and you have to support it for the rest of your life.

3
Mazarin
Re: Letter r not shown in date
  • 2010/6/21 21:51

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


That did it! Thanks Culex

4
culex
Re: Letter r not shown in date
  • 2010/6/22 11:33

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


No problem, glad to help Mazarin
Programming is like sex:
One mistake and you have to support it for the rest of your life.

Login

Who's Online

317 user(s) are online (286 user(s) are browsing Support Forums)


Members: 0


Guests: 317


more...

Donat-O-Meter

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

Latest GitHub Commits