This question is answered. Helpful answers available: 0. Correct answers available: 1.


Permlink Replies: 21 - Pages: 2 [ 1 2 | Next ] - Last Post: 1 Nov 22, 23:27 Last Post By: JeffTucker
guyd

Posts: 23
Registered: 5-Jul-2007
Multi language texts
Posted: 15 Mar 20, 01:45
 
  Click to reply to this thread Reply
HI,
The "old" Chameleon skin had a nice feature allowing to generate the same album in different languages based on one single set of images.

Is there another skin offering this feature ?

Or is there some code to add to achieve this ? For the concerned project (migration from Chameleon), I'm planning to use Jupiter skin.
RobM

Posts: 4,035
Registered: 4-Aug-2006
Re: Multi language texts
Posted: 15 Mar 20, 12:05   in response to: guyd in response to: guyd
 
  Click to reply to this thread Reply
Polyglot is designed specifically for multi-language albums, sample album
Click on a flag to change languages
JeffTucker

Posts: 8,470
Registered: 31-Jan-2006
Re: Multi language texts
Posted: 15 Mar 20, 12:36   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
And I'm fairly certain that's the only one. Providing that capability requires a lot of "engineering," and not even Laza carried that feature over from Chameleon to his newer skins.

To use another skin, I think the only thing you can do is build your album in one language, then duplicate the album and change the titles, comments, and skin texts to the second language and build another album. You could then provide a steering page, like an "album of albums" that has one thumbnail for language1 and another for language2.
RobM

Posts: 4,035
Registered: 4-Aug-2006
Re: Multi language texts
Posted: 15 Mar 20, 18:35   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Fixed the problem with web locations, thanks for the pm.
Also updated the sample album.
RobM

Posts: 4,035
Registered: 4-Aug-2006
Re: Multi language texts
Posted: 15 Mar 20, 18:37   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
And I'm fairly certain that's the only one. Providing that capability requires a lot of "engineering," and not even Laza carried that feature over from Chameleon to his newer skins.
There is the Google Translate option, though from what I have seen it is far from ideal. If the op is interested in that as an option see https://www.dummies.com/education/internet-basics/how-to-install-google-translates-website-translator-plugin/
guyd

Posts: 23
Registered: 5-Jul-2007
Re: Multi language texts
Posted: 15 Mar 20, 19:21   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Thanks for your responses.

To jGromit:

Your suggestion is what I was already doing with the Chameleon skin, but images are added and deleted about every week, so I have a central "images" folder that is used to generate three different albums (FR, NL, EN). I have to add comments on each image before generating the updated albums. With the Chameleon skin, I could do it once on the first album, entering my comments in the three languages using the language tags, and then generating the three different albums, each of them having a different language setting.
Now I will have to do it three times, with the risk of errors.

I also couln't find out in which file the comments are written to, although I can see them in the generated html code. (I tested with Jupiter skin)

To RobM: I looked at Polyglot and will instal it, but will it still be compatible with the latest jAlbum releases ?
JeffTucker

Posts: 8,470
Registered: 31-Jan-2006
Re: Multi language texts
Posted: 15 Mar 20, 19:31   in response to: guyd in response to: guyd
Helpful
  Click to reply to this thread Reply
Comments you enter in jAlbum are written to the comments.properties file, in the often-hidden .jalbum directory of the project directory (a.k.a. image directory). It's just a text file. But other skins don't know anything about language tags in comments, and will just spill out all three languages in the album.
RobM

Posts: 4,035
Registered: 4-Aug-2006
Re: Multi language texts
Posted: 15 Mar 20, 20:12   in response to: guyd in response to: guyd
 
  Click to reply to this thread Reply
guyd wrote:
Thanks for your responses.
To RobM: I looked at Polyglot and will instal it, but will it still be compatible with the latest jAlbum releases ?
I have just updated it to version 5 and it works, it should work with any version that supports web locations.

With Polyglot you enter the titles and comments for all languages you want to include and it builds a single album, letting users select their preferred one. Just enter, for example a title:
Default English Description[cy]Welsh alternative example[de]German alternative example


Use the skin’s texts setting to select the supported languages you want to use.

Edited by: RobM on 15-Mar-2020 19:12
guyd

Posts: 23
Registered: 5-Jul-2007
Re: Multi language texts
Posted: 15 Mar 20, 21:17   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
That's what I thought ... but if it is right that jAlbum writes down the comment text in the comment.properties file, it is not using it !
I spent hours to find out why my comments in one album were messed up when I made changes in another one. And the reason is that jAlbum also writes down the comments as XMP metadata (description) on the original picture file, and that's what it uses when generating new albums or changes.

It's easy to test: make a comment on one picture in an album, then copy the original of that picture to another album, and you will get that comment ...

So when I re-create an album for language A, I can get the latest comments from my album B or C, depending on my latest modifications. Not so funny !
JeffTucker

Posts: 8,470
Registered: 31-Jan-2006
Re: Multi language texts
Posted: 15 Mar 20, 22:08   in response to: guyd in response to: guyd
Helpful
  Click to reply to this thread Reply
Easy to fix. To prevent jAlbum from writing the comments to xmp, go to Tools > Preferences > Album > Image Editing and uncheck Write xmp metadata to files. To prevent it from using the xmp metadata, go to Settings > Advanced > Metadata > Comment sources, and uncheck xmp.
guyd

Posts: 23
Registered: 5-Jul-2007
Re: Multi language texts
Posted: 15 Mar 20, 22:54   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
So simple !

Many thanks, I think I can handle it now.

Just one think about Jupiter, the text for the "Top of page" icon on the index page doesn't appear on mouse over. It is working for the other icons that I use. (But this is perhaps for another thread ?)
JeffTucker

Posts: 8,470
Registered: 31-Jan-2006
Re: Multi language texts
Posted: 15 Mar 20, 23:21   in response to: guyd in response to: guyd
 
  Click to reply to this thread Reply
guyd wrote:
So simple !

Simple if you know where to look! Lots of settings, and some of them are buried in odd places.

Just one think about Jupiter, the text for the "Top of page" icon on the index page doesn't appear on mouse over. It is working for the other icons that I use. (But this is perhaps for another thread ?)

A bug in the skin. I'll fix it in the next release, but that might be a while (I'm making a lot of changes, and they're all half-done right now). So, for a quick fix, open the skin directory - Tools, Open directories, Skin directory - and replace the init.bsh file with the attached version (it's just a one-line fix).

Edited by: jGromit on 20-Mar-2020 09:11 - Patched file removed. Jupiter 11 incorporates this fix.
guyd

Posts: 23
Registered: 5-Jul-2007
Re: Multi language texts
Posted: 16 Mar 20, 01:59   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Done ! And working, thanks.
MarkusD

Posts: 899
Registered: 13-Apr-2006
Re: Multi language texts
Posted: 16 Mar 20, 19:24   in response to: guyd in response to: guyd
 
  Click to reply to this thread Reply
guyd wrote:
The "old" Chameleon skin had a nice feature allowing to generate the same album in different languages based on one single set of images.

Is there another skin offering this feature ?

Or is there some code to add to achieve this ? For the concerned project (migration from Chameleon), I'm planning to use Jupiter skin.

I was a long time user of Chameleon and missed the multi language feature in Turtle and Tiger. To be honest, another skin is no option for me, I liked Turtle and now I'm using Tiger.

A few weeks ago I found this:
https://www.w3schools.com/howto/howto_js_full_page_tabs.asp

I compiled a small example which shows how to use that for a kind of multi language tool:
https://www.markus-drueck.de/jAlbum/Code%20Samples/Multi%20Language/index.html

I'm pretty sure, that the experts from team Sweden could probably invent something based on my foolish code into the core of jAlbum (instead of implementing this into a specific skin).

Cheers, Markus
Laza

Posts: 1,549
Registered: 6-Sep-2005
Re: Multi language texts
Posted: 1 Nov 22, 09:28   in response to: guyd in response to: guyd
 
  Click to reply to this thread Reply
How would you manage the different translations of the comments?
In Chameleon it looked like this:
Default comment[de]German comment[fr]French comment

I'm not sure this is the best solution.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums