Changing calendar language
Posted: 18 July 2004 10:17 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  164
Joined  09-16-2003

How can you change the calendar language for the weekdays S, M, T, W, T, F, S?

 Signature 

AFpunt - - - - A Pointless Weblog - - - -

Profile
 
 
Posted: 18 July 2004 11:04 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

In what way do you want to change them?
—————
The display of them is in your (index) template, looks like this…
{calendar_heading}
  <td class=“calendarDayHeading”>
    {lang:weekday_abrev}
  </td>
{/calendar_heading}

—————
If you are looking for the actual language, it’s probably in the “lang.core.php” file and looks like this…
“Su” => 
“S”,
“Mo” =>
“M”,

etc.
—————
Of course I could also be totally wrong but that’s my guess grin

Profile
 
 
Posted: 18 July 2004 10:55 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  164
Joined  09-16-2003

I want to change them into Z, M, D, W, D, V, Z (dutch)
It’s not in the template and also not in the core.language.php

 Signature 

AFpunt - - - - A Pointless Weblog - - - -

Profile
 
 
Posted: 18 July 2004 11:04 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  164
Joined  09-16-2003

Well at last I found it, it’s located in /system/modules/weblog/mod.weblog.php

 Signature 

AFpunt - - - - A Pointless Weblog - - - -

Profile
 
 
Posted: 19 July 2004 05:41 AM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

Hmmm…by golly it is.
Not sure that’s a good thing. Makes it difficult to change your language if things like that are in the actual code. You’d think it should be in the language files and just called from the code (functions).

Profile
 
 
Posted: 20 July 2004 06:49 PM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

The date information is included in the language files: lang.core.php, to be exact.

If you download the Dutch language pack then you should be able to use that fine.  You’ll need to set Dutch as your language in your profile: My Account > Localization Settings.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 20 July 2004 07:21 PM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

Chris...what is all that day of the week language in the mod.weblog.php (around line 3457) do? Looks like hard coded terms. Is it actually replaced by the language files upon execution?

Profile
 
 
Posted: 20 July 2004 07:40 PM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

It’s probably just default values if nothing else overrides it.  I’d have to look through the code to be sure, but the language files definitely have the date/time information in them which is used for the display.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 20 July 2004 08:28 PM   [ Ignore ]   [ # 8 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

Chris...date/time information in them which is used for the display...Including the headers for the calendar? It kind of sounds from the post that the only way Gnuus got the calendar headers to change was by editing the mod.weblog.php file.
Gnuus...could you verify what worked for you?

Profile
 
 
Posted: 20 July 2004 11:24 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  164
Joined  09-16-2003

Well Chris you’re right it is in the language pack, the only thing was that not everything was translated there. So the editing of the mod.weblog.php file was not necessary.

Thanx.

 Signature 

AFpunt - - - - A Pointless Weblog - - - -

Profile
 
 
Posted: 21 July 2004 01:22 PM   [ Ignore ]   [ # 10 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

If not everything was translated, then you might want to do so and send Rick a revised copy of the language pack.  That way others can benefit.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66466 Total Logged-in Users: 29
Total Topics: 84857 Total Anonymous Users: 9
Total Replies: 455317 Total Guests: 170
Total Posts: 540174    
Members ( View Memberlist )