Roundup Tracker - Issues


Author mathiasb
Recipients mathiasb, mbehrle, rouilj, schlatterbeck
Date 2018-10-11.12:51:41
Message-id <>
In-reply-to <>
* Ralf Schlatterbeck: " Re: [Roundup-devel] [issue2551007] Selection fields are
  not translated" (Thu, 11 Oct 2018 09:07:43 +0200):

> On Wed, Oct 10, 2018 at 09:05:30PM -0400, John P. Rouillard wrote:
> > 
> > while search_select_translated does:
> >   
> ...
> >             i18n:translate=""></option>  
> > If I understand this, the 'i18n:translate=""' causes the templating
> > engine to look up the content of the option tag (which I think is the
> > displayed label) as a key in the translation table. Then it uses the
> > result of that look up as the content.
> > 
> > If the content string of the option doesn't exist in the translation
> > table the content is left untranslated.  
> Yes, that's correct.
> > >From what info you have provided, I don't know if i18n:translate="" is  
> > missing from the template's options statement or if there is no
> > translation for the option label. Either would result in what you see.  
> That would also be my first guess, on the other hand this can also
> be a bug introduced with python3 support.
> So if the same (unmodified) templates worked with an earlier version
> of roundup and no longer works now, I would expect this.
> Ralf

Guys, thanks a lot for helping!

Indeed the main reason were lost translations in the po file. After re-creating
the po file and merging the old translations they now appear translated except
a few ones:

- all date/time values in column activity (yesterday, month ago, day, ago...)

- the first item in selection boxes which is '- no selection -' (encountered
  also when using the jinja2 templates - which I like very much btw.)

The latter item is translated and in the po file:

#: ../html/issue.item.html:122 ../html/issue.item.html:197
#: ../html/issue.item.html:220
msgid "- no selection -"
msgstr "- nichts ausgewählt -"



    Mathias Behrle
    Gilgenmatten 10 A
    D-79114 Freiburg

    Tel: +49(761)471023
    Fax: +49(761)4770816
    UStIdNr: DE 142009020
    PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
    AC29 7E5C 46B9 D0B6 1C71  7681 D6D0 9BE4 8405 BBF6
Date User Action Args
2018-10-11 12:51:42mathiasbsetrecipients: + mathiasb, schlatterbeck, rouilj, mbehrle
2018-10-11 12:51:42mathiasblinkissue2551007 messages
2018-10-11 12:51:41mathiasbcreate