Oxygen language for localization
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 96
- Joined: Mon May 09, 2011 11:54 am
Oxygen language for localization
Hi,
I localize my plugins using
But how can I consider the language selection from Oxygen Editor instead the system setting?
Best regards,
Patrick
I localize my plugins using
Code: Select all
static final ResourceBundle locale = ResourceBundle.getBundle("locale");
Best regards,
Patrick
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Oxygen language for localization
Hi Patrick,
You could try to use the API:
Regards,
Radu
You could try to use the API:
Code: Select all
ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace().getUserInterfaceLanguage()
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 96
- Joined: Mon May 09, 2011 11:54 am
Re: Oxygen language for localization
I had no luck trying to set the correct language. Do you have an example how it's solved in oxygen?
Another question about loclizsation: I can translate the actions but not the css and xslt titles. Is it possible to translate those entries to get an fully localized framework?
Thanks
Patrick
Another question about loclizsation: I can translate the actions but not the css and xslt titles. Is it possible to translate those entries to get an fully localized framework?
Thanks
Patrick
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Oxygen language for localization
Hi Patrick,
If you work on the framework level you can use the internationalization support we have at framework level:
http://www.oxygenxml.com/doc/versions/1 ... works.html
Unfortunately we do not have this support when creating a plugin. But you do have the API to access the current user interface language and you can create your own resources bundle.
By XSLT titles do you mean the transformation scenario names? They are also not localized, maybe we could also consider localizing them.
Regards,
Radu
I'm sorry but I do not quite understand your setup. Please give me more details. Are you working with a plugin, with a framework or both? The API I gave you was to find out the application language used by Oxygen. Does it not work for you or are you having another use case?I had no luck trying to set the correct language. Do you have an example how it's solved in oxygen?
If you work on the framework level you can use the internationalization support we have at framework level:
http://www.oxygenxml.com/doc/versions/1 ... works.html
Unfortunately we do not have this support when creating a plugin. But you do have the API to access the current user interface language and you can create your own resources bundle.
By css do you mean the titles for the alternate CSSs? Indeed, they cannot be localized but I could try and add an issue to fix this.Another question about localization: I can translate the actions but not the css and xslt titles. Is it possible to translate those entries to get an fully localized framework?
By XSLT titles do you mean the transformation scenario names? They are also not localized, maybe we could also consider localizing them.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service