diff options
author | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-03-17 16:36:02 +0000 |
---|---|---|
committer | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-03-17 16:36:02 +0000 |
commit | 9e0639740772e511d1473b4be927c4792c82661e (patch) | |
tree | dbe0bcdeb963658746d03406c142f48744fffadc | |
parent | 89cdf896d312536688d855529ebd48a1b3bda8c7 (diff) | |
download | draksnapshot-9e0639740772e511d1473b4be927c4792c82661e.tar draksnapshot-9e0639740772e511d1473b4be927c4792c82661e.tar.gz draksnapshot-9e0639740772e511d1473b4be927c4792c82661e.tar.bz2 draksnapshot-9e0639740772e511d1473b4be927c4792c82661e.tar.xz draksnapshot-9e0639740772e511d1473b4be927c4792c82661e.zip |
typo fix (Reinout van Schouwen)
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@239841 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rwxr-xr-x | draksnapshot-applet | 43 | ||||
-rw-r--r-- | po/cs.po | 2 | ||||
-rw-r--r-- | po/cy.po | 2 | ||||
-rw-r--r-- | po/da.po | 2 | ||||
-rw-r--r-- | po/draksnapshot.pot | 2 | ||||
-rw-r--r-- | po/el.po | 2 | ||||
-rw-r--r-- | po/et.po | 2 | ||||
-rw-r--r-- | po/eu.po | 2 | ||||
-rw-r--r-- | po/fr.po | 2 | ||||
-rw-r--r-- | po/he.po | 2 | ||||
-rw-r--r-- | po/hu.po | 2 | ||||
-rw-r--r-- | po/ja.po | 2 | ||||
-rw-r--r-- | po/nl.po | 2 | ||||
-rw-r--r-- | po/nn.po | 2 | ||||
-rw-r--r-- | po/pl.po | 2 | ||||
-rw-r--r-- | po/pt_BR.po | 2 | ||||
-rw-r--r-- | po/ru.po | 2 | ||||
-rw-r--r-- | po/zh_TW.po | 2 |
18 files changed, 55 insertions, 22 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet index ce95772..7ffe75e 100755 --- a/draksnapshot-applet +++ b/draksnapshot-applet @@ -56,7 +56,7 @@ my %state = ( }, disk_found => { menu => [ 'configure' ], - tt => [ N_("USB discs are availlable for backups") ] + tt => [ N_("USB discs are available for backups") ] }, config_in_progress => { menu => [], @@ -96,7 +96,22 @@ Gtk2->main; ugtk2::exit(0); -my $config_pid; +my ($config_pid, $checker_pid); + + +my %comm_codes = ( + discs => { + code => 2, + status => 'locked', + log => N_("urpmi database locked") . ", skipping updating urpmi database", + }, + nothing => { + code => 3, + status => 'critical', + log => N_("Error updating media"), + }, +); + # Signal management sub harvester { @@ -111,6 +126,14 @@ sub harvester { # we should better check it has really been configured indeed. setAutoStart('FALSE'); ugtk2::exit(0); + } elsif ($checker_pid && $checker_pid == $childpid) { + undef $checker_pid; + my $status = $? >> 8; + my ($state) = grep { $_->{code} eq $status } values %comm_codes; + if ($state) { + logIt($state->{log}); + go2State($state->{status}); + } } push @pids, $childpid; WIFEXITED($?) and refresh_gui(1); @@ -145,9 +168,19 @@ sub silentCheck() { my $w = $::main_window ? $::main_window->window : undef; gtkset_mousecursor_wait($w); - # force refreshing cache: - detect_devices::probeall_update_cache(); - @discs = grep { $_->{usb_bus} && detect_devices::may_be_a_hd($_) } detect_devices::getSCSI(); + $checker_pid = fork(); + if (defined $checker_pid) { + return if $checker_pid; # parent + + # immediate exit, else forked gtk+ object destructors will badly catch up parent applet + my $_safe = before_leaving { POSIX::_exit(0) }; + + # force refreshing cache: + + detect_devices::probeall_update_cache(); + @discs = grep { $_->{usb_bus} && detect_devices::may_be_a_hd($_) } detect_devices::getSCSI(); + } + go2State('okay') if !@discs; # are there any updates ? @@ -17,7 +17,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "USB disky jsou připraveny pro zálohy" #: ../draksnapshot-applet:64 @@ -15,7 +15,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "Mae disgiau USB ar gael ar gyfer copiau wrth gefn" #: ../draksnapshot-applet:64 @@ -17,7 +17,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "USB diske er tilgængelige til sikkerhedskopiering" #: ../draksnapshot-applet:64 diff --git a/po/draksnapshot.pot b/po/draksnapshot.pot index 0db7e61..73eff73 100644 --- a/po/draksnapshot.pot +++ b/po/draksnapshot.pot @@ -16,7 +16,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "" #: ../draksnapshot-applet:64 @@ -18,7 +18,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "Οι USB δίσκοι είναι διαθέσιμοι για την αποθήκευση αντιγράφων ασφαλείας" #: ../draksnapshot-applet:64 @@ -16,7 +16,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "Varukoopiaid saab teha USB-ketastele" #: ../draksnapshot-applet:64 @@ -16,7 +16,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "USB diskoak babeskopientzako eskuragarri daude" #: ../draksnapshot-applet:64 @@ -18,7 +18,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "Disques USB disponibles pour les sauvegardes" #: ../draksnapshot-applet:64 @@ -16,7 +16,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "כונני USB זמינים לגיבוי" #: ../draksnapshot-applet:64 @@ -14,7 +14,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "Az USB meghajtón lévő mentések" #: ../draksnapshot-applet:64 @@ -16,7 +16,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "USB ディスクがバックアップに使えます" #: ../draksnapshot-applet:64 @@ -19,7 +19,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "Er zijn USB-schijven beschikbaar voor reservekopiëen" #: ../draksnapshot-applet:64 @@ -17,7 +17,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "USB-diskar er tilgjengeleg for reservekopiering" #: ../draksnapshot-applet:64 @@ -16,7 +16,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "Napędy USB są dostępne dla kopii zapasowych" #: ../draksnapshot-applet:64 diff --git a/po/pt_BR.po b/po/pt_BR.po index c44aa74..6d9bdeb 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -15,7 +15,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "Discos USB estão disponíveis para backups" #: ../draksnapshot-applet:64 @@ -15,7 +15,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "Для резервного копирования доступны USB-диски" #: ../draksnapshot-applet:64 diff --git a/po/zh_TW.po b/po/zh_TW.po index 88d7476..c1bdf03 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -15,7 +15,7 @@ msgstr "" #: ../draksnapshot-applet:59 #, c-format -msgid "USB discs are availlable for backups" +msgid "USB discs are available for backups" msgstr "USB 磁碟可以用來備份" #: ../draksnapshot-applet:64 |