Commit bd6a3ceb authored by Christian Kirbach's avatar Christian Kirbach Committed by Administrator

Update German translation

parent 6d487ee1
Pipeline #70220 passed with stage
in 7 minutes and 24 seconds
......@@ -6,21 +6,23 @@
msgid ""
msgstr ""
"Project-Id-Version: grilo-plugins master\n"
"POT-Creation-Date: 2018-08-01 17:25+0000\n"
"PO-Revision-Date: 2018-08-03 12:42+0200\n"
"POT-Creation-Date: 2019-02-12 01:59+0000\n"
"PO-Revision-Date: 2019-03-24 11:06+0100\n"
"Last-Translator: Christian Kirbach <christian.kirbach@gmail.com>\n"
"Language-Team: German <gnome-de@gnome.org>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Last-Translator: Mario Blättermann <mario.blaettermann@gmail.com>\n"
"X-Generator: Poedit 2.0.9\n"
"X-Generator: Poedit 2.2.1\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
msgid "translator-credits"
msgstr "Mario Blättermann <mario.blaettermann@gmail.com>"
msgstr ""
"Mario Blättermann <mario.blaettermann@gmail.com>\n"
"Christian Kirbach <christian.kirbach@gmail.com>, 2019"
#. (itstool) path: bookinfo/title
#. (itstool) path: chapter/title
......@@ -318,6 +320,160 @@ msgstr ""
#. (itstool) path: sect1/programlisting
#: C/grilo-plugins.xml:133
#, no-wrap
#| msgid ""
#| "\n"
#| "/*\n"
#| " * Copyright (C) 2012 Canonical Ltd.\n"
#| " *\n"
#| " * Author: Jens Georg &lt;jensg@openismus.com&gt;\n"
#| " *\n"
#| " * This library is free software; you can redistribute it and/or\n"
#| " * modify it under the terms of the GNU Lesser General Public License\n"
#| " * as published by the Free Software Foundation; version 2.1 of\n"
#| " * the License, or (at your option) any later version.\n"
#| " *\n"
#| " * This library is distributed in the hope that it will be useful, but\n"
#| " * WITHOUT ANY WARRANTY; without even the implied warranty of\n"
#| " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n"
#| " * Lesser General Public License for more details.\n"
#| " *\n"
#| " * You should have received a copy of the GNU Lesser General Public\n"
#| " * License along with this library; if not, write to the Free Software\n"
#| " * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n"
#| " * 02110-1301 USA\n"
#| " *\n"
#| " */\n"
#| "\n"
#| "#include &lt;grilo.h&gt;\n"
#| "#include &lt;stdio.h&gt;\n"
#| "\n"
#| "/**\n"
#| " * This TMDB key is just for testing.\n"
#| " * For real-world use, please request your own key from\n"
#| " * http://api.themoviedb.org\n"
#| " */\n"
#| "#define TMDB_KEY \"719b9b296835b04cd919c4bf5220828a\"\n"
#| "\n"
#| "#define TMDB_PLUGIN_ID \"grl-tmdb\"\n"
#| "\n"
#| "GMainLoop *loop = NULL;\n"
#| "GrlKeyID director_key = 0;\n"
#| "\n"
#| "static void\n"
#| "resolve_cb (GrlSource *src, guint operation_id, GrlMedia *media, gpointer user_data, const GError *error)\n"
#| "{\n"
#| " g_assert_no_error (error);\n"
#| " g_assert (media);\n"
#| "\n"
#| " const gchar *title = grl_media_get_title (media);\n"
#| " const gchar *studio = grl_media_get_studio (media);\n"
#| " printf (\"Media: Title='%s', Studio='%s'\\n\",\n"
#| " title, studio);\n"
#| "\n"
#| " if (director_key != 0) {\n"
#| " const gchar *director =\n"
#| " grl_data_get_string (GRL_DATA (media), director_key);\n"
#| " printf (\" Director=%s\\n\", director);\n"
#| " }\n"
#| "\n"
#| " g_main_loop_quit (loop);\n"
#| "}\n"
#| "\n"
#| "int main (int argc, char *argv[])\n"
#| "{\n"
#| " grl_init (&amp;argc, &amp;argv);\n"
#| "\n"
#| " /*\n"
#| " * Set the TMDB API key:\n"
#| " * You must use your own TMDB API key in your own application.\n"
#| " */\n"
#| " GrlRegistry *reg = grl_registry_get_default ();\n"
#| " GrlConfig *config = grl_config_new (TMDB_PLUGIN_ID, NULL);\n"
#| " grl_config_set_api_key (config, TMDB_KEY);\n"
#| " grl_registry_add_config (reg, config, NULL);\n"
#| " grl_registry_load_all_plugins (reg, FALSE, NULL);\n"
#| "\n"
#| " /*\n"
#| " * Get the plugin:\n"
#| " */\n"
#| " GError *error = NULL;\n"
#| " gboolean plugin_activated =\n"
#| " grl_registry_activate_plugin_by_id (reg, TMDB_PLUGIN_ID, &amp;error);\n"
#| " g_assert (plugin_activated);\n"
#| " g_assert_no_error (error);\n"
#| "\n"
#| " /*\n"
#| " * Get the Grilo source:\n"
#| " */\n"
#| " GrlSource *src =\n"
#| " grl_registry_lookup_source (reg, TMDB_PLUGIN_ID);\n"
#| "\n"
#| " /*\n"
#| " * Check that it has the expected capability:\n"
#| " */\n"
#| " g_assert (grl_source_supported_operations (src) &amp; GRL_OP_RESOLVE);\n"
#| " GrlCaps *caps = grl_source_get_caps (src, GRL_OP_RESOLVE);\n"
#| " g_assert (caps);\n"
#| "\n"
#| " GrlOperationOptions *options = grl_operation_options_new (caps);\n"
#| "\n"
#| " /*\n"
#| " * A media item that we will give to the TMDB plugin,\n"
#| " * to discover its details.\n"
#| " */\n"
#| " GrlMedia *media = grl_media_video_new ();\n"
#| " grl_media_set_title (media, \"Sherlock Holmes\");\n"
#| "\n"
#| " /*\n"
#| " * Discover what keys are provided by the source:\n"
#| " */\n"
#| " const GList *keys = grl_source_supported_keys (src);\n"
#| " const GList* l = NULL;\n"
#| " for (l = keys; l != NULL; l = l-&gt;next) {\n"
#| " GrlKeyID id = GPOINTER_TO_INT (l-&gt;data);\n"
#| " g_assert (id);\n"
#| "\n"
#| " const gchar *name = grl_metadata_key_get_name (id);\n"
#| " printf (\"Supported key: %s\\n\", name);\n"
#| "\n"
#| " /*\n"
#| " * Remember this for later use:\n"
#| " * You may instead use grl_registry_lookup_metadata_key_name().\n"
#| " */\n"
#| " if (g_strcmp0 (name, \"tmdb-director\") == 0) {\n"
#| " director_key = id;\n"
#| " }\n"
#| " }\n"
#| "\n"
#| " /*\n"
#| " * Ask the TMDB plugin for the media item's details,\n"
#| " * from the TMDB online service:\n"
#| " */\n"
#| " grl_source_resolve (src, media,\n"
#| " keys, options,\n"
#| " resolve_cb, NULL);\n"
#| "\n"
#| " /*\n"
#| " * Start the main loop so our callback can be called:\n"
#| " */\n"
#| " loop = g_main_loop_new (NULL, FALSE);\n"
#| " g_main_loop_run (loop);\n"
#| "\n"
#| " /*\n"
#| " * Release objects:\n"
#| " */\n"
#| " g_object_unref (media);\n"
#| " g_object_unref (config);\n"
#| " g_object_unref (options);\n"
#| "\n"
#| " /*\n"
#| " * Deinitialize Grilo:\n"
#| " */\n"
#| " grl_deinit ();\n"
#| "}\n"
#| "\n"
#| "\n"
#| "\n"
msgid ""
"\n"
"/*\n"
......@@ -360,11 +516,13 @@ msgid ""
"static void\n"
"resolve_cb (GrlSource *src, guint operation_id, GrlMedia *media, gpointer user_data, const GError *error)\n"
"{\n"
" const char *title, *studio;\n"
"\n"
" g_assert_no_error (error);\n"
" g_assert (media);\n"
"\n"
" const gchar *title = grl_media_get_title (media);\n"
" const gchar *studio = grl_media_get_studio (media);\n"
" title = grl_media_get_title (media);\n"
" studio = grl_media_get_studio (media);\n"
" printf (\"Media: Title='%s', Studio='%s'\\n\",\n"
" title, studio);\n"
"\n"
......@@ -379,14 +537,25 @@ msgid ""
"\n"
"int main (int argc, char *argv[])\n"
"{\n"
" GrlRegistry *reg;\n"
" GrlConfig *config;\n"
" GError *error = NULL;\n"
" GrlSource *src;\n"
" gboolean plugin_activated;\n"
" GrlCaps *caps;\n"
" GrlOperationOptions *options;\n"
" GrlMedia *media;\n"
" const GList *keys;\n"
" const GList* l;\n"
"\n"
" grl_init (&amp;argc, &amp;argv);\n"
"\n"
" /*\n"
" * Set the TMDB API key:\n"
" * You must use your own TMDB API key in your own application.\n"
" */\n"
" GrlRegistry *reg = grl_registry_get_default ();\n"
" GrlConfig *config = grl_config_new (TMDB_PLUGIN_ID, NULL);\n"
" reg = grl_registry_get_default ();\n"
" config = grl_config_new (TMDB_PLUGIN_ID, NULL);\n"
" grl_config_set_api_key (config, TMDB_KEY);\n"
" grl_registry_add_config (reg, config, NULL);\n"
" grl_registry_load_all_plugins (reg, FALSE, NULL);\n"
......@@ -394,8 +563,8 @@ msgid ""
" /*\n"
" * Get the plugin:\n"
" */\n"
" GError *error = NULL;\n"
" gboolean plugin_activated =\n"
" error = NULL;\n"
" plugin_activated =\n"
" grl_registry_activate_plugin_by_id (reg, TMDB_PLUGIN_ID, &amp;error);\n"
" g_assert (plugin_activated);\n"
" g_assert_no_error (error);\n"
......@@ -403,35 +572,35 @@ msgid ""
" /*\n"
" * Get the Grilo source:\n"
" */\n"
" GrlSource *src =\n"
" grl_registry_lookup_source (reg, TMDB_PLUGIN_ID);\n"
" src = grl_registry_lookup_source (reg, TMDB_PLUGIN_ID);\n"
"\n"
" /*\n"
" * Check that it has the expected capability:\n"
" */\n"
" g_assert (grl_source_supported_operations (src) &amp; GRL_OP_RESOLVE);\n"
" GrlCaps *caps = grl_source_get_caps (src, GRL_OP_RESOLVE);\n"
" caps = grl_source_get_caps (src, GRL_OP_RESOLVE);\n"
" g_assert (caps);\n"
"\n"
" GrlOperationOptions *options = grl_operation_options_new (caps);\n"
" options = grl_operation_options_new (caps);\n"
"\n"
" /*\n"
" * A media item that we will give to the TMDB plugin,\n"
" * to discover its details.\n"
" */\n"
" GrlMedia *media = grl_media_video_new ();\n"
" media = grl_media_video_new ();\n"
" grl_media_set_title (media, \"Sherlock Holmes\");\n"
"\n"
" /*\n"
" * Discover what keys are provided by the source:\n"
" */\n"
" const GList *keys = grl_source_supported_keys (src);\n"
" const GList* l = NULL;\n"
" keys = grl_source_supported_keys (src);\n"
" for (l = keys; l != NULL; l = l-&gt;next) {\n"
" const gchar *name;\n"
" GrlKeyID id = GPOINTER_TO_INT (l-&gt;data);\n"
"\n"
" g_assert (id);\n"
"\n"
" const gchar *name = grl_metadata_key_get_name (id);\n"
" name = grl_metadata_key_get_name (id);\n"
" printf (\"Supported key: %s\\n\", name);\n"
"\n"
" /*\n"
......@@ -514,11 +683,13 @@ msgstr ""
"static void\n"
"resolve_cb (GrlSource *src, guint operation_id, GrlMedia *media, gpointer user_data, const GError *error)\n"
"{\n"
" const char *title, *studio;\n"
"\n"
" g_assert_no_error (error);\n"
" g_assert (media);\n"
"\n"
" const gchar *title = grl_media_get_title (media);\n"
" const gchar *studio = grl_media_get_studio (media);\n"
" title = grl_media_get_title (media);\n"
" studio = grl_media_get_studio (media);\n"
" printf (\"Media: Title='%s', Studio='%s'\\n\",\n"
" title, studio);\n"
"\n"
......@@ -533,14 +704,25 @@ msgstr ""
"\n"
"int main (int argc, char *argv[])\n"
"{\n"
" GrlRegistry *reg;\n"
" GrlConfig *config;\n"
" GError *error = NULL;\n"
" GrlSource *src;\n"
" gboolean plugin_activated;\n"
" GrlCaps *caps;\n"
" GrlOperationOptions *options;\n"
" GrlMedia *media;\n"
" const GList *keys;\n"
" const GList* l;\n"
"\n"
" grl_init (&amp;argc, &amp;argv);\n"
"\n"
" /*\n"
" * Set the TMDB API key:\n"
" * You must use your own TMDB API key in your own application.\n"
" */\n"
" GrlRegistry *reg = grl_registry_get_default ();\n"
" GrlConfig *config = grl_config_new (TMDB_PLUGIN_ID, NULL);\n"
" reg = grl_registry_get_default ();\n"
" config = grl_config_new (TMDB_PLUGIN_ID, NULL);\n"
" grl_config_set_api_key (config, TMDB_KEY);\n"
" grl_registry_add_config (reg, config, NULL);\n"
" grl_registry_load_all_plugins (reg, FALSE, NULL);\n"
......@@ -548,8 +730,8 @@ msgstr ""
" /*\n"
" * Get the plugin:\n"
" */\n"
" GError *error = NULL;\n"
" gboolean plugin_activated =\n"
" error = NULL;\n"
" plugin_activated =\n"
" grl_registry_activate_plugin_by_id (reg, TMDB_PLUGIN_ID, &amp;error);\n"
" g_assert (plugin_activated);\n"
" g_assert_no_error (error);\n"
......@@ -557,35 +739,35 @@ msgstr ""
" /*\n"
" * Get the Grilo source:\n"
" */\n"
" GrlSource *src =\n"
" grl_registry_lookup_source (reg, TMDB_PLUGIN_ID);\n"
" src = grl_registry_lookup_source (reg, TMDB_PLUGIN_ID);\n"
"\n"
" /*\n"
" * Check that it has the expected capability:\n"
" */\n"
" g_assert (grl_source_supported_operations (src) &amp; GRL_OP_RESOLVE);\n"
" GrlCaps *caps = grl_source_get_caps (src, GRL_OP_RESOLVE);\n"
" caps = grl_source_get_caps (src, GRL_OP_RESOLVE);\n"
" g_assert (caps);\n"
"\n"
" GrlOperationOptions *options = grl_operation_options_new (caps);\n"
" options = grl_operation_options_new (caps);\n"
"\n"
" /*\n"
" * A media item that we will give to the TMDB plugin,\n"
" * to discover its details.\n"
" */\n"
" GrlMedia *media = grl_media_video_new ();\n"
" media = grl_media_video_new ();\n"
" grl_media_set_title (media, \"Sherlock Holmes\");\n"
"\n"
" /*\n"
" * Discover what keys are provided by the source:\n"
" */\n"
" const GList *keys = grl_source_supported_keys (src);\n"
" const GList* l = NULL;\n"
" keys = grl_source_supported_keys (src);\n"
" for (l = keys; l != NULL; l = l-&gt;next) {\n"
" const gchar *name;\n"
" GrlKeyID id = GPOINTER_TO_INT (l-&gt;data);\n"
"\n"
" g_assert (id);\n"
"\n"
" const gchar *name = grl_metadata_key_get_name (id);\n"
" name = grl_metadata_key_get_name (id);\n"
" printf (\"Supported key: %s\\n\", name);\n"
"\n"
" /*\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment