Browse Source

Added male and female code based on selected lang

pull/3/head
Nafies Luthfi 8 years ago
parent
commit
b37db6e39d
  1. 2
      app/User.php
  2. 2
      resources/lang/en/app.php
  3. 2
      resources/lang/id/app.php

2
app/User.php

@ -37,7 +37,7 @@ class User extends Authenticatable
public function getGenderAttribute()
{
return $this->gender_id == 1 ? 'L' : 'P';
return $this->gender_id == 1 ? trans('app.male_code') : trans('app.female_code');
}
public function setFather(User $father)

2
resources/lang/en/app.php

@ -7,6 +7,8 @@ return [
'unknown' => 'Unknown',
'male' => 'Male',
'female' => 'Female',
'male_code' => 'M',
'female_code' => 'F',
'family_chart' => 'Family Chart',
'family_tree' => 'Family Tree',
'child_count' => 'Child Count',

2
resources/lang/id/app.php

@ -7,6 +7,8 @@ return [
'unknown' => 'Tidak diketahui',
'male' => 'Laki-laki',
'female' => 'Perempuan',
'male_code' => 'L',
'female_code' => 'P',
'family_chart' => 'Bagan Keluarga',
'family_tree' => 'Pohon Keluarga',
'child_count' => 'Jumlah Anak',

Loading…
Cancel
Save