#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 SaintGermain):
Replying to [comment:71 olemis]:
> IMO , these should be translated as well .
> @rjollos : what do you think ?
>
Problem is that this code is in Trac.
> > If you want to have the same result for 'Source', we have also to
duplicate that code for 'Source' (except that in our case we don't want to
change the href, we just want to replace 'Source' by its translation).
> >
>
> We already have
>
> {{{#!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. You can try by using 'Browse Source' in base.ini and it
won't be translated. We need additional code which will trigger even if
repository is not configured to force the translation.
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) ?
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.
Or maybe I have missed something ?
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/694#comment:72>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker