Bug ID 1043546
Summary "Toggle Mode" in YaST AppArmor module does not work in non-English locale
Classification openSUSE
Product openSUSE Distribution
Version Leap 42.2
Hardware x86-64
OS openSUSE 42.2
Status NEW
Severity Normal
Priority P5 - None
Component YaST2
Assignee yast2-maintainers@suse.de
Reporter belphegor@belbel.or.jp
QA Contact jsrain@suse.com
Found By ---
Blocker ---

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Firefox/52.0
Build Identifier: 

While in English locale, YaST2 AppArmor module can switch modes between
"enforce" and "complain" by "Toggle Mode" button in "Configure Profile Mode"
dialog.

But while in non-English locale (especially when "enforce" and "compain" are
translated to another string, "������" and "������" for example (Japanese)), this
module cannot recognize current mode and show an error message "Could not
recognize mode".

I think that this module recognizes the current mode from a string in GUI
table, but this string may be translated to something different.
This logic should be modified to recognize from original (not-translated) one.


Reproducible: Always

Steps to Reproduce:
1. Install "yast2-trans-ja" package.
2. Run "LANG=ja_JP yast2 apparmor".
3. Push "���������������������" (Toggle Mode) button in "������������������������������������" (Profile Mode
Configuration) dialog.
Actual Results:  
Shows error message "���������������������������������" (Could not recognize mode).

Expected Results:  
Can be switched between "enforce" and "complain".


You are receiving this mail because: