GNOME Bugzilla – Bug 428560
GameGenerator.increment_label() not i18n safe
Last modified: 2008-02-11 07:09:08 UTC
What were you doing when the application crashed? create new puzzle Distribution: Ubuntu 7.04 (feisty) Gnome Release: 2.18.1 2007-04-11 (Ubuntu) BugBuddy Version: 2.18.1 System: Linux 2.6.20-14-lowlatency #2 SMP PREEMPT Mon Apr 2 16:35:43 UTC 2007 x86_64 X Vendor: The X.Org Foundation X Vendor Release: 70200000 Selinux: No Accessibility: Disabled GTK+ Theme: Human Icon Theme: Human Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0 CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0 ----------- .xsession-errors --------------------- ** (yelp:8560): WARNING **: IOR not set. ** (yelp:8560): WARNING **: Could not locate registry Traceback (most recent call last):
+ Trace 126824
sudoku_generator_gui.GameGenerator(self,self.gconf)
self.setup_base_status()
self.increment_label(self.mediumLabel)
curval = int(curtext.split()[0])
-------------------------------------------------- Traceback (most recent call last):
*** Bug 429477 has been marked as a duplicate of this bug. ***
increment_label() is not i18n safe. It assumes labels are in the form: "%d puzzles" As it splits the string and converts the first value to an integer. The count needs to be stored somewhere and not extracted from the string.
423660 and 427375 are duplicates.
*** Bug 419388 has been marked as a duplicate of this bug. ***
*** Bug 433179 has been marked as a duplicate of this bug. ***
*** Bug 431367 has been marked as a duplicate of this bug. ***
*** Bug 434281 has been marked as a duplicate of this bug. ***
Created attachment 87330 [details] [review] Proposed patch Proposed patch.
Clever! I didn't want to find the appropriate object to put the counter on - I didn't think of using the label object! Been coding in C for too many years... Patch looks sane to me.
*** Bug 435992 has been marked as a duplicate of this bug. ***
*** Bug 435927 has been marked as a duplicate of this bug. ***
*** Bug 438478 has been marked as a duplicate of this bug. ***
*** Bug 447550 has been marked as a duplicate of this bug. ***
*** Bug 448026 has been marked as a duplicate of this bug. ***
*** Bug 451349 has been marked as a duplicate of this bug. ***
*** Bug 460094 has been marked as a duplicate of this bug. ***
*** Bug 461426 has been marked as a duplicate of this bug. ***
*** Bug 464951 has been marked as a duplicate of this bug. ***
*** Bug 465043 has been marked as a duplicate of this bug. ***
*** Bug 467879 has been marked as a duplicate of this bug. ***
*** Bug 470050 has been marked as a duplicate of this bug. ***
*** Bug 473240 has been marked as a duplicate of this bug. ***
*** Bug 473907 has been marked as a duplicate of this bug. ***
*** Bug 476987 has been marked as a duplicate of this bug. ***
*** Bug 479178 has been marked as a duplicate of this bug. ***
*** Bug 481875 has been marked as a duplicate of this bug. ***
*** Bug 483605 has been marked as a duplicate of this bug. ***
*** Bug 484003 has been marked as a duplicate of this bug. ***
*** Bug 486324 has been marked as a duplicate of this bug. ***
*** Bug 486460 has been marked as a duplicate of this bug. ***
*** Bug 493323 has been marked as a duplicate of this bug. ***
*** Bug 493565 has been marked as a duplicate of this bug. ***
*** Bug 515632 has been marked as a duplicate of this bug. ***