[linux-programlama] Re: po dosyalarinin olusturulmasi

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Volkan YAZICI (yazicivo@itu.edu.tr)
Date: Fri 30 Apr 2004 - 14:13:11 EEST


merhaba,
pygettext script'ini ben de edinmistim ama bir turlu
calistirmayi beceremedim, soyle ki:

shell$ cat example.py
#!/usr/bin/python
# -*- coding: iso-8859-9 -*-

from gettext import bindtextdomain, textdomain, gettext

bindtextdomain('Example App.', '/home/knt/python/gettext/')
textdomain('Example App.')
_ = gettext

print _('deneme yazı')
shell$ ./pygettext.py -h
...
    -a
    --extract-all
        Extract all strings
...
        -n [style]
    --add-location[=style]
                Write filename/lineno location comments indicating where each
                extracted string is found in the source. These lines appear before
                each msgid.
...
shell$ ./pygettext.py -a -n example.py
...
option -a not recognized # burada nasil boyle bir hata verdi onu da anlamis
                         # degilim. -a kendi parametresi degil mi :P
shell$ ./pygettext.py -n example.py
...
Invalid value for --add-location: example.py # cildirma noktasindayim
shell$ ./pygettext.py example.py
shell$ cat messages.pot
# POT file generated by pygettext.py 0.1
# Fri Apr 30 12:47:41 2004
#
shell$ _

sanirim ne demek istedigim bu sekilde daha iyi anlam kazanmistir. her seyden
once program neden kendi parametrelerini desteklemiyor ki? neyse, bu
duzeltilebilir bir sey olsun, peki ya messages.pot dosyasinin durumu?

ilginizden dolayi tesekkurler
iyi calismalar

On Fri, Apr 30, 2004 at 11:57:55AM +0300, Tonguç Yumruk wrote:
> pygettext komutuyla python scriptlerinin i?inden ?evrilecek string'leri
> ay?klayabilirsin.
>
> Fri, Apr 30, 2004 at 11:26:05AM +0300 Tarihinde Volkan YAZICI Demi?ki :
> > sorum su sekilde olacak: po dosyalarini olusturmak icin, gettext'in
> > manual'ini hatim ettikten sonra duz text dosyalari olusturarak yazmaktan baska,
> > bunu yapmakta bize yardimci olabilecek bir program var mi? ya da en azindan bir
> > dokumantasyon onerisi olan?

-- Attached file included as plaintext by Ecartis --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAkjTHGcWq5WdHoacRAh3nAJ49He+dZ/y1ebHUA/D7rKnqOD4pOQCdFSqS
uFBwl/HMBpdcuuGlbSBxy4U=
=2PsB
-----END PGP SIGNATURE-----


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.