Advertisement:

Author Topic: Some problems with Greek translation - please advise  (Read 11336 times)

Offline spiros

  • Local Moderator
  • SMF Hero
  • *
  • Posts: 1,718
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Some problems with Greek translation - please advise
« on: November 22, 2004, 03:12:03 PM »
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?


Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Some problems with Greek translation - please advise
« Reply #1 on: November 22, 2004, 05:53:39 PM »
They are based on the locale you specify at the beginning of index.greek.php.

-[Unknown]

Offline spiros

  • Local Moderator
  • SMF Hero
  • *
  • Posts: 1,718
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: Some problems with Greek translation - please advise
« Reply #2 on: November 22, 2004, 06:57:49 PM »
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?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Some problems with Greek translation - please advise
« Reply #3 on: November 22, 2004, 08:32:53 PM »
$txt['lang_locale'] = 'el';
$txt['lang_dictionary'] = 'el';
$txt['lang_spelling'] = 'greek';

Well, the comment there says:

Code: [Select]
// 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]

Offline spiros

  • Local Moderator
  • SMF Hero
  • *
  • Posts: 1,718
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: Some problems with Greek translation - please advise
« Reply #4 on: November 23, 2004, 11:54:08 AM »
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.