diff --git a/.gitignore b/.gitignore index 3af0ccb..129e907 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /data +/src/web/lang/en_CAT diff --git a/src/web/_controller/modal.php b/src/web/_controller/modal.php index 03074d4..40a2b42 100644 --- a/src/web/_controller/modal.php +++ b/src/web/_controller/modal.php @@ -11,7 +11,7 @@ class Modal_controller extends Controller { * @param array $data */ private function modal($name, $data = array()): void { - $title = lang($name . '_modal_title'); + $title = ucwords(lang($name . '_modal_title')); $data['title'] = $title; $data['content'] = $name; $this->view('template/modal', $data); diff --git a/src/web/_model/apps/auth.php b/src/web/_model/apps/auth.php index 8a359d5..c528601 100644 --- a/src/web/_model/apps/auth.php +++ b/src/web/_model/apps/auth.php @@ -7,7 +7,7 @@ class Auth_model extends Model { public function get_data(): ?array { $data = parent::get_data(); - $data['title'] = lang('login'); + $data['title'] = ucfirst(lang('login')); return $data; } } diff --git a/src/web/_model/apps/error.php b/src/web/_model/apps/error.php index 4118c62..0a08fdd 100644 --- a/src/web/_model/apps/error.php +++ b/src/web/_model/apps/error.php @@ -8,15 +8,15 @@ class Error_model extends Model { private function get_msg(&$data) { if (!array_key_exists('code', $_GET)) { http_response_code(500); - $data['msg'] = lang('error'); + $data['msg'] = ucfirst(lang('error')); $data['title'] = '500'; } else { $code = $_GET['code']; http_response_code($code); $data['title'] = $code; - $msg = lang('error_' . $code, FALSE); + $msg = ucfirst(lang('error_' . $code, FALSE)); if (!$msg) { - $msg = lang('error'); + $msg = ucfirst(lang('error')); } $data['msg'] = $msg; } diff --git a/src/web/_model/apps/home.php b/src/web/_model/apps/home.php index caa254f..3ca7fb4 100644 --- a/src/web/_model/apps/home.php +++ b/src/web/_model/apps/home.php @@ -15,7 +15,7 @@ class Home_model extends Model { public function get_data(): ?array { $data = parent::get_data(); - $data['title'] = lang('title'); + $data['title'] = ucfirst(lang('title')); $data['posts'] = $this->get_posts(); return $data; } diff --git a/src/web/_model/apps/people.php b/src/web/_model/apps/people.php index 4287094..4125dad 100644 --- a/src/web/_model/apps/people.php +++ b/src/web/_model/apps/people.php @@ -84,7 +84,7 @@ class People_model extends Model { public function get_data(): ?array { $data = parent::get_data(); - $data['title'] = lang('title'); + $data['title'] = ucfirst(lang('title')); return $data; } } diff --git a/src/web/_model/apps/profile.php b/src/web/_model/apps/profile.php index 97b0150..16765d9 100644 --- a/src/web/_model/apps/profile.php +++ b/src/web/_model/apps/profile.php @@ -59,7 +59,7 @@ class Profile_model extends Model { $data['following'] = $following; $data['followed'] = $followed; $data['follow_id'] = $follow_id; - $data['title'] = lang('title', sub: [$user['first_name']]); + $data['title'] = ucfirst(lang('title', sub: [$user['first_name']])); return $data; } } diff --git a/src/web/_views/apps/auth/login.php b/src/web/_views/apps/auth/login.php index 2ba0896..c12af57 100644 --- a/src/web/_views/apps/auth/login.php +++ b/src/web/_views/apps/auth/login.php @@ -3,7 +3,7 @@

xssbook

- +
@@ -13,9 +13,10 @@ name="username" id="login-username" placeholder=" " + autofocus="true" >
@@ -26,7 +27,7 @@ placeholder=" " >

- +
diff --git a/src/web/_views/apps/home/main.php b/src/web/_views/apps/home/main.php index 60c3eb9..6112173 100644 --- a/src/web/_views/apps/home/main.php +++ b/src/web/_views/apps/home/main.php @@ -9,9 +9,9 @@ id="action-new-post" class="btn btn-alt btn-wide ml" autocomplete="off" - aria-label="" + aria-label="" > - +