[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: error changing keyboard layout to 'tr'



enver beyin verdigi kodla localeleri sectim. Hakikaten
tr 8859-9 ile tr UTF-8 isaretli degildi. Isaretledim.
Daha sonra asagidaki kodlarla locale-gen icerisine
sozkunusu satirlarin yazilmasini sagladim. Hem
environment icerisinde hem de locale-gen icerisinde
Turkce satirlarinin bulundugunu gorerek teyit ettim.
locale-gen komutunu verdim. localeler generate
ediliyorlar hatta Turkceye ait seyleri nedense ardarda
iki defa generate ediyor. Ama yine KDE de sorun var. 

Yok ya ben bu isten sIkIldIm. KDE nin Turkce ayarlarla
acilmasini saglayacagim. Daha sonra diyez, dolar ve
ters slash karakterlerini kopyala yapistir ile
uretecegim napalim.

Sizin de bos yere vaktinizi aliyorum. Cok gerekirse
calismalarimi yedeklerim daha sonra da format atar
bastan kurarim.

Son olarak o scriptin icerigini buraya Yapistiriyorum.

Saglicakla.

clear
echo " "
echo
"----------------------------------------------------------------------------------------"
echo " "
echo "    This Script is lisansed under GNU GPL."
echo "    CopyRight(C) 2001 24/06/2001(the first
public release)"
echo "    This file distributed without any expressed
or implied WARRANTY"
echo "    Written by Ömer Fadýl USTA
<omer_fad@hotmail.com>"
echo "    The MandrakeSoft i18n Turkish Translation
Coordinator"
echo "    icq #10254358"
echo " "
echo
"----------------------------------------------------------------------------------------"
echo " "
echo "    Bu Script Ömer Fadýl USTA tarafýndan
yazýlmýþtýr."
echo "    <omer_fad@hotmail.com> , icq# 10254358"
echo " "
echo "    Bu Uygulamayý GNU GPL lisansýna uygun olmak
þartý ile"
echo "  yukarýdaki bilgiler ve programýn yazarýnýn
isim hakkýný koruyarak"
echo "  düzenleyebilirsiniz veya tekrar
daðýtabilirsiniz."
echo " "
echo
"****************************************************************************************"
echo
"****************************************************************************************"
echo "***                                             
                                    ***"
echo "**  Her ne kadar yapýlan testlerde bir hata ile
karþýlaþýlmadýysa da                  **"
echo "**  bu Scriptin kullanýmýndan dolayý doðabilecek
hiçbir sorundan Scriptin yazarý      **"
echo "**  Ömer Fadýl USTA veya bu script'i Daðýtan
Kiþi/Kiþiler Mesül Deðildir.!            **"
echo "**  Bu Scripti Kullanýrsanýz Yukarýda Yazýlmýþ
þartlarý Kabul etmiþ bulunmaktasýnýz!  **"
echo "***                                             
                                    ***"
echo
"****************************************************************************************"
echo
"****************************************************************************************"
echo " "
echo "           Scriptin Çalýþmasýný Durdurmak/[Ýptal
etmek] için ' Ctrl C ' "
echo "                         Tuþ Kombinasyonunu
Kullanýnýz!"
echo " "
echo "       Unutmayýn Scriptin Çalýþtýrýlmasý
Durumunda Yukarýda Yazýlý Þartlarý "
echo "        Kabul Etmiþ bulunmaktasýnýz. Devam Etmek
için Enter'e 2 kere basýn"
echo "            (press enter twice for contiue or
press Ctrl C to Abort)"
echo " "
echo
"----------------------------------------------------------------------------------------"
echo " "

##
# For Wait the Enter Key to continue :-)
#
read
echo "Enter'a yeniden basýn"
echo "*Press Enter Again*"
read

##
# This part is making some links for l10n files.
#
ln -s /usr/lib/locale/tr_TR
/usr/lib/locale/tr_TR.ISO8859-9 2>/dev/null
ln -s /usr/lib/locale/tr_TR
/usr/lib/locale/tr_TR.iso8859-9 2>/dev/null
ln -s /usr/lib/locale/tr_TR
/usr/lib/locale/tr_TR.ISO-8859-9 2>/dev/null
ln -s /usr/lib/locale/tr_TR
/usr/lib/locale/tr_TR.iso-8859-9 2>/dev/null
ln -s /usr/lib/locale/tr_TR.uft8
/usr/lib/locale/tr_TR.UTF8 2>/dev/null
ln -s /usr/lib/locale/tr_TR.uft8
/usr/lib/locale/tr_TR.Utf8 2>/dev/null
ln -s /usr/lib/locale/tr_TR.uft8
/usr/lib/locale/tr_TR.Utf-8 2>/dev/null
ln -s /usr/lib/locale/tr_TR.utf8
/usr/lib/locale/tr_TR.UTF-8 2>/dev/null


##
# This part is adding new and correct tr and tr_f
files
# { 16 New and Modified File }
#
cp ./Xwin/xkb/ /etc/X11/ -R 2>/dev/null


##
# This part is adding new console fonts and unimaps
# [Hmm maybe this part will make error in different
distributions. But
#  it won't damege any system!. And I must think all
different distributions :-) ]
# { 20 New and Modified File }
#
mkdir /usr/lib 2>/dev/null
cp ./Console/kbd/ /usr/lib/ -R 2>/dev/null
mkdir /usr/share/lib 2>/dev/null
cp ./Console/kbd/ /usr/share/lib/ -R 2>/dev/null
cp ./Console/kbd/ /usr/share/ -R 2>/dev/null


##
# This part fix a bug for KDE2.X.X
# [ This bug fixed in KDE3 . It isn't important if
#   you are using KDE 3.0.0 or newer one. ]
#
echo "utf-8" > /usr/share/locale/tr/charset
2>/dev/null
echo "utf-8" > /opt/kde2/share/locale/tr/charset
2>/dev/null


##
# For Clear the Screen :-)
#
clear

##
# This is for fixing correpted .mo files
# {.mo files are including the localizations for the
applications}
# [ This bug fixed ing KDE 3.0.1. It isn't important
if
#   you are using KDE 3.0.1 or newer one.]
#
for i in `rpm -ql kde-i18n-tr  | grep LC_MESSAGES`; do
msgunfmt -E \
-o - $i | sed 's/^"Content-Type:.*$/"Content-Type:
text\/plain; \
charset=utf-8\\n"/' > A94tMp; msgfmt -o $i A94tMp;
done 2>/dev/null

##
# For Delete a temp file
#
rm A94tMp -f 2>/dev/null

clear
shutdown -r now
reboot



--- Recai Oktas <roktas@omu.edu.tr> wrote:

> Merhaba,
> 
> * Enver ALTIN [2004-12-08 20:29:22+0200]
> > On Wed, 2004-12-08 at 20:15 +0200, Recai Oktas
> wrote:
> > > locales paketini kurmak yetmez, uretilmesi
> gereken yerelleri de
> > > belirtmelisiniz:
> > > 
> > >     echo "tr_TR ISO-8859-9" >>/etc/locale.gen
> > >     echo "tr_TR.UTF-8 UTF-8" >>/etc/locale.gen
> > >     locale-gen
> > 
> > Sanýrým bu metod insan hatasýna daha az pay
> býrakýyor :-)
> 
> Senin onerdigin yontem daha legal ve dogru olani
> aslinda.  Fakat o
> iletiyi cevap yazdiktan sonra gordum.  Daha once
> gorseydim cevap
> yazmazdim :-)  Neyse her iki yontemi de bilmekte
> fayda var...
> 
> -- 
> roktas


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Reply to: