Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Migration language problem
#1
Migrated a locally developed site (XAMPP) to a live site. It was in Dutch, so was the News Manager (updated) plugin. On the live site ( gertiebee.nl ) dates now show in English, such as in Archieven (Archives) the month 'May' should be 'Mei'.
Tried to change it through the language file of News Manager, but no change.

I've no idea if this is even a GS problem or only a News Manager problem, or a problem with my web provider (different PHP-version?).

Any help would be very much appreciated !
Reply
#2
I moved this thread to the appropriate section ;=)

check your gsconfig.php
at the end of the file check whether you entered the correct language details, for german it is for example:

Code:
# Set PHP locale
# http://php.net/manual/en/function.setlocale.php
#setlocale(LC_ALL, 'en_US');
setlocale(LC_ALL, 'de_DE');
$LANG = 'de_DE';

how is the date with the entries for nl_NL ?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
Does not work sadly, it's still in English.
Reply
#4
It did work for the Last Tweets plugin though, which I now realize had the same problem.
Reply
#5
did you clear the browser's cache? Did you try with different browsers?
Sometimes that is the reason
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#6
Does it also happen with normal GS pages?
Try inserting this somewhere in your template:

PHP Code:
<?php get_page_date('F jS, Y'); ?>

and browse any page to see what language is used for the month of the date.
Reply
#7
Cleared the cache, no effect. Different browsers - all the same.

Tried the PHP-code but I can't see the difference, because the word December is the same in Dutch as in English. January is different though :-)
Reply
#8
(2012-12-22, 01:17:58)Gerda Wrote: Tried the PHP-code but I can't see the difference, because the word December is the same in Dutch as in English. January is different though :-)

:-D

Attached is a zip containing a lorem-ipsum.xml. It's a test page dated 1 May 2012.

- Insert the get_page_date thing again.
- Upload the to your data/pages folder
- Delete file pages.xml in data/other (don't worry, it's an index and will be re-generated)
- View the Lorem Ipsum page

Mei or May?
Reply
#9
Do not see an attachment ?

Tried that with a new page and then changing the pubDate in the xml-file on the server: it's still May

http://gertiebee.nl/lorem-ipsum
Reply
#10
Don't know what happened with the attachment...

Anyway... please insert:

PHP Code:
<?php get_page_date('F jS, Y'); ?>

somewhere in your template (or in a component) and view the page again to see what the page date is displayed like.

I want to know if it also happens with GS or if it's an issue with News Manager.

[edit] Oh I hadn't realized you had already done it...
Quote:May 5th, 2012
in English. So something has to be changed in the server.

But I'm not sure... Maybe something with setlocale as Connie suggested...
Reply
#11
I will put the question to my web provider as well.
Reply
#12
You could try something like this in gsconfig

PHP Code:
setlocale(LC_ALL'nl_NL.UTF8''nl_NL.UTF-8''nl_NL'); 
Reply
#13
it's still May
Reply
#14
Gerda,

can you ask your hoster's support? Maybe they have some strange language configuration or a suggestion for you
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#15
Hoster copied my own local php.ini file to the site, still no effect.
Reply
#16
New version of the plugin 2.3.0 installed - no effect.
Reply
#17
Of course. We had already found (using get_page_date) that it's not a problem with the plugin.
Reply
#18
You could try to find out what locales you have available (ask your hoster if you cannot check). Then we could know what to insert in gsconfig.
Reply
#19
Could be a different operating system , has different locales.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#20
@Gerda

Forget my previous post...
Please try this: instead of gsconfig, edit news_manager/inc/functions.php, find this in line 85:

PHP Code:
setlocale(LC_TIME$NMLANG); 

Change it to:

PHP Code:
setlocale(LC_TIME'nl_NL.UTF8''nl_NL.UTF-8''nl_NL''nld''dut'); 

Let's see if this fixes NM.
Reply




Users browsing this thread: 1 Guest(s)