#694: Translations scaffolding
------------------------+--------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  task       |     Status:  review
  Priority:  minor      |  Milestone:
 Component:  trac core  |    Version:  0.7.0
Resolution:             |   Keywords:  i18n
------------------------+--------------------

Comment (by olemis):

 Replying to [comment:3 SaintGermain]:
 >
 [...]
 >
 > I am a bit lost on which file I am supposed to put this code:
 > {{{
 > from trac.util.translation import domain_functions
 >
 > _, tag_, N_, add_domain = \
 >     domain_functions('foo', ('_', 'tag_', 'N_', 'add_domain'))
 > }}}
 >
 > Can some explain it to me ?
 >

 AFAICS you'll have to add this everywhere in code where translations will
 be needed ... but maybe it is better to have a single module e.g.
 `bhdashboard.util.translation` to define wrappers scoped to the given
 translation domain e.g. `'bhdashboard'` and then just replace `from
 trac.util.translation import _` with `from bhdashboard.util.translation
 import _`.

 What do you think

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/694#comment:12>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to