Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #267
| Date | 2011-07-30 13:19 +0300 |
|---|---|
| From | svilen <az@svilendobrev.com> |
| Subject | translated python 3 (into bulgarian or else) |
| Newsgroups | comp.lang.python.announce |
| Message-ID | <mailman.1661.1312038059.1164.python-announce-list@python.org> (permalink) |
g'day
Here an attempt of translated Python 3: replacing the english words
( operators, names and messages - if,else,for,..) with another language
- e.g. bulgarian (ако,иначе,за). For kids, and people who want to think
and write in their own language, instead of suffer with the
alternatives - near-"english", transliteration into latin, mixed
latin-cyrilic, whatever.
клас Филминфо( Инфо): #изцяло преведено / fully translated
@класметод
деф сглоби_име( кл, име ):
имена = [ име ]
ако име.завършва('.bg'): имена.допълни( име[:-3])
инако име.завършва('.ru'): имена.допълни( име[:-3])
иначе: имена.допълни( име)
върни Инфо.сглоби_име( *имена)
class Filminfo( Info): #изцяло на английски / fully in english
@classmethod
def make_name( kl, name):
names = [ name]
if name.endswith('.bg'): names.append( ime[:-3])
elif name.endswith('.ru'): names.append( име[:-3])
else: names.append( ime)
return Info.make_name( *names)
it's work in progress, so far in bulgarian only, but it's a couple of dictionaries.
Plenty of things to do like translating error messages, some builtins
and some types' methods... hands are always needed.
http://smok.sf.net/
other my software- and language- related stuff:
http://www.svilendobrev.com/rabota/mysoft.html
http://www.svilendobrev.com/rabota/
have fun
svilen
Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread
translated python 3 (into bulgarian or else) svilen <az@svilendobrev.com> - 2011-07-30 13:19 +0300
csiph-web