Red-Dashboard icon indicating copy to clipboard operation
Red-Dashboard copied to clipboard

Unknown locale 'no_NO'

Open GameHackerTV opened this issue 3 years ago • 10 comments
trafficstars

What part of dashboard are you having an issue with?

  • [ ] Documentation
  • [x] Dashboard webserver
  • [ ] Dashboard cog

What happened?

i can't start the webserver.

What did you expect to happen?

I installed (probably) everything correctly, but the webserver gave an error. IMG_20220515_104504

What can we do to reproduce this?

I just installed everything according to the docks.

What is your bot/webserver running on?

  • Operating system: Ubuntu/Linux
  • Python version: 3.8
  • Dashboard webserver version: 0.1.8a
  • Dashboard cog version: Irrelevant (latest on 18.05.22)

What are you having issues on?

  • Operating system: Irrelevant
  • Browser: Irrelevant

GameHackerTV avatar May 18 '22 15:05 GameHackerTV

Did you mean nb_NO?

Drapersniper avatar May 18 '22 16:05 Drapersniper

Did you mean nb_NO?

please check the screenshot IMG_20220515_104504

GameHackerTV avatar May 18 '22 17:05 GameHackerTV

no_NO doesn't exist due to multiple locales and dialects existing within the country. The proper locale code is nb_NO.

Kowlin avatar May 18 '22 17:05 Kowlin

where can i change it?

GameHackerTV avatar May 18 '22 17:05 GameHackerTV

Not sure but looks like you gotta change it from here https://github.com/Cog-Creators/Red-Dashboard/blob/05dedd3e54a036da66ce7bdd4b1284ccacc9fa68/reddash/app/base/templates/site_template/scripts-sidebar.html#L26

And prolly here too https://github.com/Cog-Creators/Red-Dashboard/blob/05dedd3e54a036da66ce7bdd4b1284ccacc9fa68/reddash/app/constants.py#L52

And this https://github.com/Cog-Creators/Red-Dashboard/blob/2d6135a6229a567e0f0bb13e5c88c2128e891821/reddash/app/translations/no_NO/LC_MESSAGES/messages.po#L19

japandotorg avatar May 18 '22 21:05 japandotorg

Everything was as it was, by default. I didn't change anything. just installed everything as per the docks and wrote "reddash"

GameHackerTV avatar May 19 '22 14:05 GameHackerTV

thanks, you can rename no_NO to nb_NO

GameHackerTV avatar May 19 '22 15:05 GameHackerTV

I'm reopening this for tracking because we need to fix it ourselves, just because you've edited things on your copy doesn't mean it's fixed for everyone.

aikaterna avatar May 19 '22 15:05 aikaterna

@aikaterna where were you? dead? till this date while I was crying to fix it? Sending a PR soon.

Treat others with respect as you interact with issues or PRs on our repo. Watch your tone.

Edit: since @naryal2580 deleted his message, I was responding to and quoting him.

aikaterna avatar May 19 '22 16:05 aikaterna

I'm reopening this for tracking because we need to fix it ourselves, just because you've edited things on your copy doesn't mean it's fixed for everyone.

I've opened a Pull Request (#72) to fix this issue :)

psharma04 avatar May 20 '22 06:05 psharma04