Opened 10 years ago

Closed 9 years ago

#6843 closed defect (fixed)

language preferences for EIT data selection are not set for the backend

Reported by: naked@… Owned by: stuartm
Priority: minor Milestone: 0.24
Component: MythTV - EIT Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

My DVB-C cable channel sends EIT descriptions in multiple languages. MythTV supports using language preferences to pick the suitable language variant for the program guide. In general, this works fine.

However, when the backend resides on a separate computer from the frontend, there is a problem. The language preferences are set by the mythtv frontend UI, and only for the frontend hostname. There seems to be no supported way of setting the language preferences for the backend - the ones that determine which language to use for the EIT when generating program data.

Adding ISO639Language0 and ISO639Language1 for the backend hostname in the settings table fixes the issue.

(Location in code: Language preferences are used in EITScanner, which uses iso639_get_language_list, which simply does gContext->GetSetting?. Verified to be so in trunk.)

Change History (8)

comment:1 Changed 10 years ago by Stuart Auchterlonie

Milestone: unknown0.23

We probably need to put something in the general settings in mythtv-setup.

It's a configuration issue, but since there no actual way of configuring it then technically it's a bug :)

Stuart

comment:2 Changed 10 years ago by robertm

Milestone: 0.230.24

comment:3 Changed 9 years ago by Stuart Auchterlonie

Status: newaccepted

Could you provide the output from running 'locale' on your backend system please?

The nicest way of handling this is with the new locale's code.

Stuart

comment:4 Changed 9 years ago by stuartm

The language preferences for your locale too. The values you've set for ISO639Language*

comment:5 Changed 9 years ago by anonymous

My locale is mostly "en_US.UTF-8". Here is the exact output:

LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME=C
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=C
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

My language preferences are:

  • Interface language: English
  • EIT preferred language: Finnish
  • EIT secondary preferred language: Swedish

As you can see here, locale has very little to do with the issue - unless you support some way of specifying the locale separately for program data and user interface.

comment:6 Changed 9 years ago by stuartm

Ok, then the locale defaults stuff isn't going to help you, since your locale doesn't match your location. Still we can probably help your fellow Finlanders by creating a fi.xml with Finnish and Swedish as the preferred values for ISO639Language*?

comment:7 Changed 9 years ago by stuartm

Owner: changed from Stuart Auchterlonie to stuartm

comment:8 Changed 9 years ago by stuartm

Resolution: fixed
Status: acceptedclosed

(In [26552]) Make the EIT & track language settings global. In the rare case were a user wants different languages on each frontend then it can be overriden by writing a host specific entry to the settings table. The problem with the existing host-based setting is that we use these preferences for EIT on the backend but it's only configured for the frontends. Fixes #6843

Note: See TracTickets for help on using tickets.