Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First start of the blog presents itself only in english language #216

Closed
Fraenkiman opened this issue Mar 2, 2023 · 0 comments · Fixed by #198
Closed

First start of the blog presents itself only in english language #216

Fraenkiman opened this issue Mar 2, 2023 · 0 comments · Fixed by #198

Comments

@Fraenkiman
Copy link
Collaborator

Hello all,

the FlatPress blog presents itself in English after going through the setup, although the language of the setup could be another.

See

With best regards
Frank

Fraenkiman added a commit to Fraenkiman/flatpress that referenced this issue Apr 18, 2023
…r agent

Fixes flatpressblog#216
Fixes flatpressblog#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 flatpressblog#239
azett added a commit that referenced this issue Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant