View previous topic :: View next topic |
Author |
Message |
Chol n00b
Joined: 06 Feb 2004 Posts: 34 Location: Germany
|
Posted: Tue May 03, 2005 3:36 pm Post subject: Problem mit German locale |
|
|
Hi!
Ich habe wie hier angegeben mein System versucht einzudeutschen, indem ich eine /etc/env.d/02locale erstellt habe mit dem Inhalt
Code: | export LANG="de_DE@euro" |
Leider bekomme ich beim Booten jetzt immer die Meldung:
Code: | * Updating environment...
/var/lib/init.d/envcache: line 23: export LANG=${export LANG}: bad substitution |
Und beim Aufruf von env-update:
Code: | # env-update
!!! Invalid token (not "=") LANG
Traceback (most recent call last):
File "/usr/sbin/env-update", line 11, in ?
portage.env_update()
File "/usr/lib/portage/pym/portage-py", line 500, in env_update
myconfig=getconfig(root+"etc/env.d/"+x)
File "/usr/lib/portage/pym/portage_util.py", line 273, in getconfig
raise e.__class__, str(e)+" in "+mycfg
Exception: ParseError: Invalid token (not '='): /etc/env.d/02locale: line 1 in /etc/env.d/02locale |
Warum ist das so? |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Tue May 03, 2005 3:57 pm Post subject: |
|
|
Mach mal das "export" am Anfang weg. _________________ KDE |
|
Back to top |
|
|
STiGMaTa_ch Veteran
Joined: 28 Dec 2004 Posts: 1686 Location: Rüti ZH / Schweiz
|
Posted: Tue May 03, 2005 3:58 pm Post subject: Re: Problem mit German locale |
|
|
Chol wrote: | Code: | export LANG="de_DE@euro" |
|
Naja, in der Shell mag das so ja funktionieren. Aber in der env Datei bitte ohne das export davor.
also, anstelle von
Code: | export LANG="de_DE@euro" |
machst du
Dann sollte es eigentlich funktionieren.
und ein danach nicht vergessen...
Lieber Gruss
STiGMaTa |
|
Back to top |
|
|
Chol n00b
Joined: 06 Feb 2004 Posts: 34 Location: Germany
|
Posted: Tue May 03, 2005 4:45 pm Post subject: |
|
|
Ups
Danke für die schnelle Hilfe! |
|
Back to top |
|
|
Linux-Spielkind Apprentice
Joined: 09 Jan 2005 Posts: 167
|
Posted: Tue May 03, 2005 5:52 pm Post subject: |
|
|
Hallo zusammen,
wenn ihr schon mal am diskutiren über locale sachen seid, könnt ich meine frage hier loswerden.
Ist es möglich für jeden user besimmte sprach einstellungen und andere variablen zu setzen, die dann auch in kde etc. funktioniren. Ich hätte da gerne einen user mit de_DE und einen mit zh_CN _________________ AK-47 = P4 2.0 GHz 768 MB DDR/333 RAM 60 GB SAMSUNG SV6003H Nvidia Geforce4/MMX400 |
|
Back to top |
|
|
Chol n00b
Joined: 06 Feb 2004 Posts: 34 Location: Germany
|
Posted: Tue May 03, 2005 7:57 pm Post subject: |
|
|
@Linux-Spielkind:
Laut dem Localization Guide musste das nur in der jeweiligen ~/.bashrc des Users einstellen, statt global in der /etc/env.d/02locale |
|
Back to top |
|
|
Linux-Spielkind Apprentice
Joined: 09 Jan 2005 Posts: 167
|
Posted: Tue May 03, 2005 8:10 pm Post subject: |
|
|
tja das ist zwar schön und gut aber das lässt kde kalt. Bei mir laufen alle programme die ich von kde aus starte in Standart C. Wenn ich sie aus der konsole starte funzt es dann so wie es soll. Falls hat sich jemand hier im forums schon mal zum spass mit inputsystemen für chinesisch beschäftig. Das ist eigenlich mein hauptproblem, kde sind irgend wie alle variablen egal!! _________________ AK-47 = P4 2.0 GHz 768 MB DDR/333 RAM 60 GB SAMSUNG SV6003H Nvidia Geforce4/MMX400 |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Tue May 03, 2005 8:18 pm Post subject: |
|
|
Benutzt du kdm? Dann wird die ~/.bashrc vor dem Starten nicht eingelesen. _________________ KDE |
|
Back to top |
|
|
Linux-Spielkind Apprentice
Joined: 09 Jan 2005 Posts: 167
|
Posted: Tue May 03, 2005 8:39 pm Post subject: |
|
|
Soll ich auf einen anderen display-manager umsteigen der vorher die ~/.bashrc einliest ( hab keine ahnung welchen und hab nur kde dreauf) oder gibt keim kdm noch irgenwo einstellungs möglichkeiten. _________________ AK-47 = P4 2.0 GHz 768 MB DDR/333 RAM 60 GB SAMSUNG SV6003H Nvidia Geforce4/MMX400 |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Tue May 03, 2005 8:50 pm Post subject: |
|
|
Die .bashrc wird eingelesen, wenn du eine bash-shell öffnest. Wenn man sich an der Konsole einloggt und von dort die grafische Oberfläche startet, wird ebenfalls die .bashrc eingelesen (denn du hast ja eine shell geöffnet) und aus dem Grund sind die entsprechenden Variablen gesetzt, wenn man danach per startkde o.ä. KDE startet.
Für kdm kannst du es ja mal so probieren:
http://www.kde.org/documentation/faq/configure.html#id2552484 wrote: |
KDE (kdm) does not read my .bash_profile!
The login managersxdm and kdm do not run a login shell, so .profile, .bash_profile, etc. are not sourced. When the user logs in, xdm runs Xstartup as root and then Xsession as user. So the normal practice is to add statements in Xsession to source the user profile. Please edit your Xsession and .xsession files. |
_________________ KDE |
|
Back to top |
|
|
Chol n00b
Joined: 06 Feb 2004 Posts: 34 Location: Germany
|
Posted: Wed May 04, 2005 7:44 am Post subject: |
|
|
Hmm ... ich hätte auch noch ne kleine Folgefrage:
Bei wget z.B. steht jetzt "LÅ?nge: ..." statt "Länge" ... wie krieg ich da die Umlaute richtig hin? Hab sonst eigentlich alles befolgt wie es in dem Localization Guide stand |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
|
Back to top |
|
|
|