Welcome, Guest. Please Login or Register.
August 27, 2025, 08:17:35 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Weekday names in own language « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Weekday names in own language  (Read 442 times)
HariZ
Noobie
*
Posts: 37


Yeah like it or not

ICQ - 51495151harryvisser@hotmail.com WWW
Weekday names in own language
« on: March 20, 2002, 03:14:08 PM »
Reply with quote

Hi!

My YaBBSE 1.1.0 board just won't take the names of the days and months (in Dutch) from my dutch.lng

I thought that the forum gets those words from dutch.lng, but in that file, all names of months/weekdays are in correct Dutch, so he seems to get it from elsewhere (since I have deleted the english.lng and he still displayed the english names).

My question: How do I set the forum so that he will pick the correct Dutch names of months/weeks?

In this support forum, I also have set the dutch.lng in my profile, but overhere, the forum DOES display the right name... :)
Logged

Sunshine takes me to a place where I'm living free
Lamb - Sweet
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Weekday names in own language
« Reply #1 on: March 20, 2002, 08:21:06 PM »
Reply with quote

In the language file the very first entry I believe is soemthing like set locale.  This is what needs to be changed.  You can always download the file from here to see what the code for it is, I'm not sure offhand.
Logged

andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:Weekday names in own language
« Reply #2 on: March 23, 2002, 11:55:00 AM »
Reply with quote

Quote from: HariZ on March 20, 2002, 03:14:08 PMMy question: How do I set the forum so that he will pick the correct Dutch names of months/weeks?

In this support forum, I also have set the dutch.lng in my profile, but overhere, the forum DOES display the right name... :)
The board here is not 1.1.0 any longer, but 1.3.x. The versions 1.1.0 and 1.3.x translate the weekday names in a different manner. Release 1.1.0 requires that this line in the language file:
$locale = "xx_XX";
is containing the proper value for your national locales, and furthermore that this locales are installed on your webhost. Since some people had the problem that their nationale locales are not installed on their webhosts. If not installed, you will not see weekday names in your language.

For 1.3.0 the weekday names are taken directly from the language file.

Examples for locale strings in the language file:
English: $locale = "en_US";
German: $locale = "de_DE";

The current dutch.lng on this yabb.info site here is containing a wrong value, namely: $locale = "nl";
which is wrong. The correct locale would have the shape "xx_XX".
« Last Edit: March 23, 2002, 11:58:40 AM by andrea » Logged

HariZ
Noobie
*
Posts: 37


Yeah like it or not

ICQ - 51495151harryvisser@hotmail.com WWW
Re:Weekday names in own language
« Reply #3 on: March 23, 2002, 01:15:19 PM »
Reply with quote

I've just fixed it by searching for 'locale' on this forum which gave me the solution!  8)

Here is what worked for me:

somewhere in your Settings.php, you see the following lines:

$profilebutton = 0;         # 1 to show view profile button under post, or 0 for blank
$timeformatstring = "%A %e %B %Y, %I:%M:%S %p";            # Select your preferred output Format of Time and Date

Just add the line:
setlocale ("LC_TIME", "nl_NL");

between those 2 lines (this example is for dutch users) and you'll get the following:

$profilebutton = 0;         # 1 to show view profile button under post, or 0 for blank
setlocale ("LC_TIME", "nl_NL");
$timeformatstring = "%A %e %B %Y, %I:%M:%S %p";            # Select your preferred output Format of Time and Date

When you upload this new Settings.php, you'll see the right names of months as well as weekdaynames! :)

BUT: When you change anything in your settings from your admin-center from now on, this line will automaticaly be deleted so you will have the old time-formatting again... just keep that in mind... :)
Logged

Sunshine takes me to a place where I'm living free
Lamb - Sweet
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Weekday names in own language
« Reply #4 on: March 23, 2002, 01:33:56 PM »
Reply with quote

You could always upgrade to 1.1 or 1.3 when it comes out :)
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Weekday names in own language « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.028 seconds with 16 queries.