Re: Bug 569118 - Use C_() instead of Q_() with context (orca)



> [: 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: pgpsrU88DDAux.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]