Bug #7555
closedSnort settings show translation metadata when creating a new interface that is not yet defined
0%
Description
A few places in snort call gettext("{$if_friendly}")
but that ends up showing translation metadata when it is a new interface that has not yet been saved/enabled.
Example, the breadcrumbs when creating a new interface show:
Services / Snort / Edit Interface / Project-Id-Version: PACKAGE VERSION Report-Msgid-Bugs-To: POT-Creation-Date: 2017-05-16 09:23-0300 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PO-Revision-Date: 2017-02-03 05:17-0500 Last-Translator: Jim Thompson Language-Team: English (United States) Language: en-US X-Generator: Zanata 3.9.6 Plural-Forms: nplurals=2; plural=(n != 1)
In this case, $if_friendly
is NULL
when gettext is called.
Updated by Bill Meeks over 7 years ago
This is fixed in Snort GUI package version 3.2.9.3. The value is checked, and if NULL, the string "None" is substituted instead. This issue can be closed.
Updated by Jim Pingle over 7 years ago
- Status changed from New to Resolved
This is working in the current package. Thanks!
Updated by Jim Pingle over 7 years ago
You might consider changing "None" to "New Interface" or something like that as otherwise the tab names could be confusing to users.
Updated by Bill Meeks over 7 years ago
Jim Pingle wrote:
You might consider changing "None" to "New Interface" or something like that as otherwise the tab names could be confusing to users.
Good idea. I will do that in the next update. I suspect the same issue exists in the Suricata package as well, since they share a bunch of GUI code. I will fix it there, too.
Bill