How to Localize Email Notifications of WebHelp Classic with Feedback OutputEdit online
The feedback-enabled WebHelp systems use emails to notify users when comments are posted. These emails are based on templates stored in the WebHelp directory. The default messages are in English, French, German, and Japanese. These messages are copied into the WebHelp system deployment directory during the execution of the corresponding transformation scenario.
Using Oxygen XML Editor/Author
To change the language of the emails for WebHelp Classic with Feedback output using a
transformation scenario from within Oxygen XML Editor/Author, follow this procedure:
- Create the following directory, depending on your framework:
- DITA: DITA-OT-DIR\plugins\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\[Language code] (where the Language code is the 2-digit code, such as nl for Dutch)
- DocBook: [DocBook XSL directory]\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\[Language code] (where the Language code is the 2-digit code, such as nl for Dutch)
- Copy all English template files from the following directory (depending on your
framework) and paste them into the directory you just created.
- DITA: DITA-OT-DIR\plugins\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\en
- DocBook: [DocBook XSL directory]\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\en
- Edit the HTML files from the following directory (depending on your framework) and
translate the content into your language.
- DITA: DITA-OT-DIR\plugins\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\[Language code] (where the Language code is the 2-digit code, such as nl for Dutch)
- DocBook: [DocBook XSL directory]\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\[Language code] (where the Language code is the 2-digit code, such as nl for Dutch)
- Edit a WebHelp Classic with Feedback transformation scenario and open the Parameters tab.
- In the Parameters tab, look for the
default.languageparameter and set its value to the appropriate language code (for example,nlfor Dutch).Note: If you set the parameter to a value such asLanguageCode-CountryCode(for example,en-us), the transformation scenario will only use the language code. - Run the transformation scenario.
Using a Script Outside of Oxygen XML Editor/Author
Important: Running WebHelp transformations from a script outside of Oxygen XML
Editor/Author requires an additional license and some additional setup:
- You must have a valid license for the Oxygen XML WebHelp Plugin (https://www.oxygenxml.com/buy_webhelp.html).
- The Oxygen XML WebHelp Plugin must be installed and integrated for the DITA Open Toolkit or a DocBook XSL Distribution.
To change the language of the emails for WebHelp Classic with Feedback output using a script outside of Oxygen
XML Editor/Author, follow this procedure:
- Create the following directory, depending on your framework:
- DITA: DITA-OT-DIR\plugins\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\[Language code] (where the Language code is the 2-digit code, such as nl for Dutch)
- DocBook: [DocBook XSL directory]\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\[Language code] (where the Language code is the 2-digit code, such as nl for Dutch)
- Copy all English template files from the following directory (depending on your
framework) and paste them into the directory you just created.
- DITA: DITA-OT-DIR\plugins\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\en
- DocBook: [DocBook XSL directory]\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\en
- Edit the HTML files from the following directory (depending on your framework) and
translate the content into your language.
- DITA: DITA-OT-DIR\plugins\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\[Language code] (where the Language code is the 2-digit code, such as nl for Dutch)
- DocBook: [DocBook XSL directory]\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\php\templates\[Language code] (where the Language code is the 2-digit code, such as nl for Dutch)
- Use the
args.default.languageparameter in your transformation script and set its value to the appropriate language code (for example,nlfor Dutch).Note: If you set the parameter to a value such asLanguageCode-CountryCode(for example,en-us), the transformation scenario will only use the language code. - Execute the transformation script.
For example, a DITA to WebHelp Classic with Feedback script might look like this:
- Windows:
dita.bat -i c:\mySample.ditamap -f webhelp-feedback -Dargs.default.language=nl - Mac OS X/ Linux:
dita -i /mySample.ditamap -f webhelp-feedback -Dargs.default.language=nl