Welcome to Geeklog, Anonymous Thursday, April 25 2024 @ 04:45 pm EDT

Geeklog Forums

Date Language


Status: offline

predz0r

Forum User
Junior
Registered: 10/18/05
Posts: 24
hi all geeklogers Wink
im having a language problem with date, i have everything right as far i can see, im using language spanish, the spanish.php is right with the days of the week and the months but im still getting english dates, only the dates, everything else is perfectly in spanish, does someone know what im doing wrong? thx for your help praying it will work
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You have to set the locale to Spanish:
Text Formatted Code
$_CONF['locale']          = 'es_ES';
 

bye, Dirk
 Quote

Status: offline

predz0r

Forum User
Junior
Registered: 10/18/05
Posts: 24
$_CONF['language'] = 'spanish';
$_CONF['locale'] = 'es-ES';
$_CONF['date'] = '%A, %B %d %Y @ %I:%M %p %Z';
$_CONF['daytime'] = '%m/%d %I:%M%p';
$_CONF['shortdate'] = '%x';
$_CONF['dateonly'] = '%d-%b';
$_CONF['timeonly'] = '%I:%M%p';
$_CONF['week_start'] = 'Sun'; // can be 'Sun' or 'Mon'
$_CONF['default_charset'] = 'iso-8859-1';
----------------------------------------------------------------
thats my config and it doesnt work, i dont know if its getting the date from the server configuration.... dunno... i deleted the english.php file in the language folder and it still showing it in english, i added it again and nothing happens, dunno whats wrong Neutral
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Note the underscore in es_ES (not es-ES).

bye, Dirk
 Quote

Status: offline

predz0r

Forum User
Junior
Registered: 10/18/05
Posts: 24
thx dirk you are teh man love you xD
 Quote

Status: offline

predz0r

Forum User
Junior
Registered: 10/18/05
Posts: 24
another language problem, it fixed the date in news and header but it didnt fix the date language in the block - older stories -
any suggestion?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by predz0r: but it didnt fix the date language in the block - older stories

The contents of that block are cached, so you have to force-update it. Go to the Admin's block editor and simply edit and save that block, without changing anything.

bye, Dirk
 Quote

Status: offline

predz0r

Forum User
Junior
Registered: 10/18/05
Posts: 24
thx dirk
 Quote

Status: offline

chiloso

Forum User
Junior
Registered: 04/18/05
Posts: 24
having same problem. i'm sure i will figure it out.

Quote by predz0r: another language problem, it fixed the date in news and header but it didnt fix the date language in the block - older stories -
any suggestion?

 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
I've experienced this myself and I think I found a perfect solution for this Wink
Create a php page e.g. locale.php with this content
Text Formatted Code
<?
system('locale -a');
?>
 

Copy it to the server and run it. It should return a set of all locale defined on your server including the ones you need.

See how it works here

HTH
Geeklog Polish Support Team
 Quote

All times are EDT. The time is now 04:45 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content