From f7b2a331ec4bbb2b65068ddf67b3e997f73e1957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Tue, 22 Oct 2019 23:13:09 +0200 Subject: [PATCH] Add German translations for command line interface --- command-line.c | 21 +++---- translations/pot/command-line.pot | 72 +++++++++++++++++++++++ translations/pot/gds-render-gui.pot | 20 +++---- translations/pot/main.pot | 2 +- translations/pot/po/de/command-line.po | 73 ++++++++++++++++++++++++ translations/pot/po/de/gds-render-gui.po | 18 +++--- 6 files changed, 176 insertions(+), 30 deletions(-) create mode 100644 translations/pot/command-line.pot create mode 100644 translations/pot/po/de/command-line.po diff --git a/command-line.c b/command-line.c index 4e75ec6..62cb5a4 100644 --- a/command-line.c +++ b/command-line.c @@ -29,6 +29,7 @@ */ #include +#include #include #include @@ -70,14 +71,14 @@ static int create_renderers(char **renderers, return -1; if (!renderers || !output_file_names) { - fprintf(stderr, "Please specify renderers and file names\n"); + fprintf(stderr, _("Please specify renderers and file names\n")); return -1; } count_render = string_array_count(renderers); count_out = string_array_count(output_file_names); if (count_render != count_out) { - fprintf(stderr, "Count of renderers %d does not match count of output file names %d\n", + fprintf(stderr, _("Count of renderers %d does not match count of output file names %d\n"), count_render, count_out); return -1; } @@ -100,7 +101,7 @@ static int create_renderers(char **renderers, output_renderer = GDS_RENDER_OUTPUT_RENDERER(cairo_renderer_new_svg()); } else if (!strcmp(current_renderer, "ext")) { if (!so_path) { - fprintf(stderr, "Please specify shared object for external renderer. Will ignore this renderer.\n"); + fprintf(stderr, _("Please specify shared object for external renderer. Will ignore this renderer.\n")); continue; } output_renderer = GDS_RENDER_OUTPUT_RENDERER(external_renderer_new_with_so(so_path)); @@ -154,7 +155,7 @@ int command_line_convert_gds(const char *gds_name, /* Check if parameters are valid */ if (!gds_name || !cell_name || !output_file_names || !layer_file || !renderers) { - printf("Probably missing argument. Check --help option\n"); + printf(_("Probably missing argument. Check --help option\n")); return -2; } @@ -180,7 +181,7 @@ int command_line_convert_gds(const char *gds_name, first_lib = (struct gds_library *)libs->data; if (!first_lib) { - fprintf(stderr, "No library in library list. This should not happen.\n"); + fprintf(stderr, _("No library in library list. This should not happen.\n")); /* This is safe. Library destruction can handle an empty list element */ goto ret_destroy_library_list; } @@ -189,27 +190,27 @@ int command_line_convert_gds(const char *gds_name, toplevel_cell = find_gds_cell_in_lib(first_lib, cell_name); if (!toplevel_cell) { - printf("Couldn't find cell in first library!\n"); + printf(_("Couldn't find cell in first library!\n")); goto ret_destroy_library_list; } /* Check if cell passes vital checks */ res = gds_tree_check_reference_loops(toplevel_cell->parent_library); if (res < 0) { - fprintf(stderr, "Checking library %s failed.\n", first_lib->name); + fprintf(stderr, _("Checking library %s failed.\n"), first_lib->name); goto ret_destroy_library_list; } else if (res > 0) { - fprintf(stderr, "%d reference loops found.\n", res); + fprintf(stderr, _("%d reference loops found.\n"), res); /* do further checking if the specified cell and/or its subcells are affected */ if (toplevel_cell->checks.affected_by_reference_loop == 1) { - fprintf(stderr, "Cell is affected by reference loop. Abort!\n"); + fprintf(stderr, _("Cell is affected by reference loop. Abort!\n")); goto ret_destroy_library_list; } } if (toplevel_cell->checks.affected_by_reference_loop == GDS_CELL_CHECK_NOT_RUN) - fprintf(stderr, "Cell was not checked. This should not happen. Please report this issue. Will continue either way.\n"); + fprintf(stderr, _("Cell was not checked. This should not happen. Please report this issue. Will continue either way.\n")); /* Note: unresolved references are not an abort condition. * Deal with it. diff --git a/translations/pot/command-line.pot b/translations/pot/command-line.pot new file mode 100644 index 0000000..c452ac5 --- /dev/null +++ b/translations/pot/command-line.pot @@ -0,0 +1,72 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-10-22 23:02+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../command-line.c:203 +#, c-format +msgid "%d reference loops found.\n" +msgstr "" + +#: ../command-line.c:207 +#, c-format +msgid "Cell is affected by reference loop. Abort!\n" +msgstr "" + +#: ../command-line.c:213 +#, c-format +msgid "" +"Cell was not checked. This should not happen. Please report this issue. Will " +"continue either way.\n" +msgstr "" + +#: ../command-line.c:200 +#, c-format +msgid "Checking library %s failed.\n" +msgstr "" + +#: ../command-line.c:193 +#, c-format +msgid "Couldn't find cell in first library!\n" +msgstr "" + +#: ../command-line.c:81 +#, c-format +msgid "Count of renderers %d does not match count of output file names %d\n" +msgstr "" + +#: ../command-line.c:184 +#, c-format +msgid "No library in library list. This should not happen.\n" +msgstr "" + +#: ../command-line.c:74 +#, c-format +msgid "Please specify renderers and file names\n" +msgstr "" + +#: ../command-line.c:104 +#, c-format +msgid "" +"Please specify shared object for external renderer. Will ignore this " +"renderer.\n" +msgstr "" + +#: ../command-line.c:158 +#, c-format +msgid "Probably missing argument. Check --help option\n" +msgstr "" diff --git a/translations/pot/gds-render-gui.pot b/translations/pot/gds-render-gui.pot index a0b152d..7d41a23 100644 --- a/translations/pot/gds-render-gui.pot +++ b/translations/pot/gds-render-gui.pot @@ -8,43 +8,43 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-18 23:08+0200\n" +"POT-Creation-Date: 2019-10-22 23:02+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: ../gds-render-gui.c:272 +#: ../gds-render-gui.c:273 msgid "Acc. Date" msgstr "" -#: ../gds-render-gui.c:313 +#: ../gds-render-gui.c:314 msgid "Cancel" msgstr "" -#: ../gds-render-gui.c:265 +#: ../gds-render-gui.c:266 msgid "Cell" msgstr "" -#: ../gds-render-gui.c:321 +#: ../gds-render-gui.c:322 msgid "GDSII-Files" msgstr "" -#: ../gds-render-gui.c:262 +#: ../gds-render-gui.c:263 msgid "Library" msgstr "" -#: ../gds-render-gui.c:269 +#: ../gds-render-gui.c:270 msgid "Mod. Date" msgstr "" -#: ../gds-render-gui.c:314 +#: ../gds-render-gui.c:315 msgid "Open GDSII" msgstr "" -#: ../gds-render-gui.c:311 +#: ../gds-render-gui.c:312 msgid "Open GDSII File" msgstr "" diff --git a/translations/pot/main.pot b/translations/pot/main.pot index 252e5f7..5dbf53a 100644 --- a/translations/pot/main.pot +++ b/translations/pot/main.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-18 23:08+0200\n" +"POT-Creation-Date: 2019-10-22 23:02+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/translations/pot/po/de/command-line.po b/translations/pot/po/de/command-line.po new file mode 100644 index 0000000..d2270f6 --- /dev/null +++ b/translations/pot/po/de/command-line.po @@ -0,0 +1,73 @@ +# German translations for gds-render package. +# Copyright (C) 2019 THE gds-render's COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Mario Hüttel , 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-10-22 23:02+0200\n" +"PO-Revision-Date: 2019-10-22 23:02+0200\n" +"Last-Translator: \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: ../command-line.c:203 +#, c-format +msgid "%d reference loops found.\n" +msgstr "%d Referenzschleifen gefunden.\n" + +#: ../command-line.c:207 +#, c-format +msgid "Cell is affected by reference loop. Abort!\n" +msgstr "Zelle von Referenzschleife betroffen. Abbruch!\n" + +#: ../command-line.c:213 +#, c-format +msgid "" +"Cell was not checked. This should not happen. Please report this issue. Will " +"continue either way.\n" +msgstr "Zelle wurde nicht überprüft. Das sollte nicht passieren. Bitte melden Sie dieses Fehlverhalten. Es wird " +"dennoch fortgefahren.\n" + +#: ../command-line.c:200 +#, c-format +msgid "Checking library %s failed.\n" +msgstr "Überprüfen der Bibliothek %s fehlgeschlagen.\n" + +#: ../command-line.c:193 +#, c-format +msgid "Couldn't find cell in first library!\n" +msgstr "Konnte Zelle nicht in der ersten Bibliothek finden!\n" + +#: ../command-line.c:81 +#, c-format +msgid "Count of renderers %d does not match count of output file names %d\n" +msgstr "Anzahl der Renderer %d entspricht nicht der Anzahl der angegebenen Ausgabepfade %s\n" + +#: ../command-line.c:184 +#, c-format +msgid "No library in library list. This should not happen.\n" +msgstr "Keine Bilbiothek in Bibliotheksliste vorhanden. Dies sollte nicht passieren.\n" + +#: ../command-line.c:74 +#, c-format +msgid "Please specify renderers and file names\n" +msgstr "Bitte geben Sie Renderer und Dateinamen an\n" + +#: ../command-line.c:104 +#, c-format +msgid "" +"Please specify shared object for external renderer. Will ignore this " +"renderer.\n" +msgstr "Bitte geben Sie ein 'shared object' für den externen Renderer an. Renderer wird ignoriert.\n" + +#: ../command-line.c:158 +#, c-format +msgid "Probably missing argument. Check --help option\n" +msgstr "Vermutlich fehlendes Argument. Siehe --help Option für Hilfe\n" diff --git a/translations/pot/po/de/gds-render-gui.po b/translations/pot/po/de/gds-render-gui.po index 394ded6..8ea66bc 100644 --- a/translations/pot/po/de/gds-render-gui.po +++ b/translations/pot/po/de/gds-render-gui.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gds-render VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-18 23:08+0200\n" +"POT-Creation-Date: 2019-10-22 23:02+0200\n" "PO-Revision-Date: 2019-10-18 23:10+0200\n" "Last-Translator: \n" "Language-Team: German \n" @@ -17,34 +17,34 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../gds-render-gui.c:272 +#: ../gds-render-gui.c:273 msgid "Acc. Date" msgstr "Zugr. Datum" -#: ../gds-render-gui.c:313 +#: ../gds-render-gui.c:314 msgid "Cancel" msgstr "Abbruch" -#: ../gds-render-gui.c:265 +#: ../gds-render-gui.c:266 msgid "Cell" msgstr "Zelle" -#: ../gds-render-gui.c:321 +#: ../gds-render-gui.c:322 msgid "GDSII-Files" msgstr "GDSII-Dateiem" -#: ../gds-render-gui.c:262 +#: ../gds-render-gui.c:263 msgid "Library" msgstr "Bibliothek" -#: ../gds-render-gui.c:269 +#: ../gds-render-gui.c:270 msgid "Mod. Date" msgstr "Mod. Datum" -#: ../gds-render-gui.c:314 +#: ../gds-render-gui.c:315 msgid "Open GDSII" msgstr "GDSII öffnen" -#: ../gds-render-gui.c:311 +#: ../gds-render-gui.c:312 msgid "Open GDSII File" msgstr "GDSII Datei öffnen"