Commit 4b41ccfe authored by Marek Cernocky's avatar Marek Cernocky

Updated Czech help translation

parent ad0b3a7b
Pipeline #65456 passed with stage
in 10 minutes and 36 seconds
# Czech translation for grilo-plugins.
# Copyright (C) 2018 grilo-plugins's COPYRIGHT HOLDER
# This file is distributed under the same license as the grilo-plugins package.
# Marek Černocký <marek@manet.cz>, 2018.
# Marek Černocký <marek@manet.cz>, 2018, 2019.
#
msgid ""
msgstr ""
"Project-Id-Version: grilo-plugins master\n"
"POT-Creation-Date: 2018-09-03 06:35+0000\n"
"PO-Revision-Date: 2018-09-06 08:11+0200\n"
"POT-Creation-Date: 2019-02-12 01:59+0000\n"
"PO-Revision-Date: 2019-03-05 10:18+0100\n"
"Last-Translator: Marek Černocký <marek@manet.cz>\n"
"Language-Team: čeština <gnome-cs-list@gnome.org>\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: cs\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Gtranslator 2.91.7\n"
......@@ -312,7 +312,161 @@ msgstr ""
#. (itstool) path: sect1/programlisting
#: C/grilo-plugins.xml:133
#, no-wrap
#, fuzzy, 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"
......@@ -355,11 +509,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"
......@@ -374,14 +530,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"
......@@ -389,8 +556,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"
......@@ -398,35 +565,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"
......@@ -509,11 +676,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"
......@@ -528,14 +697,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"
" * Nastavení klíče k API TMDB:\n"
" * Ve své aplikaci musíte použít svůj vlastní klíč k API TMDB.\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"
......@@ -552,35 +732,35 @@ msgstr ""
" /*\n"
" * Získání zdroje Grilo:\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"
" * Kontrola, že podporuje očekávané schopnosti::\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"
" * Multimediální položka, kterou předáme zásuvnému modulu TMDB,\n"
" * aby k ní dohledal podrobnosti.\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"
" * Zjištění, které klíče zdroj poskytuje:\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