Fórum
Language path
Achmed Tyrannus Albab, modificado 7 Anos atrás.
Language path
Regular Member Postagens: 158 Data de Entrada: 05/03/10 Postagens Recentes
Hi,
I have already setup my portal-ext.properties to :
after finding that google returned a search result that include language path in the url.
Sample: www.mysite.com/fi/what
I have also then went to Site Administration > Display Settings and :
- Selected "Define a custom default language and additional available languages for this site."
- Chosen "Default Language" as "English (United States)"
- Under Available Languages, for Current : I left only English (United States) and all others are in the Available section.
Update:
I have also set in the Contrl Panel Display Settings:
- Default Language : English (United States)
- Current : English (United States)
- Available : All other languages
After all that, i Googled, found the link and clicked and the link still sends me to www.mysite.com/fi/what .
I also couldnt remove this link from Google as it still exist.
So what gives?
I have already setup my portal-ext.properties to :
#locales=en_US commented this out after latest update.
locale.prepend.friendly.url.style=0
after finding that google returned a search result that include language path in the url.
Sample: www.mysite.com/fi/what
I have also then went to Site Administration > Display Settings and :
- Selected "Define a custom default language and additional available languages for this site."
- Chosen "Default Language" as "English (United States)"
- Under Available Languages, for Current : I left only English (United States) and all others are in the Available section.
Update:
I have also set in the Contrl Panel Display Settings:
- Default Language : English (United States)
- Current : English (United States)
- Available : All other languages
After all that, i Googled, found the link and clicked and the link still sends me to www.mysite.com/fi/what .
I also couldnt remove this link from Google as it still exist.
So what gives?
Achmed Tyrannus Albab, modificado 7 Anos atrás.
RE: Language path (Resposta)
Regular Member Postagens: 158 Data de Entrada: 05/03/10 Postagens Recentes
Got my answer here from one of the comments at :
http://stackoverflow.com/questions/14834886/removing-localization-in-liferay-theme - Jan 25 '16 at 10:24 by Subhash Patel.
Couldn't upvote as i am not registered there.
What I did was removed language mapping :
And left those that i need :
Seems legit. If there is any better way please share.
Editing was done to web.xml while Liferay was stopped.
Cheers.
http://stackoverflow.com/questions/14834886/removing-localization-in-liferay-theme - Jan 25 '16 at 10:24 by Subhash Patel.
Couldn't upvote as i am not registered there.
What I did was removed language mapping :
...
<servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/vi/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/vi_VN/*</url-pattern>
</servlet-mapping>
...
And left those that i need :
...
<servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/en/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/en_US/*</url-pattern>
</servlet-mapping>
...
Seems legit. If there is any better way please share.
Editing was done to web.xml while Liferay was stopped.
Cheers.