Welcome, Guest
Username: Password: Remember me
EventList 1.0.2 for Joomla 1.6 - 2.5
  • Page:
  • 1
  • 2

TOPIC: [SOLVED] Days in Englisch,but German language pack

[SOLVED] Days in Englisch,but German language pack 7 years 9 months ago #4513

  • CB88
  • CB88's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Dear all,

at first thanks for this great component and the nice forum here! :-)

I have a problem with eventlist on my site tv-dillenburg.de/jtest/index.php/trainin...egoriesdetailed.html

The date format is %A, and the language package is in German. But the name of the days is in English. I have looked into the file, but there is the translation right.

Where is the error and how I can change it? Do you know a solution?
The problem is in the module, too.

Thanks a lot in advance for your support.

Best ragards
Christian
Last edit: by CB88.
The topic has been locked.

Re: Days in Englisch, but German language package 7 years 9 months ago #4517

Hi Christian,

Perhaps you might want to investigate what language your PHP/webserver is running. It sounds like your locale isn't set correctly.

EventList uses the strftime function which uses the locale to determine the days of the week. See the section "Return Values" on php.net/manual/en/function.strftime.php . This will point you to www.php.net/manual/en/function.setlocale.php

This might give you a start on solving your issue.

regards,
Edmond

PS -
NEW? Please read the Welcome to the EventList Community post.
Click here to find out "How to get your issue solved quickly!"

EventList 1.0.2 Stable for Joomla 1.6/1.7/2.5 now available!
The following user(s) said Thank You: jose45
The topic has been locked.

Re: Days in Englisch, but German language package 7 years 8 months ago #4964

  • jose45
  • jose45's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Karma: 1
  • Thank you received: 6
hi Edmond,
explicit, I put, for now, in every default-php of my template an
setlocale(LC_ALL, 'deu_deu');
... don´t see a better place yet.
J1.7, beta4

but thats offline.
I just load files online and - its not "enough" for that environment ... ?? :pinch:

that is EL in progress - it should orientated on J! - anyhow, because the atricle-dates have the right format and the EL-user don´t have to deal with guest-site-calls in different languages - or?
regards, jose
Last edit: by jose45. Reason: surprise
The topic has been locked.

Re: Days in Englisch, but German language package 7 years 8 months ago #5042

  • jose45
  • jose45's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Karma: 1
  • Thank you received: 6
hi,
...
online: Preferred locale for german on this system is 'de_DE@euro'
offline: Preferred locale for german on this system is 'German_Germany.1252'

my online server doesn´t know 'deu_deu'.


therefor is working:

/* different locale namen for german up to PHP 4.3.0 */
setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'deu_deu');

I set it in the beginning of every template-default.php
f.e.: html\com_eventlist\categoryevents\default.php
...




but what happens with a multilanguage site, when f.e. the english version is called?
Than I have to work with if(){...} - constructs?

best regards, Jose


(btw. if I think about a calender-component with easy-use-pretensions,
this date-"processing" seems to me a little like the utilization-drawback)
- beyond all question that EL is a gread component! & thank you!
The following user(s) said Thank You: CB88, alexrij
The topic has been locked.

Re: Days in Englisch, but German language package 7 years 7 months ago #5374

  • CB88
  • CB88's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Dear Jose,

thanks a lot for your answer, it's right and now it's ok!

:)

Christian
The topic has been locked.

Re: Days in Englisch, but German language package 7 years 6 months ago #5670

jose45 wrote:
but what happens with a multilanguage site, when f.e. the english version is called?
Than I have to work with if(){...} - constructs?

best regards, Jose


Hi Jose,

I revisited this thread because the issue came up again, and it got me thinking about your statement above. As Joomla grows and adapts for multilingual sites, hopefully Eventlist will do also.

A potential solution would be to get the chosen language from the user's Joomla profile and have the EventList code set the locale to this value; the site default language could be used for those who aren't registered, or the language of the user's browser.

Of course the event and venue description would still be in the submitted language, but perhaps a web based translation
service might be employed to provide a machine translation (although these are sometimes funny to read.)

regards,
Edmond
NEW? Please read the Welcome to the EventList Community post.
Click here to find out "How to get your issue solved quickly!"

EventList 1.0.2 Stable for Joomla 1.6/1.7/2.5 now available!
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 0.213 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......