[Bug 307220] New: Wrong variable in YaST user management
https://bugzilla.novell.com/show_bug.cgi?id=307220#c546 Summary: Wrong variable in YaST user management Product: openSUSE 10.3 Version: Beta 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: kkemenczy@novell.com QAContact: jsrain@novell.com Found By: --- In the user.po fájl, the message #546 has a wrong variable association. %1 should refers to the "Finished" button, but it looks like it refers to another one. In the Hungarian translation not all "Finished" translated to the same word. In that case the help has a different button name. Please see the attachment. thanks kalman -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c1 --- Comment #1 from kalman kemenczy <kkemenczy@novell.com> 2007-09-03 13:14:58 MST --- Created an attachment (id=161567) --> (https://bugzilla.novell.com/attachment.cgi?id=161567) Variable error in the YaST user mondule's help file -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |yast2-maintainers@suse.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c2 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |ke@novell.com --- Comment #2 from Jiri Srain <jsrain@novell.com> 2007-09-03 23:52:32 MST --- The help texts do not reffer to individual widgets, but contain the texts repeated (it is not trivial to strip off the shortcut marker in some languages). Karl, please, pass to the translator... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c3 --- Comment #3 from kalman kemenczy <kkemenczy@novell.com> 2007-09-04 01:13:10 MST --- I am the translator, but I am not sure where this variable comes from. But the buton label and the helptext should be the same. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c4 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jsrain@novell.com --- Comment #4 from Karl Eichwalder <ke@novell.com> 2007-09-10 09:35:13 MST --- In users.hu.po I see: #. button label (without shortcut sign) #: src/widgets.ycp:1003 msgid "Finish" msgstr "Befejezés" I do not know whether that's related, though. Anyway, I do not really understand the problem. If you do not use the label of the bottom right button modulo the shortcut marker, why using a variable assignment at all? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c5 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jsrain@novell.com | --- Comment #5 from Jiri Srain <jsrain@novell.com> 2007-09-11 02:33:23 MST --- This text is taken from base.hu.po (so that we don't translate the labels again and again): #. Button label #: library/modules/Label.ycp:65 msgid "&Finish" msgstr "&Kész" The text above you refer to is used only in the help text (since versions with "Next" and "Finish" exist) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c6 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jsrain@novell.com --- Comment #6 from Karl Eichwalder <ke@novell.com> 2007-09-11 02:53:08 MST --- Complicate. Does this mean, you must translate #. button label (without shortcut sign) #: src/widgets.ycp:1003 msgid "Finish" as msgstr "Kész" because this is what gets pulled in automatically from "base"? But then I do not understand why we do not use the button label literally. If the translator must lookup the translation in base first, it is still error prone. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c7 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jsrain@novell.com | --- Comment #7 from Jiri Srain <jsrain@novell.com> 2007-09-11 03:38:46 MST --- Yes, it does. In fact, we have the very same problem in every YaST module. In order to unify, we have the button labels in base.po, but the helps differ. In this case, the button is as a standalone text and inserted into the help message, in other cases it is a part of the help texts. The only solution which would work in this regard is a functionality to remove the shortcut mark. Then we would be sure to use always the same translation, but otherwise I do not see any way. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c8 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|ke@novell.com |jsrain@novell.com Status|ASSIGNED |NEW --- Comment #8 from Karl Eichwalder <ke@novell.com> 2007-09-11 08:14:41 MST --- Ok. I'd like you to improve the comment, maybe as follows (assuming that all the buttons are provided by base.pot): #. button label (use the same translation as in 'base', but without #. the shortcut sign) #: src/widgets.ycp:1003 msgid "Finish" And for 10.3 just let's hope the best. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c9 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |locilka@novell.com AssignedTo|jsrain@novell.com |jsuchome@novell.com --- Comment #9 from Lukas Ocilka <locilka@novell.com> 2007-09-17 01:55:03 MST --- Anyway, maintainer of YaST Users module is jsuchome. Jiri, please, see comment #8. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c10 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |jsrain@novell.com --- Comment #10 from Jiří Suchomel <jsuchome@novell.com> 2007-09-17 02:24:25 MST --- What about introducing new set of functions, like Label::Finish, Label::Next, that would differ from the Label::FinishButton (Label::NextButton) only by missing shortcut? Than we can use variables also at these places. But of course, translator could translate differently those 2 texts ("Finish" vs "&Finish") even if both would be in the same file... Removing shortcut sigh with deletechars function is probably no way to go, as it may fail for CJK languages - or am I wrong here? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c11 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|jsrain@novell.com | --- Comment #11 from Jiri Srain <jsrain@novell.com> 2007-09-18 09:38:59 MST --- Yes, this may be a solution. Having the two texts translated very close to each other in the .pot-files should help. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c12 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #12 from Jiří Suchomel <jsuchome@novell.com> 2007-09-18 12:45:35 MST --- But now it is too late anyway. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c13 --- Comment #13 from kalman kemenczy <kkemenczy@novell.com> 2007-09-26 01:55:37 MST --- Another example: base.pot - message #56 #. help text for service auto start widget #. %1 and %2 are button labels #. %1 is eg. "On -- Start Service when Booting" #. %2 is eg. "Off -- Start Service Manually" #. (both without quotes) #: library/cwm/src/CWMServiceStart.ycp:196 #, ycp-format <p><b><big>Service Start</big></b><br>\n To start the service every time your computer is booted, set\n <b>%1</b>. Otherwise set <b>%2</b>.</p> %1 and %2 variables not point to the label appears in modul. This should point to firewall.pot - messages #116 an #117 &Enable firewall automatic starting &Disable firewall automatic starting See atachment. Sorry this is Hungarian but you can see the differnces. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c14 --- Comment #14 from kalman kemenczy <kkemenczy@novell.com> 2007-09-26 01:57:42 MST --- Created an attachment (id=174771) --> (https://bugzilla.novell.com/attachment.cgi?id=174771) Different text in the help file vs. in radio buttons (comes from variables) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsuchome@novell.com |jsrain@novell.com Status|REOPENED |NEW -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c16 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ke@novell.com --- Comment #16 from Jiri Srain <jsrain@novell.com> 2007-11-09 02:53:55 MST --- In the later case, both help text and the button text are part of one file. Unfortunately, there is no way to remove the shortcut mark from the button labels to use the string only once (it's problematic eg. for CJK languages). This is something translators must handle. Karl, just to ensure there is no optimal solution, is there a function which is able to remove the shortcut mark from a string in all languages? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c17 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|ke@novell.com | --- Comment #17 from Karl Eichwalder <ke@novell.com> 2007-11-09 03:50:44 MST --- I'm not aware of such a feature. You probably mean at runtime, do you? Or do you want to manipulate the .po translation files. Concerning .po files, you could use a combination of msggrep | msgfilter, and then msgcat. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c18 --- Comment #18 from Jiri Srain <jsrain@novell.com> 2007-11-09 04:31:58 MST --- Yes, I meant runtime. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c19 --- Comment #19 from Karl Eichwalder <ke@novell.com> 2007-11-09 06:00:43 MST --- Such a function does not exist, AFAIK. If you do not want to modify the standard gettext function, we could try to create dedicated translation file with all shortcuts remove and you could set the textdomain to this translation file if necessary. I do not know how reliably this would work... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220#c20 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvidner@novell.com, coolo@novell.com Status|ASSIGNED |NEEDINFO Info Provider| |ke@novell.com --- Comment #20 from Jiri Srain <jsrain@novell.com> 2007-12-03 07:41:23 MST --- Well, just an idea: if (language is CJK, we can update the set as needed) s/ *(&[a-zA-Z]) *// else s/&// Do we have any other group of languages which need special handling? Even if we do, it may be feasible to handle them a special way. Do you think this may be a way to go? The advantage: We get rid of similar inconsistencies forever if we find such way to generate labels for helps. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220 User ke@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=307220#c22 --- Comment #22 from Karl Eichwalder <ke@novell.com> 2008-01-30 19:45:44 MST --- Your approach looks fine. I guess other script languages are also affected. I'm going to ask on the o-translation ML. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220 User cthiel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=307220#c23 Christoph Thiel <cthiel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cthiel@novell.com --- Comment #23 from Christoph Thiel <cthiel@novell.com> 2008-04-25 06:45:09 MST --- Karl, *ping* -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220 User ke@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=307220#c24 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|ke@novell.com | --- Comment #24 from Karl Eichwalder <ke@novell.com> 2008-04-25 07:08:11 MST --- According to the feedback I received, also Punjabi (pa) is affected: From: Aman <apreet.alam@gmail.com> Subject: Re: [opensuse-translation] About shortcuts (yast) To: opensuse-translation@opensuse.org Cc: Karl Eichwalder <ke@suse.de> Date: Tue, 12 Feb 2008 12:00:22 +0530 Karl Eichwalder ਨੇ ਲਿਖਿਆ:
In some modules it is possible to reuse button texts within the help texts. The problem is to find a way to eliminate the shortcut denominators such as "&Ok" or "&Cancel" (note the ampersand).
It is not that difficult with languages based on latin characters (French, Czech, Dutch, etc.). But for Asian and other script based languages we must work out special routines. Please, describe how you use shortcuts in your language; if you do it the English way, there is no need to send an e-mail, but if you use something such as follows (ja):
#. Button label #: library/modules/Label.ycp:57 msgid "&No" msgstr "いいえ (&N)"
tell me about it.
for Punjabi, we are using like above, (keep shortcut in English with () ). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220 User mvidner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=307220#c25 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Wrong variable in YaST user management |Wrong variable in YaST user management | |(String::RemoveShortcut) --- Comment #25 from Martin Vidner <mvidner@novell.com> 2008-05-14 08:23:36 MST --- Comment 20: we should make that into "string String::RemoveShortcut(string)" (I must resist ShortcutCut or Longcut or Shortercut... ;-)) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220 User jsrain@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=307220#c26 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@novell.com |jsuchome@novell.com Status|ASSIGNED |NEW Priority|P5 - None |P3 - Medium --- Comment #26 from Jiri Srain <jsrain@novell.com> 2009-01-06 04:19:31 MST --- I've added string String::RemoveShortcut(string); only in SVN trunk for now. Jiri, please, update the users module's help texts to use the button labels through this function. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307220 User jsuchome@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=307220#c27 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #27 from Jiří Suchomel <jsuchome@novell.com> 2009-01-06 06:29:10 MST --- Done in 2.18.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com