From 83cc14992851e62bbc87d8145b55b3b87a56c16c Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Mon, 27 Dec 2021 09:03:10 +0100 Subject: [PATCH 1/3] sync translations with Matrix version --- screensaver.asteroids/addon.xml.in | 8 ++++++++ .../language/resource.language.da_dk/strings.po | 13 +++++++------ .../language/resource.language.ko_kr/strings.po | 13 +++++++------ .../language/resource.language.pt_br/strings.po | 13 +++++++------ .../language/resource.language.zh_cn/strings.po | 13 +++++++------ 5 files changed, 36 insertions(+), 24 deletions(-) diff --git a/screensaver.asteroids/addon.xml.in b/screensaver.asteroids/addon.xml.in index 09e54ea..9e879cc 100644 --- a/screensaver.asteroids/addon.xml.in +++ b/screensaver.asteroids/addon.xml.in @@ -19,9 +19,17 @@ resources/screenshot-02.png resources/screenshot-03.png + Asteroids pauseskærm Asteroiden Bildschirmschoner Asteroids screensaver + 소행성 화면 보호기 + Protetor de tela Asteroides + 小行星屏保 + En pauseskærm i gammel stil, hvor asteroiderne bliver skudt væk. Ein Bildschirmschoner im alten Stil, welcher die Asteroiden davon schießt. An old-style screen saver where the asteroids are shot away. + 소행성이 총격을 당하는 구식 화면 보호기. + Um protetor de tela de estilo antigo, onde os asteroides são disparados. + 一个老式的屏幕保护程序,小行星被射出。 diff --git a/screensaver.asteroids/resources/language/resource.language.da_dk/strings.po b/screensaver.asteroids/resources/language/resource.language.da_dk/strings.po index 12a1771..1be0f75 100644 --- a/screensaver.asteroids/resources/language/resource.language.da_dk/strings.po +++ b/screensaver.asteroids/resources/language/resource.language.da_dk/strings.po @@ -5,21 +5,22 @@ msgid "" msgstr "" "Project-Id-Version: KODI Main\n" -"Report-Msgid-Bugs-To: https://github.com/xbmc/screensaver.asteroids/issues\n" +"Report-Msgid-Bugs-To: translations@kodi.tv\n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2021-10-02 15:58+0000\n" +"Last-Translator: Christian Gade \n" +"Language-Team: Danish \n" "Language: da_dk\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" +"X-Generator: Weblate 4.8\n" msgctxt "Addon Summary" msgid "Asteroids screensaver" -msgstr "" +msgstr "Asteroids pauseskærm" msgctxt "Addon Description" msgid "An old-style screen saver where the asteroids are shot away." -msgstr "" +msgstr "En pauseskærm i gammel stil, hvor asteroiderne bliver skudt væk." diff --git a/screensaver.asteroids/resources/language/resource.language.ko_kr/strings.po b/screensaver.asteroids/resources/language/resource.language.ko_kr/strings.po index 68596e2..e02b9d0 100644 --- a/screensaver.asteroids/resources/language/resource.language.ko_kr/strings.po +++ b/screensaver.asteroids/resources/language/resource.language.ko_kr/strings.po @@ -5,21 +5,22 @@ msgid "" msgstr "" "Project-Id-Version: KODI Main\n" -"Report-Msgid-Bugs-To: https://github.com/xbmc/screensaver.asteroids/issues\n" +"Report-Msgid-Bugs-To: translations@kodi.tv\n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2021-09-28 13:30+0000\n" +"Last-Translator: Minho Park \n" +"Language-Team: Korean \n" "Language: ko_kr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.8\n" msgctxt "Addon Summary" msgid "Asteroids screensaver" -msgstr "" +msgstr "소행성 화면 보호기" msgctxt "Addon Description" msgid "An old-style screen saver where the asteroids are shot away." -msgstr "" +msgstr "소행성이 총격을 당하는 구식 화면 보호기." diff --git a/screensaver.asteroids/resources/language/resource.language.pt_br/strings.po b/screensaver.asteroids/resources/language/resource.language.pt_br/strings.po index 1b50133..70f3547 100644 --- a/screensaver.asteroids/resources/language/resource.language.pt_br/strings.po +++ b/screensaver.asteroids/resources/language/resource.language.pt_br/strings.po @@ -5,21 +5,22 @@ msgid "" msgstr "" "Project-Id-Version: KODI Main\n" -"Report-Msgid-Bugs-To: https://github.com/xbmc/screensaver.asteroids/issues\n" +"Report-Msgid-Bugs-To: translations@kodi.tv\n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2021-12-07 02:13+0000\n" +"Last-Translator: Fabio \n" +"Language-Team: Portuguese (Brazil) \n" "Language: pt_br\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" +"X-Generator: Weblate 4.9.1\n" msgctxt "Addon Summary" msgid "Asteroids screensaver" -msgstr "" +msgstr "Protetor de tela Asteroides" msgctxt "Addon Description" msgid "An old-style screen saver where the asteroids are shot away." -msgstr "" +msgstr "Um protetor de tela de estilo antigo, onde os asteroides são disparados." diff --git a/screensaver.asteroids/resources/language/resource.language.zh_cn/strings.po b/screensaver.asteroids/resources/language/resource.language.zh_cn/strings.po index 2f9cb20..2dcffd3 100644 --- a/screensaver.asteroids/resources/language/resource.language.zh_cn/strings.po +++ b/screensaver.asteroids/resources/language/resource.language.zh_cn/strings.po @@ -5,21 +5,22 @@ msgid "" msgstr "" "Project-Id-Version: KODI Main\n" -"Report-Msgid-Bugs-To: https://github.com/xbmc/screensaver.asteroids/issues\n" +"Report-Msgid-Bugs-To: translations@kodi.tv\n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2021-11-04 04:06+0000\n" +"Last-Translator: 撷星芒 \n" +"Language-Team: Chinese (China) \n" "Language: zh_cn\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" +"X-Generator: Weblate 4.8.1\n" msgctxt "Addon Summary" msgid "Asteroids screensaver" -msgstr "" +msgstr "小行星屏保" msgctxt "Addon Description" msgid "An old-style screen saver where the asteroids are shot away." -msgstr "" +msgstr "一个老式的屏幕保护程序,小行星被射出。" From 7910a494a701619c58c70ca1898109728f5ebafd Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Mon, 27 Dec 2021 09:28:23 +0100 Subject: [PATCH 2/3] API related update --- src/Asteroids.h | 2 +- src/main.cpp | 4 ++-- src/main.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Asteroids.h b/src/Asteroids.h index 4042c6e..a45f9f2 100644 --- a/src/Asteroids.h +++ b/src/Asteroids.h @@ -24,7 +24,7 @@ //////////////////////////////////////////////////////////////////////////// // -class ATTRIBUTE_HIDDEN CAsteroids +class ATTR_DLL_LOCAL CAsteroids { public: CAsteroids(CMyAddon* addon); diff --git a/src/main.cpp b/src/main.cpp index dc45b8a..85e4701 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -103,8 +103,8 @@ bool CMyAddon::Start() #ifndef WIN32 m_projMat = glm::ortho(0.0f, float(Width()), float(Height()), 0.0f); - std::string fraqShader = kodi::GetAddonPath("resources/shaders/" GL_TYPE_STRING "/frag.glsl"); - std::string vertShader = kodi::GetAddonPath("resources/shaders/" GL_TYPE_STRING "/vert.glsl"); + std::string fraqShader = kodi::addon::GetAddonPath("resources/shaders/" GL_TYPE_STRING "/frag.glsl"); + std::string vertShader = kodi::addon::GetAddonPath("resources/shaders/" GL_TYPE_STRING "/vert.glsl"); if (!LoadShaderFiles(vertShader, fraqShader) || !CompileAndLink()) return false; diff --git a/src/main.h b/src/main.h index 02addbb..94e42f3 100644 --- a/src/main.h +++ b/src/main.h @@ -39,7 +39,7 @@ typedef struct TRenderVertex class CAsteroids; class CTimer; -class ATTRIBUTE_HIDDEN CMyAddon +class ATTR_DLL_LOCAL CMyAddon : public kodi::addon::CAddonBase, public kodi::addon::CInstanceScreensaver #ifndef WIN32 From 9198c184bcfc4f9ca1b8e8b4c5ebbe6d332ff7e5 Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Mon, 27 Dec 2021 09:32:05 +0100 Subject: [PATCH 3/3] increase version to 20.1.0 --- screensaver.asteroids/addon.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screensaver.asteroids/addon.xml.in b/screensaver.asteroids/addon.xml.in index 9e879cc..a0aec9f 100644 --- a/screensaver.asteroids/addon.xml.in +++ b/screensaver.asteroids/addon.xml.in @@ -1,7 +1,7 @@  @ADDON_DEPENDS@