Translation / Localization
InvoicePlane comes with the English language by default. To contribute to or to download other language packs please visit the translation repository.
Install a new translation
- Download the translation pack from the translation repository
- Open the folder of the language you want to install (
de
= German) - Copy the folder that should be called something like
de_DE
,fr_FR
ores_AR
- Paste the folder to the following directory of your InvoicePlane installation:
/application/language/
- Apply the language in your general settings.
Your folder structure should look like this:
├── application/ │ ├── ... │ ├── language/ │ │ ├── english/ │ │ └── Deutsch/ │ │ ├── custom_lang.php │ │ ├── ip_lang.php │ │ ├── merchant_lang.php │ │ └── ... │ └── ... ├── assets/ └── ...
Customize translations
You are able to replace all language strings in the application with your own strings. We added a file called custom_lang.php
which is located in every language folder (see above).
To replace or alter a translation, search for the string in the main language files (ip_lang.php). You have to copy the whole line with the string into the custom_lang.php
file that it looks like this:
<?php
/**
* CUSTOM LANGUAGE STRINGS
*
* Add .....
*/
$lang = array(
'language_string_key' => 'Actual content of the Language String',
);
Now, simply change the translation to whatever you need. But keep in mind that some strings are designed to fit into special spaces. Try to keep the character count or the original string.
'
character in your string you have to replace it with \'
.Example:
'language_string_key' => 'Description with \'quotes\'',