diff --git a/data/com.github.tkashkin.gamehub.appdata.xml.in b/data/com.github.tkashkin.gamehub.appdata.xml.in index d41b0d78..34f520ee 100644 --- a/data/com.github.tkashkin.gamehub.appdata.xml.in +++ b/data/com.github.tkashkin.gamehub.appdata.xml.in @@ -41,6 +41,11 @@ + + +

UI improvements

+
+

Downloader rewrite: now it's possible to pause and cancel downloads

diff --git a/debian/changelog b/debian/changelog index c65fb33c..924a8030 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +com.github.tkashkin.gamehub (0.6.1) xenial; urgency=low + + * UI improvements + + -- tkashkin Tue, 24 Jul 2018 08:01:37 +0300 + com.github.tkashkin.gamehub (0.6.0) xenial; urgency=low * Downloader rewrite: now it's possible to pause and cancel downloads diff --git a/meson.build b/meson.build index 99486f04..63121d57 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('com.github.tkashkin.gamehub', 'vala', 'c', version: '0.6.0') +project('com.github.tkashkin.gamehub', 'vala', 'c', version: '0.6.1') i18n = import('i18n') gnome = import('gnome') @@ -7,6 +7,8 @@ add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), lan if get_option('flatpak') add_global_arguments('-D', 'FLATPAK', language: 'vala') +elif get_option('snap') + add_global_arguments('-D', 'SNAP', language: 'vala') endif if get_option('distro') == 'debian' diff --git a/po/com.github.tkashkin.gamehub.pot b/po/com.github.tkashkin.gamehub.pot index c7c86302..807c0506 100644 --- a/po/com.github.tkashkin.gamehub.pot +++ b/po/com.github.tkashkin.gamehub.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.tkashkin.gamehub\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-07-22 17:49+0300\n" +"POT-Creation-Date: 2018-07-24 07:50+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -77,8 +77,8 @@ msgid "" msgstr "" #: src/ui/dialogs/SettingsDialog.vala:13 src/ui/views/WelcomeView.vala:34 -#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:158 -#: src/ui/views/GamesView/GamesView.vala:355 +#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:159 +#: src/ui/views/GamesView/GamesView.vala:356 msgid "Settings" msgstr "" @@ -218,54 +218,54 @@ msgstr "" msgid "Reload" msgstr "" -#: src/ui/views/GamesView/GamesView.vala:108 +#: src/ui/views/GamesView/GamesView.vala:109 msgid "Grid view" msgstr "" -#: src/ui/views/GamesView/GamesView.vala:109 +#: src/ui/views/GamesView/GamesView.vala:110 msgid "List view" msgstr "" -#: src/ui/views/GamesView/GamesView.vala:121 +#: src/ui/views/GamesView/GamesView.vala:122 msgid "All games" msgstr "" -#: src/ui/views/GamesView/GamesView.vala:125 +#: src/ui/views/GamesView/GamesView.vala:126 #, c-format msgid "%s games" msgstr "" -#: src/ui/views/GamesView/GamesView.vala:131 +#: src/ui/views/GamesView/GamesView.vala:132 msgid "Downloads" msgstr "" -#: src/ui/views/GamesView/GamesView.vala:153 +#: src/ui/views/GamesView/GamesView.vala:154 msgid "Search" msgstr "" -#: src/ui/views/GamesView/GamesView.vala:277 +#: src/ui/views/GamesView/GamesView.vala:278 #, c-format msgid "%u game" msgid_plural "%u games" msgstr[0] "" msgstr[1] "" -#: src/ui/views/GamesView/GamesView.vala:281 +#: src/ui/views/GamesView/GamesView.vala:282 #, c-format msgid "No %s games" msgstr "" -#: src/ui/views/GamesView/GamesView.vala:282 +#: src/ui/views/GamesView/GamesView.vala:283 msgid "Get some Linux-compatible games" msgstr "" -#: src/ui/views/GamesView/GamesView.vala:353 +#: src/ui/views/GamesView/GamesView.vala:354 msgid "" "No games were loaded from Steam. Set your games list privacy to public or " "use your own Steam API key in settings." msgstr "" -#: src/ui/views/GamesView/GamesView.vala:354 +#: src/ui/views/GamesView/GamesView.vala:355 msgid "Privacy" msgstr "" @@ -304,14 +304,32 @@ msgstr "" msgid "Uninstall" msgstr "" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:307 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:311 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:365 msgid "Language" msgstr "" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:310 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:314 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:368 msgid "Languages" msgstr "" +#: src/ui/views/GameDetailsView/GameDetailsView.vala:335 +msgid "Category" +msgstr "" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:338 +msgid "Categories" +msgstr "" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:353 +msgid "Genre" +msgstr "" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:356 +msgid "Genres" +msgstr "" + #: src/utils/downloader/Downloader.vala:136 msgid "Starting download" msgstr "" diff --git a/po/de.po b/po/de.po index f7f4abb4..9b59cfc8 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.tkashkin.gamehub\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-07-22 17:49+0300\n" +"POT-Creation-Date: 2018-07-24 07:50+0300\n" "PO-Revision-Date: 2018-07-14 00:51+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -78,8 +78,8 @@ msgstr "" "Logge dich in dein Konto im Steam-Client ein und kehre zu GameHub zurück" #: src/ui/dialogs/SettingsDialog.vala:13 src/ui/views/WelcomeView.vala:34 -#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:158 -#: src/ui/views/GamesView/GamesView.vala:355 +#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:159 +#: src/ui/views/GamesView/GamesView.vala:356 msgid "Settings" msgstr "Einstellungen" @@ -222,48 +222,48 @@ msgstr "" msgid "Reload" msgstr "Neu laden" -#: src/ui/views/GamesView/GamesView.vala:108 +#: src/ui/views/GamesView/GamesView.vala:109 msgid "Grid view" msgstr "Rasteransicht" -#: src/ui/views/GamesView/GamesView.vala:109 +#: src/ui/views/GamesView/GamesView.vala:110 msgid "List view" msgstr "Listenansicht" -#: src/ui/views/GamesView/GamesView.vala:121 +#: src/ui/views/GamesView/GamesView.vala:122 msgid "All games" msgstr "Alle Spiele" -#: src/ui/views/GamesView/GamesView.vala:125 +#: src/ui/views/GamesView/GamesView.vala:126 #, c-format msgid "%s games" msgstr "Spiele von %s" -#: src/ui/views/GamesView/GamesView.vala:131 +#: src/ui/views/GamesView/GamesView.vala:132 msgid "Downloads" msgstr "Downloads" -#: src/ui/views/GamesView/GamesView.vala:153 +#: src/ui/views/GamesView/GamesView.vala:154 msgid "Search" msgstr "Suche" -#: src/ui/views/GamesView/GamesView.vala:277 +#: src/ui/views/GamesView/GamesView.vala:278 #, c-format msgid "%u game" msgid_plural "%u games" msgstr[0] "%u Spiel" msgstr[1] "%u Spiele" -#: src/ui/views/GamesView/GamesView.vala:281 +#: src/ui/views/GamesView/GamesView.vala:282 #, c-format msgid "No %s games" msgstr "Keine Spiele von %s" -#: src/ui/views/GamesView/GamesView.vala:282 +#: src/ui/views/GamesView/GamesView.vala:283 msgid "Get some Linux-compatible games" msgstr "Holen Sie sich einige Linux-kompatible Spiele" -#: src/ui/views/GamesView/GamesView.vala:353 +#: src/ui/views/GamesView/GamesView.vala:354 msgid "" "No games were loaded from Steam. Set your games list privacy to public or " "use your own Steam API key in settings." @@ -272,7 +272,7 @@ msgstr "" "Öffentlichkeit oder benutze deinen eigenen Steam-API-Schlüssel in den " "Einstellungen." -#: src/ui/views/GamesView/GamesView.vala:354 +#: src/ui/views/GamesView/GamesView.vala:355 msgid "Privacy" msgstr "Datenschutz" @@ -311,14 +311,32 @@ msgstr "Shopseite öffnen" msgid "Uninstall" msgstr "Deinstallieren" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:307 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:311 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:365 msgid "Language" msgstr "Sprache" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:310 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:314 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:368 msgid "Languages" msgstr "Sprachen" +#: src/ui/views/GameDetailsView/GameDetailsView.vala:335 +msgid "Category" +msgstr "Kategorie" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:338 +msgid "Categories" +msgstr "Kategorien" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:353 +msgid "Genre" +msgstr "Genre" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:356 +msgid "Genres" +msgstr "Genres" + #: src/utils/downloader/Downloader.vala:136 msgid "Starting download" msgstr "Download wird gestartet" diff --git a/po/id.po b/po/id.po index 18e9faa1..83c35034 100644 --- a/po/id.po +++ b/po/id.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.tkashkin.gamehub\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-07-22 17:49+0300\n" +"POT-Creation-Date: 2018-07-24 07:50+0300\n" "PO-Revision-Date: 2018-07-23 18:31+0700\n" "Last-Translator: Kukuh Syafaat \n" "Language-Team: \n" @@ -79,8 +79,8 @@ msgstr "" "Masuk ke akun Anda di klien Steam dan kembali ke GameHub" #: src/ui/dialogs/SettingsDialog.vala:13 src/ui/views/WelcomeView.vala:34 -#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:158 -#: src/ui/views/GamesView/GamesView.vala:355 +#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:159 +#: src/ui/views/GamesView/GamesView.vala:356 msgid "Settings" msgstr "Pengaturan" @@ -221,47 +221,47 @@ msgstr "" msgid "Reload" msgstr "Muat ulang" -#: src/ui/views/GamesView/GamesView.vala:108 +#: src/ui/views/GamesView/GamesView.vala:109 msgid "Grid view" msgstr "Tilikan kisi" -#: src/ui/views/GamesView/GamesView.vala:109 +#: src/ui/views/GamesView/GamesView.vala:110 msgid "List view" msgstr "Tilikan daftar" -#: src/ui/views/GamesView/GamesView.vala:121 +#: src/ui/views/GamesView/GamesView.vala:122 msgid "All games" msgstr "Semua permainan" -#: src/ui/views/GamesView/GamesView.vala:125 +#: src/ui/views/GamesView/GamesView.vala:126 #, c-format msgid "%s games" msgstr "%s permainan" -#: src/ui/views/GamesView/GamesView.vala:131 +#: src/ui/views/GamesView/GamesView.vala:132 msgid "Downloads" msgstr "Unduh" -#: src/ui/views/GamesView/GamesView.vala:153 +#: src/ui/views/GamesView/GamesView.vala:154 msgid "Search" msgstr "Cari" -#: src/ui/views/GamesView/GamesView.vala:277 +#: src/ui/views/GamesView/GamesView.vala:278 #, c-format msgid "%u game" msgid_plural "%u games" msgstr[0] "%u permainan" -#: src/ui/views/GamesView/GamesView.vala:281 +#: src/ui/views/GamesView/GamesView.vala:282 #, c-format msgid "No %s games" msgstr "Tidak ada %s permainan" -#: src/ui/views/GamesView/GamesView.vala:282 +#: src/ui/views/GamesView/GamesView.vala:283 msgid "Get some Linux-compatible games" msgstr "Dapatkan beberapa permainan Linux yang kompatibel" -#: src/ui/views/GamesView/GamesView.vala:353 +#: src/ui/views/GamesView/GamesView.vala:354 msgid "" "No games were loaded from Steam. Set your games list privacy to public or " "use your own Steam API key in settings." @@ -269,7 +269,7 @@ msgstr "" "Tidak ada permainan yang dimuat dari Steam. Setel privasi daftar permainan " "anda ke publik atau gunakan kunci API Steam anda sendiri dalam pengaturan." -#: src/ui/views/GamesView/GamesView.vala:354 +#: src/ui/views/GamesView/GamesView.vala:355 msgid "Privacy" msgstr "Privasi" @@ -308,14 +308,32 @@ msgstr "Buka halaman toko" msgid "Uninstall" msgstr "Copot pemasangan" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:307 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:311 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:365 msgid "Language" msgstr "Bahasa" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:310 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:314 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:368 msgid "Languages" msgstr "Bahasa" +#: src/ui/views/GameDetailsView/GameDetailsView.vala:335 +msgid "Category" +msgstr "Kategori" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:338 +msgid "Categories" +msgstr "Kategori" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:353 +msgid "Genre" +msgstr "Aliran" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:356 +msgid "Genres" +msgstr "Aliran" + #: src/utils/downloader/Downloader.vala:136 msgid "Starting download" msgstr "Mulai mengunduh" diff --git a/po/pl.po b/po/pl.po index 4894f106..c9c0667e 100644 --- a/po/pl.po +++ b/po/pl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.tkashkin.gamehub\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-07-22 17:49+0300\n" +"POT-Creation-Date: 2018-07-24 07:50+0300\n" "PO-Revision-Date: 2018-07-14 00:51+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -79,8 +79,8 @@ msgstr "" "Zaloguj się do swojego konta w kliencie Steam i wróć do GameHub" #: src/ui/dialogs/SettingsDialog.vala:13 src/ui/views/WelcomeView.vala:34 -#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:158 -#: src/ui/views/GamesView/GamesView.vala:355 +#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:159 +#: src/ui/views/GamesView/GamesView.vala:356 msgid "Settings" msgstr "Ustawienia" @@ -221,32 +221,32 @@ msgstr "Pobierz gry lub włącz niektóre źródła gier w ustawieniach" msgid "Reload" msgstr "Przeładować" -#: src/ui/views/GamesView/GamesView.vala:108 +#: src/ui/views/GamesView/GamesView.vala:109 msgid "Grid view" msgstr "Widok siatki" -#: src/ui/views/GamesView/GamesView.vala:109 +#: src/ui/views/GamesView/GamesView.vala:110 msgid "List view" msgstr "Widok listy" -#: src/ui/views/GamesView/GamesView.vala:121 +#: src/ui/views/GamesView/GamesView.vala:122 msgid "All games" msgstr "Wszystkie gry" -#: src/ui/views/GamesView/GamesView.vala:125 +#: src/ui/views/GamesView/GamesView.vala:126 #, c-format msgid "%s games" msgstr "Gry z %s" -#: src/ui/views/GamesView/GamesView.vala:131 +#: src/ui/views/GamesView/GamesView.vala:132 msgid "Downloads" msgstr "Pliki do pobrania" -#: src/ui/views/GamesView/GamesView.vala:153 +#: src/ui/views/GamesView/GamesView.vala:154 msgid "Search" msgstr "Szukaj" -#: src/ui/views/GamesView/GamesView.vala:277 +#: src/ui/views/GamesView/GamesView.vala:278 #, c-format msgid "%u game" msgid_plural "%u games" @@ -254,16 +254,16 @@ msgstr[0] "%u gra" msgstr[1] "%u gry" msgstr[2] "%u gier" -#: src/ui/views/GamesView/GamesView.vala:281 +#: src/ui/views/GamesView/GamesView.vala:282 #, c-format msgid "No %s games" msgstr "Brak gier z %s" -#: src/ui/views/GamesView/GamesView.vala:282 +#: src/ui/views/GamesView/GamesView.vala:283 msgid "Get some Linux-compatible games" msgstr "Zdobądź gry kompatybilne z Linuksem" -#: src/ui/views/GamesView/GamesView.vala:353 +#: src/ui/views/GamesView/GamesView.vala:354 msgid "" "No games were loaded from Steam. Set your games list privacy to public or " "use your own Steam API key in settings." @@ -271,7 +271,7 @@ msgstr "" "Żadne gry nie zostały załadowane ze Steam. Ustaw prywatność listy gier jako " "publiczną lub użyj swojego własnego klucza Steam API w ustawieniach." -#: src/ui/views/GamesView/GamesView.vala:354 +#: src/ui/views/GamesView/GamesView.vala:355 msgid "Privacy" msgstr "Prywatność" @@ -310,14 +310,32 @@ msgstr "Otwórz stronę sklepu" msgid "Uninstall" msgstr "Odinstaluj" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:307 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:311 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:365 msgid "Language" msgstr "Język" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:310 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:314 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:368 msgid "Languages" msgstr "Języki" +#: src/ui/views/GameDetailsView/GameDetailsView.vala:335 +msgid "Category" +msgstr "Kategoria" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:338 +msgid "Categories" +msgstr "Kategorie" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:353 +msgid "Genre" +msgstr "Gatunek" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:356 +msgid "Genres" +msgstr "Gatunki" + #: src/utils/downloader/Downloader.vala:136 msgid "Starting download" msgstr "Rozpoczynanie pobierania" diff --git a/po/pt_BR.po b/po/pt_BR.po index 9d689a9d..834d531a 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.tkashkin.gamehub\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-07-22 17:49+0300\n" +"POT-Creation-Date: 2018-07-24 07:50+0300\n" "PO-Revision-Date: 2018-07-13 16:18+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -78,8 +78,8 @@ msgstr "" "Entre na sua conta no cliente Steam e retorne ao GameHub" #: src/ui/dialogs/SettingsDialog.vala:13 src/ui/views/WelcomeView.vala:34 -#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:158 -#: src/ui/views/GamesView/GamesView.vala:355 +#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:159 +#: src/ui/views/GamesView/GamesView.vala:356 msgid "Settings" msgstr "Configurações" @@ -221,48 +221,48 @@ msgstr "" msgid "Reload" msgstr "Recarregar" -#: src/ui/views/GamesView/GamesView.vala:108 +#: src/ui/views/GamesView/GamesView.vala:109 msgid "Grid view" msgstr "Visualizar grade" -#: src/ui/views/GamesView/GamesView.vala:109 +#: src/ui/views/GamesView/GamesView.vala:110 msgid "List view" msgstr "Visualizar lista" -#: src/ui/views/GamesView/GamesView.vala:121 +#: src/ui/views/GamesView/GamesView.vala:122 msgid "All games" msgstr "Todos os jogos" -#: src/ui/views/GamesView/GamesView.vala:125 +#: src/ui/views/GamesView/GamesView.vala:126 #, c-format msgid "%s games" msgstr "%s jogos" -#: src/ui/views/GamesView/GamesView.vala:131 +#: src/ui/views/GamesView/GamesView.vala:132 msgid "Downloads" msgstr "Baixado" -#: src/ui/views/GamesView/GamesView.vala:153 +#: src/ui/views/GamesView/GamesView.vala:154 msgid "Search" msgstr "Pesquisar" -#: src/ui/views/GamesView/GamesView.vala:277 +#: src/ui/views/GamesView/GamesView.vala:278 #, c-format msgid "%u game" msgid_plural "%u games" msgstr[0] "%u jogo" msgstr[1] "%u jogos" -#: src/ui/views/GamesView/GamesView.vala:281 +#: src/ui/views/GamesView/GamesView.vala:282 #, c-format msgid "No %s games" msgstr "Nenhum jogo do %s" -#: src/ui/views/GamesView/GamesView.vala:282 +#: src/ui/views/GamesView/GamesView.vala:283 msgid "Get some Linux-compatible games" msgstr "Obtenha alguns jogos compatíveis com o seu sistema" -#: src/ui/views/GamesView/GamesView.vala:353 +#: src/ui/views/GamesView/GamesView.vala:354 msgid "" "No games were loaded from Steam. Set your games list privacy to public or " "use your own Steam API key in settings." @@ -270,7 +270,7 @@ msgstr "" "Nenhum jogo foi carregado do Steam. Defina a privacidade da lista de jogos " "como pública ou use sua própria chave de API do Steam nas configurações." -#: src/ui/views/GamesView/GamesView.vala:354 +#: src/ui/views/GamesView/GamesView.vala:355 msgid "Privacy" msgstr "Privacidade" @@ -309,14 +309,32 @@ msgstr "Abra a página da loja" msgid "Uninstall" msgstr "Desinstalar" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:307 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:311 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:365 msgid "Language" msgstr "Língua" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:310 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:314 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:368 msgid "Languages" msgstr "Línguas" +#: src/ui/views/GameDetailsView/GameDetailsView.vala:335 +msgid "Category" +msgstr "Categoria" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:338 +msgid "Categories" +msgstr "Categorias" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:353 +msgid "Genre" +msgstr "Gênero" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:356 +msgid "Genres" +msgstr "Gêneros" + #: src/utils/downloader/Downloader.vala:136 msgid "Starting download" msgstr "Iniciando download" diff --git a/po/ru.po b/po/ru.po index 35ed1662..78f99187 100644 --- a/po/ru.po +++ b/po/ru.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.tkashkin.gamehub\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-07-22 17:49+0300\n" +"POT-Creation-Date: 2018-07-24 07:50+0300\n" "PO-Revision-Date: 2018-05-27 03:39+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -79,8 +79,8 @@ msgstr "" "Войдите в ваш аккаунт в клиенте Steam и вернитесь в GameHub" #: src/ui/dialogs/SettingsDialog.vala:13 src/ui/views/WelcomeView.vala:34 -#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:158 -#: src/ui/views/GamesView/GamesView.vala:355 +#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:159 +#: src/ui/views/GamesView/GamesView.vala:356 msgid "Settings" msgstr "Настройки" @@ -221,32 +221,32 @@ msgstr "Получите игры или включите источники в msgid "Reload" msgstr "Обновить" -#: src/ui/views/GamesView/GamesView.vala:108 +#: src/ui/views/GamesView/GamesView.vala:109 msgid "Grid view" msgstr "Сетка" -#: src/ui/views/GamesView/GamesView.vala:109 +#: src/ui/views/GamesView/GamesView.vala:110 msgid "List view" msgstr "Список" -#: src/ui/views/GamesView/GamesView.vala:121 +#: src/ui/views/GamesView/GamesView.vala:122 msgid "All games" msgstr "Все игры" -#: src/ui/views/GamesView/GamesView.vala:125 +#: src/ui/views/GamesView/GamesView.vala:126 #, c-format msgid "%s games" msgstr "Игры из %s" -#: src/ui/views/GamesView/GamesView.vala:131 +#: src/ui/views/GamesView/GamesView.vala:132 msgid "Downloads" msgstr "Загрузки" -#: src/ui/views/GamesView/GamesView.vala:153 +#: src/ui/views/GamesView/GamesView.vala:154 msgid "Search" msgstr "Поиск" -#: src/ui/views/GamesView/GamesView.vala:277 +#: src/ui/views/GamesView/GamesView.vala:278 #, c-format msgid "%u game" msgid_plural "%u games" @@ -254,16 +254,16 @@ msgstr[0] "%u игра" msgstr[1] "%u игры" msgstr[2] "%u игр" -#: src/ui/views/GamesView/GamesView.vala:281 +#: src/ui/views/GamesView/GamesView.vala:282 #, c-format msgid "No %s games" msgstr "Нет игр из %s" -#: src/ui/views/GamesView/GamesView.vala:282 +#: src/ui/views/GamesView/GamesView.vala:283 msgid "Get some Linux-compatible games" msgstr "Получите игры, совместимые с Linux" -#: src/ui/views/GamesView/GamesView.vala:353 +#: src/ui/views/GamesView/GamesView.vala:354 msgid "" "No games were loaded from Steam. Set your games list privacy to public or " "use your own Steam API key in settings." @@ -271,7 +271,7 @@ msgstr "" "Нет игр, загруженных из Steam. Настройте список игр как публичный или " "используйте свой API-ключ Steam в настройках." -#: src/ui/views/GamesView/GamesView.vala:354 +#: src/ui/views/GamesView/GamesView.vala:355 msgid "Privacy" msgstr "Приватность" @@ -310,14 +310,32 @@ msgstr "Открыть страницу в магазине" msgid "Uninstall" msgstr "Удалить" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:307 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:311 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:365 msgid "Language" msgstr "Язык" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:310 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:314 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:368 msgid "Languages" msgstr "Языки" +#: src/ui/views/GameDetailsView/GameDetailsView.vala:335 +msgid "Category" +msgstr "Категория" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:338 +msgid "Categories" +msgstr "Категории" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:353 +msgid "Genre" +msgstr "Жанр" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:356 +msgid "Genres" +msgstr "Жанры" + #: src/utils/downloader/Downloader.vala:136 msgid "Starting download" msgstr "Начало загрузки" diff --git a/po/uk.po b/po/uk.po index 6e47c48b..b9f31633 100644 --- a/po/uk.po +++ b/po/uk.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.tkashkin.gamehub\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-07-22 17:06+0300\n" +"POT-Creation-Date: 2018-07-24 07:50+0300\n" "PO-Revision-Date: 2018-07-14 00:51+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -79,8 +79,8 @@ msgstr "" "Увійдіть у свій обліковий запис у клієнті Steam і поверніться до GameHub" #: src/ui/dialogs/SettingsDialog.vala:13 src/ui/views/WelcomeView.vala:34 -#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:158 -#: src/ui/views/GamesView/GamesView.vala:355 +#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:159 +#: src/ui/views/GamesView/GamesView.vala:356 msgid "Settings" msgstr "Налаштування" @@ -221,32 +221,32 @@ msgstr "Отримайте ігри або увімкніть джерела і msgid "Reload" msgstr "Перезавантажити" -#: src/ui/views/GamesView/GamesView.vala:108 +#: src/ui/views/GamesView/GamesView.vala:109 msgid "Grid view" msgstr "Сітка" -#: src/ui/views/GamesView/GamesView.vala:109 +#: src/ui/views/GamesView/GamesView.vala:110 msgid "List view" msgstr "Список" -#: src/ui/views/GamesView/GamesView.vala:121 +#: src/ui/views/GamesView/GamesView.vala:122 msgid "All games" msgstr "Всі ігри" -#: src/ui/views/GamesView/GamesView.vala:125 +#: src/ui/views/GamesView/GamesView.vala:126 #, c-format msgid "%s games" msgstr "Ігри з %s" -#: src/ui/views/GamesView/GamesView.vala:131 +#: src/ui/views/GamesView/GamesView.vala:132 msgid "Downloads" msgstr "Завантаження" -#: src/ui/views/GamesView/GamesView.vala:153 +#: src/ui/views/GamesView/GamesView.vala:154 msgid "Search" msgstr "Пошук" -#: src/ui/views/GamesView/GamesView.vala:277 +#: src/ui/views/GamesView/GamesView.vala:278 #, c-format msgid "%u game" msgid_plural "%u games" @@ -254,16 +254,16 @@ msgstr[0] "%u гра" msgstr[1] "%u гри" msgstr[2] "%u ігор" -#: src/ui/views/GamesView/GamesView.vala:281 +#: src/ui/views/GamesView/GamesView.vala:282 #, c-format msgid "No %s games" msgstr "Немає ігор з %s" -#: src/ui/views/GamesView/GamesView.vala:282 +#: src/ui/views/GamesView/GamesView.vala:283 msgid "Get some Linux-compatible games" msgstr "Отримайте сумісні з Linux ігри" -#: src/ui/views/GamesView/GamesView.vala:353 +#: src/ui/views/GamesView/GamesView.vala:354 msgid "" "No games were loaded from Steam. Set your games list privacy to public or " "use your own Steam API key in settings." @@ -271,7 +271,7 @@ msgstr "" "Немає ігор, завантажених з Steam. Налаштуйте список ігор як публічний або " "використовуйте свій API-ключ Steam в налаштуваннях." -#: src/ui/views/GamesView/GamesView.vala:354 +#: src/ui/views/GamesView/GamesView.vala:355 msgid "Privacy" msgstr "Конфіденційність" @@ -310,14 +310,32 @@ msgstr "Відкрити сторінку магазину" msgid "Uninstall" msgstr "Видалити" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:307 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:311 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:365 msgid "Language" msgstr "Мова" -#: src/ui/views/GameDetailsView/GameDetailsView.vala:310 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:314 +#: src/ui/views/GameDetailsView/GameDetailsView.vala:368 msgid "Languages" msgstr "Мови" +#: src/ui/views/GameDetailsView/GameDetailsView.vala:335 +msgid "Category" +msgstr "Категорія" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:338 +msgid "Categories" +msgstr "Категорії" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:353 +msgid "Genre" +msgstr "Жанр" + +#: src/ui/views/GameDetailsView/GameDetailsView.vala:356 +msgid "Genres" +msgstr "Жанри" + #: src/utils/downloader/Downloader.vala:136 msgid "Starting download" msgstr "Початок завантаження" diff --git a/src/app.vala b/src/app.vala index 7392cb0e..568ada28 100644 --- a/src/app.vala +++ b/src/app.vala @@ -40,7 +40,10 @@ namespace GameHub Ivy.Stacktrace.register_handlers(); #endif - Intl.setlocale(LocaleCategory.ALL, ""); + var app = new Application(); + + var lang = Environment.get_variable("LC_ALL") ?? ""; + Intl.setlocale(LocaleCategory.ALL, lang); Intl.bindtextdomain(ProjectConfig.GETTEXT_PACKAGE, ProjectConfig.GETTEXT_DIR); Intl.textdomain(ProjectConfig.GETTEXT_PACKAGE); @@ -50,7 +53,6 @@ namespace GameHub GameSources = { new Steam(), new GOG(), new Humble() }; - var app = new Application(); return app.run(args); } } diff --git a/src/data/sources/gog/GOGGame.vala b/src/data/sources/gog/GOGGame.vala index 1adbafcd..3c2c0432 100644 --- a/src/data/sources/gog/GOGGame.vala +++ b/src/data/sources/gog/GOGGame.vala @@ -73,7 +73,8 @@ namespace GameHub.Data.Sources.GOG { if(custom_info == null || custom_info.length == 0 || !_product_info_updated) { - var url = @"https://api.gog.com/products/$(id)?expand=downloads,description"; + var lang = Intl.setlocale(LocaleCategory.ALL, null).down().substring(0, 2); + var url = @"https://api.gog.com/products/$(id)?expand=downloads,description" + (lang != null && lang.length > 0 ? "&locale=" + lang : ""); custom_info = (yield Parser.load_remote_file_async(url, "GET", ((GOG) source).user_token)); _product_info_updated = true; } diff --git a/src/data/sources/steam/SteamGame.vala b/src/data/sources/steam/SteamGame.vala index f35d2cd8..f1a9741e 100644 --- a/src/data/sources/steam/SteamGame.vala +++ b/src/data/sources/steam/SteamGame.vala @@ -44,7 +44,8 @@ namespace GameHub.Data.Sources.Steam { if(custom_info == null || custom_info.length == 0 || !_product_info_updated) { - var url = @"https://store.steampowered.com/api/appdetails?appids=$(id)"; + var lang = Utils.get_language_name().down(); + var url = @"https://store.steampowered.com/api/appdetails?appids=$(id)" + (lang != null && lang.length > 0 ? "&l=" + lang : ""); custom_info = (yield Parser.load_remote_file_async(url)); _product_info_updated = true; } diff --git a/src/ui/views/GameDetailsView/GameDetailsView.vala b/src/ui/views/GameDetailsView/GameDetailsView.vala index f44964d9..436084eb 100644 --- a/src/ui/views/GameDetailsView/GameDetailsView.vala +++ b/src/ui/views/GameDetailsView/GameDetailsView.vala @@ -242,6 +242,7 @@ namespace GameHub.UI.Views src_icon.icon_name = _game.source.icon + "-symbolic"; if(_game.description != null) { + description_header.show(); description.show(); description.set_size_request(-1, -1); var desc = _game.description + ""; @@ -254,6 +255,7 @@ namespace GameHub.UI.Views } else { + description_header.hide(); description.hide(); } @@ -289,32 +291,89 @@ namespace GameHub.UI.Views _game.status_change(_game.status); custom_info.forall(w => custom_info.remove(w)); - if(_game is GameHub.Data.Sources.GOG.GOGGame && _game.custom_info.length > 0) + if(_game.custom_info.length > 0) { var root = Parser.parse_json(_game.custom_info).get_object(); - var sys_langs = Intl.get_language_names(); - var langs = root.get_object_member("languages"); - if(langs != null) + if(_game is GameHub.Data.Sources.GOG.GOGGame) { - var langs_string = ""; - foreach(var l in langs.get_members()) + var sys_langs = Intl.get_language_names(); + var langs = root.get_object_member("languages"); + if(langs != null) { - var lang = langs.get_string_member(l); - if(l in sys_langs) lang = @"$(lang)"; - langs_string += (langs_string.length > 0 ? ", " : "") + lang; + var langs_string = ""; + foreach(var l in langs.get_members()) + { + var lang = langs.get_string_member(l); + if(l in sys_langs) lang = @"$(lang)"; + langs_string += (langs_string.length > 0 ? ", " : "") + lang; + } + var langs_label = _("Language"); + if(langs_string.contains(",")) + { + langs_label = _("Languages"); + } + add_custom_info_label(langs_label, langs_string, false, true); } - var langs_label = _("Language"); - if(langs_string.contains(",")) + } + else if(_game is GameHub.Data.Sources.Steam.SteamGame) + { + var app = root.has_member(_game.id) ? root.get_object_member(_game.id) : null; + var data = app != null && app.has_member("data") ? app.get_object_member("data") : null; + if(data != null) { - langs_label = _("Languages"); + var categories = data.has_member("categories") ? data.get_array_member("categories") : null; + if(categories != null) + { + var categories_string = ""; + foreach(var c in categories.get_elements()) + { + var cat = c.get_object().get_string_member("description"); + categories_string += (categories_string.length > 0 ? ", " : "") + cat; + } + + var categories_label = _("Category"); + if(categories_string.contains(",")) + { + categories_label = _("Categories"); + } + add_custom_info_label(categories_label, categories_string, false, true); + } + + var genres = data.has_member("genres") ? data.get_array_member("genres") : null; + if(genres != null) + { + var genres_string = ""; + foreach(var g in genres.get_elements()) + { + var genre = g.get_object().get_string_member("description"); + genres_string += (genres_string.length > 0 ? ", " : "") + genre; + } + + var genres_label = _("Genre"); + if(genres_string.contains(",")) + { + genres_label = _("Genres"); + } + add_custom_info_label(genres_label, genres_string, false, true); + } + + var langs = data.has_member("supported_languages") ? data.get_string_member("supported_languages") : null; + if(langs != null) + { + langs = langs.split("
*")[0].replace("strong>", "b>"); + var langs_label = _("Language"); + if(langs.contains(",")) + { + langs_label = _("Languages"); + } + add_custom_info_label(langs_label, langs, false, true); + } } - add_custom_info_label(langs_label, langs_string, false, true); } custom_info.show_all(); } - custom_info.margin_bottom = custom_info.get_children().length() > 0 ? 16 : 0; yield Utils.load_image(icon, _game.icon, "icon"); diff --git a/src/utils/Utils.vala b/src/utils/Utils.vala index 3d5274e9..f41ac808 100644 --- a/src/utils/Utils.vala +++ b/src/utils/Utils.vala @@ -101,9 +101,14 @@ namespace GameHub.Utils #endif } + public static string get_language_name() + { + return Posix.nl_langinfo((Posix.NLItem) 786439); // _NL_IDENTIFICATION_LANGUAGE + } + public static bool is_package_installed(string package) { - #if FLATPAK + #if FLATPAK || SNAP return false; #elif PM_APT var output = Utils.run({"dpkg-query", "-W", "-f=${Status}", package});