For issues related to the current stable release please use it's own Help forum.
IMPORTANT:Please read this before using an git or nightly build version: wiki.webtrees.net/en/GIT

Before asking for help please read "How to request help" by clicking on that tab above here.

TOPIC: [SOLVED] Or about default languages

Or about default languages 5 months 3 weeks ago #1

  • nuxiong
  • nuxiong's Avatar
  • Offline
  • Junior
  • Posts: 102
Good morning, everyone. There's a question that's been confusing. My background genealogy is not English, but the website shows English when the front-end user is not logged in. Even though I don't choose English enough in the control panel, the front-end website user is not logged in or shows English.
I saw a default language post in the forum, the program temporarily remembered the session set by the browser, but my browser did not set up English ah, I would like to ask how to modify to allow users to display my language without login.
Thank you.
The administrator has disabled public write access.

Or about default languages 5 months 3 weeks ago #2

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 48
请提供您的网站地址,我测试一下。
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.

Or about default languages 5 months 3 weeks ago #3

  • nuxiong
  • nuxiong's Avatar
  • Offline
  • Junior
  • Posts: 102
sibtree.com
Last Edit: 5 months 3 weeks ago by nuxiong.
The administrator has disabled public write access.

Or about default languages 5 months 3 weeks ago #4

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1640
The language webtrees uses for visitors is primarily dictated by the browser of the visitor. In your browser you can set up a set of preferred languages. Each browser has different instructions how to do that.
You could write a HTML block on your front page describing the process for the most popular browsers.

Some links:
www.digitaltrends.com/web/how-to-change-...ge-in-google-chrome/
www.lifewire.com/change-default-language...illa-firefox-4103602
www.lifewire.com/change-default-languages-in-ie11-4103671
stamboom.BertKoor.nl runs on webtrees v1.7.13
The administrator has disabled public write access.

Or about default languages 5 months 3 weeks ago #5

  • nuxiong
  • nuxiong's Avatar
  • Offline
  • Junior
  • Posts: 102
Most mobile browsers do not have default language settings. The most commonly used UC browsers, QQ browsers and Huawei browsers in China do not use default language settings, that is, Chinese users visit websites in English.

Is there any way to set it manually? Thank you.
The administrator has disabled public write access.

Or about default languages 5 months 3 weeks ago #6

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11357
Mobile browsers use the language settings of the device.

Visit: Control panel -> Server information

Find: $_SERVER('HTTP_ACCEPT_LANGUGAGE')

What value do you have?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Or about default languages 5 months 3 weeks ago #7

  • nuxiong
  • nuxiong's Avatar
  • Offline
  • Junior
  • Posts: 102
$ _ SERVER [ 'HTTP_ACCEPT_LANGUAGE'] ZH-CN,ZH; Q = 0.9
But I use UC browser in China, QQ browser to visit the website, all in English.
Last Edit: 5 months 3 weeks ago by nuxiong.
The administrator has disabled public write access.

Or about default languages 5 months 3 weeks ago #8

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11357
Your browser is requesting the language zh-CN
webtrees has the language zh-Hans

This has been fixed in the latest code.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

[SOLVED] Or about default languages 5 months 3 weeks ago #9

  • nuxiong
  • nuxiong's Avatar
  • Offline
  • Junior
  • Posts: 102
Problem solved.
The administrator has disabled public write access.

Or about default languages 4 months 2 weeks ago #10

  • nuxiong
  • nuxiong's Avatar
  • Offline
  • Junior
  • Posts: 102
wt bate1,The test is the default English, and my browser language in China is Chinese.
My phpinfo :$ _ SERVER [ 'HTTP_ACCEPT_LANGUAGE'] ZH-CN,ZH; Q = 0.9
Last Edit: 4 months 2 weeks ago by nuxiong.
The administrator has disabled public write access.

Or about default languages 4 months 2 weeks ago #11

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 48
You can use the custom module (middleware) to determine if SERVER [ 'HTTP_ACCEPT_LANGUAGE'] contains zh-CN and include the language as Chinese.
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.
Powered by Kunena Forum