Foros de discusión

Journal content in Hindi language[Resolved]

thumbnail
Rishi Dev Gupta, modificado hace 15 años.

Journal content in Hindi language[Resolved]

Expert Mensajes: 255 Fecha de incorporación: 23/11/08 Mensajes recientes
Hi

I am working on an application that works in English and Hindi languages.
I have journal content portlets where I want to put in the hindi text. As soon as I click on save button while editing an article, the server throws an error on the log console

06:59:29,693 ERROR [JDBCExceptionReporter:78] Data truncation: Data too long for column 'content' at
row 1
06:59:29,708 ERROR [AbstractFlushingEventListener:301] Could not synchronize database state with ses
sion
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.j
ava:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingE
ventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:
27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at com.liferay.portal.dao.orm.hibernate.LiferaySession.flush(Unknown Source)
at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(Unknown Source)
at com.liferay.portlet.journal.service.persistence.JournalArticlePersistenceImpl.updateImpl(
Unknown Source)
at com.liferay.portlet.journal.service.persistence.JournalArticlePersistenceImpl.update(Unkn
own Source)
at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.updateArticle(Unk
nown Source)
at com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl.updateArticle(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMe
thodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
cation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInte
rceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
cation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy259.updateArticle(Unknown Source)
at com.liferay.portlet.journal.service.JournalArticleServiceUtil.updateArticle(Unknown Sourc



I have translated the text from English to Hindi in Google language translator and copy & paste in to WYSWYG editor of liferay.

I have made the entry for language in portal-ext.properties
locales=hi_IN,en_US
and select the language from drop down.

Also in the database charaterset is utf8 and collation as utf8_bin.

Please help, if I am missing any other configurations.

ऋषि देव गुप्ता
thumbnail
Rishi Dev Gupta, modificado hace 15 años.

[Resolved] Journal content in Hindi language

Expert Mensajes: 255 Fecha de incorporación: 23/11/08 Mensajes recientes
Figured out the solution to problem.

the MYSQL server was taking "latinl" as default character set.
I have reinstalled the databse with utf8 characterset only then it worked.

Cheers ALL!
bhaskar apparao varada, modificado hace 14 años.

RE: [Resolved] Journal content in Hindi language

New Member Mensajes: 16 Fecha de incorporación: 5/05/09 Mensajes recientes
Rishi Dev Gupta:
Figured out the solution to problem.

the MYSQL server was taking "latinl" as default character set.
I have reinstalled the databse with utf8 characterset only then it worked.

Cheers ALL!


Hi Rishi,

Can you please tell me how did you add the new language hindi in to liferay
which process you have used for this.

Can you please tell me how did you impliment this.

Thanks,
Bhaskar V.
thumbnail
Rishi Dev Gupta, modificado hace 14 años.

RE: [Resolved] Journal content in Hindi language

Expert Mensajes: 255 Fecha de incorporación: 23/11/08 Mensajes recientes
Introducing new language is not very complicated task.

Just follow the wiki articles available here.

Try this

http://www.liferay.com/community/wiki/-/wiki/1071674/Translating+Liferay+to+a+New+Language/maximized
Baji Shaik, modificado hace 13 años.

RE: [Resolved] Journal content in Hindi language

New Member Mensajes: 9 Fecha de incorporación: 14/05/10 Mensajes recientes
Hi Rishi,

Please suggest me how to display hindi content on portal. what is the encoding mechanism used for hindi in native file of liferay 6.0.

Thanks in advance.
Baji Shaik, modificado hace 13 años.

RE: [Resolved] Journal content in Hindi language

New Member Mensajes: 9 Fecha de incorporación: 14/05/10 Mensajes recientes
Hi Rishi,

How to convert hindi text into the following format/encoding mechanism. what is that mechansim/ encoding technique using.
ex:हà¥~Gलà¥~Mप

Thanks
thumbnail
Rishi Dev Gupta, modificado hace 13 años.

RE: [Resolved] Journal content in Hindi language

Expert Mensajes: 255 Fecha de incorporación: 23/11/08 Mensajes recientes
Follow the steps written in my above posts and you can make any language working,
thumbnail
Jigna parag Joshi, modificado hace 13 años.

RE: [Resolved] Journal content in Hindi language

Junior Member Mensajes: 41 Fecha de incorporación: 9/12/08 Mensajes recientes
i have set my locale france..and now i also want to store my data in france..but it is not storing correct data..i have inputted "Français Interest" in interest field in MyAccount.

but, when i see in HttpAnalyzer.it is showing me Français Interest</color>.
and also it is storing same in DB.

please let me know if any configuration need to be done from my side..

thanx in advance..

regards
Jigna Joshi
thumbnail
Rishi Dev Gupta, modificado hace 13 años.

RE: [Resolved] Journal content in Hindi language

Expert Mensajes: 255 Fecha de incorporación: 23/11/08 Mensajes recientes
Is your mysql or DB you are using configured for UTF-8 character set, if not then you need to do it, then try french characters.
thumbnail
Manish Kumar Jaiswal, modificado hace 13 años.

RE: [Resolved] Journal content in Hindi language

Regular Member Mensajes: 153 Fecha de incorporación: 25/11/08 Mensajes recientes
Dear Rishi ,

Can we also translate the title of web content ...I am also trying to do the same (make hindi/english work) but only contect has the facility to be written into any language but not the title.
thumbnail
mohammad azaruddin, modificado hace 10 años.

RE: [Resolved] Journal content in Hindi language

Expert Mensajes: 492 Fecha de incorporación: 17/09/12 Mensajes recientes
HI all we need to add new entry in web.xml...so can we achive this via hook.................?