Yii Framework Forum: Translated messages - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Translated messages System Messages!

#1 User is offline   BlueFire 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 04-March 11

Posted 14 April 2011 - 12:08 AM

Hi every one,

I'm just wondering if some one already translated the messages/yii.php which will translate the core messages (i.e. Validtion, Error,...)

Thanks

0

#2 User is offline   Muaid 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 118
  • Joined: 25-October 10
  • Location:Saudi Arabia

Posted 14 April 2011 - 03:08 AM

as i know there is no Arabic translation for the core messages (yii.php / zii.php)

these two files are not big, if you found what you need please share it with us so i can verify it and open a new ticket to add the Arabic lang to the framework releases

i am planning nowadays to translate these core messages .. but i really cannot find any resources for Arabic translating that follow the standards.


UPDATE: there is no new tickets needed since Qiang published a project in google code (yiidoc) for this propose .. so if you are interested let me know so we can help others and accomplish this.
0

#3 User is offline   BlueFire 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 04-March 11

Posted 14 April 2011 - 11:28 PM

Sounds Good

I'm more than happy to support
0

#4 User is offline   Muaid 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 118
  • Joined: 25-October 10
  • Location:Saudi Arabia

Posted 15 April 2011 - 07:28 AM

nice to hear that BlueFire Posted Image,

then keep tuned here or check your email frequently because i am now managing to launch a mechanism to translate whole Yii framework.

i really need you and others effort to accomplish this.
0

#5 User is offline   Musaed 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 03-July 10

Posted 27 September 2011 - 04:06 AM

I am in
0

#6 User is offline   Alaa Abdelhaq 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 30-April 11

Posted 10 March 2012 - 09:11 AM

Hello guys, did you finish working on the Arabic yii.php file?
can you please share it with us?
1

#7 User is offline   Muaid 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 118
  • Joined: 25-October 10
  • Location:Saudi Arabia

Posted 26 March 2012 - 04:12 AM

حياك الله علاء



لم تكتمل ترجمتة .. وماأدري اذا كان بعض الاخوان اكلمو تعريبة ام لا .. تأخرت كثيرا في اطلاق شروع الترجمة بسبب بعض الضروف التي مررت بها وان شاء الله بحاول اكمل بعض الجزئيات في مشروع التعريب ثم ارفعه اون لاين حتى يشارك الكل في التعريب



اعتذر لكم مرة ثانية
0

#8 User is offline   M0ka 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 27-November 12
  • Location:Jordan

Posted 09 April 2013 - 09:23 AM

You can translate the error messages by a simple statement

public function rules() {
        // NOTE: you should only define rules for those attributes that
        // will receive user inputs.
        return array(
            array('ID', 'numerical', 'integerOnly' => true, 'message' => '{attribute} لا يقبل إلا أرقام'),
[size=2]        );[/size]
    }



Or you can use

public function rules() {
        // NOTE: you should only define rules for those attributes that
        // will receive user inputs.
        return array(
            array('ID', 'numerical', 'integerOnly' => true, 'message' => Yii::app()->t('default', 'errMsgIndex')),
[size=2]        );[/size]
    }


Mo'ath Almallahi
CEO & Founder of Titania Co.

msqoor@gmail.com
0

#9 User is offline   Muaid 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 118
  • Joined: 25-October 10
  • Location:Saudi Arabia

Posted 09 April 2013 - 11:00 AM

مشاركة جميلة، طبعا هذه طريقة تخصيص نص لرسائل الخطأ في مايخص التحقق من صحة المدخلات من قبل المستخدم في النماذج
Validation rules


اما رسائل الخطأ الافتراضية لنواه Yii فهي بترجمة الملفين yii.php و zii.php

0

#10 User is offline   Dana 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 203
  • Joined: 18-February 10
  • Location:Florida, USA

Posted 26 March 2014 - 04:45 PM

I should have kept reading -- I will watch this thread for updates, thank you for the work that you are doing.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users