Portuguese (Europe) translation not working

When I set my aTV3 to English, PlexConnect 0.4 works, no problem. If I change the aTV3 language to Portuguese (Portugal), when I click in trailers I see a black screen, with some headers in the first line, and a spinning wheel.

 

Two months ago the Portuguese language was OK. I have reviewed the translation when Baa requested us to do it, and now 0.4 has the new translation. Unfortunately it does not work.

 

PlexConnect is installed in a Synology NAS using bwynants installer 0.4-1, and PMS 0.9.9.14 is also installed in the same NAS.

That language pack was part of 0.3.1+ for about 2 weeks before pushing 0.4.

Do you have any more details/some logs on where it hangs?

Baa, PlexConnect hangs as soon as I click on trailers icon. Here is the log / settings:

https://forums.plex.tv/topic/72356-plexconnect-on-synology/?p=689522

Pls let me know if you need more info.

Here is the issue:

msgid "TheMovieDB: No Trailer Info available"
msgstr "TheMovieDB: Sem \"trailer\""
 
When replaced in utils.js it gets:
XML_Error("PlexConnect", "TheMovieDB: Sem "trailer"");
 
Too many double quotes...

Hm.

We could solve it like attached: Localize.py - difference: .replace('\"', '\\\"') in line 52.

I just don't know if we will come into trouble in other situations... please give it a try!

Thanks, I’m not at home at the moment, I’ll test next monday.

Drawback - I guess, we introduce issues for translations used directly in the XML files. If - for example - the top navigation bar item [Library] would contain " (something like [Lib"ra"ry]), it would be display withe the slashes: [Lib\"ra\"ry]. This is total imaginary right now, I will have to do some additional tests.

Probably the better solution would be to exchange the double into single quotes. Hm. Might have the same problems... Got to check the JS files once again...

Good news: XML tools seem to filter out those \ on their own. Now again I think the proposed change might be just what we need!

Tested, and it works. Can you please push the change to git ?

Many thanks.

Ok. Done!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.