pavucontrol =?ISO-8859-15?Q?=DCbersetzung_und_Patch?=



Hallo,

ich habe die versucht die Übersetzung von pavucontrol zu vervollständigen.
Dabei ist mir aufgefallen, dass die Funktion show_error (show_error_func ) für Übersetzer evtl. vereinfacht werden kann.
(Warum "failed" mehrmals übersetzen? Ist mehr POC...)

Florian
http://git.0pointer.de/?p=pavucontrol.git;a=blob_plain;f=po/de.po;hb=95b817e364d63f0d8cdf946c8327bb372c1d21cc

--- pavucontrol.de.po.bak2	2008-09-05 12:17:43.000000000 +0200
+++ pavucontrol.de.po	2008-09-05 17:21:59.000000000 +0200
@@ -8,8 +8,8 @@
 "Project-Id-Version: pavucontrol\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2008-08-29 09:18+0000\n"
-"PO-Revision-Date: 2008-08-29 12:32+0100\n"
-"Last-Translator: Fabian Affolter <fab fedoraproject org>\n"
+"PO-Revision-Date: 2008-09-05 12:25+0200\n"
+"Last-Translator: Florian Steinel <Florian Steinel googlemail com>\n"
 "Language-Team: German <fedora-trans-de redhat com>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
@@ -50,7 +50,7 @@
 
 #: ../src/pavucontrol.glade.h:6
 msgid "<b>left-front</b>"
-msgstr "<b>links-vorne</b>"
+msgstr "<b>vorne links</>"
 
 #: ../src/pavucontrol.glade.h:7
 msgid "<i>No application is currently playing audio.</i>"
@@ -77,10 +77,10 @@
 "Monitors"
 msgstr ""
 "Alle Eingabegeräte\n"
-"Alle ausser Bildschirme\n"
-"HardwareEingabegeräte\n"
+"Alle ausser Beobachter\n"
+"Hardware-Eingabegeräte\n"
 "Virtuelle Eingabegeräte\n"
-"Bildschirme"
+"Beobachter"
 
 #: ../src/pavucontrol.glade.h:16
 msgid ""
@@ -99,25 +99,25 @@
 "Applications\n"
 "Virtual Streams"
 msgstr ""
-"Alle Streams\n"
+"Alle Spuren\n"
 "Anwendungen\n"
-"Virtuelle Streams"
+"Virtuelle Spuren"
 
 #: ../src/pavucontrol.glade.h:23
 msgid "Lock channels together"
-msgstr "Blockieren aller Kanälen zusammen"
+msgstr "Känale zusammen anpassen"
 
 #: ../src/pavucontrol.glade.h:24
 msgid "Mute audio"
-msgstr "Audio stumm schalten"
+msgstr "Stummschalten"
 
 #: ../src/pavucontrol.glade.h:25
 msgid "Open menu"
-msgstr "�ffne Menü"
+msgstr "Menü öffnen"
 
 #: ../src/pavucontrol.glade.h:26
 msgid "Stream Title"
-msgstr "Stream-Titel"
+msgstr "Spurtitel"
 
 #: ../src/pavucontrol.glade.h:28
 msgid "_Input Devices"
@@ -153,7 +153,7 @@
 
 #: ../src/pavucontrol.cc:672
 msgid "_Default"
-msgstr "_Vorgabe"
+msgstr "Standard"
 
 #: ../src/pavucontrol.cc:693
 msgid "pa_context_set_source_volume_by_index() failed"
@@ -170,12 +170,12 @@
 #: ../src/pavucontrol.cc:731
 #: ../src/pavucontrol.cc:834
 msgid "_Move Stream..."
-msgstr "_Verschiebe Stream..."
+msgstr "_Verschiebe Spurâ?¦"
 
 #: ../src/pavucontrol.cc:732
 #: ../src/pavucontrol.cc:835
 msgid "_Terminate Stream"
-msgstr "_Beende Stream"
+msgstr "_Beende Spur"
 
 #: ../src/pavucontrol.cc:758
 msgid "pa_context_set_sink_input_volume() failed"
@@ -207,57 +207,56 @@
 
 #: ../src/pavucontrol.cc:1065
 msgid "Failed to read data from stream"
-msgstr "Lesen der Stream-Daten fehlschlagen"
+msgstr "Lesen des Datenstroms fehlgeschlagen"
 
 #: ../src/pavucontrol.cc:1099
 #: ../src/pavucontrol.cc:1135
 msgid "Peak detect"
-msgstr "Ausschlagsserkennung"
+msgstr "Peak erkennen"
 
 #: ../src/pavucontrol.cc:1100
 #: ../src/pavucontrol.cc:1136
 msgid "Failed to create monitoring stream"
-msgstr "Erstellung des Ã?berwachungsstream fehlgeschlagen"
+msgstr "Erstellung des Beobachterdatenstrom fehlgeschlagen"
 
 #: ../src/pavucontrol.cc:1108
 #: ../src/pavucontrol.cc:1145
 msgid "Failed to connect monitoring stream"
-msgstr "Verbindung zu Ã?berwachungsstream fehlgeschlagen"
+msgstr "Verbindungsaufbau zum Beobachterdatenstrom fehlgeschlagen"
 
 #: ../src/pavucontrol.cc:1385
 msgid "System Sounds"
-msgstr "System-Klänge"
+msgstr "Systemklänge"
 
 #: ../src/pavucontrol.cc:1667
-#, fuzzy
 msgid "Sink callback failure"
-msgstr "Fehler beim Lesen von GIF: %s"
+msgstr "Senke Callback Fehler"
 
 #: ../src/pavucontrol.cc:1686
 msgid "Source callback failure"
-msgstr "Quellen Callback-Fehler"
+msgstr "Quelle Callback Fehler"
 
 #: ../src/pavucontrol.cc:1705
 msgid "Sink input callback failure"
-msgstr ""
+msgstr "Eingabesenke Callback Fehler"
 
 #: ../src/pavucontrol.cc:1724
 msgid "Source output callback failure"
-msgstr "Quellen-Ausgabe Callback-Fehler"
+msgstr "Ausgabequelle Callback Fehler"
 
 #: ../src/pavucontrol.cc:1758
 msgid "Client callback failure"
-msgstr "Client Callback-Fehler"
+msgstr "Client Callback Fehler"
 
 #: ../src/pavucontrol.cc:1774
 msgid "Server info callback failure"
-msgstr "Server-Information Callback-Fehler"
+msgstr "Serverinfo Callback Fehler"
 
 #: ../src/pavucontrol.cc:1791
 #: ../src/pavucontrol.cc:1976
 #, c-format
 msgid "Failed to initialized stream_restore extension: %s"
-msgstr "Initialisierung von stream_restore extension fehlgeschlagen: %s"
+msgstr "Initialisierung der »stream_restore«-Erweiterung fehlgeschlagen: %s"
 
 #: ../src/pavucontrol.cc:1811
 msgid "pa_ext_stream_restore_read() failed"
@@ -313,4 +312,3 @@
 #: ../src/pavucontrol.cc:2026
 msgid "Connection failed"
 msgstr "Verbindung fehlgeschlagen"
-
--- pavucontrol.cc.bak	2008-09-04 21:09:02.000000000 +0200
+++ pavucontrol.cc	2008-09-05 17:30:54.000000000 +0200
@@ -349,6 +349,14 @@ void show_error(const char *txt) {
     Gtk::Main::quit();
 }
 
+void show_error_func(const char *txt, const char *funcname) {
+    char buf[256];
+
+    /* pa_context_set_sink_volume_by_index() failed */
+    snprintf(buf, sizeof(buf), _("%s() failed"), funcname);
+    show_error(buf);
+}
+
 /*** ChannelWidget ***/
 
 ChannelWidget::ChannelWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x) :
@@ -632,7 +640,7 @@ void SinkWidget::executeVolumeUpdate() {
     pa_operation* o;
 
     if (!(o = pa_context_set_sink_volume_by_index(context, index, &volume, NULL, NULL))) {
-        show_error(_("pa_context_set_sink_volume_by_index() failed"));
+        show_error_func("pa_context_set_sink_volume_by_index");
         return;
     }
 
@@ -647,7 +655,7 @@ void SinkWidget::onMuteToggleButton() {
 
     pa_operation* o;
     if (!(o = pa_context_set_sink_mute_by_index(context, index, muteToggleButton->get_active(), NULL, NULL))) {
-        show_error(_("pa_context_set_sink_mute_by_index() failed"));
+        show_error_func("pa_context_set_sink_mute_by_index");
         return;
     }
 
@@ -661,7 +669,7 @@ void SinkWidget::onDefaultToggle() {
         return;
 
     if (!(o = pa_context_set_default_sink(context, name.c_str(), NULL, NULL))) {
-        show_error(_("pa_context_set_default_sink() failed"));
+        show_error_func("pa_context_set_default_sink");
         return;
     }
     pa_operation_unref(o);
@@ -690,7 +698,7 @@ void SourceWidget::executeVolumeUpdate()
     pa_operation* o;
 
     if (!(o = pa_context_set_source_volume_by_index(context, index, &volume, NULL, NULL))) {
-        show_error(_("pa_context_set_source_volume_by_index() failed"));
+        show_error_func("pa_context_set_source_volume_by_index");
         return;
     }
 
@@ -705,7 +713,7 @@ void SourceWidget::onMuteToggleButton() 
 
     pa_operation* o;
     if (!(o = pa_context_set_source_mute_by_index(context, index, muteToggleButton->get_active(), NULL, NULL))) {
-        show_error(_("pa_context_set_source_mute_by_index() failed"));
+        show_error_func("pa_context_set_source_mute_by_index");
         return;
     }
 
@@ -719,7 +727,7 @@ void SourceWidget::onDefaultToggle() {
         return;
 
     if (!(o = pa_context_set_default_source(context, name.c_str(), NULL, NULL))) {
-        show_error(_("pa_context_set_default_source() failed"));
+        show_error_func("pa_context_set_default_source");
         return;
     }
     pa_operation_unref(o);
@@ -755,7 +763,7 @@ void SinkInputWidget::executeVolumeUpdat
     pa_operation* o;
 
     if (!(o = pa_context_set_sink_input_volume(context, index, &volume, NULL, NULL))) {
-        show_error(_("pa_context_set_sink_input_volume() failed"));
+        show_error_func("pa_context_set_sink_input_volume");
         return;
     }
 
@@ -770,7 +778,7 @@ void SinkInputWidget::onMuteToggleButton
 
     pa_operation* o;
     if (!(o = pa_context_set_sink_input_mute(context, index, muteToggleButton->get_active(), NULL, NULL))) {
-        show_error(_("pa_context_set_sink_input_mute() failed"));
+        show_error_func("pa_context_set_sink_input_mute");
         return;
     }
 
@@ -804,7 +812,7 @@ void SinkInputWidget::buildMenu() {
 void SinkInputWidget::onKill() {
     pa_operation* o;
     if (!(o = pa_context_kill_sink_input(context, index, NULL, NULL))) {
-        show_error(_("pa_context_kill_sink_input() failed"));
+        show_error_func("pa_context_kill_sink_input");
         return;
     }
 
@@ -821,7 +829,7 @@ void SinkInputWidget::SinkMenuItem::onTo
 
     pa_operation* o;
     if (!(o = pa_context_move_sink_input_by_index(context, widget->index, index, NULL, NULL))) {
-        show_error(_("pa_context_move_sink_input_by_index() failed"));
+        show_error_func("pa_context_move_sink_input_by_index");
         return;
     }
 
@@ -857,7 +865,7 @@ SourceOutputWidget* SourceOutputWidget::
 void SourceOutputWidget::onKill() {
     pa_operation* o;
     if (!(o = pa_context_kill_source_output(context, index, NULL, NULL))) {
-        show_error(_("pa_context_kill_source_output() failed"));
+        show_error_func("pa_context_kill_source_output");
         return;
     }
 
@@ -898,7 +906,7 @@ void SourceOutputWidget::SourceMenuItem:
 
     pa_operation* o;
     if (!(o = pa_context_move_source_output_by_index(context, widget->index, index, NULL, NULL))) {
-        show_error(_("pa_context_move_source_output_by_index() failed"));
+        show_error_func("pa_context_move_source_output_by_index");
         return;
     }
 
@@ -940,7 +948,7 @@ void RoleWidget::executeVolumeUpdate() {
 
     pa_operation* o;
     if (!(o = pa_ext_stream_restore_write(context, PA_UPDATE_REPLACE, &info, 1, TRUE, NULL, NULL))) {
-        show_error(_("pa_ext_stream_restore_write() failed"));
+        show_error_func("pa_ext_stream_restore_write");
         return;
     }
 
@@ -1808,7 +1816,7 @@ static void ext_stream_restore_subscribe
     pa_operation *o;
 
     if (!(o = pa_ext_stream_restore_read(c, ext_stream_restore_read_cb, w))) {
-        show_error(_("pa_ext_stream_restore_read() failed"));
+        show_error_func("pa_ext_stream_restore_read");
         return;
     }
 
@@ -1825,7 +1833,7 @@ void subscribe_cb(pa_context *c, pa_subs
             else {
                 pa_operation *o;
                 if (!(o = pa_context_get_sink_info_by_index(c, index, sink_cb, w))) {
-                    show_error(_("pa_context_get_sink_info_by_index() failed"));
+                    show_error_func("pa_context_get_sink_info_by_index");
                     return;
                 }
                 pa_operation_unref(o);
@@ -1838,7 +1846,7 @@ void subscribe_cb(pa_context *c, pa_subs
             else {
                 pa_operation *o;
                 if (!(o = pa_context_get_source_info_by_index(c, index, source_cb, w))) {
-                    show_error(_("pa_context_get_source_info_by_index() failed"));
+                    show_error_func("pa_context_get_source_info_by_index");
                     return;
                 }
                 pa_operation_unref(o);
@@ -1851,7 +1859,7 @@ void subscribe_cb(pa_context *c, pa_subs
             else {
                 pa_operation *o;
                 if (!(o = pa_context_get_sink_input_info(c, index, sink_input_cb, w))) {
-                    show_error(_("pa_context_get_sink_input_info() failed"));
+                    show_error_func("pa_context_get_sink_input_info");
                     return;
                 }
                 pa_operation_unref(o);
@@ -1864,7 +1872,7 @@ void subscribe_cb(pa_context *c, pa_subs
             else {
                 pa_operation *o;
                 if (!(o = pa_context_get_source_output_info(c, index, source_output_cb, w))) {
-                    show_error(_("pa_context_get_sink_input_info() failed"));
+                    show_error_func("pa_context_get_sink_input_info");
                     return;
                 }
                 pa_operation_unref(o);
@@ -1877,7 +1885,7 @@ void subscribe_cb(pa_context *c, pa_subs
             else {
                 pa_operation *o;
                 if (!(o = pa_context_get_client_info(c, index, client_cb, w))) {
-                    show_error(_("pa_context_get_client_info() failed"));
+                    show_error_func("pa_context_get_client_info");
                     return;
                 }
                 pa_operation_unref(o);
@@ -1887,7 +1895,7 @@ void subscribe_cb(pa_context *c, pa_subs
         case PA_SUBSCRIPTION_EVENT_SERVER: {
             pa_operation *o;
             if (!(o = pa_context_get_server_info(c, server_info_cb, w))) {
-                show_error(_("pa_context_get_server_info() failed"));
+                show_error_func("pa_context_get_server_info");
                 return;
             }
             pa_operation_unref(o);
@@ -1919,43 +1927,43 @@ void context_state_callback(pa_context *
                                             PA_SUBSCRIPTION_MASK_SOURCE_OUTPUT|
                                             PA_SUBSCRIPTION_MASK_CLIENT|
                                             PA_SUBSCRIPTION_MASK_SERVER), NULL, NULL))) {
-                show_error(_("pa_context_subscribe() failed"));
+                show_error_func("pa_context_subscribe");
                 return;
             }
             pa_operation_unref(o);
 
             if (!(o = pa_context_get_server_info(c, server_info_cb, w))) {
-                show_error(_("pa_context_get_server_info() failed"));
+                show_error_func("pa_context_get_server_info");
                 return;
             }
             pa_operation_unref(o);
 
             if (!(o = pa_context_get_client_info_list(c, client_cb, w))) {
-                show_error(_("pa_context_client_info_list() failed"));
+                show_error_func("pa_context_client_info_list");
                 return;
             }
             pa_operation_unref(o);
 
             if (!(o = pa_context_get_sink_info_list(c, sink_cb, w))) {
-                show_error(_("pa_context_get_sink_info_list() failed"));
+                show_error_func("pa_context_get_sink_info_list");
                 return;
             }
             pa_operation_unref(o);
 
             if (!(o = pa_context_get_source_info_list(c, source_cb, w))) {
-                show_error(_("pa_context_get_source_info_list() failed"));
+                show_error_func("pa_context_get_source_info_list");
                 return;
             }
             pa_operation_unref(o);
 
             if (!(o = pa_context_get_sink_input_info_list(c, sink_input_cb, w))) {
-                show_error(_("pa_context_get_sink_input_info_list() failed"));
+                show_error_func("pa_context_get_sink_input_info_list");
                 return;
             }
             pa_operation_unref(o);
 
             if (!(o = pa_context_get_source_output_info_list(c, source_output_cb, w))) {
-                show_error(_("pa_context_get_source_output_info_list() failed"));
+                show_error_func("pa_context_get_source_output_info_list");
                 return;
             }
             pa_operation_unref(o);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]