diff --git a/.windows/Cartridges.iss b/.windows/Cartridges.iss index 0702537..b59581e 100644 --- a/.windows/Cartridges.iss +++ b/.windows/Cartridges.iss @@ -30,8 +30,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl" Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [Files] -Source: "cartridges"; DestDir: "{app}\bin"; Flags: ignoreversion - +Source: "D:\a\_temp\msys64\ucrt64\bin\cartridges"; DestDir: "{app}\bin"; Flags: ignoreversion Source: "D:\a\_temp\msys64\ucrt64\bin\pythonw.exe"; DestDir: "{app}\bin"; Flags: ignoreversion Source: "D:\a\_temp\msys64\ucrt64\bin\python.exe"; DestDir: "{app}\bin"; Flags: ignoreversion Source: "D:\a\_temp\msys64\ucrt64\bin\gdbus.exe"; DestDir: "{app}\bin"; Flags: ignoreversion diff --git a/.windows/cartridges b/.windows/cartridges deleted file mode 100644 index 79ba681..0000000 --- a/.windows/cartridges +++ /dev/null @@ -1,41 +0,0 @@ -# Cartridges -# -# Copyright 2022 kramo -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# SPDX-License-Identifier: GPL-3.0-or-later - -import os -import sys -import signal -import gettext - -VERSION = '0.1.3' -pkgdatadir = os.path.join(os.path.dirname(__file__), '..', 'share', 'cartridges') -localedir = os.path.join(os.path.dirname(__file__), '..', 'share', 'locale') - -sys.path.insert(1, pkgdatadir) -signal.signal(signal.SIGINT, signal.SIG_DFL) -gettext.install('cartridges', localedir) - -if __name__ == '__main__': - import gi - - from gi.repository import Gio - resource = Gio.Resource.load(os.path.join(pkgdatadir, 'cartridges.gresource')) - resource._register() - - from cartridges import main - sys.exit(main.main(VERSION)) diff --git a/po/fr.po b/po/fr.po index 511687c..08c109f 100644 --- a/po/fr.po +++ b/po/fr.po @@ -2,14 +2,14 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the cartridges package. # "J. Lavoie" , 2023. -# kramo , 2023. +# kramo , 2023. msgid "" msgstr "" "Project-Id-Version: cartridges\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-03-21 15:48+0100\n" "PO-Revision-Date: 2023-03-21 11:05+0000\n" -"Last-Translator: kramo \n" +"Last-Translator: kramo \n" "Language-Team: French \n" "Language: fr\n" diff --git a/po/hu.po b/po/hu.po index 27aad04..fc1d4ac 100644 --- a/po/hu.po +++ b/po/hu.po @@ -1,16 +1,16 @@ -# Cartridges - Hungarian Translation -# Copyright (C) 2022 kramo +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the cartridges package. # kramo, 2023. # -# kramo , 2023. +# kramo , 2023. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-03-21 15:48+0100\n" "PO-Revision-Date: 2023-03-19 12:28+0000\n" -"Last-Translator: kramo \n" +"Last-Translator: kramo \n" "Language-Team: Hungarian \n" "Language: hu\n" diff --git a/po/nb_NO.po b/po/nb_NO.po index eb4287d..f1b949f 100644 --- a/po/nb_NO.po +++ b/po/nb_NO.po @@ -1,14 +1,14 @@ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the cartridges package. -# kramo , 2023. +# kramo , 2023. msgid "" msgstr "" "Project-Id-Version: cartridges\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-03-21 15:48+0100\n" "PO-Revision-Date: 2023-03-21 11:05+0000\n" -"Last-Translator: kramo \n" +"Last-Translator: kramo \n" "Language-Team: Norwegian Bokmål \n" "Language: nb_NO\n" diff --git a/po/ta.po b/po/ta.po index 200ac0d..d629c13 100644 --- a/po/ta.po +++ b/po/ta.po @@ -1,8 +1,8 @@ -# Cartridges - Tamil Translation -# Copyright (C) 2022 kramo +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the cartridges package. # K.B.Dharun Krishna , 2023. -# kramo , 2023. +# kramo , 2023. # "K.B.Dharun Krishna" , 2023. msgid "" msgstr "" diff --git a/po/uk.po b/po/uk.po index 88961e7..6576bcb 100644 --- a/po/uk.po +++ b/po/uk.po @@ -1,7 +1,7 @@ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the cartridges package. -# kramo , 2023. +# kramo , 2023. # Dan , 2023. msgid "" msgstr "" diff --git a/src/cartridges.in b/src/cartridges.in index ad974da..ad31d7a 100755 --- a/src/cartridges.in +++ b/src/cartridges.in @@ -2,7 +2,7 @@ # cartridges.in # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,22 +25,31 @@ import signal import locale import gettext -VERSION = '@VERSION@' -pkgdatadir = '@pkgdatadir@' -localedir = '@localedir@' +VERSION = "@VERSION@" +if os.name == "nt": + pkgdatadir = os.path.join(os.path.dirname(__file__), "..", "share", "cartridges") + localedir = os.path.join(os.path.dirname(__file__), "..", "share", "locale") +else: + pkgdatadir = "@pkgdatadir@" + localedir = "@localedir@" sys.path.insert(1, pkgdatadir) signal.signal(signal.SIGINT, signal.SIG_DFL) -locale.bindtextdomain('cartridges', localedir) -locale.textdomain('cartridges') -gettext.install('cartridges', localedir) -if __name__ == '__main__': +if os.name != "nt": + locale.bindtextdomain("cartridges", localedir) + locale.textdomain("cartridges") + +gettext.install("cartridges", localedir) + +if __name__ == "__main__": import gi from gi.repository import Gio - resource = Gio.Resource.load(os.path.join(pkgdatadir, 'cartridges.gresource')) + + resource = Gio.Resource.load(os.path.join(pkgdatadir, "cartridges.gresource")) resource._register() from cartridges import main + sys.exit(main.main(VERSION)) diff --git a/src/game.py b/src/game.py index c5e5f79..b75a0c1 100644 --- a/src/game.py +++ b/src/game.py @@ -1,6 +1,6 @@ # game.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/main.py b/src/main.py index 23a0393..7b1e835 100644 --- a/src/main.py +++ b/src/main.py @@ -1,6 +1,6 @@ # main.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -122,7 +122,7 @@ class CartridgesApplication(Adw.Application): "Paweł Lidwin https://github.com/imLinguin", ], designers=["kramo https://kramo.hu"], - copyright="© 2022 kramo", + copyright="© 2022-2023 kramo", license_type=Gtk.License.GPL_3_0, issue_url="https://github.com/kra-mo/cartridges/issues/new", website="https://github.com/kra-mo/cartridges", diff --git a/src/preferences.py b/src/preferences.py index 5a3033f..abb1744 100644 --- a/src/preferences.py +++ b/src/preferences.py @@ -1,6 +1,6 @@ # preferences.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/bottles_parser.py b/src/utils/bottles_parser.py index cf02a60..f644141 100644 --- a/src/utils/bottles_parser.py +++ b/src/utils/bottles_parser.py @@ -1,6 +1,6 @@ # bottles_parser.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/create_details_window.py b/src/utils/create_details_window.py index f3a43a4..556dcc3 100644 --- a/src/utils/create_details_window.py +++ b/src/utils/create_details_window.py @@ -1,6 +1,6 @@ # create_details_window.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/create_dialog.py b/src/utils/create_dialog.py index 8a6c373..845d353 100644 --- a/src/utils/create_dialog.py +++ b/src/utils/create_dialog.py @@ -1,6 +1,6 @@ # create_dialog.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/get_cover.py b/src/utils/get_cover.py index 1691187..65d6ac7 100644 --- a/src/utils/get_cover.py +++ b/src/utils/get_cover.py @@ -1,6 +1,6 @@ # get_cover.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/get_games.py b/src/utils/get_games.py index 8ae2e2e..db892dc 100644 --- a/src/utils/get_games.py +++ b/src/utils/get_games.py @@ -1,6 +1,6 @@ # get_games.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/heroic_parser.py b/src/utils/heroic_parser.py index 68cbe66..693be03 100644 --- a/src/utils/heroic_parser.py +++ b/src/utils/heroic_parser.py @@ -1,6 +1,6 @@ # heroic_parser.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/run_command.py b/src/utils/run_command.py index 25579d2..11d8756 100644 --- a/src/utils/run_command.py +++ b/src/utils/run_command.py @@ -1,6 +1,6 @@ # run_command.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/save_cover.py b/src/utils/save_cover.py index 1fb1ff6..5b0c5e5 100644 --- a/src/utils/save_cover.py +++ b/src/utils/save_cover.py @@ -1,6 +1,6 @@ # save_cover.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/save_games.py b/src/utils/save_games.py index ff67559..270e2a9 100644 --- a/src/utils/save_games.py +++ b/src/utils/save_games.py @@ -1,6 +1,6 @@ # save_games.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/steam_parser.py b/src/utils/steam_parser.py index 72ca3a1..09506ae 100644 --- a/src/utils/steam_parser.py +++ b/src/utils/steam_parser.py @@ -1,6 +1,6 @@ # steam_parser.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/utils/toggle_hidden.py b/src/utils/toggle_hidden.py index fb31260..19ef822 100644 --- a/src/utils/toggle_hidden.py +++ b/src/utils/toggle_hidden.py @@ -1,6 +1,6 @@ # toggle_hidden.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/window.py b/src/window.py index aa0cebd..069cbc9 100644 --- a/src/window.py +++ b/src/window.py @@ -1,6 +1,6 @@ # window.py # -# Copyright 2022 kramo +# Copyright 2022-2023 kramo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by