ARABIC language

Discussion corner for Developers of Serendipity.
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

ARABIC language

Post by Way »

ARABIC language
hello every body
well I'm so happy to now and use this fantastic weblog – serendipity

and I appreciate Mr. garvinhicking (Core Developer) for all supports he made

so I start to build a good Arabic translation, hopefully I translate around 90% of serendipity control panel and the rest is something around words in plug ins files and standerd words.

So for other languages(Farsi , Hebron , Kurdistan) using Right to left page directional, I suggest for them that they modify or add this code in the (templates / default /style.css) files

For the pages itself,

Code: Select all

direction: {LANG_DIRECTION};
for the text alignment

Code: Select all

text-align: {LANG_DIRECTION};
Note: at any moment if I change or add more translation to this script I'll provide it her

ARABIC language
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

Hi,

I developed Persian language and RTL template of S9Y...

if ou change direction, there is no need to change text-align, but you need to replace every "right" to "left" and vice versa in CSS files.

something else for your translation, your own weblog, used UTF8, but you translate your system in Windows-1256.

another point.... you can add your calendar easily to this system, Hijri Ghamari ;)

Regards.

p.s: ah, that is not "Farsi", that is "Persian", this is because of damn Microsoft :(
My Blog, powered by s9y is http://oxygenws.com/blog/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

(I'll add the arabic language as soon as I have the time -- or oxygenws, since you also have SVN access and some knowledge in that language, would you like to commit the language files maybe?)

Best regards and thanks for all your work,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post by Way »

oxygenws wrote:Hi,
I developed Persian language and RTL template of S9Y...
if ou change direction, there is no need to change text-align, but you need to replace every "right" to "left" and vice versa in CSS files.
Microsoft :(
Thanks a lot oxygenws for your comments

That’s could be in both ways and I think it gives same result

oxygenws wrote:Hi,
something else for your translation, your own weblog, used UTF8, but you translate your system in Windows-1256.
Actually I based on my translation on windows-1256 but I could re- assemble it again as utf-8
oxygenws wrote:Hi,
another point.... you can add your calendar easily to this system, Hijri Ghamari ;)
Well, I would like to do so, but unfortunately I don't have the right equation for the calendar if you please provide it to me

Thanks and Best regards
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

would you like to commit the language files maybe?
Sure Garvin, i'm here to help ;) (huh, if i can :D)
do you want me to add it?
Actually I based on my translation on windows-1256 but I could re- assemble it again as utf-8
i think s9y has a internal (command-base) system to change windows-1256 to utf-8..... but i don't know it works correct or not. i hope it works fine for arabic/persian characters too. (it used iconv functions)
Well, I would like to do so, but unfortunately I don't have the right equation for the calendar if you please provide it to me
no, sorry, i don't have any relation between Hijri and Garegorian calendars.
but i have the equation of Hijri Ghamari and Jalali (Hijri Shamsi) is it useful?

Regards.
My Blog, powered by s9y is http://oxygenws.com/blog/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post by Way »

oxygenws wrote:
no, sorry, i don't have any relation between Hijri and Garegorian calendars.
but i have the equation of Hijri Ghamari and Jalali (Hijri Shamsi) is it useful?

Regards.
Yes sir why not
I will check and I'm sure it'll work , Because we use Hejri Qamari
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Oxygen: Yes, please go ahead and commit it. Using iconv functions should work well, I hope - cp1251 should be supported by iconv.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

Oxygen: Yes, please go ahead and commit it. Using iconv functions should work well, I hope - cp1251 should be supported by iconv.
i test iconv for Persian words in PHP (iconv extension) and it returns bad characters. (i think i tried to change utf-8 to windows-1256)
I will check and I'm sure it'll work , Because we use Hejri Qamari
nice, you can see my calendar functions in ./include/functions_calendars.inc.php
i think it is better to add such functions for your calendar (take care, this file is utf-8 )

and for your translation, i download it and have some suggestions...
1- & means "ampersand" and you should change it with "wa" -> "و" :)

2- there are some wrong defines, because you changed the first parameter of them, like:
@define('فی', 'عند');
i found 3-4 of this wrong translations, but its better to check it yourself to find wrong defines.

3- its better to change date format to something like this -> "%A، %e %B %Y" i used it for Persian date. (take care of comma, here it is utf-8)

after fixing your language file, send it to me to upload to SVN, thanks. (omidmr -at- gmail -doot!- com)

Regards.
My Blog, powered by s9y is http://oxygenws.com/blog/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post by Way »

Thanks a lot Oxygenws

I do all correction you appointed it to me and more
you now, this is firest issue in Arabic, people didn't use it before

So I post explanation for the use of our great weblog serendipity in Arab Forums , once people used to it, sure they will find better wording than I do
And the corrections it well continue on that process

Already updated in post No#1
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

will this expandable to URDU (language from Pakistan) it has the same alphabets as arabic and same way of writing it and all.
Image
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

MySchizoBuddy wrote:will this expandable to URDU (language from Pakistan) it has the same alphabets as arabic and same way of writing it and all.
now you can use Persian (Farsi) language instead.
My Blog, powered by s9y is http://oxygenws.com/blog/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Question to Mr. oxygenws

Post by Way »

Hello sir
As you now Arabic and Persian languages have the same wording chrecters
.
I made the Arabic translation, But whit (charset=windows-1256) encoding
I would like to make that translation in (utf-8)
And I do that ! ! !

But, when I use (utf-8), the web browser Internet Explorer or firefox doesn’t recognize Arabic letters,

Each time, I should change the Internet Explorer manually to whit (charset=windows-1256) encoding [by right click < < < lang encoding - - - selecting widows Arabic]

? ? What is the way to enforce Internet Explorer to recognize Arabic characters as your s9y? ?
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

dear Way, could you please show me a link or send the translation file to me?
regards.
My Blog, powered by s9y is http://oxygenws.com/blog/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post by Way »

It's available in the first post

or you could get it now
http://www.flyingway.com/dsl/arabic_serendipity.zip
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

the file you linked is windows-1256.
where is your UTF8?
My Blog, powered by s9y is http://oxygenws.com/blog/
Post Reply