留言板
New Language Problem Slovenian
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,修改在13 年前。
RE: New Language Problem Slovenian
Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子
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
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
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>
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,修改在13 年前。
RE: New Language Problem Slovenian
Liferay Legend 帖子: 1668 加入日期: 08-7-15 最近的帖子
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,修改在13 年前。
RE: New Language Problem Slovenian
Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子Julio 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,修改在13 年前。
RE: New Language Problem Slovenian
Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子
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.
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
Ravi 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,修改在13 年前。
RE: New Language Problem Slovenian
Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子Olaf 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,修改在13 年前。
RE: New Language Problem Slovenian
Liferay Legend 帖子: 1668 加入日期: 08-7-15 最近的帖子
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!