Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

i18n: Widget description #48

Merged
merged 4 commits into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ struct RectangularDailyNoteWidget: Widget {
) { entry in
RectangularDailyNoteWidgetView(entry: entry)
}
.configurationDisplayName("SquareDailyNoteWidget")
.description("This is an example widget.")
.configurationDisplayName("widget.rect.display".localized())
.description("widget.rect.desc".localized())
.supportedFamilies([.systemMedium, .systemExtraLarge])
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ struct LargeSquareDailyNoteWidget: Widget {
) { entry in
LargeSquareDailyNoteWidgetView(entry: entry)
}
.configurationDisplayName("LargeSquareDailyNoteWidget")
.description("This is an example widget.")
.configurationDisplayName("widget.large.display".localized())
.description("widget.large.desc".localized())
.supportedFamilies([.systemLarge])
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ struct SmallSquareDailyNoteWidget: Widget {
) { entry in
SmallSquareDailyNoteWidgetView(entry: entry)
}
.configurationDisplayName("SmallSquareDailyNoteWidget")
.description("This is an example widget.")
.configurationDisplayName("widget.small.display".localized())
.description("widget.small.desc".localized())
.supportedFamilies([.systemSmall])
}
}
4 changes: 4 additions & 0 deletions HSRPizzaHelper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
BF14CFA82A049ADB00E437C6 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = BF14CFAA2A049ADB00E437C6 /* Localizable.strings */; };
BFA4A8492A0BD07400239BB0 /* Mantis in Frameworks */ = {isa = PBXBuildFile; productRef = BFA4A8482A0BD07400239BB0 /* Mantis */; };
BFA4A84B2A0BD0AA00239BB0 /* ImageCroper.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFA4A84A2A0BD0AA00239BB0 /* ImageCroper.swift */; };
BFBA36172A0CDD5E00E0142A /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = BF14CFAA2A049ADB00E437C6 /* Localizable.strings */; };
BFBA36182A0CDD6100E0142A /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = BF14CFAA2A049ADB00E437C6 /* Localizable.strings */; };
BFCACD102A0491E9009B0B85 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = BFCACD0F2A0491E9009B0B85 /* LICENSE */; };
BFD051D32A08B999008343E8 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = BFD051D52A08B999008343E8 /* InfoPlist.strings */; };
BFD051D92A08C2E9008343E8 /* HBPizzaHelperAPI in Resources */ = {isa = PBXBuildFile; fileRef = BFD051D82A08C2DE008343E8 /* HBPizzaHelperAPI */; };
Expand Down Expand Up @@ -898,6 +900,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
BFBA36172A0CDD5E00E0142A /* Localizable.strings in Resources */,
EADA17CC2A06B88400AF9784 /* background_image in Resources */,
EA068D152A08169D003C4E69 /* Assets.xcassets in Resources */,
BFD051DA2A08C2E9008343E8 /* HBPizzaHelperAPI in Resources */,
Expand Down Expand Up @@ -925,6 +928,7 @@
buildActionMask = 2147483647;
files = (
BFD051DB2A08C2EA008343E8 /* HBPizzaHelperAPI in Resources */,
BFBA36182A0CDD6100E0142A /* Localizable.strings in Resources */,
EADA17CB2A06B88000AF9784 /* background_image in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
askForAppToLaunch = "Yes"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
askForAppToLaunch = "Yes"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
6 changes: 6 additions & 0 deletions Internationalization/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,9 @@
"setting.widget.background.delete.confirmation.title" = "Determine to delete the background?";
"setting.widget.background.delete.confirmation.delete" = "Delete";
"account.login.error.no.account.found" = "This HoYoLAB account is not bound to any game character.";
"widget.rect.display" = "HSR Trailblaze Power Widget";
"widget.rect.desc" = "Track your trailblaze power and dispacth assignments at any time.";
"widget.small.display" = "HSR Trailblaze Power Widget";
"widget.small.desc" = "Track your trailblaze power and dispacth assignments at any time.";
"widget.large.display" = "HSR Trailblaze Power Widget";
"widget.large.desc" = "Track your trailblaze power and dispacth assignments at any time.";
6 changes: 6 additions & 0 deletions Internationalization/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,9 @@
"setting.widget.refresh.footer" = "上のボタンをタップするかプルダウンしてホーム ページを更新し、ウィジェットを手動で同期できます。";
"ophelper.intro" = "原神のゲームツール";
"account.new.test" = "アカウントをテスト";
"widget.rect.display" = "崩スタ開拓力ウィジェット";
"widget.rect.desc" = "今すぐ開拓力と派遣依頼の状態を確認!";
"widget.small.display" = "崩スタ開拓力ウィジェット";
"widget.small.desc" = "今すぐ開拓力と派遣依頼の状態を確認!";
"widget.large.display" = "崩スタ開拓力ウィジェット";
"widget.large.desc" = "今すぐ開拓力と派遣依頼の状態を確認!";
6 changes: 6 additions & 0 deletions Internationalization/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,9 @@
"setting.widget.background.delete.confirmation.title" = "确认要删除该背景吗?";
"setting.widget.background.delete.confirmation.delete" = "删除";
"account.login.error.no.account.found" = "该米游社账号未绑定游戏角色。";
"widget.rect.display" = "星铁体力小组件";
"widget.rect.desc" = "立即查看开拓力、派遣委托信息";
"widget.small.display" = "星铁体力小组件";
"widget.small.desc" = "立即查看开拓力、派遣委托信息";
"widget.large.display" = "星铁体力小组件";
"widget.large.desc" = "立即查看开拓力、派遣委托信息";