Re: [issue2551007] Selection fields are not translated
Mathias Behrle <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Organization | MBSolutions |
| Message-ID | <[email protected]> |
* 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 -"
Cheers,
Mathias
--
Mathias Behrle
MBSolutions
Gilgenmatten 10 A
D-79114 Freiburg
Tel: +49(761)471023
Fax: +49(761)4770816
http://www.m9s.biz
UStIdNr: DE 142009020
PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
AC29 7E5C 46B9 D0B6 1C71 7681 D6D0 9BE4 8405 BBF6
_______________________________________________
Roundup-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-devel
signature.asc
(application/pgp-signature, 867 B)
-----BEGIN PGP SIGNATURE----- Comment: Signed by Mathias Behrle iQIzBAEBCgAdFiEErCl+XEa50LYccXaB1tCb5IQFu/YFAlu/R1EACgkQ1tCb5IQF u/bEMxAAqTUdDSO+IDvKqH0VZofWTb5fdEElhYxUBAvMCx1h3x2mbRRoW5c0KS8p OFPwoV/GnIxL+p6dRfRnASuDINLJCIxvlb2yjzG+zuXx2FeTUSmepaOmJ7D5rB73 azDmni2NaOdkmH1QnDeOUS1mHJB/2p6Tts1ysy/bm33e5bqRfHTRirMLB9z9Vk7X 7d6HxYT9w4DjoB2KO4U0V7Ek16TeL+5YbW9E1xnsot+ltHwDOWm4LppLyPF2OX8F 5l9sf5h2rZIlsGzQRS0R+fZu/jHZi3gEALaXeL4KtW6xHxOha2pcHwvOBi8OdSZ5 nexs+l/ICM2gsdIpLEzIw+m+BBR8Nb5+rBIDOxe4hy0HKaVy4FwYTQpopVrV5zvu XfAPXCbuxXrRrS7MZzOGzxUNYu335eGdoEEsVsZ7wLRAAY6a76EF0GlDuXbQobdz R+ByCMEZiDPyZxoJFX34/YshSLNIfUstC7YyMIn6nkDXgB4GtE7sm/Vr6blpnuhq pWIW515KIZsIJBQm46gSZR9+uUIzYGqCmwCCmXjVC4/xt5oLVFDnVvGDl8mjyzY1 RcsJhMGcp+BRc6zPS1nQm6VTD0mfXDFzMvH5itcnoyI0CtpkDmsFE0A0UY39UKg+ WzpK+B895WAJdjL07KFVb/T2oAs77WPgou+kMdGb3LfoyiYzqVE= =0Z5I -----END PGP SIGNATURE-----