Changed language display on client to Indonesia/Indonesian
This commit is contained in:
parent
7edda5c225
commit
29cfda5ba0
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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');
|
||||
|
@ -1,18 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Login{% endblock %}
|
||||
{% block title %}Masuk{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<form method="post">
|
||||
<h2>Login</h2>
|
||||
|
||||
<label for="username">Username: </label>
|
||||
<input type="text" name="username" value="" placeholder="Type your username" maxlength="25" autocomplete="off">
|
||||
<input type="text" name="username" value="" placeholder="Tulis username" maxlength="25" autocomplete="off">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="password">Password: </label>
|
||||
<input type="password" name="password" value="" placeholder="Type your password">
|
||||
<input type="password" name="password" value="" placeholder="Tulis password">
|
||||
|
||||
<input type="hidden" name="_method" value="put">
|
||||
|
||||
@ -20,6 +20,6 @@
|
||||
|
||||
<br>
|
||||
|
||||
<button type="submit">Login</button>
|
||||
<button type="submit">Masuk</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
@ -7,17 +7,17 @@
|
||||
<h2>Registrasi</h2>
|
||||
|
||||
<label for="full_name">Nama Lengkap: </label>
|
||||
<input type="text" name="full_name" value="" placeholder="Type your name" maxlength="50" autocomplete="off">
|
||||
<input type="text" name="full_name" value="" placeholder="Tulis nama anda" maxlength="50" autocomplete="off">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="username">Username: </label>
|
||||
<input type="text" name="username" value="" placeholder="Type your username" maxlength="25" autocomplete="off">
|
||||
<input type="text" name="username" value="" placeholder="Tulis username" maxlength="25" autocomplete="off">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="password">Password: </label>
|
||||
<input type="password" name="password" value="" placeholder="Type your password">
|
||||
<input type="password" name="password" value="" placeholder="Tulis password">
|
||||
|
||||
<input type="hidden" name="_method" value="post">
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Edit Pengumuman{% endblock %}
|
||||
{% block title %}Ubah Pengumuman{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<form method="post">
|
||||
@ -57,7 +57,7 @@
|
||||
<label>Diubah pada: </label>
|
||||
<span>
|
||||
{% if post.edited_at is empty %}
|
||||
Tidak pernah
|
||||
-
|
||||
{% else %}
|
||||
{{ post.edited_at }}
|
||||
{% endif %}
|
||||
@ -105,7 +105,7 @@
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
Edit
|
||||
Ubah
|
||||
</button>
|
||||
</form>
|
||||
|
||||
@ -119,7 +119,7 @@
|
||||
<!-- Token -->
|
||||
<input type="hidden" name="_token" value="{{ token }}">
|
||||
|
||||
<button type="submit">Nonaktif</button>
|
||||
<button type="submit">Nonaktifkan</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
@ -15,17 +15,17 @@
|
||||
|
||||
<br>
|
||||
|
||||
<label for="expired_at">Berlaku dari</label>
|
||||
<label for="expired_at">Berlaku dari: </label>
|
||||
<input type="date" name="valid_at" value="{{ timestamp }}">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="expired_at">Berlaku sampai</label>
|
||||
<label for="expired_at">Berlaku sampai: </label>
|
||||
<input type="date" name="expired_at" value="{{ timestamp }}">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="content">Konten</label>
|
||||
<label for="content">Konten: </label>
|
||||
<textarea name="content" rows="3" cols="30" maxlength="255"></textarea>
|
||||
|
||||
<input type="hidden" name="creator" value="{{ user }}">
|
||||
@ -41,6 +41,6 @@
|
||||
|
||||
<br>
|
||||
|
||||
<button type="submit">Entry</button>
|
||||
<button type="submit">Unggah</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
@ -13,14 +13,14 @@
|
||||
<input type="hidden" name="_addon" value="kategori">
|
||||
<input type="hidden" name="_token" value="{{ token }}">
|
||||
|
||||
<button type="submit">Remove</button>
|
||||
<button type="submit">Nonaktifkan</button>
|
||||
</form>
|
||||
</li><br>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<form method="post">
|
||||
<label for="category">Tambah</label>
|
||||
<label for="category">Nama Kategori: </label>
|
||||
<input type="text" name="category" value="" placeholder="Kategori">
|
||||
|
||||
<input type="hidden" name="_method" value="post">
|
||||
@ -29,7 +29,7 @@
|
||||
|
||||
<input type="hidden" name="_token" value="{{ token }}">
|
||||
|
||||
<button type="submit">Entry</button>
|
||||
<button type="submit">Tambah</button>
|
||||
</form>
|
||||
|
||||
</form>
|
||||
|
@ -29,6 +29,6 @@
|
||||
{% if status %}
|
||||
<a href="/posts/entry">+ Tambah Pengumuman</a>
|
||||
<a href="/posts/category">+ Tambah Kategori</a>
|
||||
<a href="/logout">Logout</a>
|
||||
<a href="/logout">Keluar</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
@ -1,11 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Sorry :-({% endblock %}
|
||||
{% block title %}Maaf, terjadi kesalahan :'({% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<h2>URL not found - Error 404</h2>
|
||||
Cannot specify the requested URL. Checking typo ...<br>
|
||||
<span style="font-size: small;">Sshh! No typos.</span>
|
||||
<h2>404 - Halaman tidak ditemukan</h2>
|
||||
Tidak dapat menemukan halaman yang anda cari.<br>
|
||||
|
||||
{% endblock %}
|
||||
|
@ -1,10 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Sorry :-({% endblock %}
|
||||
{% block title %}Maaf, terjadi kesalahan :'({% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<h2>Invalid Token</h2>
|
||||
Your token is no longer valid. Please try again.<br>
|
||||
<h2>498 - Token tidak berlaku</h2>
|
||||
Token anda sudah tidak berlaku. Silahkan coba lagi.<br>
|
||||
|
||||
{% endblock %}
|
||||
|
@ -1,10 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Sorry :-({% endblock %}
|
||||
{% block title %}Maaf, terjadi kesalahan :'({% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<h2>Aw, crap!</h2>
|
||||
We couldn't get what you want. Please come back home.
|
||||
<h2>500 - Kesalahan Server</h2>
|
||||
Terjadi masalah pada server. Silahkan coba dalam beberapa saat, atau hubungi admin.
|
||||
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user