Page 1 of 1

How to change the project language?

Posted: Wed Jan 24, 2018 11:22 am
by catherine
Hi, how to change the project language. The default one is English. I need to write user guide with different language and publish it. How to change the project language?

Re: How to change the project language?

Posted: Wed Jan 24, 2018 3:18 pm
by mihaela
Hi,

We need more information in order to help you.
What is the transformation scenario that you use to obtain the output? What do you want to obtain by setting the "project language"?

Best Regards,
Mihaela

Re: How to change the project language?

Posted: Tue Jan 30, 2018 12:08 pm
by catherine
Hi, mihaela
Thanks for your reply.
I have published an English version webhelp and PDF document.
Now, I have created another project, and translated all the contents to Japanese. I need to publish a Chinese version webhelp and PDF document.

I set the args.default.language to zh-cn, but only the icon labels (note, tip, important, etc. ) were changed to Chinese.

Then, I added a Chinese string (strings-zh-cn.xml) in \plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\localization.
I also add

Code: Select all

<lang xml:lang="zh-cn" filename="string-zh-cn.xml"/>
in the strings.xml file.

But nothing worked.

How to change the webhelp system language, including the webhelp button (contents, search), search result, feedback, etc?

Re: How to change the project language?

Posted: Tue Jan 30, 2018 5:37 pm
by radu_pisoi
Hi,

The procedure for localizing the WebHelp interface is described in our user manual:
https://www.oxygenxml.com/doc/versions/ ... hing2.html

For the DITA Map PDF transformation scenario you have to add the xml:lang="zh-CN" attribute on the root element of the DITA map.

Re: How to change the project language?

Posted: Wed Jan 31, 2018 5:39 am
by catherine
Hi, Radu
Thanks for your help.
I followed the article https://www.oxygenxml.com/doc/versions/ ... hing2.html,
but it didn't work for me, and I found a way to solve it:
  • I copied all the labels found in strings-en-us.xml file in DITA-OT-DIR/plugins/[WebHelp_Directory]/oxygen-webhelp/resources/localization, and pasted in the strings-en-us.xml file which was found in DITA-OT_DIR/xsl/common/strings-en-us.xml
  • translated all the contents
  • Publish a webhelp with zh-cn language


It works for me, but some translated contents do not take effect. For example, "Result for" do not take effect. Other translated contents works, i.e. "Search", "Contents" "Note" "tip".

So, any way to solve the problem? I am using Oxygen 18.

BTW, what do you mean "the root element of DITA map", sorry that I am not familiar with DITA. Can you provide detailed instruction of how to change PDF output to Chinese?

Thanks!

Re: How to change the project language?

Posted: Thu Feb 01, 2018 5:52 am
by catherine
PDF localization is solved! Thanks!

But still have one problem, the contents with bold style do not take effect if I publish PDF document with Chinese version? It is OK if the version is English. How to solve it?

Re: How to change the project language?

Posted: Thu Feb 01, 2018 12:10 pm
by Costin
Hi Catherine,

This could be the font's culprit.
Please double check that the font you are currently using for Chinese version has support for bold characters.

Regards,
Costin

Re: How to change the project language?

Posted: Wed Apr 10, 2019 5:22 pm
by aidanam
Hello,

I've just downloaded Oxygen Editor today and found out that it is a very good program for the documents.
But I have to make not only English documents, but also Russian, and can't find how to change these words in the PDF or HTML output, for example

Chapter 1.

it should be

Глава 1.

I've tried to add <map xml:lang="ru"> in a map attributes, but it didn't help, it is still publishing in English Chapter and etc.

Thank you in advance, waiting for your response.
Aidana.

Re: How to change the project language?

Posted: Wed Apr 10, 2019 5:55 pm
by aidanam
Hello,

I need to change the language in the PDF publication to the Russian language
Chapter 1 to Глава 1

How and where do I make it?

Thanks,
Aidana.

Re: How to change the project language?

Posted: Fri Apr 12, 2019 3:54 pm
by Dan
In the PDF there are still i18n problems - we are preparing a nightly build with fixes.
Please write on support@oxygenxml.com to get details about how to download it.
The idea will be to change the output language just by setting the xml:lang on the root element or by using the 'default.language' transformation parameter.

Many regards,
Dan