Advertisement:

Author Topic: [SMF 2.1 RC2] default language  (Read 615 times)

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,608
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
[SMF 2.1 RC2] default language
« on: June 01, 2019, 06:01:34 PM »
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

Offline m4z

  • Jr. Member
  • **
  • Posts: 135
Re: [SMF 2.1 RC2] default language
« Reply #1 on: June 01, 2019, 06:09:54 PM »
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

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,608
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: [SMF 2.1 RC2] default language
« Reply #2 on: June 01, 2019, 06:23:53 PM »
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

Offline m4z

  • Jr. Member
  • **
  • Posts: 135
Re: [SMF 2.1 RC2] default language
« Reply #3 on: June 01, 2019, 06:45:28 PM »
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

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,608
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: [SMF 2.1 RC2] default language
« Reply #4 on: June 02, 2019, 03:13:20 PM »
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

Offline Sesquipedalian

  • The Mad Doctor
  • Lead Developer
  • Sr. Member
  • *
  • Posts: 872
  • Gender: Male
  • It works! ... in theory.
    • Sesquipedalian on GitHub
Re: [SMF 2.1 RC2] default language
« Reply #5 on: June 02, 2019, 10:16:47 PM »
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.

Offline m4z

  • Jr. Member
  • **
  • Posts: 135
Re: [SMF 2.1 RC2] default language
« Reply #6 on: June 03, 2019, 01:42:32 AM »
Sounds reasonable.
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,608
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: [SMF 2.1 RC2] default language
« Reply #7 on: June 03, 2019, 01:45:11 AM »
$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

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,608
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: [SMF 2.1 RC2] default language
« Reply #8 on: June 04, 2019, 07:07:02 AM »
Translated.

Code: [Select]
// 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