Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Spolszczenie-konsola: format daty wyświetlanej ls
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt
View previous topic :: View next topic  
Author Message
tangram
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 102
Location: 3City, Poland

PostPosted: Mon Sep 17, 2007 8:35 am    Post subject: [SOLVED] Spolszczenie-konsola: format daty wyświetlanej ls Reply with quote

Po spolszczeniu gentoo, zauważyłem
pod konsolą, że format daty zmienił się.
Liczba misięcy w dacie wyświetlanej np. poleceniem
'ls -la' lub w 'mc' wyświetlana jest cyfrą rzymską.

Code:

-rw------- 1 tangram tangram 8,5K IX 16 19:35 .bash_history
-rw-r--r-- 1 tangram tangram 1,6K VIII 27 20:58 .bashrc
-rw------- 1 tangram tangram  195 IX 14 14:46 .lesshst
-rw-r--r-- 1 tangram tangram  533 VIII 25 16:04 .profile


Wygląda to fatalnie.
Przypuszczam że odpowiedzialna za to jest zmienna LC_TIME
która dla pl_PL ma taki a nie inny format.
Czy macie może jakieś sugestie uwagi jak rozwiązać ten problem.

Przestawianie formatu wyświetlania w 'ls'( bo jest taka możliwość) - odpada -
bo nie jest to rozwiązanie globalne( w tym dla mc).

Pozdrawiam


Last edited by tangram on Thu Sep 20, 2007 6:42 am; edited 1 time in total
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1944
Location: Poland

PostPosted: Mon Sep 17, 2007 12:03 pm    Post subject: Reply with quote

to normalne, tak jest w glibc 2.6
Back to top
View user's profile Send private message
tangram
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 102
Location: 3City, Poland

PostPosted: Mon Sep 17, 2007 2:07 pm    Post subject: Reply with quote

Dzięki za odpowiedź, poczytam jeszcze.
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2462
Location: Polska / Lenkija

PostPosted: Mon Sep 17, 2007 2:28 pm    Post subject: Reply with quote

Spróbuj jako root:
Code:
wget www.ffta.host.sk/coreutils.po
msgfmt -o coreutils.mo coreutils.po
cp coreutils.mo /usr/share/locale/pl/LC_MESSAGES


Perduodu linkėjimus
Arfrever
Back to top
View user's profile Send private message
tangram
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 102
Location: 3City, Poland

PostPosted: Tue Sep 18, 2007 6:30 am    Post subject: Reply with quote

Arfrever:
Zaglądałem do lokalnego katalogu /usr/share/locale/pl/LC_MESSAGES.
Spróbuję zrobić jak radzisz ale najpierw zapoznam się ze wszystkim.
Czy Wam zaawansowanym użytkownikom to nie przeszkadza ?
Co za &#$ wpadł na pomysł żeby dla polskiej lokalizacji tak ustawić format daty ?

Pozdrawiam
Tangram
Back to top
View user's profile Send private message
tangram
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 102
Location: 3City, Poland

PostPosted: Wed Sep 19, 2007 6:19 am    Post subject: Reply with quote

Arfrever:
Sprytne rozwiązanie :wink: , wzorując się na nim, tak samo "przerobiłem" pliczek mc.
W ten sposób mam pod "ls" i "mc" normalny format daty.
Cieszę się ale do pełnej satysfakcji brakuje mi przekonania że jest to rozwiązanie globalne,
no i trzeba o tym pamiętać po updateach czy reemergach, niemniej dzięki za pomoc.
Temat można zamknąć.

PZ
Tangram
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2462
Location: Polska / Lenkija

PostPosted: Wed Sep 19, 2007 4:32 pm    Post subject: Reply with quote

tangram wrote:
Temat można zamknąć.


Zazwyczaj tematów się tutaj nie zamyka.
Dodaj "[SOLVED] " do tytułu pierwszego postu.

Jeśli chodzi o MC, to w następnym wydaniu powinno być to naprawione.

Perduodu linkėjimus
Arfrever
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt 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