Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
svenska i php
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
danielsv
n00b
n00b


Joined: 03 Aug 2005
Posts: 3

PostPosted: Wed Aug 03, 2005 10:57 am    Post subject: svenska i php Reply with quote

Jag körde slackware förut och då fungerade det bra att köra setlocale(LC_ALL, 'sv_SE'); för att få datum utskrivna med månader, veckodagar mm. på svenska. Nu fungerar inte det. Jag har även testat setlocale(LC_ALL,'swedish'), men det fungerade inte heller. Jag har följt guiden om att få gentoo på svenska, behöver jag i så fall komplilera om php och apache nu?

När jag kör en locale -a i terminalen får jag följande:

Code:

# locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
de_DE
de_DE@euro
en_HK
en_PH
en_US
en_US.utf8
es_MX
fa_IR
fr_FR
fr_FR@euro
it_IT
ja_JP
ja_JP.eucjp
ja_JP.utf8
sv_SE.iso885915


Nån som haft samma problem eller som kan hjälpa mig?
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4831
Location: Gothenburg, Sweden

PostPosted: Wed Aug 03, 2005 11:39 am    Post subject: Reply with quote

Du verkar inte ha en sv_SE locale. Vad får du om du kör enbart locale?
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
danielsv
n00b
n00b


Joined: 03 Aug 2005
Posts: 3

PostPosted: Wed Aug 03, 2005 11:47 am    Post subject: Reply with quote

ok, då får jag
Code:

# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=sv_SE
LC_CTYPE="sv_SE"
LC_NUMERIC="sv_SE"
LC_TIME="sv_SE"
LC_COLLATE="sv_SE"
LC_MONETARY="sv_SE"
LC_MESSAGES="sv_SE"
LC_PAPER="sv_SE"
LC_NAME="sv_SE"
LC_ADDRESS="sv_SE"
LC_TELEPHONE="sv_SE"
LC_MEASUREMENT="sv_SE"
LC_IDENTIFICATION="sv_SE"
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4831
Location: Gothenburg, Sweden

PostPosted: Wed Aug 03, 2005 11:55 am    Post subject: Reply with quote

Ändra dina inställningar till sv_SE.ISO-8859-15 eller skapa en sv_SE locale. För tillfället kan du göra det med
Code:
# localedef -c -f ISO-8859-1 -i POSIX sv_SE

men för att inte behöva göra om det varje gång du kompilerar om glibc bör du lägga in det i /etc/locales.build
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
danielsv
n00b
n00b


Joined: 03 Aug 2005
Posts: 3

PostPosted: Thu Aug 04, 2005 1:30 am    Post subject: Reply with quote

jag får inte till det i php.. men nu visar den iaf på svenska när man skriver t.ex. locale -h

Code:
# locale -h
locale: ogiltig flagga -- h
Försök med "locale --help" eller "locale --usage" för mer information


måste jag starta om datorn eller nåt? jag har startat om apache iaf..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian 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