Changed language display on client to Indonesia/Indonesian
This commit is contained in:
@@ -183,7 +183,7 @@ class Posts
|
||||
|
||||
foreach ($args as $value) {
|
||||
if ($value == '') {
|
||||
Session::flash('info', 'All data must not be empty');
|
||||
Session::flash('info', 'Semua data harus diisi.');
|
||||
if ($this->table == 'pengumuman') {
|
||||
Redirect::to('/posts/entry');
|
||||
} elseif ($this->table == 'kategori') {
|
||||
@@ -194,7 +194,7 @@ class Posts
|
||||
}
|
||||
|
||||
if ($this->post->entry($this->table, $args)) {
|
||||
Session::flash('info', 'Data successfuly uploaded');
|
||||
Session::flash('info', 'Data berhasil diunggah.');
|
||||
|
||||
if ($this->table == 'kategori') {
|
||||
Redirect::to('/posts/category');
|
||||
@@ -229,7 +229,7 @@ class Posts
|
||||
];
|
||||
|
||||
if ($old_data == $new_data) {
|
||||
Session::flash('info', 'Data must not be same');
|
||||
Session::flash('info', 'Tidak ada data yang diubah.');
|
||||
Redirect::to("./$id");
|
||||
die();
|
||||
}
|
||||
@@ -242,10 +242,10 @@ class Posts
|
||||
}
|
||||
|
||||
if ($this->post->update($this->table, $args, $id)) {
|
||||
Session::flash('info', 'Data successfuly updated');
|
||||
Session::flash('info', 'Data berhasil diperbarui.');
|
||||
Redirect::to('/');
|
||||
} else {
|
||||
Session::flash('info', 'Data cannot be uploaded');
|
||||
Session::flash('info', 'Terjadi kesalahan. Silahkan coba lagi dalam beberapa saat.');
|
||||
Redirect::to("./$id");
|
||||
}
|
||||
}
|
||||
@@ -260,7 +260,7 @@ class Posts
|
||||
$id = $args['id'];
|
||||
|
||||
if ($this->post->delete($this->table, $id)) {
|
||||
Session::flash('info', 'Data successfuly removed');
|
||||
Session::flash('info', 'Data berhasil di nonaktifkan');
|
||||
|
||||
if ($this->table = 'kategori') {
|
||||
Redirect::to('/posts/category');
|
||||
|
||||
Reference in New Issue
Block a user