5 Commits

Author SHA1 Message Date
Fraenkiman
b5e4e47957 Update browserlang.php
- added french language file
2023-10-15 23:35:51 +02:00
Fraenkiman
cdb2566357 Language files customized for setup
- Spanish language file created for the setup
- FlatPress title in setup now multilingual
2023-10-09 01:17:27 +02:00
Fraenkiman
c8dc647928 Supplement to Commit 164fab4
The automatic detection of the language only works if the language file is also available for the setup. Andernfalls wird das Setup nicht gestartet.
2023-10-02 04:04:14 +02:00
arvid
164fab4c65 Added Slovenian translation by Sergio
(https://github.com/developersorli) - najlepša hvala! :)
2023-10-01 13:00:58 +02:00
Fraenkiman
73153cffed The setup, blog and admin area is automatically determined by the user agent
Fixes #216
Fixes #197

The exchange between browser and server transmits information about the client and its capabilities in headers - user agent, what it accepts, and (what interests us) language. The browser sends the language information in a header.
These values indicate that the browser accepts, for example, US English (en-us) or German (de-de).
We make use of this. The setup of FlatPress now starts automatically in the language of the user. The determined language will also be used as default language for the FlatPressblog and the administration area until the user defines a language himself.

For the setup the language files 'el-gr','es-es','fr-fr' are still missing.
Therefore I limited the automatic determination of the language to 'cs-cz', 'de-de', 'en-us', 'it-it', 'ja-jp', 'nl-nl', 'pt-br'. See #239
2023-04-18 23:27:40 +02:00