• Welcome to KonaKart Community Forum. Please login or sign up.
 

Konakart in Arabic

Started by huzefa85, May 10, 2009, 07:09:32 am

Previous topic - Next topic

huzefa85

Hi All,

Firstly, i would like to congratulate the entire konakart team, for this wonderful product. gr8 work

I want to make konakart available in arabic. I was wondering, if i modify the property files into arabic and add the required files with arabic text, that would replace the language strings.
However for arabic, I also would want the string to be read "right to left" instead of left to right. How can I do that in Konakart ?

I would appreciate if someone could guide me through this

heidi

The http://www.hyperbazar.com/ store shows right to left text.

Yes the first step is to provide translations in the properties files.

For right to left text, I've never tried this myself but there are a number of articles on the web that will guide you through this, eg:  http://www.devx.com/Java/Article/30071/1954

It doesn't look like there's much to do to achieve what you need.

If you could contribute your translations (in the properties files as you correctly mentioned) to our contributions section it would be much appreciated!

--Heidi

huzefa85

Thanks Heidi for the quick response.

The link is pretty useful.
And yes sure, as soon as i finish with the translations, i will submit the configuration files on the forum, and also a step by step procedure to convert the site into Arabic. It'll be useful to the other users.

Sony George



Quote from: heidi on May 10, 2009, 07:20:57 am
The http://www.hyperbazar.com/ store shows right to left text.


http://www.hyperbazar.com/ achieved this by editing the skin_style.css and entering the following css style in the body
body {
  background: #ffffff;
  color: #000000;
  margin: 0px;
  direction: rtl;
}
but this method is not recommended because it is a permanent change, your site will be always Arabic, you cannot attract international customers who don't know Arabic,

the permanent and best option is to edit MainLayout.jsp and edit the < html > tag, instead of the < html > tag, use struts html tag < html:html lang="true" > </html:html> , when this tag is used struts will change from left to right according to the user's browser's locale

and then if you want to edit the css according to your need then change the line

<link type="text/css" rel="stylesheet" href="styles/skin_style.css" />
to
<link type="text/css" rel="stylesheet" href="styles/<%=request.getLocale().getLanguage().equalsIgnoreCase("ar")?"skin_style_ar.css":"skin_style.css"%>"/>

so that if locale is Arabic then skin_style_ar.css is applied for Arabic user and skin_style.css for English users

Quote from: heidi on May 10, 2009, 07:20:57 am
Yes the first step is to provide translations in the properties files.


yes after doing the above you have to translate the properties files and name it according to it
for example
Messages_ar.properties for all Arabic countries or
Messages_ar_AE.properties for UAE

after doing the above, the users who log to your shop from UAE will get Arabic shopping cart and users who log from USA or UK
will get English shopping cart


regards