News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

multilingual problem?

Started by webtiryaki, January 20, 2024, 04:15:05 AM

Previous topic - Next topic

webtiryaki

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.

You cannot view this attachment.

Arantor

Are you using the Turkish language pack? There should be an entry early on in index.turkish.php for this.
Holder of controversial views, all of which my own.


webtiryaki

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.

Arantor

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.
Holder of controversial views, all of which my own.


Advertisement: