Testing a translated language in Linux

This topic has been viewed 6644 times and has 11 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
shewtang
Posts: 6
Joined: Wed Apr 20, 2011 6:42 am
Country: Canberra, ACT, Australia

Testing a translated language in Linux

Post by shewtang »

Hi, [:)]

I translated English into Korean for Sweethome3D. When I tested it in Windows 7, it works very well without any problems.
I also tried to test it in Linux but it was not executed when I clicked a sh3l file.

I copied it into the folder following descriptions about guide of translating. However, it doesn`t still work when I executed the Sweethome3D.

Could anyone who knows ways to test in Linux please help me??
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Testing a translated language in Linux

Post by Puybaret »

It's great to learn you succeeded to translate Sweet Home 3D in Korean. [:)]

I guess your problem under Linux comes from a bad directory configuration.
As file associations don't work under Linux, you should try to open your sh3l file with Sweet Home 3D from a Terminal window:
- if you run Sweet Home 3D from its installer, open a Terminal window, drag SweetHome3D file found in "SweetHome3D-3.2" directory and drop it in the Terminal window to copy its path, then drag and drop the sh3l file and press enter in the Terminal window. Your command should look like:

Code: Select all

[i]/path/to[/i]/SweetHome3D [i]/path/to/[/i]Korean.sh3l
- if you run Sweet Home 3D from Java Web Start, open a Terminal window, type:

Code: Select all

javaws http://www.sweethome3d.com/SweetHome3D.jnlp -open 
drag and drop your sh3l file in Terminal window to copy its path and press enter in the Terminal window. Your command should look like:

Code: Select all

javaws http://www.sweethome3d.com/SweetHome3D.jnlp -open [i]/path/to/[/i]Korean.sh3l
As this second way of doing depends on the Java Web Start implementation installed on your system, it may not work all the time.
Emmanuel Puybaret, Sweet Home 3D creator
shewtang
Posts: 6
Joined: Wed Apr 20, 2011 6:42 am
Country: Canberra, ACT, Australia

Re: Testing a translated language in Linux

Post by shewtang »

Thank you, it works. [:)]

For help pages, I changed character encoding of html ISO to UTF-8.
Is it ok?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Testing a translated language in Linux

Post by Puybaret »

No problem, help pages and its search engine take into account the encoding you set in header with meta tag:

Code: Select all

<meta http-equiv="content-type" content="text/html;charset=...">
Emmanuel Puybaret, Sweet Home 3D creator
shewtang
Posts: 6
Joined: Wed Apr 20, 2011 6:42 am
Country: Canberra, ACT, Australia

Re: Testing a translated language in Linux

Post by shewtang »

I translated all help pages but it`s not applied to the Sweethome3D. The interface of it changed to Korean but help pages still are showed in English.
What is the problem of my sh3l file??
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Testing a translated language in Linux

Post by Puybaret »

Did you updated the value of the HelpController.helpIndex key in com/eteks/sweethome3d/viewcontroller/package_ko.properties file?
It should be something like:

Code: Select all

HelpController.helpIndex=/com/eteks/sweethome3d/viewcontroller/resources/help/[b]ko[/b]/index.html
Emmanuel Puybaret, Sweet Home 3D creator
shewtang
Posts: 6
Joined: Wed Apr 20, 2011 6:42 am
Country: Canberra, ACT, Australia

Re: Testing a translated language in Linux

Post by shewtang »

Oh, many thanks, I fixed it.

When I tested my help pages in Korean, there are some pictures not displayed like verticalLine.gif in the index html file, creatingPhotos.jpg, photoQuality0, 1, 2, and 3 in the creatingPhotos html file and so on.

Should I set something to display the pictures??
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Testing a translated language in Linux

Post by Puybaret »

You have to include in your sh3l file all the images found in the /com/eteks/sweethome3d/viewcontroller/resources/help/images directory of the SweetHome3DTranslation.zip file as well as help.css file, even if these files already exist in Sweet Home 3D.
It's a classpath issue and I don't think I can circumvent it.
Emmanuel Puybaret, Sweet Home 3D creator
sclee
Posts: 44
Joined: Mon Jan 03, 2011 12:32 am
Country: Taipei, Taiwan
Contact:

Re: Testing a translated language in Linux

Post by sclee »

Hi, shewtang
congratulationses on succeeding in translating the Korean language, welcomes to join " Sweet Home 3d sh3l" The family, very glad you understand and succeed in translating Korean languages during a short month.

Lee.Shin-Chun
shewtang
Posts: 6
Joined: Wed Apr 20, 2011 6:42 am
Country: Canberra, ACT, Australia

Re: Testing a translated language in Linux

Post by shewtang »

I downloaded a translation file again to find those missing pictures but I couldn`t find the missing pictures in images folders.

Actually, I found the pictures in source code files from the CVS repository and fixed problem by copying the pictures into image folders on my sh3l file.

I think in uploaded file for translation, some pictures are missing.

My sh3l file was tested on Ubuntu-11.04 and Windows7 except Mac and there was no problem. Is there anyone who can test it on Mac?? The person who want to test it on Mac please send me e-mail, “[email protected]”.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest