How to prevent liferay from changing language automatically - liferay

I have a problem with Liferay 7.1 changing language automatically. I have two languages polish(default) and english. The problem is when guest is opening page on portal with link with english url. Liferay automatically redirects him to polish version of url. I know that this is because of FriendlyURLServlet.
How to change this behavior? Are there any properties to turn off this redirect? Or the only option is to overwrite this class?

Related

Edit multilingual pages

Based on the document:
When you open the Pages application on a multilingual website, you can see the language selector below the content tree. Use the selector to switch between language versions of the currently selected page.
But my language selector is missing!!!!
I am using Kentico v10.0.11 with Based license edition.
I have set UK and US in my website.
What else did I miss?
Can you double check you have assigned cultures for your current site?
As far as I know localization should be accessible in the base license so this should not be an issue.
If everything is set properly and it`s still not working you could check event log and browser console.

Language specific webcontent in Liferay

I am trying to implement a static website using Liferay's WCM. I want content to be displayed in user specific/selected language.
I am not sure whether I have to write separate content for each language or is there any way by which Content will get translated to user specific language?
I have tried "Add translation" in web content but it seems to be not working.
Any help is appreciated.
There's no automatic translation to another language. If you choose "Add translation" in the Web Content Editor, you'll have to edit the translated version yourself. Then you can use the user's profile settings or the "Languages" portlet or just the URL to determine the language. If an article is available in the user's language, that version will be shown.
You can try the URL parameters by just adding the language code as the first part of the page. E.g. https://www.liferay.com/community brings you to the default version for your user profile (if you're logged in), while https://www.liferay.com/de/community shows the german (de) version of that site. Every content that is translated to german will show in german, while the content that's not translated will be shown in the default language.

TFS 2012 - Web Access change language for all users

I´m using a TFS 2012 Update 4 (English).
When I´m using the Web Access, the Website is German becaue Auto-Detection (I´m using a German PC).
But this is confusing because the process template is English and so I´m using a German/English mix system.
I can change the language in my personal TFS profil settings to Englisch. That works.
How can I change the language for every user to english?
(Because now every day is somebody asking how to change the browser language to English :D )
Thanks in advance!
The default language is taken from browser preferred language. So if in browser language it is set as German and afterwards English the page will be open as German.
To set preferred language see http://www.wikihow.com/Change-Your-Browser%27s-Language
And to set it to everyone you may try group policy changes if applicable.
Hope this helps.
Erez H

Liferay Portal changing default page

I'm developing Liferay Portal project, and when I navigate to localhost:8080, it's redirecting to "localhost:8080/en".
I did all localization settings for my language (Turkish), but it didn't work. Basically when I navigate to localhost:8080, I want it to redirect to localhost:8080/tr. How can I do this?
Please change the default language from en_US to tr_TR. Please add the portal-ext.properties to your server level or in ROOT/WEB-INF/classes and add the following property.
company.default.locale=tr_TR
after this, restart the server and it should work. This may not work for the existing User, so, please change the user's default language as well from the Profile.

Orbeon and Liferay - shared user

I'm trying to make application which is build on Liferay with OrbeonForms. I have a question: Is there some oportunity to share user with both? I mean I want to set default language in Orbeon which is the same as in logged user in Liferay e.g. Liferay user uses Japanese language, and he open orbeon via his Liferay portal, and there should be also Japanese language set as default.
regards
This is not possible right now but I entered an RFE as it makes sense:
https://github.com/orbeon/orbeon-forms/issues/1122

Resources