Adding your own language

Top  Previous  Next

To add your own language you have to create new language file in fpp/lang.

To do that just copy the previous en.lang.php file and rename to ##.lang.php , where ##- two letter country code, e.g. French- fr.lang.php.

After that you have to translate right part of php file to the language selected.

Syntax:

$l ['var_name'] = 'string'

Example:

$l ['file_permissions'] = 'File Permissions';

should be in French:

$l ['file_permissions'] = 'File Permis';

 

 

Note:
You have to leave %s signs and escape special characters (e.g. ' to \' and \ to \\) for the proper work of FPP5.

 

Example:        

Don't=don\'t

configure the "MySQL" server=configure the \"MySQL\" server

Change language value in the config file:

language= fr