Page 1 of 1

Translation to Arabic

Posted: Wed Nov 09, 2005 8:40 am
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???? :!:

Re: Translation to Arabic

Posted: Wed Nov 09, 2005 11:00 am
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

Posted: Wed Nov 09, 2005 11:49 am
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

Posted: Wed Nov 09, 2005 11:55 am
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

Posted: Wed Nov 09, 2005 12:27 pm
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.

Posted: Wed Nov 09, 2005 1:02 pm
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

Posted: Fri Nov 11, 2005 1:21 am
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

Posted: Fri Nov 11, 2005 2:24 am
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

Posted: Sat Nov 19, 2005 7:02 pm
by Way
Thanks so much sir
I find out most of my use
:D