[Mythtv-translators] Problems translating mythweb

Nicolas Riendeau knight at teksavvy.com
Sun Aug 11 18:30:39 UTC 2013


Hi Yianni!

On 11/08/2013 1:41 PM, Yianni Vidalis wrote:
> I have started translating mythweb and I've come across something that I think is a bug. It concerns the Categories translations.
>
> I've created Greek.cat, Greek.lang and I've added the line:
>
>          'Greek'         =>  array('Ελληνικά',           'el_GR',       'el_GR'),
 >
 > in the Translate.php file as per the instructions at 
http://www.mythtv.org/wiki/Translation#Translate_MythWeb
 >

I am wondering if your problem might not be related to the fact that 
there are no character set declaration (either UTF-8 or, I belive, 
ISO-8859-7 (those el_GR entries should specify the character set like 
some of the other entries you can see in the same file).

> I'm enclosing a small abstract from the Greek.cat file:
>
> "Crime_Mystery"
>    Αστυνομική_Μυστηρίου
>      \b(?:Αστυνομική|μυστηρ|crim|myster) (I've kept the English expressions as well)
>
> To avoid the language barrier, I'll try to simplify:
>
> "Crime_Mystery"
>    GRCrime_GRMystery
>      \b(?:grpolice|grmyst|crim|myster)
>
>
>
> The way it should work if I understand correctly is: The program searches the db for the value of the Category column in "Program" table. It compares it to the regular expressions in the third line, i.e. words that start with grpolice, or grmyst, or crim or myster and then shows "GRCrime_GRMystery" in mythweb.

Yep, that's how it should work...

>
> It doesn't work like this, though. The genre color changes successfully only if the Category column contains GRCrime_GRMystery, and it's case sensitive.

It's like it's not processing the right line...

The first thing I would look at is the character set used (does your 
editor tell you). I would try to use UTF-8.

The second thing I could think of, did you edit that file solely on 
Linux/BSD/etc... PC or could it have been edited on a PC that would have 
added CR (ie Windows) that might also confuse it...

>
> Should I report this as a bug, or am I misunderstanding something?
>

Let's see if we can eliminate the possibility of a character set or line 
termination issue first...

Thank you!

Nicolas


More information about the Mythtv-translators mailing list