Feature: multi language (VI, EN, JA)
CR: sonh (fake)
This commit is contained in:
@@ -45,19 +45,19 @@ class ListManagement extends \yii\db\ActiveRecord {
|
||||
*/
|
||||
public function attributeLabels() {
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'code' => 'ID',
|
||||
'type' => 'Loại',
|
||||
'name' => 'Tên',
|
||||
'image' => 'Hình ảnh đăng kí',
|
||||
'gender' => 'Giới tính',
|
||||
'birthday' => 'Ngày sinh',
|
||||
'telephone' => 'Điện thoại',
|
||||
'address' => 'Đơn vị',
|
||||
'time' => 'Thời gian đăng kí',
|
||||
'id' => Yii::t("app", "ID"),
|
||||
'code' => Yii::t("app", "ID"),
|
||||
'type' => Yii::t("app", "LOAI"),
|
||||
'name' => Yii::t("app", "TEN"),
|
||||
'image' => Yii::t("app", "HINH_ANH_DANG_KI"),
|
||||
'gender' => Yii::t("app", "GIOI_TINH"),
|
||||
'birthday' => Yii::t("app", "NGAY_SINH"),
|
||||
'telephone' => Yii::t("app", "DIEN_THOAI"),
|
||||
'address' => Yii::t("app", "DON_VI"),
|
||||
'time' => Yii::t("app", "THOI_GIAN_DANG_KI"),
|
||||
'last_modified' => 'Last Modified',
|
||||
'abbreviated_name' => 'Tên hiển thị',
|
||||
'staff_id' => 'ID'
|
||||
'abbreviated_name' => Yii::t("app", "TEN_HIEN_THI"),
|
||||
'staff_id' => Yii::t("app", "ID"),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -86,14 +86,19 @@ class ListManagement extends \yii\db\ActiveRecord {
|
||||
}
|
||||
}
|
||||
|
||||
public static $typeArray = [
|
||||
"wl" => "Whitelist",
|
||||
"bl" => "Blacklist"
|
||||
];
|
||||
public static $genderArray = [
|
||||
"Male" => "Nam",
|
||||
"Female" => "Nữ"
|
||||
];
|
||||
public static function typeArray() {
|
||||
return [
|
||||
"wl" => Yii::t("app", "WHITE_LIST"),
|
||||
"bl" => Yii::t("app", "BLACK_LIST")
|
||||
];
|
||||
}
|
||||
|
||||
public static function genderArray() {
|
||||
return [
|
||||
"Male" => Yii::t("app", "MALE"),
|
||||
"Female" => Yii::t("app", "FEMALE"),
|
||||
];
|
||||
}
|
||||
|
||||
public static function nameArray() {
|
||||
$res = [""];
|
||||
|
||||
Reference in New Issue
Block a user