-
-
Notifications
You must be signed in to change notification settings - Fork 101
How to create or edit a Language file
Lucas Kovács edited this page Apr 27, 2023
·
3 revisions
To create or edit a language file you must follow certain steps
- Navigate through your project to find the directory application/languages
- Then determine the specific language folder wether it could be Spanish, English or any other language.
- In that directory you can create a new language file or edit one of the provided. To create a new language file set its name with the following format {name_that_you_want}_lang.php Ex.: overview_lang.php Language files must always follow this format
<?php
$lang = [
// a comment
'language_line' => 'This is a language line',
'two_dimensional_langs' => [
'line_one' => 'Line one',
'line_two' => 'Second line',
],
];
Always start your files with <?php and end them with an empty line
This document is valid as of: 30 October 2019
Valid as of: v3.1.0 Beta 3
Last update: 27 April 2023