Wrong language on webpages with Web Page Gadget on Raspberry Pi?

  • 1
  • Problem
  • Updated 4 years ago
  • Acknowledged
Hi.

I have a working presentation that is 6 web page gadgets, and player running on Raspberry Pi. Works almost great.

The problem is that the info on the webpages are in english. I have launched chrome and added Norwegian (thats what I want) as locales. When I launch the individual URL's in Chrome they are ok in Norwegian. But when the rvPlayer runs, the text are in english :(

Can anyone please tell me where to change this?
I have looked almost everywhere, and I am not able to figure this out.
I have installed the raspian with norwegian as well, so it's not that.

Regards Rune
Photo of Rune Stene

Rune Stene

  • 140 Points 100 badge 2x thumb

Posted 5 years ago

  • 1
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
Rune,

The Raspberry Pi uses Chromium (version 22.0.1229.94) for its browser, not Chrome. Have you checked to see that the web pages show appropriately? You can start it by opening a Terminal window and typing ./rvplayer/chrome-linux/chrome.

You can then try the websites there to see how they'll show. I haven't tried applying any languages to the browser, so I am not certain how/if they'll show once applied.

Thanks.
Photo of Rune Stene

Rune Stene

  • 140 Points 100 badge 2x thumb
Thank you for the quick reply.

It whas this one ( /rvplayer/chrome-linux/chrome) I tested with. The webpage have correct language (norwegian) there. But its on english in the presentation (web page gadget).

I ment Chronium when I wrote Chrome (my bad).

//rune
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
No problem, I blame Chrome and Chromium for using the same file name to start the browser.

Out of curiosity, in that chrome-linux folder, do you also see the locales folder? And in that, do you have two sub-folders? (one should be en-US.pak) If you have two, I imagine the second on would be for Norwegian. My thinking is that renaming the Norwegian one to be US (and rename the US to something with .old in it) may do the trick.
I can try this one the Pi I have here to see if that works, as well as investigate if there is something in the start up command that prevents the second one from loading. I'll let you know.

Thanks.
Photo of Rune Stene

Rune Stene

  • 140 Points 100 badge 2x thumb
In the locales folder there are no subfolders. Just one file. It's the en-US.pak from jan. 9th 2013.

My guess is that this is only the language-file for the menu-language in Chromium. Becasue all my menus are still in english, also after I added norwegian at the top of the list of languages in Chromium.

So I'm not shure why this works when I launch the Chromium directly and goes to the url.

//rune
Photo of Rune Stene

Rune Stene

  • 140 Points 100 badge 2x thumb
If you like, I could add you Raspberry Pi as a monitor on my presentation?
Then tell you the correct names of the Norwegian words. So you can see for your self, that you get it in english after you set the language in Chromium to Norwegian (Norsk).

//Rune
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
Sounds good.

If you add a Display, just let me know what the ID is.

Thanks.
Photo of Rune Stene

Rune Stene

  • 140 Points 100 badge 2x thumb
Shall I post the ID here? Or email it?

//rune
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
I think either will be fine. If you want to email it, you can send it to support@risevision.com

Thanks.
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
Thanks. I'm seeing the same thing on my Display.

Let me do a little digging to see what I can find out and hopefully present you with a solution.

Thanks.
Photo of Rune Stene

Rune Stene

  • 140 Points 100 badge 2x thumb
Hi again.

If you can point me in a direction where to look, I can try to help you solve this? What are your thoughts on where the problem lays.

Also if you can inform me what you have tried, that didn't work, it would help me.

I have some time tomorrow that I can use for this.

//rune
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
I found if I opened a new window (CTRL+N) while the Presentation was running and update the language that way. I could then refresh (F5) the Presentation and it would show the appropriate language.

The trouble is that when the Pi restarts (or you close and restart the Rise Player software), the changes are lost. I was trying to see if I could modify the Rise Player script to keep the changes, but didn't have any luck in that (it seems they were ignored). I tried modifying the master preferences line in the script to this: MASTER_PREFERENCES="{\"distribution\":{\"suppress_first_run_bubble\":true,\"import_history\": false,\"import_bookmarks\": false,\"import_home_page\": false,\"import_search_engine\": false,\"do_not_launch_chrome\": false,\"oem_bubble\": false},{\"intl\":{\"accept_languages\":no,en,en-US}}"

I'll be looking into it again today.

Thanks.
Photo of Rune Stene

Rune Stene

  • 140 Points 100 badge 2x thumb
I have looked at this today and are wondering if it can have somethnig to do with chromeium running in kiosk-mode. Or the sandbox-solution.
/home/pi/rvplayer/chrome-linux/chrome --kiosk --no-default-brow..............
/usr/lib/chromium/chromium-sandbox /home/pi/rvplayer/chrome-linux/chrome --ty..................

What do you think?

Can you tell me witch script thats acutally launches the chromium/rvplayer?
I have a little problem telling all the scripts apart and therefor finding the correct one :(

//rune
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
Chromium is called from within Java, not the script in the rvplayer file.

I haven't gotten any closer to figuring out how the language settings could be kept after a restart. I'll ask a developer here to see if they can shed any light on the process.

Thanks.
Photo of Rune Stene

Rune Stene

  • 140 Points 100 badge 2x thumb
Any updates to this?
Have the developers seen the light?

:)

Best regards Rune Stene
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
Unfortunately, we don't have any news regarding this. Developers are still working on the dark side of the force. When it is fixed we'll let everybody know.

Thanks!
Photo of frank vannitsen

frank vannitsen

  • 60 Points
I have the same issue with the Dutch language living in Belgium.
Is there a solution?
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
Hi Frank,

We didn't find a solution for this.

If you, or anybody else is interested in investigating this further, you can find the repository for the Pi Player here.

Thanks.
Photo of Serge Brosseau

Serge Brosseau

  • 202 Points 100 badge 2x thumb
Is there somewhere I could download a language pack and manually add it in? Either in the locales folder of the RVplayer or Chromium? I am having the same issue where I want things to display in french but they show up in english on the RaspPi display but my french machine that I designed the display with they come out in french (mostly).

I have changed the Pi to french and added french language to Chromium but still no luck.

This is my french PC that I designed the layout with. The weather gadget comes out in french on the PC but on the Pi it stays in english. As for the google calenday widget it stays in english no matter what on both machines. 

Now my french PC is a french Windows, french configured Chrome, just french everything and it still doesn't change the Calendar widget (but thats a different issue altogether).

Right now I just want to get the RV player or Chromium or both to recognise the french language.

Any news or advice would be appreciated.

Thanks
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Serge,

This is because the widget pull from their own sources. At this time the only languages built in to those widgets are English. 

Pi player runs an older version of Chromium, so that could be the reason you're seeing differences in language support between it and windows.
(Edited)