mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-11-04 08:42:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			544 B
		
	
	
	
		
			Markdown
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			544 B
		
	
	
	
		
			Markdown
		
	
	
		
			Executable File
		
	
	
	
	
To use an existing locale:
 | 
						|
- Open `inc/settings.php` with a text editor
 | 
						|
- Find the `lang` option and set it to the locale you want to use.
 | 
						|
Example: `$this->lang = 'es_ES.utf8';`
 | 
						|
 | 
						|
-----
 | 
						|
 | 
						|
To create a new locale (example being "es_ES"):
 | 
						|
- Copy lang/en_US.utf8.php to a new file (e.g. `lang/es_ES.utf8.php`)
 | 
						|
- Edit the new file, change "class en_US" to "class es_ES" so it looks like this:
 | 
						|
 | 
						|
```
 | 
						|
<?php
 | 
						|
class es_ES {
 | 
						|
    public function __construct() {
 | 
						|
       ...
 | 
						|
    }
 | 
						|
}
 | 
						|
```
 | 
						|
- Translate all array assignments, e.g. `$array["title.bans"] = 'Baneos';` |