Translation to Arabic

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Translation to Arabic

Post by Way »

for Arabic Translation

Ok I get a file and I call it (serendipity_lang_ar.inc.php) , I start my translating based on English language –

I adjust this tow lines

Code: Select all

@define('LANG_CHARSET', 'windows-1256');
@define('DATE_LOCALES', 'Arabic,sa , ar_SA.windows-1256');

And accomplished almost 60% of language file
Than I made the adjustment by adding new language on files (lang/UTF-8/ recode.php)

And I add the code on file (serendipity_config.inc.php)

Now its ready and available in the admin general configuration area!!!
But each time I select Arabic – and I make Save and Update – it don'ts take effect on weblog :shock:

Is their any more steps should I do???? :!:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Translation to Arabic

Post by garvinhicking »

You must change your language in the "Personal Preferences" panel, not in the "Global configuration" panel.

The language set in global configuration only applies for non-logged in members. :)

Best 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post by Way »

Yes sorry I don't mention that earlier – I apply exactly what you said?
But I get that
Fatal error: Call to undefined function: serendipity_mb() in /home/arabi/public_html/s9/include/functions.inc.php on line 82


May be I made error in one of the strings while translating
Since early morning I'm reviewing my work
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Yes, that might happen if your language file contains a parse error - try to call your language file directly in the browser and see if you get an error?

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/
Guest

Post by Guest »

after recalling lang directly throw my browser

You don't have permission to access /s9/lang/UTF-8/serendipity_lang_ar.inc.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, then you need to parse the file differently. Use a PHP editor that has parse checks, or use the "php -l" commandline utility to check a PHP page for parse errors?

Or copy the file from your language directory to your /s9/ folder to call it in your browser. Serendipity disallows calling URLs in the lang/ directory inside .htaccess.

Best 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post by Way »

Defines various URL patterns to define permanent links in your blog. It is suggested that you use the defaults; if not, you should try to use the %id% value where possible to prevent Serendipity from querying the database to lookup the target URL
Well unfortunately I don't found out this lines which is below comments text box, I say I don't found them in the language file
Where are they? Because I translate them
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Many plugins also contain their own translations! You need to look at the lang* files inside each plugin directory! Also some plugin core files contain the english language preset...

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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post by Way »

Thanks so much sir
I find out most of my use
:D
Post Reply