1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Minor fixes

This commit is contained in:
Hillel Coren 2019-12-03 11:28:19 +02:00
parent 6bbcad249d
commit 8aa90e1bb7

View File

@ -18,27 +18,6 @@ We use Gulp to concatenate the JavasScript and CSS files. You can download the s
Most of the system tables are cached (ie, currencies, languages, etc). If you make any changes you need to run ``php artisan db:seed --class=UpdateSeeder`` and then load any page with ?clear_cache=true added at the end of the URL.
Custom Localization
"""""""""""""""""""
Invoice Ninja has many translations built-in. Many of them are contributed by users via `Transifex <https://www.transifex.com/invoice-ninja/invoice-ninja/>`_. But not every translation can be sent upstream.
It is possible to selectively override text strings as required. Any text that is not overridden is taken from the default locale file.
By default the locale override folder ``storage/lang`` does not exist. You have to create it when you want to use this feature. The layout of this folder is the same as the main translation folder, which is located at ``resources/lang``.
**Example**
To override the string *Organization* from the English translation you need to override the locale file ``texts.php``.
Create both ``lang`` and ``lang/en`` folders inside of your installations storage folder, then create the file ``texts.php`` in that last folder with the following contents;
.. code-block:: php
<?php
return $LANG = [
'organization' => 'Company',
];
Database
""""""""