Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #267 > unrolled thread
| Started by | svilen <az@svilendobrev.com> |
|---|---|
| First post | 2011-07-30 13:19 +0300 |
| Last post | 2011-07-30 13:19 +0300 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python.announce
translated python 3 (into bulgarian or else) svilen <az@svilendobrev.com> - 2011-07-30 13:19 +0300
| From | svilen <az@svilendobrev.com> |
|---|---|
| Date | 2011-07-30 13:19 +0300 |
| Subject | translated python 3 (into bulgarian or else) |
| Message-ID | <mailman.1661.1312038059.1164.python-announce-list@python.org> |
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 top | Article view | comp.lang.python.announce
csiph-web