Foros de discusión
New Language Problem Slovenian
Mihael Palfi, modificado hace 13 años.
New Language Problem Slovenian
New Member Mensajes: 3 Fecha de incorporación: 15/11/10 Mensajes recientes
Hello
I have a problem when adding a new language. i my case a slovenian language. I have added the locales variable to the portal-ext.properties file
locales=en_US,sl_SI,de_DE,fr_FR,hu_HU,it_IT
and added the new languge file Languages_sl.properties to the ROOT/WEB-INF/lib/portal-impl.jar/content folder.
I am geting somekind of URL loop when i pres on the new slovenian language icon: http://localhost:10400/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/master
and the page is not displayed.
I am using liferay 6 bundled with tomcat.
What am i doing wrong. Is there a step that i missed. Some file to modify to?
Does somewone have a solution for this problem???
Miha
I have a problem when adding a new language. i my case a slovenian language. I have added the locales variable to the portal-ext.properties file
locales=en_US,sl_SI,de_DE,fr_FR,hu_HU,it_IT
and added the new languge file Languages_sl.properties to the ROOT/WEB-INF/lib/portal-impl.jar/content folder.
I am geting somekind of URL loop when i pres on the new slovenian language icon: http://localhost:10400/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/master
and the page is not displayed.
I am using liferay 6 bundled with tomcat.
What am i doing wrong. Is there a step that i missed. Some file to modify to?
Does somewone have a solution for this problem???
Miha
ravi kumar gupta, modificado hace 13 años.
RE: New Language Problem Slovenian
Liferay Legend Mensajes: 1302 Fecha de incorporación: 24/06/09 Mensajes recientes
Hello,
You need to add i18N servlet mapping in web.xml of Liferay.
Thanks
Ravi
You need to add i18N servlet mapping in web.xml of Liferay.
Thanks
Ravi
Mihael Palfi, modificado hace 13 años.
RE: New Language Problem Slovenian
New Member Mensajes: 20 Fecha de incorporación: 5/11/10 Mensajes recientes
Helo Ravi
Thanx for the help. I added the servlet mapping and now i get the /sl/ prefix
<servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/sl/*</url-pattern>
</servlet-mapping>
but now i have a new problem. When i click on the slovenian language the browser downloads (master file) and changes the url to http://localhost:10400/sl/reservation and not to http://localhost:10400/sl/web/guest/reservation like at the other languages. What is this master file??
Is there something i missed? Maybe some permission issues?
Miha
Thanx for the help. I added the servlet mapping and now i get the /sl/ prefix
<servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/sl/*</url-pattern>
</servlet-mapping>
but now i have a new problem. When i click on the slovenian language the browser downloads (master file) and changes the url to http://localhost:10400/sl/reservation and not to http://localhost:10400/sl/web/guest/reservation like at the other languages. What is this master file??
Is there something i missed? Maybe some permission issues?
Miha
Mihael Palfi, modificado hace 13 años.
RE: New Language Problem Slovenian
New Member Mensajes: 20 Fecha de incorporación: 5/11/10 Mensajes recientes
Hi
I found the solution.
I had to add both definitions
<servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/sl/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/sl_SI/*</url-pattern>
</servlet-mapping>
and add the permission in the same web.xml
<url-pattern>/sl/c/portal/protected</url-pattern>
<url-pattern>/sl_SI/c/portal/protected</url-pattern>
I found the solution.
I had to add both definitions
<servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/sl/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/sl_SI/*</url-pattern>
</servlet-mapping>
and add the permission in the same web.xml
<url-pattern>/sl/c/portal/protected</url-pattern>
<url-pattern>/sl_SI/c/portal/protected</url-pattern>
Mihael Palfi, modificado hace 13 años.
RE: New Language Problem Slovenian
New Member Mensajes: 20 Fecha de incorporación: 5/11/10 Mensajes recientes
Hi
Another problem. I have special characters in my language "č,š,ž .." and they are not shown. They are replaced with ? .
What is the problem. Liferay 6 has suport for special characters?
Thank you for the replay!
Miha
Another problem. I have special characters in my language "č,š,ž .." and they are not shown. They are replaced with ? .
What is the problem. Liferay 6 has suport for special characters?
Thank you for the replay!
Miha
Julio Camarero, modificado hace 13 años.
RE: New Language Problem Slovenian
Liferay Legend Mensajes: 1668 Fecha de incorporación: 15/07/08 Mensajes recientes
Hi guys,
the servlet mapping is automatically updated for you when you do ant format-source
the servlet mapping is automatically updated for you when you do ant format-source
ravi kumar gupta, modificado hace 13 años.
RE: New Language Problem Slovenian
Liferay Legend Mensajes: 1302 Fecha de incorporación: 24/06/09 Mensajes recientesJulio Camarero:
the servlet mapping is automatically updated for you when you do ant format-source
Hello Julio,
But what if we are not doing it using source. In that case its not updated automatically, is it?
Language properties file must be in utf-8. But how to convert special characters to utf-8. There must be some converter we are missing..
Thanks
Ravi Kumar Gupta, modificado hace 13 años.
RE: New Language Problem Slovenian
Liferay Legend Mensajes: 1302 Fecha de incorporación: 24/06/09 Mensajes recientes
Hello,
Use native2ascii command to convert to utf-8 using encoding utf-8.
http://mindprod.com/jgloss/native2asciiexe.html
Example -
native2ascii -encoding UTF-8 file-to-convert.properties file-converted.properties
Thanks goes to Manish
Enjoy.
Use native2ascii command to convert to utf-8 using encoding utf-8.
http://mindprod.com/jgloss/native2asciiexe.html
Example -
native2ascii -encoding UTF-8 file-to-convert.properties file-converted.properties
Thanks goes to Manish
Enjoy.
Mihael Palfi, modificado hace 13 años.
RE: New Language Problem Slovenian
New Member Mensajes: 20 Fecha de incorporación: 5/11/10 Mensajes recientes
Hi everyone
I solved this by reading another post where someone uploaded the slovenian file with the Č,Š,Ž konverted to some special characters. That worked for me, but i will try this nativetoasci converter and will see if this will do the trick to.
Thanks for all your help!!!
Of the topic :
Does enyone know how to preload some images in the horizontal picture slider that is writen in jquery. I am not good at it and am having a problem. An example code would be very nice.
Thanks again
Miha
I solved this by reading another post where someone uploaded the slovenian file with the Č,Š,Ž konverted to some special characters. That worked for me, but i will try this nativetoasci converter and will see if this will do the trick to.
Thanks for all your help!!!
Of the topic :
Does enyone know how to preload some images in the horizontal picture slider that is writen in jquery. I am not good at it and am having a problem. An example code would be very nice.
Thanks again
Miha
Olaf Kock, modificado hace 13 años.
RE: New Language Problem Slovenian
Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientesRavi Kumar Gupta:
Use native2ascii command to convert to utf-8 using encoding utf-8.
In order to save the extra step of converting the file, your editor (or IDE) should be able to save a file in UTF-8 encoding. Should be a lot simpler this way.
Ravi Kumar Gupta, modificado hace 13 años.
RE: New Language Problem Slovenian
Liferay Legend Mensajes: 1302 Fecha de incorporación: 24/06/09 Mensajes recientesOlaf Kock:
In order to save the extra step of converting the file, your editor (or IDE) should be able to save a file in UTF-8 encoding. Should be a lot simpler this way.
Hello Olaf,
I tried it your way before(using Notepad++), but couldn't make it work. I might be missing something.
Will give it a try again.
Thanks for helping.
Julio Camarero, modificado hace 13 años.
RE: New Language Problem Slovenian
Liferay Legend Mensajes: 1668 Fecha de incorporación: 15/07/08 Mensajes recientes
Regarding this last issue,
you need to make sure that your properties file is UTF-8 encoded. can you verify?
are you testing in the core or in a plugin?
cheers!
you need to make sure that your properties file is UTF-8 encoded. can you verify?
are you testing in the core or in a plugin?
cheers!