Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 12
Posts: 12   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 6059 times and has 11 replies Next Thread
shewtang
Newbie



Australia
Joined: Apr 20, 2011
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Testing a translated language in Linux

Hi, smile

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??
[May 26, 2011, 5:34:59 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testing a translated language in Linux

It's great to learn you succeeded to translate Sweet Home 3D in Korean. smile

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:
/path/to/SweetHome3D /path/to/Korean.sh3l

- if you run Sweet Home 3D from Java Web Start, open a Terminal window, type: 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:
javaws http://www.sweethome3d.com/SweetHome3D.jnlp -open /path/to/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
----------------------------------------
[Edit 1 times, last edit by Puybaret at May 26, 2011, 7:51:34 AM]
[May 26, 2011, 7:39:29 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
shewtang
Newbie



Australia
Joined: Apr 20, 2011
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testing a translated language in Linux

Thank you, it works. smile

For help pages, I changed character encoding of html ISO to UTF-8.
Is it ok?
[May 27, 2011, 8:21:30 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testing a translated language in Linux

No problem, help pages and its search engine take into account the encoding you set in header with meta tag:
<meta http-equiv="content-type" content="text/html;charset=...">

----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[May 27, 2011, 9:18:40 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
shewtang
Newbie



Australia
Joined: Apr 20, 2011
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testing a translated language in Linux

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??
[May 27, 2011, 2:42:43 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testing a translated language in Linux

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

HelpController.helpIndex=/com/eteks/sweethome3d/viewcontroller/resources/help/ko/index.html

----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[May 27, 2011, 3:15:38 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
shewtang
Newbie



Australia
Joined: Apr 20, 2011
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testing a translated language in Linux

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??
[May 27, 2011, 7:13:42 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testing a translated language in Linux

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
[May 27, 2011, 9:58:59 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
sclee
Member




Joined: Jan 3, 2011
Post Count: 44
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testing a translated language in Linux

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
[May 28, 2011, 3:32:45 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
shewtang
Newbie



Australia
Joined: Apr 20, 2011
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testing a translated language in Linux

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, “u4899973@anu.edu.au”.
[May 28, 2011, 9:04:19 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 12   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved