Fórum
how to configure simple portlet for this portlet support 2 languages ?
maryam maryam masoudy, modificado 12 Anos atrás.
how to configure simple portlet for this portlet support 2 languages ?
Regular Member Postagens: 149 Data de Entrada: 30/10/11 Postagens Recentes
hi
how to configure simple portlet for this portlet support 2 languages ?
how to configure simple portlet for this portlet support 2 languages ?
Hitoshi Ozawa, modificado 12 Anos atrás.
RE: how to configure simple portlet for this portlet support 2 languages ?
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recenteshow to configure simple portlet for this portlet support 2 languages ?
Which portlet?
If you're trying to internationalize your own portlet, following page may help you.
http://www.liferay.com/web/mahipal/blog/-/blogs/how-to-do-internationalization-i18n-and-localization-l10n-in-liferay
maryam maryam masoudy, modificado 12 Anos atrás.
RE: how to configure simple portlet for this portlet support 2 languages ?
Regular Member Postagens: 149 Data de Entrada: 30/10/11 Postagens Recentes
thanks Hitoshi
but this link is not safe and useful
yes i want if my languegs of liferay is en all text in my own portlet shows english languegs or if my languegs of liferay is fr all test shows France
but this link is not safe and useful
yes i want if my languegs of liferay is en all text in my own portlet shows english languegs or if my languegs of liferay is fr all test shows France
Javier Lora, modificado 3 Anos atrás.
RE: how to configure simple portlet for this portlet support 2 languages ?
New Member Postagens: 9 Data de Entrada: 27/01/10 Postagens Recentes
Hello,
if you want to internationalize your portlet. Set up your portlet.xml by adding;
<supported-locale> fr </ supported-locale>
<resource-bundle> content.Language </ resource-bundle>.
In the jsp uses "<liferay -ui:message key='label' />" and in your classes java
ResourceBundle rb = ResourceBundle.getBundle("content.Language", request.getLocale());
rb.getString ("label").
Javier Lora Peribáñez.
B2B2000
if you want to internationalize your portlet. Set up your portlet.xml by adding;
<supported-locale> fr </ supported-locale>
<resource-bundle> content.Language </ resource-bundle>.
In the jsp uses "<liferay -ui:message key='label' />" and in your classes java
ResourceBundle rb = ResourceBundle.getBundle("content.Language", request.getLocale());
rb.getString ("label").
Javier Lora Peribáñez.
B2B2000
maryam maryam masoudy, modificado 12 Anos atrás.
RE: how to configure simple portlet for this portlet support 2 languages ?
Regular Member Postagens: 149 Data de Entrada: 30/10/11 Postagens Recentes
thanks Javier ur guide was very goood
maryam maryam masoudy, modificado 12 Anos atrás.
RE: how to configure simple portlet for this portlet support 2 languages ?
Regular Member Postagens: 149 Data de Entrada: 30/10/11 Postagens Recentes
hi Javier
i configure portlet.xml
and add language file into web-inf
but i can not sucessfull and my portlet donot deploy
in my consul shows this message:
invalid content was found starting with element `support-local`......
why? what do i do?
must i use special lib?
or do i use other file ?
name of file languge: Language-ext_fa_IR.properties , Language-ext_fr_FA.properties , Language-ext.properties
portlet.xml:
i configure portlet.xml
and add language file into web-inf
but i can not sucessfull and my portlet donot deploy
in my consul shows this message:
invalid content was found starting with element `support-local`......
why? what do i do?
must i use special lib?
or do i use other file ?
name of file languge: Language-ext_fa_IR.properties , Language-ext_fr_FA.properties , Language-ext.properties
portlet.xml:
<!--?xml version="1.0"?-->
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
<portlet-name>1</portlet-name>
<display-name>Sample DAO</display-name>
<portlet-class>com.liferay.sampledao.portlet.DAOPortlet</portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<portlet-info>
<title>Sample DAO</title>
<short-title>Sample DAO</short-title>
<keywords>Sample DAO</keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
[b] [color=#f90505] <supported-locale>fr_FR</supported-locale>
<supported-locale>fa_IR</supported-locale>
<resource-bundle>content.Language-ext</resource-bundle>[/color][/b]
</portlet>
</portlet-app>
Mani kandan, modificado 12 Anos atrás.
RE: how to configure simple portlet for this portlet support 2 languages ?
Expert Postagens: 492 Data de Entrada: 15/09/10 Postagens Recentes
maryam maryam masoudy, modificado 12 Anos atrás.
RE: how to configure simple portlet for this portlet support 2 languages ?
Regular Member Postagens: 149 Data de Entrada: 30/10/11 Postagens Recentes
Mani
this portlet donot deploy i work with liferay 5 is this important?
this portlet donot deploy i work with liferay 5 is this important?
Mani kandan, modificado 12 Anos atrás.
RE: how to configure simple portlet for this portlet support 2 languages ?
Expert Postagens: 492 Data de Entrada: 15/09/10 Postagens Recentes
In that war file you can change the version from 6.0.0 to 5.0.0 of these files liferay-display.xml, liferay-hook.xml, liferay-portlet.xml
maryam maryam masoudy, modificado 12 Anos atrás.
RE: how to configure simple portlet for this portlet support 2 languages ?
Regular Member Postagens: 149 Data de Entrada: 30/10/11 Postagens Recentes
hi
i successful finally
thanks a lot all
thanks Mani thanks ur help was userful
i successful finally
thanks a lot all
thanks Mani thanks ur help was userful
Mani kandan, modificado 12 Anos atrás.
RE: how to configure simple portlet for this portlet support 2 languages ?
Expert Postagens: 492 Data de Entrada: 15/09/10 Postagens Recentes
Great to hear got it work