Forums / Cotonti / Development / Siena Beta Testing

Bugfixing and evaluation cycle started

Trustmaster
#28152 2011-01-29 20:04
Well, if you used a different array name (e.g. $Ldate) with keys as search values and values as replacement, you could do it just with 1 line with strtr. Another thing: if $lang == 'en' then you needn't apply the replacement. And finally the biggest problem about this function is grammar. It is not any obvious for languages like English, but I'll give you a few examples of Russian translations:
  • January => январь
  • January 29 => 29 января
May the Source be with you!