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

Comment (by SaintGermain):

 Ok I will try to follow the guidelines:

 1. Detect all strings selectable for translation , especially _('string')
 1. Create translation domain for Bloodhound plugins (or maybe one domain
 per plugin ?)
 1. Define i18n:domain in Genshi templates
 1. Run Trac extraction commands
 1. Prepare and compile the catalog
 1. Ensure that translations will be actually loaded (e.g. domain match)
 1. Upload files onto Transifex
 1. Translate to <language>
 1. Ensure that translations will be actually loaded for <language>

 Reading this page:
 http://trac.edgewall.org/wiki/CookBook/PluginL10N
 #MakethePythoncodetranslation-aware

 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 ?

 Thanks

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

Reply via email to