Skip to content

[Fix] GOG stuck progress on download + Add 7 new languages #1800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ Heroic is built with Web Technologies like: TypeScript, React, NodeJS and Electr

## Language Support

Thanks to the community Heroic was translated to almost 40 different languages so far:

- English
- Azerbaijani
- Basque
- Belarussian
- Bosnian
- Bulgarian
- Catalan
- Czech
Expand All @@ -83,18 +89,21 @@ Heroic is built with Web Technologies like: TypeScript, React, NodeJS and Electr
- French
- German
- Greek
- Japanese
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Japanese was translated but was missing on readme. While Romanian was here but it was not available to select.

- Korean
- Hungarian
- Italian
- Indonesian
- Malayalam
- Norwegian Bokmål
- Persian
- Polish
- Portuguese
- Portuguese (Brazil)
- Romanian
- Russian
- Spanish
- Slovak
- Swedish
- Tamil
- Turkish
Expand Down
4 changes: 2 additions & 2 deletions electron/gog/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ class GOGGame extends Game {
const etaMatch = data.match(/ETA: (\d\d:\d\d:\d\d)/m)
const bytesMatch = data.match(/Downloaded: (\S+) MiB/m)
const progressMatch = data.match(/Progress: (\d+\.\d+) /m)
if (etaMatch && bytesMatch && progressMatch) {
const eta = etaMatch[1]
if (bytesMatch && progressMatch) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the eta dependency just in case someone has a pretty slow connection to download a huge game.

const eta = etaMatch ? etaMatch[1] : null
const bytes = bytesMatch[1]
let percent = parseFloat(progressMatch[1])
if (percent < 0) percent = 0
Expand Down
7 changes: 7 additions & 0 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,18 @@ if (!gotTheLock) {
fallbackLng: 'en',
lng: language,
supportedLngs: [
'az',
'be',
'bg',
'bs',
'ca',
'cs',
'de',
'el',
'en',
'es',
'et',
'eu',
'fa',
'fi',
'fr',
Expand All @@ -384,11 +388,14 @@ if (!gotTheLock) {
'id',
'it',
'ml',
'nb_NO',
'nl',
'pl',
'pt',
'pt_BR',
'ro',
'ru',
'sk',
'sv',
'ta',
'tr',
Expand Down
7 changes: 7 additions & 0 deletions i18next-parser.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ module.exports = {
// Control the line ending. See options at https://github.com/ryanve/eol

locales: [
'az',
'be',
'bg',
'bs',
'ca',
'cs',
'de',
'el',
'en',
'es',
'et',
'eu',
'fa',
'fi',
'fr',
Expand All @@ -73,11 +77,14 @@ module.exports = {
'id',
'it',
'ml',
'nb_NO',
'nl',
'pl',
'pt',
'pt_BR',
'ro',
'ru',
'sk',
'sv',
'ta',
'tr',
Expand Down
Binary file modified public/bin/darwin/gogdl
Binary file not shown.
Binary file modified public/bin/linux/gogdl
Binary file not shown.
Binary file modified public/bin/win32/gogdl.exe
Binary file not shown.
33 changes: 16 additions & 17 deletions public/locales/az/gamepage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"box": {
"no": "YOX",
"change": {
"message": "Bu oyunun quraşdırılma yerini dəyişəcək, əminsinizmi?",
"path": "Yeni quraşdırma yolunu seçin",
Expand All @@ -13,6 +12,7 @@
"path": "Hara köçmək istədiyinizi seçin",
"title": "Move Oyun Quraşdırması"
},
"no": "YOX",
"repair": {
"message": "Bu oyunu təmir etməyə cəhd etmək istəyirsiniz? Bu uzun müddət çəkə bilər.",
"title": "Doğrulayın və Təmir edin"
Expand All @@ -35,21 +35,6 @@
"wineprefix": "WinePrefix Qovluğunu seçin",
"yes": "HƏ"
},
"submenu": {
"move": "Hərəkət Oyunu",
"protondb": "Uyğunluğu yoxlayın",
"removeFromSteam": "Buxardan çıxarın",
"removeShortcut": "Qısayolları silin",
"settings": "Parametrlər",
"store": "Mağaza Səhifəsi",
"verify": "Doğrulayın və Təmir edin",
"addShortcut": "Qısayol əlavə edin",
"addToSteam": "Steam-ə əlavə edin",
"change": "Quraşdırma yolunu dəyişdirin",
"disableEosOverlay": "EOS Overlay'ı söndürün",
"enableEosOverlay": "EOS Overlay-ı aktivləşdirin",
"log": "Ən son Giriş"
},
"button": {
"add_to_favourites": "Sevimlilərə əlavə edin",
"cancel": "Pauza/Ləğv et",
Expand All @@ -63,6 +48,7 @@
"uninstall": "Silin",
"update": "Yeniləyin"
},
"cloud_save_unsupported": "Dəstəklənmir",
"disabled": "Əlil",
"dlc": {
"installDlcs": "Bütün DLC-ləri quraşdırın"
Expand Down Expand Up @@ -137,5 +123,18 @@
"totalDownloaded": "Toplam Endirilib",
"updating": "Oyun Yenilənir"
},
"cloud_save_unsupported": "Dəstəklənmir"
"submenu": {
"addShortcut": "Qısayol əlavə edin",
"addToSteam": "Steam-ə əlavə edin",
"change": "Quraşdırma yolunu dəyişdirin",
"disableEosOverlay": "EOS Overlay'ı söndürün",
"enableEosOverlay": "EOS Overlay-ı aktivləşdirin",
"move": "Hərəkət Oyunu",
"protondb": "Uyğunluğu yoxlayın",
"removeFromSteam": "Buxardan çıxarın",
"removeShortcut": "Qısayolları silin",
"settings": "Parametrlər",
"store": "Mağaza Səhifəsi",
"verify": "Doğrulayın və Təmir edin"
}
}
Loading