Make the texts of the server translatable, with a Dutch file
This commit is contained in:
1 parent
56de8ee76a
commit
a34965d4b7
18 files changed
+198
-27
No files matched your search
@@ -53,6 +53,10 @@ Switch a part in `config/manager.php` (`modules`) or with `MANAGER_PAGES`, `MANA
|
||||
its migrations are not loaded at all. A module that needs another one (`requires()`) fails at boot when
|
||||
that one is off.
|
||||
|
||||
## Language
|
||||
|
||||
The texts the server makes (menu, permission and section labels, theme names, audit summaries and the messages of the JSON routes) go through Laravel's `__()` with the English text as the key. The package ships `resources/lang/nl.json`; the screens follow `app()->getLocale()`. A site translates more, or words things differently, with its own `lang/<locale>.json`: that file wins over the package. Audit lines are written in the language of the request that made them.
|
||||
|
||||
## A site with data and names of its own
|
||||
|
||||
The package never maps its queries onto other tables: every screen assumes its own columns. What it does give you is room to coexist and a way to move data in.
|
||||
|
||||
Reference in new issue
Block a user