How to change the project language?

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
catherine
Posts: 88
Joined: Fri Nov 10, 2017 8:16 am

How to change the project language?

Post by catherine » Wed Jan 24, 2018 11:22 am

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: 211
Joined: Wed May 20, 2009 2:40 pm

Re: How to change the project language?

Post by mihaela » Wed Jan 24, 2018 3:18 pm

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: 88
Joined: Fri Nov 10, 2017 8:16 am

Re: How to change the project language?

Post by catherine » Tue Jan 30, 2018 12:08 pm

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: 351
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: How to change the project language?

Post by radu_pisoi » Tue Jan 30, 2018 5:37 pm

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: 88
Joined: Fri Nov 10, 2017 8:16 am

Re: How to change the project language?

Post by catherine » Wed Jan 31, 2018 5:39 am

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: 88
Joined: Fri Nov 10, 2017 8:16 am

Re: How to change the project language?

Post by catherine » Thu Feb 01, 2018 5:52 am

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: 637
Joined: Mon Dec 05, 2011 6:04 pm

Re: How to change the project language?

Post by Costin » Thu Feb 01, 2018 12:10 pm

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 » Wed Apr 10, 2019 5:22 pm

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 » Wed Apr 10, 2019 5:55 pm

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: 431
Joined: Mon Feb 03, 2003 10:56 am

Re: How to change the project language?

Post by Dan » Fri Apr 12, 2019 3:54 pm

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