Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem mit German locale
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Chol
n00b
n00b


Joined: 06 Feb 2004
Posts: 34
Location: Germany

PostPosted: Tue May 03, 2005 3:36 pm    Post subject: Problem mit German locale Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue May 03, 2005 3:57 pm    Post subject: Reply with quote

Mach mal das "export" am Anfang weg.
_________________
KDE
Back to top
View user's profile Send private message
STiGMaTa_ch
Veteran
Veteran


Joined: 28 Dec 2004
Posts: 1686
Location: Rüti ZH / Schweiz

PostPosted: Tue May 03, 2005 3:58 pm    Post subject: Re: Problem mit German locale Reply with quote

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
Code:
LANG="de_DE@euro"


Dann sollte es eigentlich funktionieren.

und ein
Code:
env-update
danach nicht vergessen...

Lieber Gruss
STiGMaTa
Back to top
View user's profile Send private message
Chol
n00b
n00b


Joined: 06 Feb 2004
Posts: 34
Location: Germany

PostPosted: Tue May 03, 2005 4:45 pm    Post subject: Reply with quote

Ups :oops:

Danke für die schnelle Hilfe! :roll:
Back to top
View user's profile Send private message
Linux-Spielkind
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 167

PostPosted: Tue May 03, 2005 5:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Chol
n00b
n00b


Joined: 06 Feb 2004
Posts: 34
Location: Germany

PostPosted: Tue May 03, 2005 7:57 pm    Post subject: Reply with quote

@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
View user's profile Send private message
Linux-Spielkind
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 167

PostPosted: Tue May 03, 2005 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue May 03, 2005 8:18 pm    Post subject: Reply with quote

Benutzt du kdm? Dann wird die ~/.bashrc vor dem Starten nicht eingelesen.
_________________
KDE
Back to top
View user's profile Send private message
Linux-Spielkind
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 167

PostPosted: Tue May 03, 2005 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue May 03, 2005 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Chol
n00b
n00b


Joined: 06 Feb 2004
Posts: 34
Location: Germany

PostPosted: Wed May 04, 2005 7:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed May 04, 2005 9:29 am    Post subject: Reply with quote

Dazu siehe Sonderzeichen in wget [amd64, ~x86]
_________________
KDE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum