Manage multiple language with one map

Oxygen general issues.
jmanier
Posts: 41
Joined: Thu Jun 08, 2017 3:41 pm

Manage multiple language with one map

Post 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 ?
Radu
Posts: 9063
Joined: Fri Jul 09, 2004 5:18 pm

Re: Manage multiple language with one map

Post 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/ ... ation.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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jmanier
Posts: 41
Joined: Thu Jun 08, 2017 3:41 pm

Re: Manage multiple language with one map

Post by jmanier »

Ok, thank you. I'll try it.

Jeremy
Post Reply