How to change the project language?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

How to change the project language?

Post 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?
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: How to change the project language?

Post 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
Mihaela Calotescu
http://www.oxygenxml.com
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

Re: How to change the project language?

Post 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?
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: How to change the project language?

Post 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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

Re: How to change the project language?

Post 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!
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

Re: How to change the project language?

Post 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?
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: How to change the project language?

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
aidanam
Posts: 2
Joined: Wed Apr 10, 2019 5:12 pm

Re: How to change the project language?

Post 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.
aidanam
Posts: 2
Joined: Wed Apr 10, 2019 5:12 pm

Re: How to change the project language?

Post 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.
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: How to change the project language?

Post 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
Post Reply