Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin does not respect/consider language #20

Open
jacotec opened this issue Oct 11, 2018 · 4 comments
Open

Plugin does not respect/consider language #20

jacotec opened this issue Oct 11, 2018 · 4 comments

Comments

@jacotec
Copy link

jacotec commented Oct 11, 2018

Hi,

although I have specified the language setting explicitly in the alfresco-global.properties:

#
# Onlyoffice integration
#-----------------------
onlyoffice.url=https://ooserver.mydomain.de/
onlyoffice.lang=de

The Onlyoffice preview in the Alfresco share and the OO editor after clicking "Edit in OnlyOffice" is in English language. All the rest of Alfresco is in German.

OO Document Server version is 5.2.2 CE

Any ideas how to fix this?

@cetra3
Copy link
Owner

cetra3 commented Oct 12, 2018

Is this the OnlyOffice editor itself?

@jacotec
Copy link
Author

jacotec commented Oct 12, 2018

It's both in Alfresco ... the editor when I want to edit a document and the preview windows in share. It's all in English.

The same (!) OO Document Server is used for my Seafile VM, here it's all correct in German. So that's not an issue with the OO Document Server installation.

@cetra3
Copy link
Owner

cetra3 commented Oct 13, 2018

The editor window should load the language up as per the config:

https://github.com/cetra3/onlyoffice-alfresco/blob/master/share/src/main/resources/alfresco/site-webscripts/com/parashift/onlyoffice-edit.get.html.ftl#L64

Can I get you to open up a document for editing, and then click View Source to see if you can see this in the output:

docConfig.lang = "de";

The preview window doesn't look like it respects the language configuration. I think this will require some enhancements. Happy to accept a PR!

@kalvinGit
Copy link

I modified the source code like this so that I could use all the languages normally.
I hope that helps.
before:
docConfig.lang = "${lang}"
after:
docConfig.editorConfig.lang = "${lang}";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants