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

Comment (by olemis):

 Replying to [comment:72 SaintGermain]:
 > Replying to [comment:71 olemis]:
 [...]
 > >
 > > {{{#!sh
 > >
 > > $ grep -nr "RepositoryAdmin" bloodhound_theme
 > > bloodhound_theme/bhtheme/theme.py:512:
 href=req.href.wiki('TracRepositoryAdmin')))
 > >
 > > }}}
 > >
 > > This is the line that's replacing mainnav item when repository is not
 activated . The issue I mention actually happens when repository is not
 configured and that link is displayed , so ... my point is let's translate
 the caption as `Source` rather than `Browse Source` , this will create an
 entry in bhtheme translations catalog for that string and we could prepare
 other parts so as to ensure label will be translated . Notice that
 translations are applied if repos is connected / configured .
 > >
 >
 > Just to be clear: replacing 'Browse Source' by 'Source' will not be
 enough to make it work.

 If you replace repos doc mainnav item caption with Source why bother
 adding it in trac.ini ?

 [...]
 > But one thing I don't get: why don't we just remove the browser.label
 and tickets.label from the generated base.ini (or at least make them as
 comment) ?
 >

 In the short term we could . In the long term we should be thinking about
 providing site-specific translations (like /templates and /htdocs) ...

 > I don't really see the point of using the exact same label as the
 default one, and forcing the translation.
 > Probablity is that if the use wants to override the label, he won't use
 the default one, so they won't be translated anyway.
 >
 <ot>
 ... but the user could compile their own translations include them in (...
 say ...) /path/to/trac/env/locale/fr/... and activate translations (...
 with an extra option for i18n in mainnav label)
 </ot>

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

Reply via email to