News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[SMF 2.1 RC2] default language

Started by Owdy, June 01, 2019, 06:01:34 PM

Previous topic - Next topic

Owdy

I have installed english and finnish. In language settings, dropdown "default language" shows english and english.

index.php?action=admin;area=languages;sa=settings
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

m4z

If the finnish translation isn't finished, specifically if the "native name" of the language isn't translated yet, the dropdown will still show "English". You can see the actual language in the URL bar directly after the switch (and some parts of the forum might be translated already).
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

Owdy

Translation works, that dropdown just shows 2 english. I dont know about native name, maybe its untraslated then.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

m4z

Ah, that might be true as well; I'll try to poke someone who can change that. Once it's fixed, I'll talk you through the update, because it's... not optimal.
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

Owdy

Yep, thats it

$txt['native_name'] = 'English';
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Sesquipedalian

I suppose we could add a hack to fall back to the language file name if the value of $txt['native_name'] is 'English' when the language is not actually English. Then the dropdown would at least say "Finnish" until someone gets around to changing $txt['native_name'] = 'English'; to $txt['native_name'] = 'suomi'; (or whatever it should be) in index.finnish.php.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

m4z

"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Owdy

Translated.


// Native name, please use full HTML entities to write your language's name.
$txt['native_name'] = 'Suomi';
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

shawnb61

This fix has been merged:
https://github.com/SimpleMachines/SMF2.1/pull/5700

.. and is available for download in the latest version over on GitHub.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Advertisement: