diff --git a/src/resources/i18n/source.ts b/src/resources/i18n/source.ts index b7bcf65..735c851 100644 --- a/src/resources/i18n/source.ts +++ b/src/resources/i18n/source.ts @@ -254,147 +254,147 @@ - + Show Departure Warp - + Other - + Log Level - + Set the log level of the software. The higher the level, the more logs will be output, which will take effect after restarting. - + Software updates - + Check for updates - + Check for updates to StarRail Gacha Exporter. - + Current version: - + Proxy - + When opening, The software will use a proxy address to download new versions. - + GitHub Proxy - + Set GitHub proxy address - + About - + GitHub repository - + Open the GitHub repository - + This project is already open source using the MIT license on Github! - + Feedback issues - + Open GitHub Issues - + If you encounter any problems during use, please feel free to provide feedback on GitHub Issues! - + QQ Group - + Join QQ group - + Welcome to join the QQ group and discuss for improvement in this project together! - + Save Settings - + Save the current settings - + Choose a game path - + Configuration file saved successfully! - + Check update - + It is currently the latest version! - + Discovering a new version: %s Do you want to download and install now? @@ -405,10 +405,25 @@ Do you want to download and install now? - + When openingļ¼ŒDeparture warp will be displayed in the Home Page. + + + Open Crowdin + + + + + Help us translate + + + + + Don't see your language or the quality is poor? Help us translate! + + TableFrame diff --git a/src/star_rail_gacha/app/components/language_setting_card.py b/src/star_rail_gacha/app/components/language_setting_card.py index 16df1dd..a674fbd 100644 --- a/src/star_rail_gacha/app/components/language_setting_card.py +++ b/src/star_rail_gacha/app/components/language_setting_card.py @@ -32,9 +32,12 @@ def __init__(self, value: str, icon: Union[str, QIcon, FluentIconBase], title, c self.hBoxLayout.addSpacing(16) language_list = os.listdir("resources/i18n") - language_list.append("en-US") + language_list = ["en-US"] + language_list item_list = [] for language in language_list: + if language == "en-US": + item_list.append(f"{language_map[language]} ({language})") + continue if os.path.isdir(f"resources/i18n/{language}"): item_list.append(f"{language_map[language]} ({language})" if language in language_map else language) diff --git a/src/star_rail_gacha/app/pages/settings_page.py b/src/star_rail_gacha/app/pages/settings_page.py index 9a6e6be..cbc0db1 100644 --- a/src/star_rail_gacha/app/pages/settings_page.py +++ b/src/star_rail_gacha/app/pages/settings_page.py @@ -73,6 +73,14 @@ def __init__(self, parent=None) -> None: self.tr("Select the software display language, which will take effect after restarting."), parent=self.personalGroup ) + self.translateLinkCard = HyperlinkCard( + "https://crowdin.com/project/starrail-gacha", + self.tr("Open Crowdin"), + FluentIcon.LANGUAGE, + self.tr("Help us translate"), + self.tr("Don't see your language or the quality is poor? Help us translate!"), + parent = self.personalGroup + ) self.showDepartureCard = SwitchSettingCard( FluentIcon.TAG, self.tr("Show Departure Warp"), @@ -176,6 +184,7 @@ def __initLayout(self): self.personalGroup.addSettingCard(self.themeCard) self.personalGroup.addSettingCard(self.themeColorCard) self.personalGroup.addSettingCard(self.languageCard) + self.personalGroup.addSettingCard(self.translateLinkCard) self.personalGroup.addSettingCard(self.showDepartureCard) self.otherGroup.addSettingCard(self.logLevelCard)