Re: Does anybody have the mail gateway working with translations?

Ralf Schlatterbeck <[email protected]> Thu, 12 May 2022 09:32:41 +0200
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
On Thu, May 12, 2022 at 08:50:21AM +0200, Thomas Arendsen Hein wrote:
> Hi John!
> 
> * John P. Rouillard <[email protected]> [20220511 21:28]:
> > Does anybody have the mail gateway running in a locale other than
> > english and can confirm that the geteway translates things?
> > 
> > Even better would be tips on how to test this.
> 
> I just tested with an email subject
> [issue999999] test [assignedto=doesnotexist]
> 
> with two different 1.x instances of roundup that are set to German
> language: [tracker] ... language = de_DE.UTF-8
> (I haven't configured language in [mailgw])
> 
> Both trackers replied with an english message.
> 
> I haven't tried things like adjusting the locale environment
> variables (LANG/LC_MESSAGES/LC_ALL), maybe this would help?

Tracebacks where an error message is returned to the user (e.g. from an
auditor Reject exception) have probably never worked. This would require
something like

raise (_ (...))

Which the code simply doesn't do.

When raising a Reject exception in a detector (auditor) the code before
the recent changes did not provide a simple mechanism for translating
Reject execptions.

And all the other exceptions also do not translate their error message.

So to find out if translation works for the mail GW a test with another
message would be better. Has someone recently tried to get a localized
help-text (by sending a message with the subject "help" to the tracker)?

Unfortunately although living in a country where localized messages for
the mail GW would make sense I'm currently not running a tracker with
localization.

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   www.runtux.com
Reichergasse 131, A-3411 Weidling       email: [email protected]