Exemplo n.º 1
0
 def timeline(self):
     tl = []
     for e in self.etkinlikler():
         if not e.baslangic:
             tl.append((e.etkinlik, e.bitis))
         elif not e.bitis:
             tl.append((e.etkinlik, e.baslangic))
         elif e.baslangic and e.bitis:
             if e.baslangic.date == e.bitis.date:
                 tl.append((e.etkinlik, e.baslangic))
             else:
                 tl.append((gettext(u"%s başlangıç") % e.etkinlik, e.baslangic))
                 tl.append((gettext(u"%s bitiş") % e.etkinlik, e.bitis))
Exemplo n.º 2
0
 def timeline(self):
     tl = []
     for e in self.etkinlikler():
         if not e.baslangic:
             tl.append((e.etkinlik, e.bitis))
         elif not e.bitis:
             tl.append((e.etkinlik, e.baslangic))
         elif e.baslangic and e.bitis:
             if e.baslangic.date == e.bitis.date:
                 tl.append((e.etkinlik, e.baslangic))
             else:
                 tl.append((gettext(u"%s başlangıç") % e.etkinlik, e.baslangic))
                 tl.append((gettext(u"%s bitiş") % e.etkinlik, e.bitis))
Exemplo n.º 3
0
 def __unicode__(self):
     # tn: Kadro bilgileri gösterilirken kullanılan mesaj
     return gettext(u"%(no)s - %(unvan)s %(derece)s. derece") % {
         'no': self.kadro_no,
         'unvan': self.get_unvan_display(),
         'derece': self.derece
     }
Exemplo n.º 4
0
 def __unicode__(self):
     # tn: Kadro bilgileri gösterilirken kullanılan mesaj
     return gettext(u"%(no)s - %(unvan)s %(derece)s. derece") % {
         'no': self.kadro_no,
         'unvan': self.get_unvan_display(),
         'derece': self.derece
     }
Exemplo n.º 5
0
 def __unicode__(self):
     return gettext(u'%(ad)s %(soyad)s %(sicil_no)s') % {
         'ad': self.ad,
         'soyad': self.soyad,
         'sicil_no': self.emekli_sicil_no
     }
Exemplo n.º 6
0
 def __unicode__(self):
     return gettext(u'%(ad)s %(soyad)s %(sicil_no)s') % {
         'ad': self.ad,
         'soyad': self.soyad,
         'sicil_no': self.emekli_sicil_no
     }
Exemplo n.º 7
0
 def __unicode__(self):
     return gettext(u"%(ad)s %(soyad)s") % {
         'ad': self.ad,
         'soyad': self.soyad
     }
Exemplo n.º 8
0
 def __unicode__(self):
     return gettext(u"%(ad)s %(soyad)s") % {'ad': self.ad, 'soyad': self.soyad}
Exemplo n.º 9
0
def derslik_durumu_listele():
    return [
        (1, gettext(u'Herkese Açık')),
        (2, gettext(u'Bölüme Ait')),
        (3, gettext(u'Herkese Kapalı')),
    ]
Exemplo n.º 10
0
def uygunluk_durumu_listele():
    return [
        (1, gettext(u"Uygun")),
        (2, gettext(u"Mümkünse Uygun Değil")),
        (3, gettext(u"Kesinlikle Uygun Değil"))
    ]
Exemplo n.º 11
0
 def __unicode__(self):
     return gettext(u"Role %s") % self.name or (self.key if self.is_in_db() else '')
Exemplo n.º 12
0
 def __unicode__(self):
     return gettext(u"Role %s") % self.name or (self.key if self.is_in_db() else '')
Exemplo n.º 13
0
def gettext(message):
    """A wrapper around `zengine.lib.translation.gettext` that sets the correct domain for ZEngine."""
    return translation.gettext(message, domain=_Z_DOMAIN)