Page 1 of 1

Manage multiple language with one map

Posted: Wed Sep 20, 2017 5:16 pm
by jmanier
Hi,

I would like to know if it would be possible to handle 2 languages with only one map.

Actually i got this :
Ditamap_EN
    en_US
      Topics
      Images
Ditamap_FR
    fr_FR
      Topics
      Images

And i would like to have :
Ditamap_multi
    en_US
      Topics
      Images
    fr_FR
      Topics
      Images

More precisely, it would be great if we could switch easily from fr doc to en doc by a button (on webhelp responsive)
Example : http://www.website.com/doc/fr_FR/Knowle ... ement.html to http://www.website.com/doc/en_US/knowle ... ement.html

The problem is that we have to generate two differents ditamaps which are the same.

Have yo got a solution, please ?

Re: Manage multiple language with one map

Posted: Thu Sep 21, 2017 8:38 am
by Radu
Hi,

From what I know when working with DITA and translations most people keep the DITA projects for each language totally separate, from what I understand exactly as you have them now.
The links that you posted did not seem to work for me. Anyway in my opinion you could publish each translation separately to your web site (as you do now) but have a WebHelp customization which customizes the header of each generated HTML page:

https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/webhelp_responsive_customization.html

and adds to it some kind of language combo box which when changed calls a PHP script or a Javascript on the server and serves to the end user the corresponding topic from the language that they chose.


Regards,
Radu

Re: Manage multiple language with one map

Posted: Thu Sep 21, 2017 4:57 pm
by jmanier
Ok, thank you. I'll try it.

Jeremy