Skip to content

Commit

Permalink
Merge pull request #862 from woxtu/calendars-usage-localization
Browse files Browse the repository at this point in the history
[iOS] Localize calendars usage description
  • Loading branch information
MrSmart00 authored Aug 29, 2024
2 parents 9baaa62 + b89e400 commit 8f6f396
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app-ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
8C7DACB82BCBCCB0002C298A /* App.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C7DACB22BCBCCB0002C298A /* App.swift */; };
8C7DACB92BCBCCB0002C298A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8C7DACB32BCBCCB0002C298A /* Assets.xcassets */; };
8C7DACC52BCBD18A002C298A /* App in Frameworks */ = {isa = PBXBuildFile; productRef = 8C7DACC42BCBD18A002C298A /* App */; };
9EA589E52C7F98E6007EE5EC /* InfoPlist.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 9EA589E42C7F98E6007EE5EC /* InfoPlist.xcstrings */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -29,6 +30,7 @@
8C7DACB52BCBCCB0002C298A /* App.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = "<group>"; };
8C7DACBB2BCBCDA0002C298A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
8C7DACC12BCBD0F1002C298A /* app-ios */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "app-ios"; path = ..; sourceTree = "<group>"; };
9EA589E42C7F98E6007EE5EC /* InfoPlist.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = InfoPlist.xcstrings; sourceTree = "<group>"; };
C412816C2C149FB500B458D1 /* DroidKaigi2024App-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "DroidKaigi2024App-Info.plist"; sourceTree = "<group>"; };
C495D60A2C075130003B324E /* App.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = App.xctestplan; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -93,6 +95,7 @@
8C7DACB52BCBCCB0002C298A /* App.entitlements */,
8C31F46A2BF6909A003F1BBA /* GoogleService-Info.plist */,
8C7DACBB2BCBCDA0002C298A /* PrivacyInfo.xcprivacy */,
9EA589E42C7F98E6007EE5EC /* InfoPlist.xcstrings */,
);
name = App;
sourceTree = "<group>";
Expand Down Expand Up @@ -150,6 +153,7 @@
knownRegions = (
en,
Base,
ja,
);
mainGroup = 8C772B0C2BCBCBCA00F2BADC;
productRefGroup = 8C772B162BCBCBCA00F2BADC /* Products */;
Expand All @@ -167,6 +171,7 @@
buildActionMask = 2147483647;
files = (
8C7DACB92BCBCCB0002C298A /* Assets.xcassets in Resources */,
9EA589E52C7F98E6007EE5EC /* InfoPlist.xcstrings in Resources */,
8C7074792C7791DF00FD4F39 /* ci_pre_xcodebuild.sh in Resources */,
8C7DACB72BCBCCB0002C298A /* Preview Assets.xcassets in Resources */,
8C31F46B2BF6909A003F1BBA /* GoogleService-Info.plist in Resources */,
Expand Down
2 changes: 1 addition & 1 deletion app-ios/App/DroidKaigi2024App-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<string>ja</string>
</array>
<key>NSCalendarsUsageDescription</key>
<string>カレンダーにイベントを追加するためにカレンダーへのアクセスが必要です。</string>
<string>Use for adding events to your calendar</string>
</dict>
</plist>
41 changes: 41 additions & 0 deletions app-ios/App/InfoPlist.xcstrings
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"sourceLanguage" : "en",
"strings" : {
"CFBundleName" : {
"comment" : "Bundle name",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "DroidKaigi2024App"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "DroidKaigi2024App"
}
}
}
},
"NSCalendarsUsageDescription" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Use for adding events to your calendar"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "カレンダーにイベントを追加するためにカレンダーへのアクセスが必要です。"
}
}
}
}
},
"version" : "1.0"
}

0 comments on commit 8f6f396

Please sign in to comment.