[grilo-plugins] Update Swedish translation



commit 2d3468f04cd81ac11933a484f9dd9bdda78fe971
Author: Anders Jonsson <anders jonsson norsjovallen se>
Date:   Tue Feb 12 15:22:38 2019 +0000

    Update Swedish translation

 help/sv/sv.po | 250 ++++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 215 insertions(+), 35 deletions(-)
---
diff --git a/help/sv/sv.po b/help/sv/sv.po
index 9e4ee26..a6d8c8a 100644
--- a/help/sv/sv.po
+++ b/help/sv/sv.po
@@ -1,21 +1,21 @@
 # Swedish translation for grilo-plugins.
-# Copyright © 2018 grilo-plugins's COPYRIGHT HOLDER
+# Copyright © 2018, 2019 grilo-plugins's COPYRIGHT HOLDER
 # This file is distributed under the same license as the grilo-plugins package.
-# Anders Jonsson <anders jonsson norsjovallen se>, 2018.
+# Anders Jonsson <anders jonsson norsjovallen se>, 2018, 2019.
 #
 msgid ""
 msgstr ""
 "Project-Id-Version: grilo-plugins master\n"
-"POT-Creation-Date: 2018-08-05 10:41+0000\n"
-"PO-Revision-Date: 2018-08-07 13:13+0200\n"
+"POT-Creation-Date: 2019-02-12 01:59+0000\n"
+"PO-Revision-Date: 2019-02-12 16:20+0100\n"
+"Last-Translator: Anders Jonsson <anders jonsson norsjovallen se>\n"
 "Language-Team: Swedish <tp-sv listor tp-sv se>\n"
+"Language: sv\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"Language: sv\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"Last-Translator: Anders Jonsson <anders jonsson norsjovallen se>\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 "_"
@@ -318,6 +318,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 +514,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 +535,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 +561,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 +570,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 +681,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 +702,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 +728,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 +737,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"


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