> [: Willie Walker :]
> The current Orca code does the equivalent of this:

In MO files contexts are separated by U+0004 from the message proper, so I
used something equivalent to this in a code I work on:

  def C_ (c, s):
      s = _(c + "\x04" + s)
      p = s.find("\x04")
      if p >= 0: # satisfied only if no translation found
          s = s[p + 1:]
      return s

-- 
Chusslove Illich (Часлав Илић)

Attachment: pgp5eM7keb1WI.pgp
Description: PGP signature

_______________________________________________
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n

Reply via email to