1
gediminasbyt
Change/update files in class/calendar/lang

Developers please update language files for Lithuanian language under /class/calendar/lang. Two files that have to be updated/changed are:

calendar-lt.js
calendar-lt-utf-8.js

Problem is that original author did not include 2 constants in his translation therefore it gives java errors.

Calendar._TT["WEEKEND"] = "1,7";
Calendar._TT["DAY_FIRST"] = "Pirma savaitės diena";


Or you can see full calendar file.

How to produce the error (calendar does not load at all):
In your /language/yourlanguage/global.php change to following
define('_LANGCODE''lt');


This will give 2 java errors that are fixed by adding these 2 language constants in the calendar-lt.js

Second problem is that there are 2 language files in this folder one for windows encoding and the other is utf-8. Even though translations are recommended to be in UTF-8 translations the default file is windows encoding and that file is loaded when utf-8 encoded site is loaded. Please rename calendar-lt-utf-8.js to calendar-lt.js and add those 2 lines there. That way when XOOPS is using a 'lt' and 'utf-8' language file then calendar is generated without problems and correct file.

I am Lithuanian support site admin and do provide Lithuanian XOOPS files in UTF-8 format as a preferred encoding.



Gediminas

2
gediminasbyt
Re: Change/update files in class/calendar/lang

Bump.

Login

Who's Online

257 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 257


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits