Re: language in roundup mails
Martin Thomas Swaton <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Ralf, thank you for the quick reply. Yes I thought there might be some language templates because of that setting, but my mail gateway language already is set to "de" And it still only sends english mails. the .mo file is present in the locales directory for de/roundup. any idea why no translation is done? Yes, templating would be great for mails. But now a translation already would be awesome :-) cheers martin Am 25.06.2015 um 17:36 schrieb Ralf Schlatterbeck: > 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 > ------------------------------------------------------------------------------ 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