[Solved] Mythfrontend does not remain in German

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
Woodpacker
Junior
Posts: 47
Joined: Thu May 04, 2017 5:53 pm
Germany

[Solved] Mythfrontend does not remain in German

Post by Woodpacker »

Hello, I have the following problem. After each restart of my Mythtv system the frontend is always in English. When I go into the setup and reload the theme, it is in German as it should be. In the setup everything is also set to German. Locales is also correct is "de_DE-UTF8".
Does anyone have any idea what this could be or where I could look for it?
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Mythfrontend does not remain in German

Post by bill6502 »

Hi,

See if there's a message containing text like this:

Code: Select all

        LOG(VB_GENERAL, LOG_WARNING, QString("This application expects to "
            "be running a locale that specifies a UTF-8 codeset, and many "
            "features may behave improperly with your current language "
            "settings. Please set the %1 variable(s) in the environment "
            "in which this program is executed to include a UTF-8 codeset "
            "(such as 'en_US.UTF-8').").arg(lang_variables));
in the log.

Also, take a look in ~/.mythtv/cache/contextcache.xml (assuming you're
starting the FE as your own user). I'd check the file permissions there
too.
Woodpacker
Junior
Posts: 47
Joined: Thu May 04, 2017 5:53 pm
Germany

Re: Mythfrontend does not remain in German

Post by Woodpacker »

Hi,
I saw in the mythfrontend log that the folder ~/. mythtv/themes/defaultmenu/ themeinfo. xml is not there. Then copied the themeinfo. xml from
/. mythtv/cache/themechooser/31/Mythbuntu. Without success.
The contextcache.xml is empty and in which log should I find this message?
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Mythfrontend does not remain in German

Post by bill6502 »

/var/log/mythtv/mythfrontend.log is typically where the frontend log lives.

I'd do this: ls -ld ~/.mythtv/cache/contextcache.xml ~/.mythtv/cache ~/.mythtv ~
and be sure the user that starts the frontend has read/write permission on
everything. Plus search (x) permission on the directories.
Woodpacker
Junior
Posts: 47
Joined: Thu May 04, 2017 5:53 pm
Germany

Re: Mythfrontend does not remain in German

Post by Woodpacker »

Hi,
when I run ls -ld I have read/write permission as a user and the user Mythtv everywhere. Only for the contextcache.xml file only the user has read/write permission and the user mythtv only read permission. For the contextcache.xml file I can change the permissions, but it is the same after a restart and it is still without content.
Mythfrontend and Mythwelcome are executed by me as a user and the mythbackend of mythtv.
I can't find any of what you wrote to me in the mythfrontend log. But I found something about de_DE and contextcache.xml.

Code: Select all

mythserver mythfrontend.real: mythfrontend[1470]: I CoreContext mythcorecontext.cpp:285 (Init) Assumed character encoding: de_DE.UTF-8 
mythserver mythfrontend.real: mythfrontend[1470]: E CoreContext configuration.cpp:67 (Load) Error parsing: 
/home/markus/.mythtv/cache/contextcache.xml at line: 1  column: 1
mythserver mythfrontend.real: mythfrontend[1470]: E CoreContext configuration.cpp:69 (Load) Error Msg: unexpected end of file
mythserver mythfrontend.real: mythfrontend[1470]: I CoreContext mythtranslation.cpp:64 (load) Loading en_us translation for module mythfrontend
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Mythfrontend does not remain in German

Post by bill6502 »

The 2nd line above helps. But just confirms that the file is empty, as you spotted. To
be clear, this is what a user looks like:

Code: Select all

$ ls -ld ~/.mythtv/cache/contextcache.xml ~/.mythtv/cache ~/.mythtv ~
drwxr-xr-x 31 yourUserName yourUserName 4096 Oct 15 16:29 /home/yourUserName
drwxr-xr-x 13 yourUserName yourUserName 4096 Jun 26 23:03 /home/yourUserName/.mythtv
drwxrwxr-x 13 yourUserName yourUserName 4096 Oct  6 19:44 /home/yourUserName/.mythtv/cache
-rw-rw-r--  1 yourUserName yourUserName  509 Oct  6 19:44 /home/yourUserName/.mythtv/cache/contextcache.xml
I'd just remove that file and see if it gets recreated with lines similar to these:

Code: Select all

<Configuration>
  <Settings>
    <Theme>Steppes</Theme>
    <Language>en_US</Language>
    <Country>US</Country>
    <GuiHeight>0</GuiHeight>
    <GuiOffsetX>0</GuiOffsetX>
    <GuiOffsetY>0</GuiOffsetY>
    <GuiWidth>0</GuiWidth>
    <RunFrontendInWindow>0</RunFrontendInWindow>
    <AlwaysOnTop>0</AlwaysOnTop>
    <HideMouseCursor>1</HideMouseCursor>
    <ThemePainter>opengl</ThemePainter>
    <StartupScreenDelay>2</StartupScreenDelay>
    <libCECEnabled>1</libCECEnabled>
  </Settings>
</Configuration>
We can forget about the 1st message I asked you to look for. If it's not there, that's good.
Woodpacker
Junior
Posts: 47
Joined: Thu May 04, 2017 5:53 pm
Germany

[SOLVED]Re: Mythfrontend does not remain in German

Post by Woodpacker »

Hi,
I have deleted the contextcache.xml and made a reboot. The file was newly created and this time with content. That helped.
Everything is back to the way it should be.

Thanks for your help. :)
Post Reply