Skip to content

Commit

Permalink
add translation for apparmor modes (bnc#878587)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jun 2, 2014
1 parent e5c2880 commit cbdfb6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/include/apparmor/config_complain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,16 @@ def getRecordList(showAll)
)
end

translation_mapping = {
# translators: string is value in table for mode of apparmor
"enforce" => _("enforce"),
"complain" => _("complain"),
}

Builtins.foreach(db) do |record|
recList = Builtins.add(
recList,
Item(Id(key), Ops.get(record, "name"), Ops.get(record, "mode"))
Item(Id(key), Ops.get(record, "name"), translation_mapping[record["mode"]])
)
key = Ops.add(key, 1)
end
Expand Down

0 comments on commit cbdfb6e

Please sign in to comment.