Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: webtiryaki on January 20, 2024, 04:15:05 AM

Title: multilingual problem?
Post by: webtiryaki on January 20, 2024, 04:15:05 AM
Hello, why does Smf give a warning when using multiple languages?
website: https://f1wm.net/index.php

Warning: This document appears to be written in Turkish but the html start tag has lang="en-US". Consider using lang="tr" (or variant) instead.

Warnung.jpg
Title: Re: multilingual problem?
Post by: Arantor on January 20, 2024, 05:45:46 AM
Are you using the Turkish language pack? There should be an entry early on in index.turkish.php for this.
Title: Re: multilingual problem?
Post by: webtiryaki on January 20, 2024, 07:47:09 AM
Quote from: Arantor on January 20, 2024, 05:45:46 AMAre you using the Turkish language pack? There should be an entry early on in index.turkish.php for this.
@Arantor I use German, Turkish, English. The problem is that it does not give warnings in languages other than English.
Title: Re: multilingual problem?
Post by: Arantor on January 20, 2024, 11:18:02 AM
So, exactly as I said, you need to look at the language pack you're using.

$txt['lang_locale'] defines what gets used for that lang= entry. Check your language files have this defined. And if you're using the validator when the site's using the English language pack you'll get the English lang_locale entry (as you have there)...

I'm not sure what you hope for SMF to do - switch language and you get the right code.