PHP_CodeSniffer is a PHP5 script that tokenises and "sniffs" PHP, JavaScript and CSS files to detect violations of a defined coding standard.

install PHP_CodeSniffer 

Translation หรือการแปลภาษา เป็นหัวข้อหนึ่งของ I18N (Internationalization)
ซึ่งการแปลภาษาใน Yii จะต้องการ Property 2 ตัวในการแปลภาษาคือ Source language และ Target language

Source language
เป็นภาษาหลักที่ใช้เขียนโปรแกรม กำหนดด้วย property $sourceLanguage มีค่าปริยายคือ 'en_us' (US English)

Target language
เป็นภาษาที่แสดงผลให้ user เห็น กำหนดด้วย property $language ซึ่งถ้าไม่ได้ระบุไว้ ระบบจะดึงเอา source language มาใช้

Topic: 

วานแม่ยก @moomay จัดให้หน่อย

Pages

Subscribe to PangPondBlog RSS
© 2010 Pangpond.. Theme by Kiwi Themes.