Some problems with Greek translation - please advise

Started by spiros, November 22, 2004, 03:12:03 PM

Previous topic - Next topic

spiros

I am testing the translation and I can see that the pm/am indications in  "Last post", "User info" and "Forum Stats" are not translated. Where  exactly do I have to go to translate them?

They have been already translated in in Profile.php but does not make any difference
$txt['timeformat_easy1'] = 'Month Day, Year, HH:MM:SS a/pm';

and I think they are controlled in the Edit Features and Options "Default time format" from admin but there is no way to translate them there. Any ideas?


[Unknown]

They are based on the locale you specify at the beginning of index.greek.php.

-[Unknown]

spiros

Indeed, this is what I thought. But when checking the file...

$txt['lang_locale'] = 'el';
$txt['lang_dictionary'] = 'el';
$txt['lang_spelling'] = 'greek';


I found nothing wrong there... unless perhaps it should be el_gr or something.
Any other clues?

[Unknown]

Quote from: spiros on November 22, 2004, 06:57:49 PM
$txt['lang_locale'] = 'el';
$txt['lang_dictionary'] = 'el';
$txt['lang_spelling'] = 'greek';

Well, the comment there says:

// Locale (strftime, pspell_new) and spelling. (pspell_new, can be left as '' normally.)
// For more information see:
//   - http://www.php.net/function.pspell-new
//   - http://www.php.net/function.setlocale
// Again, SPELLING SHOULD BE '' 99% OF THE TIME!!  Please read this!


So, spelling is 100% for sure supposed to be '', not 'greek'.  Using 'greek' will cause problems, because it's wrong.

As for time formats, again...
echo strftime('%B %d, %Y, %I:%M:%S %p', time());
> November 22, 2004, 05:24:51 PM

setlocale(LC_TIME, 'es'); echo strftime('%B %d, %Y, %I:%M:%S %p', time());
> november 22, 2004, 05:25:18 PL

setlocale(LC_TIME, 'el'); echo strftime('%B %d, %Y, %I:%M:%S %p', time());
> November 22, 2004, 05:26:22 PM

setlocale(LC_TIME, 'ell'); echo strftime('%B %d, %Y, %I:%M:%S %p', time());
???µß???? 22, 2004, 05:29:51 µµ

Mayube ell is the one you want?  I'm not sure.  The dictionary should be el, though.

-[Unknown]

spiros

Only el_GR produced a change and that was one of dropping the pm/am altogether... (I made sure the setting in the CP is for 12 hour time)
This is strange because for example in Mambo the el_GR locale works fine.

Advertisement: