Hi,
I updated now to version 1.5.8 and it seems to run fine. Only the OSD is english and I cannot change it to german. I checked the logfile and found: Aug 20 12:51:41 localhost vdr: [28820] ERROR: /usr/local/share/vdr/locale: No such file or directory Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'deu,ger' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'slv,slo' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'ita' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'dut,nla,nld' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'por' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'fra,fre' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'nor' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'fin,smi' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'pol' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'esl,spa' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'ell,gre' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'sve,swe' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'rom,rum' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'hun' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'cat,cln' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'rus' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'hrv' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'est' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'dan' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'cze,ces' Aug 20 12:51:41 localhost vdr: [28820] no locale for language code 'tur'
I hope it is not necessary to install vdr, because I held my versions under /usr/local/video and make their symlinks, so I can easily change my versions.
I tried the following line WRAPPER="LC_COLLATE=de_DE" with runvdr from Udo Richter but no success.
How can I set OSD to german again?
Best regards, Matthias
kkkkHi, I had the same problem and Klaus helped me very fast!!
cp Make.config.template Make.config edit it and set LOCDIR=./locale HTH. Halim
Hi Halim,
Halim Sahin wrote:
cp Make.config.template Make.config edit it and set LOCDIR=./locale
ok I changed it, now VDR says at startup: Aug 20 14:53:36 localhost vdr: [23028] found 21 locales in ./locale Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'deu,ger' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'slv,slo' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'ita' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'dut,nla,nld' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'por' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'fra,fre' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'nor' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'fin,smi' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'pol' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'esl,spa' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'ell,gre' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'sve,swe' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'rom,rum' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'hun' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'cat,cln' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'rus' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'hrv' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'est' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'dan' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'cze,ces' Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'tur'
But in the OSD I can select between several LanguageName$English and English but no german translation.
Best regards, Matthias
Matthias Fechner wrote:
cp Make.config.template Make.config edit it and set LOCDIR=./locale
ok I changed it, now VDR says at startup: Aug 20 14:53:36 localhost vdr: [23028] found 21 locales in ./locale Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'deu,ger' [..] But in the OSD I can select between several LanguageName$English and English but no german translation.
Post the output of locale -a. You may need to install missing locales, check your distribution on how to.
Cheers,
Udo
Hi Udo,
Udo Richter wrote:
Post the output of locale -a. You may need to install missing locales, check your distribution on how to.
hm, that is a really long list, I deleted many lines and kept only the hopefully relevant stuff: C POSIX ... de_AT.utf8 de_AT@euro de_BE de_BE.utf8 de_BE@euro de_CH de_CH.utf8 de_DE de_DE.utf8 de_DE@euro de_LU de_LU.utf8 de_LU@euro ... en_AU en_AU.utf8 en_BW en_BW.utf8 en_CA en_CA.utf8 en_DK en_DK.utf8 en_GB en_GB.utf8 en_HK en_HK.utf8 en_IE en_IE.utf8 en_IE@euro en_IN en_NZ en_NZ.utf8 en_PH en_PH.utf8 en_SG en_SG.utf8 en_US en_US.utf8 en_ZA en_ZA.utf8 en_ZW en_ZW.utf8 ... zu_ZA zu_ZA.utf8
Best regards, Matthias
En/na Udo Richter ha escrit:
Matthias Fechner wrote:
cp Make.config.template Make.config edit it and set LOCDIR=./locale
ok I changed it, now VDR says at startup: Aug 20 14:53:36 localhost vdr: [23028] found 21 locales in ./locale Aug 20 14:53:36 localhost vdr: [23028] no locale for language code 'deu,ger' [..] But in the OSD I can select between several LanguageName$English and English but no german translation.
Post the output of locale -a. You may need to install missing locales, check your distribution on how to.
That shouldn't be necessary with 1.5.8: I only have 3 locales installed but I can select all languages from the osd setup menu (and see the corresponding translations).
Bye
Hi Luca,
Luca Olivetti wrote:
That shouldn't be necessary with 1.5.8: I only have 3 locales installed but I can select all languages from the osd setup menu (and see the corresponding translations).
hm, that is strange. I have here a vanilla VDR (with some plugins but the sourcecode of VDR is not touched)
I compiled it with: make REMOTE=LIRC VFAT=1 NO_KBD=1
But I am not able to select different languages in the menu.
Best regards, Matthias
Matthias Fechner wrote:
Hi Luca,
Luca Olivetti wrote:
That shouldn't be necessary with 1.5.8: I only have 3 locales installed but I can select all languages from the osd setup menu (and see the corresponding translations).
hm, that is strange. I have here a vanilla VDR (with some plugins but the sourcecode of VDR is not touched)
I compiled it with: make REMOTE=LIRC VFAT=1 NO_KBD=1
But I am not able to select different languages in the menu.
Could you try what these commands print in VDR source directory: TEXTDOMAINDIR=./locale TEXTDOMAIN=vdr LANGUAGE=de_DE gettext -s \ 'LanguageName$English' TEXTDOMAINDIR=./locale TEXTDOMAIN=vdr LANGUAGE=de gettext -s \ 'LanguageName$English' TEXTDOMAINDIR=./locale TEXTDOMAIN=vdr LANGUAGE=de_XYZ gettext -s \ 'LanguageName$English'
Hello Anssi,
* Anssi Hannula anssi.hannula@gmail.com [22-08-07 16:33]:
Could you try what these commands print in VDR source directory: TEXTDOMAINDIR=./locale TEXTDOMAIN=vdr LANGUAGE=de_DE gettext -s \ 'LanguageName$English'
LanguageName$English
TEXTDOMAINDIR=./locale TEXTDOMAIN=vdr LANGUAGE=de gettext -s \ 'LanguageName$English'
LanguageName$English
TEXTDOMAINDIR=./locale TEXTDOMAIN=vdr LANGUAGE=de_XYZ gettext -s \ 'LanguageName$English'
LanguageName$English
Gettext is version 0.16.1
Best regards, Matthias
Matthias Fechner wrote:
Hello Anssi,
- Anssi Hannula anssi.hannula@gmail.com [22-08-07 16:33]:
Could you try what these commands print in VDR source directory: TEXTDOMAINDIR=./locale TEXTDOMAIN=vdr LANGUAGE=de_DE gettext -s \ 'LanguageName$English'
LanguageName$English
TEXTDOMAINDIR=./locale TEXTDOMAIN=vdr LANGUAGE=de gettext -s \ 'LanguageName$English'
LanguageName$English
TEXTDOMAINDIR=./locale TEXTDOMAIN=vdr LANGUAGE=de_XYZ gettext -s \ 'LanguageName$English'
LanguageName$English
Gettext is version 0.16.1
Same here, so that is not it.
Does locale/de_DE/LC_MESSAGES/vdr.mo exist in VDR directory?
What distro?
Does the localization work in other programs, like "ls --help" and so on?
Hello Anssi,
* Anssi Hannula anssi.hannula@gmail.com [23-08-07 14:56]:
Does locale/de_DE/LC_MESSAGES/vdr.mo exist in VDR directory?
yes it exists: 20 -rw-r--r-- 1 root root 18013 Aug 20 14:47 vdr.mo
What distro?
gentoo
Does the localization work in other programs, like "ls --help" and so on?
yes, LANG=de_DE ls --help gives german help and ls --help gives english help.
Best regards, Matthias
Matthias Fechner wrote:
Hello Anssi,
- Anssi Hannula anssi.hannula@gmail.com [23-08-07 14:56]:
Does the localization work in other programs, like "ls --help" and so on?
yes, LANG=de_DE ls --help gives german help and ls --help gives english help.
And when using LANGUAGE=de_DE instead of LANG=de_DE?
Hello Anssi,
* Anssi Hannula anssi.hannula@gmail.com [23-08-07 16:14]:
And when using LANGUAGE=de_DE instead of LANG=de_DE?
that does not work, ls --help keeps english with LANGUAGE=de_DE only LANG=de_DE works.
Best regards, Matthias
Hi Halim,
Halim Sahin wrote:
Well it seems your problem is not vdr related.
regarding to the gettext documentation the environment variable LANGUAGE does not exist (version 0.16).
your locale settings could be wrong. Which distro are you using?
gentoo (see also two mails before :) ).
Best regards, Matthias
Hallo, Under Debian I have locale LANG=de_DE@euro LC_CTYPE="de_DE@euro" LC_NUMERIC="de_DE@euro" LC_TIME="de_DE@euro" LC_COLLATE="de_DE@euro" LC_MONETARY="de_DE@euro" LC_MESSAGES="de_DE@euro" LC_PAPER="de_DE@euro" LC_NAME="de_DE@euro" LC_ADDRESS="de_DE@euro" LC_TELEPHONE="de_DE@euro" LC_MEASUREMENT="de_DE@euro" LC_IDENTIFICATION="de_DE@euro" LC_ALL=
I don't know howto set this under gento. You can try to insert export LANG=de_DE@euro into your profile file /etc/profile. HTH. Halim
On Do, Aug 23, 2007 at 05:27:21 +0200, Matthias Fechner wrote:
Hi Halim,
Halim Sahin wrote:
Well it seems your problem is not vdr related.
regarding to the gettext documentation the environment variable LANGUAGE does not exist (version 0.16).
your locale settings could be wrong. Which distro are you using?
gentoo (see also two mails before :) ).
Best regards, Matthias
--
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Matthias Fechner wrote:
Hello Anssi,
- Anssi Hannula anssi.hannula@gmail.com [23-08-07 16:14]:
And when using LANGUAGE=de_DE instead of LANG=de_DE?
that does not work, ls --help keeps english with LANGUAGE=de_DE only LANG=de_DE works.
What is the output of "locale"?
Hi Anssi,
Anssi Hannula wrote:
What is the output of "locale"?
it says: LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL=
I checked the manpage of locale and it says that I can set the following variables: LANG LC_ALL LC_CTYPE LC_MESSAGES NLSPATH
I checked then the homepage of gettext and it says: "Then, users only have to set the LANG environment variable to the appropriate `ll_CC' combination prior to using the programs in the package. See Matrix. For example, let's presume a German site. At the shell prompt, users merely have to execute `setenv LANG de_DE' (in csh) or `export LANG; LANG=de_DE' (in sh). They could even do this from their .login or .profile file."
see here: http://www.gnu.org/software/gettext/manual/gettext.html#End-Users
I checked also the version of gettext and it seems that the current version of gettext is 0.16 which I have installed.
Are you using an older version of gettext?
Best regards, Matthias
Matthias Fechner wrote:
Hi Anssi,
Anssi Hannula wrote:
What is the output of "locale"?
it says: LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL=
Hmm, what about: LC_ALL=en_US LANGUAGE=de_DE ls --help
Which language is the message displayed in?
I checked the manpage of locale and it says that I can set the following variables: LANG LC_ALL LC_CTYPE LC_MESSAGES NLSPATH
I checked then the homepage of gettext and it says: "Then, users only have to set the LANG environment variable to the appropriate `ll_CC' combination prior to using the programs in the package. See Matrix. For example, let's presume a German site. At the shell prompt, users merely have to execute `setenv LANG de_DE' (in csh) or `export LANG; LANG=de_DE' (in sh). They could even do this from their .login or .profile file."
see here: http://www.gnu.org/software/gettext/manual/gettext.html#End-Users
LANGUAGE variable is described as the method to use by software wishing to provide an option to change language: http://www.gnu.org/software/gettext/manual/gettext.html#gettext-grok
I checked also the version of gettext and it seems that the current version of gettext is 0.16 which I have installed.
Are you using an older version of gettext?
Nope, latest is in use.
Matthias Fechner wrote:
Hi Anssi,
Anssi Hannula wrote:
What is the output of "locale"?
it says: LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL=
LANGUAGE variable that VDR uses is ignored when LC_MESSAGES or LC_ALL is set to "POSIX" or "C".
Hi,
i found the problem now. I must set a language with LANG=
If i don't do that VDR has a problem, Klaus is that the behavior you want?
Best regards, Matthias
On 08/23/07 17:46, Matthias Fechner wrote:
Hi,
i found the problem now. I must set a language with LANG=
If i don't do that VDR has a problem, Klaus is that the behavior you want?
I don't really "want" anything in particular here ;-)
All I want is that the gettext() calls deliver the right texts.
Klaus
Hi Klaus,
Klaus Schmidinger wrote:
I don't really "want" anything in particular here ;-)
:)
All I want is that the gettext() calls deliver the right texts.
my it is some your your ToDo list. - Fix the problem that a user cannot select a language in VDR if no LANG is defined on the shell - or put a node in the INSTALL file that LANG must be defined in the shell before starting VDR
Thx Klaus for that software, I cannot think to live without it.
Best regards, Matthias
Matthias Fechner wrote:
Hi Klaus,
Klaus Schmidinger wrote:
I don't really "want" anything in particular here ;-)
:)
All I want is that the gettext() calls deliver the right texts.
my it is some your your ToDo list.
- Fix the problem that a user cannot select a language in VDR if no LANG
is defined on the shell
- or put a node in the INSTALL file that LANG must be defined in the
shell before starting VDR
AFAICS that is only needed if the user locale settings are set to "C", "POSIX" or invalid values.
This behaviour was added to glibc in 2001, likely to fix something else. http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/intl/dcigettext.c.diff?r1=...
I've contacted the committer about our issue. If I get no reply, I'll raise it in libc-alpha ml.
Hi Anssi,
Anssi Hannula wrote:
AFAICS that is only needed if the user locale settings are set to "C", "POSIX" or invalid values.
This behaviour was added to glibc in 2001, likely to fix something else. http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/intl/dcigettext.c.diff?r1=...
I've contacted the committer about our issue. If I get no reply, I'll raise it in libc-alpha ml.
ok that I think is the right way, thx a lot. The problem for me is fixed now but maybe we should add a small note in the INSTALL file that the environment variable LANG must be set before starting VDR to a valid value.
Best regards, Matthias
On Fr, Aug 24, 2007 at 02:03:22 +0200, Matthias Fechner wrote:
Hi Anssi,
Anssi Hannula wrote:
AFAICS that is only needed if the user locale settings are set to "C", "POSIX" or invalid values.
This behaviour was added to glibc in 2001, likely to fix something else. http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/intl/dcigettext.c.diff?r1=...
I've contacted the committer about our issue. If I get no reply, I'll raise it in libc-alpha ml.
ok that I think is the right way, thx a lot. The problem for me is fixed now but maybe we should add a small note in the INSTALL file that the environment variable LANG must be set before starting VDR to a valid value.
I think this is useful for all apps which should give you localized output. So it's not a vdr problem. Under Debian the lang variable is set through the locale setup.
If I write unset $LANG all apps are producing english output.
Best regards Halim
Hi Halim,
Halim Sahin wrote:
If I write unset $LANG all apps are producing english output.
yes that is excatly what VDR also does but if I have not defined LANG then I'm not able to select another language in the OSD of VDR and that is the issue I tried to address. Everything else is fine.
Best regards, Matthias