Re: language in roundup mails

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
On Thu, Jun 25, 2015 at 03:38:40PM +0200, Martin Thomas Swaton wrote:
> Hi guys,
> 
> after reading all guides and the developer infos, having a look at the 
> source of roundupdb.py,
> I am asking myself, if there really is no possibility to change the 
> language of mailcontents in roundup?
> 
> As it seems, mails are constructed in roundupdb.py e.g. the string 
> "added the comment" is appended.
> Isn't there any templating done for mails?
> Or at least, isn't there a possibility to provide the strings in 
> different languages?
> 
> The guide talks about the .po / .mo files but first I cannot find any, 
> second are they only used for the web text?

There is a config variable 'language' in section '[mailgw]' in
config.ini. This should set the language of the mail interface.
Let us know if this doesn't work as advertised for you.

Otherwise no templating is done for mail.
Now that we have jinja templates as a template option for the web
interface it probably makes sense to use that for mail, too. But it
isn't implemented yet.

The .po and .mo files are installed into PREFIX/share/locale (where
PREFIX is your python package installation prefix which how you
installed roundup, typically /usr/local if not installed via package
management of your Linux distribution). In addition you can have
additional .mo and .po files in the 'locale' directory of your roundup
instance.

Ralf

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

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.