diff --git a/App/Controllers/Home.php b/App/Controllers/Home.php index 493d663..2f833ef 100644 --- a/App/Controllers/Home.php +++ b/App/Controllers/Home.php @@ -29,7 +29,7 @@ class Home public function login() { if (Session::exists('userid')) { - Session::flash('info', 'You already logged in'); + Session::flash('info', 'Anda telah masuk.'); Redirect::to('/'); } else { View::render('Access/login.html', [ @@ -40,14 +40,14 @@ class Home public function logout() { if ($this->delete() != true) { - $info = "There's an error. Please try again."; + $info = "Terjadi kesalahan. Silahkan coba lagi dalam beberapa saat."; } else { Session::delete('userid'); Session::delete('username'); Session::delete('full_name'); Session::delete('privilage'); - $info = "Logged out success"; + $info = "Berhasil keluar."; } Session::flash('info', $info); Redirect::to('/'); @@ -69,7 +69,7 @@ class Home { foreach ($args as $value) { if ($value == '') { - Session::flash('info', 'All data must not be empty'); + Session::flash('info', 'Semua data harus diisi.'); Redirect::to('/'); die(); } @@ -92,7 +92,7 @@ class Home $data = $this->access->showAll($table); foreach ($data as $users) { if ($args['username'] == $users['username']) { - Session::flash('info', 'Username already exists'); + Session::flash('info', 'Username telah digunakan. Silahkan gunakan username lain.'); Redirect::to('./register'); die(); } @@ -113,16 +113,16 @@ class Home ['username', '=', $username] ]); if ($user == false) { - $info = "Invalid username/password"; + $info = "Username/password salah."; } else { $hash = Hash::compare($password, $user['salt'], $user['password']); if ($hash == true) { if ($user['max_user'] <= 0) { - $info = "Max user reached!"; + $info = "Telah mencapai maksimal user yang diizinkan. Silahkan logout pada perangkat lain terlebih dahulu."; } else { if ($this->access->update($table, ['status' => 1], $user['id']) != true) { - $info = "There's an error. Please try again."; + $info = "Terjadi kesalahan. Silahkan coba lagi dalam beberapa saat."; } else { $max_user = $user['max_user'] - 1; if ($this->access->update($table, ['max_user' => $max_user], $user['id']) == true) { @@ -131,7 +131,7 @@ class Home Session::put('full_name', $user['full_name']); Session::put('privilage', $user['privilage']); - $info = "Logged in success"; + $info = "Berhasil masuk"; } } } diff --git a/App/Controllers/Posts.php b/App/Controllers/Posts.php index aa8c20c..06aba1c 100644 --- a/App/Controllers/Posts.php +++ b/App/Controllers/Posts.php @@ -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'); diff --git a/App/Views/Access/login.html b/App/Views/Access/login.html index ba838f0..81954a8 100644 --- a/App/Views/Access/login.html +++ b/App/Views/Access/login.html @@ -1,18 +1,18 @@ {% extends "base.html" %} -{% block title %}Login{% endblock %} +{% block title %}Masuk{% endblock %} {% block body %}

Login

- +
- + @@ -20,6 +20,6 @@
- +
{% endblock %} diff --git a/App/Views/Access/registrasi.html b/App/Views/Access/registrasi.html index ffbd7be..18f9e53 100644 --- a/App/Views/Access/registrasi.html +++ b/App/Views/Access/registrasi.html @@ -7,17 +7,17 @@

Registrasi

- +
- +
- + diff --git a/App/Views/Data/edit_pengumuman.html b/App/Views/Data/edit_pengumuman.html index 4983b7e..fa7a93a 100644 --- a/App/Views/Data/edit_pengumuman.html +++ b/App/Views/Data/edit_pengumuman.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% block title %}Edit Pengumuman{% endblock %} +{% block title %}Ubah Pengumuman{% endblock %} {% block body %}
@@ -57,7 +57,7 @@ {% if post.edited_at is empty %} - Tidak pernah + - {% else %} {{ post.edited_at }} {% endif %} @@ -105,7 +105,7 @@ disabled {% endif %} > - Edit + Ubah @@ -119,7 +119,7 @@ - + {% endif %} {% endblock %} diff --git a/App/Views/Data/entry_pengumuman.html b/App/Views/Data/entry_pengumuman.html index b2545e6..0ba3238 100644 --- a/App/Views/Data/entry_pengumuman.html +++ b/App/Views/Data/entry_pengumuman.html @@ -15,17 +15,17 @@
- +
- +
- + @@ -41,6 +41,6 @@
- + {% endblock %} diff --git a/App/Views/Data/kategori.html b/App/Views/Data/kategori.html index af1c548..70719c8 100644 --- a/App/Views/Data/kategori.html +++ b/App/Views/Data/kategori.html @@ -13,14 +13,14 @@ - +
{% endfor %}
- + @@ -29,7 +29,7 @@ - +
diff --git a/App/Views/Data/pengumuman.html b/App/Views/Data/pengumuman.html index 9e1ca5a..4b05bb2 100644 --- a/App/Views/Data/pengumuman.html +++ b/App/Views/Data/pengumuman.html @@ -29,6 +29,6 @@ {% if status %} + Tambah Pengumuman + Tambah Kategori - Logout + Keluar {% endif %} {% endblock %} diff --git a/App/Views/Errors/404.html b/App/Views/Errors/404.html index 6548b14..5247000 100644 --- a/App/Views/Errors/404.html +++ b/App/Views/Errors/404.html @@ -1,11 +1,10 @@ {% extends "base.html" %} -{% block title %}Sorry :-({% endblock %} +{% block title %}Maaf, terjadi kesalahan :'({% endblock %} {% block body %} -

URL not found - Error 404

-Cannot specify the requested URL. Checking typo ...
-Sshh! No typos. +

404 - Halaman tidak ditemukan

+Tidak dapat menemukan halaman yang anda cari.
{% endblock %} diff --git a/App/Views/Errors/498.html b/App/Views/Errors/498.html index e45c2df..132e956 100644 --- a/App/Views/Errors/498.html +++ b/App/Views/Errors/498.html @@ -1,10 +1,10 @@ {% extends "base.html" %} -{% block title %}Sorry :-({% endblock %} +{% block title %}Maaf, terjadi kesalahan :'({% endblock %} {% block body %} -

Invalid Token

-Your token is no longer valid. Please try again.
+

498 - Token tidak berlaku

+Token anda sudah tidak berlaku. Silahkan coba lagi.
{% endblock %} diff --git a/App/Views/Errors/500.html b/App/Views/Errors/500.html index d6b8e6e..ab81ad8 100644 --- a/App/Views/Errors/500.html +++ b/App/Views/Errors/500.html @@ -1,10 +1,10 @@ {% extends "base.html" %} -{% block title %}Sorry :-({% endblock %} +{% block title %}Maaf, terjadi kesalahan :'({% endblock %} {% block body %} -

Aw, crap!

-We couldn't get what you want. Please come back home. +

500 - Kesalahan Server

+Terjadi masalah pada server. Silahkan coba dalam beberapa saat, atau hubungi admin. {% endblock %}