News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

كيفية تعريب المودات

Started by islam2hamy, January 05, 2010, 02:52:26 AM

Previous topic - Next topic

islam2hamy

بسم الله الرحمن الرحيم

سنتناول فى هذا الدرس كيفية تعريب المودات إن شاء الله

كل ما تحتاج إليه هو :

1- معرفة جيدة باللغة الإنجليزية و العربية .
2 - برنامج محرر نصوص (Notepad++) مثلا .
3 - أن يكون لديك وقت للترجمة .

و الان نبدأ على بركة الله

نختر مثلا مود (the_rules)
نقوم بتحميل المود على جهاز الكمبيوتر ثم نقوم بفك الضغط
سنجد عدة ملفات و الذى يهمنا هو الملف (modification1)
نقوم بفتحه و نبحث عن هذا السطر

    <file name="$languagedir/Modifications.english.php">
هذا السطر هو الامر الخاص بالتعديل على ملف اللغه
نقوم بنسخ الامر بالكالم و لصقه تحت هذا الامر
ثم نقوم بتغيير كلمة english الى arabic او arabic-utf8 ليصبح هكذا

    <file name="$languagedir/Modifications.arabic.php">
ثم بعد ذلك نبدأ بتعريب الجمل التى موجودة داخل هذا الامر (و التى قمت بتحديدها باللون الاحمر بالاسفل)
Quote
    <file name="$languagedir/Modifications.english.php">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['the_rules_not_configured'] = 'This feature has not yet been configured by the administrator.';
$txt['agreement'] = 'Agreement';
$txt['rules_enable_guest_access'] = 'Enable guest access:';
$txt['rules_enable_member_access'] = 'Enable member access:';
$txt['the_rules_display_name'] = 'Display name of rules page:';
$txt['the_rules_agreement_display_name'] = 'Display name of agreement page:';
$txt['mods_cat_rules'] = 'The Rules';
$txt['rules'] = 'Rules';
$txt['rules_tab_label'] = 'Rules tab label:';
$txt['rules_title']='The Rules';
$txt['rules_title_rules'] = 'Rules';
$txt['the_rules_text'] = 'Text to display:';
$txt['additional'] = 'Additional';
$txt['the_rules_additional_display_name'] = 'Display name of additional page:';
$txt['the_rules_additional_text'] = 'Additional text to display:';
$txt['the_rules_enable_additional'] = 'Enable display of additional page:';
$txt['rules_title_additional'] = 'Additional';
$txt['rules_title_agreement'] = 'Agreement';
$txt['the_rules_enable_agreement'] = 'Enable display of agreement.txt page:';
$txt['the_rules_edit_name'] = 'Edit agreement.txt';
]]></add>
        </operation>
    </file>

بعد الانتهاء من ترجمة هذه الجمل نقوم بحفظ الملف .
فى بعض الاحيان قد يكون هناك ملف خاص باللغه داخل المود نفسه (Downloads.english.php) مثلا


ملحوظه هامة : فى حالة استخدام الـ arabic-utf8 فيجب عليك تغيير ترميز الملف الى utf-8 قبل البدء فى الترجمة

و فى الختام أتمنى ان يكون هذا الشرح بسيط و سهل
و السلام عليكم و رحمة الله و بركاته

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Croco

الموضوع ناقض هل يمكنك تعديله ليشمل الحالات الخاصة التي تستخدم أسماء متغيرات ضمن جمل الترجمة ؟
I am back. I will try to catch up with some stuff soon.
Regards,
Croco

My sites
Andareena.com
Andareen.net(Under Constraction :P)

New plans coming soon


Good links for you to visit:
Docs
Search

Advertisement: