[Solved] Can't locate object method "getLang"

Powerfull XFileSharing version

Moderator: admin

Message
Author
Rocket_Man
Posts: 19
Joined: May 28, 2008 12:56 am

[Solved] Can't locate object method "getLang"

#1 Postby Rocket_Man » Aug 10, 2008 9:45 pm

I follow the four steps in instructions for Multilanguage Support and get the following error, when choosing my new language.

Software error:
Can't locate object method "getLang" via package "danish" (perhaps you forgot to load "danish"?) at Modules/Session.pm line 58.


What can I do more to correct?
Last edited by Rocket_Man on Aug 12, 2008 10:56 am, edited 1 time in total.

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » Aug 11, 2008 5:56 am

There's a little trick I probably forgot to mention in INSTALL: you also need to edit first line of .lng file:

replace

Code: Select all

package english;

with

Code: Select all

package danish;


Can you contribute us Danish language pack when it will be ready?

Rocket_Man
Posts: 19
Joined: May 28, 2008 12:56 am

#3 Postby Rocket_Man » Aug 11, 2008 1:47 pm

Thank you my friend. It works :)

Didn't notice that line myself but it was obvious now you tell ;)

I don't mind to share my work with lang-file. Guess we all can benefit from translations to many languages. Will send you when done.

Rocket_Man
Posts: 19
Joined: May 28, 2008 12:56 am

#4 Postby Rocket_Man » Aug 11, 2008 7:26 pm

New (old) small "annoying" thing -->

Special charactors (still) show up as strange ��� from my adjusted Danish language. Strange thing is, that when choosing German all spacial charactors show up OK in German. Do you have a hint on what to try?

I have with previous version been forced to use unicode numerical character references to make script/html output to show the special characters of my language. I would very much avoid this. So, what might i overlook you think?

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#5 Postby PilgrimX182 » Aug 12, 2008 5:47 am

Use UTF-8 codepage to edit .lng file.

Rocket_Man
Posts: 19
Joined: May 28, 2008 12:56 am

#6 Postby Rocket_Man » Aug 12, 2008 10:56 am

Doh! *hammering head against screen*

I learn something every day :D

Thank you again! :)


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests