Bug 161987

Summary: Please do not use substring in messages should be trabslated
Product: [Fedora] Fedora Reporter: Andrew Martynov <andrewm>
Component: system-config-bindAssignee: Jason Vas Dias <jvdias>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.0.0-18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-19 08:36:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screen shot with English and Russian (Translated) Dialog none

Description Andrew Martynov 2005-06-28 20:49:06 UTC
Description of problem:
During translation I found code line where substring
of translated message was used:

#system-config-bind-4.0.0/DNSsec.py
724: s.importEntryLabels[s.azMethodCombo.get_active()].get_text()[6:]

It breaks translation and user will see only part of first word of message.

Version-Release number of selected component (if applicable):
system-config-bind-4.0.0-16

How reproducible:
Every time.

Steps to Reproduce:
1. Run s-c-b while LANG=C
2. Choose New -> DNSSEC Trusted Key -> Add -> OK
3. You will see message regarding "non-empty" string.
4. Run s-c-b while LANG=ru_RU.UTF-8
5. Choose New -> DNSSEC Trusted Key -> Add -> OK
6. You will see message with only 4 last chars of word "ÐведиÑе" (Enter)
  
  
Actual results:


Expected results:


Additional info:
This code is going to cut 6 chars from string "Enter DNS Server Name"

I suppose it is not good idea to use string operation with localized GUI label
names.

Comment 1 Andrew Martynov 2005-06-28 20:49:07 UTC
Created attachment 116088 [details]
screen shot with English and Russian (Translated) Dialog

Comment 2 Jason Vas Dias 2005-07-16 00:51:06 UTC
This bug is now fixed with system-config-bind-4.0.0-18

Comment 3 Andrew Martynov 2005-07-19 18:23:21 UTC
Thanks!

Bug should be closed now.