Using another language

Phoca Guestbook - creating guestbooks in Joomla! CMS
zma
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 29 Dec 2007, 17:28

Hello, F

Post by zma »

Hello,

First of all I want to thank you for this component.
Secondly, well, I have a problem using another language than English.
I want my guestbook to be in Arabic, but when I translate the language file and upload it to the site, my guestbook crashes.
Any idea of what I'm doing wrong?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

??? I don!t have any

Post by Jan »

??? I don!t have any experience with arabic language, but Phoca Guestbook works with chinese language. So, I think, there should not be problem.

And I have seen, Arabic language is displayed on my demo site. ??? Maybe there is some error in your language file. ???

Jan
If you find Phoca extensions useful, please support the project
zma
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 29 Dec 2007, 17:28

Hello again,

Post by zma »

Hello again,

I tried to change the language to Chinese, but it didn't work.

I copied the to language files to these directories:
administrator/language/zh-CN
language/zh-CN

and changed the language tag in phocaguestbook.xml to:
<language tag="zh-CN">language/zh-CN/zh-CN.com_phocaguestbook.ini</language>
<language tag="zh-CN">language/zh-CN/zh-CN.com_phocaguestbook.menu.ini</language>

..and still it doesn't work!

can you see what i'm doing wrong?!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

You must change the

Post by Jan »

You must change the language for whole Joomla site. And if you change it, your Joomla takes the right language file. E.g. I set Joomla site to Czech and then I copy Chech language file into the following folders:
administrator/language/cs-CZ
language/cs-CZ

Joomla! site will use Czech language pack for the Phoca Guestbook component.

Jan
If you find Phoca extensions useful, please support the project
zma
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 29 Dec 2007, 17:28

Thank you for your r

Post by zma »

Thank you for your reply..

I tried to do what you wrote..

I use the English language for my administrator site, and Arabic for the main site.

So what i did was:
to put the Arabic language file in the directory: language/ar-EG
and keep the english one in the directory: administrator/language/en-GB

then I changed line 69 and 70 in the xml file to the following:
<language tag="ar-EG">language/ar-EG/ar-EG.com_phocaguestbook.ini</language>
<language tag="ar-EG">language/ar-EG/ar-EG.com_phocaguestbook.menu.ini</language>

and kept line 127 and 128 as they are:
<language tag="en-GB">language/en-GB/en-GB.com_phocaguestbook.ini</language>
<language tag="en-GB">language/en-GB/en-GB.com_phocaguestbook.menu.ini</language>

But it didn't work
zma
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 29 Dec 2007, 17:28

well, I tried again

Post by zma »

well, I tried again and it worked ..

Thanks a lot for your help..I appreciate it..
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply