Skip to content

Commit

Permalink
Localize Info.plist
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Dec 31, 2020
1 parent d2faa3a commit 8264621
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
17 changes: 17 additions & 0 deletions MobileCelestia.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
EA934C90251D90C500DD284C /* MainSceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA934C8F251D90C500DD284C /* MainSceneDelegate.swift */; };
EA934C9A251D92AD00DD284C /* PanelSceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA934C99251D92A700DD284C /* PanelSceneDelegate.swift */; };
EA982BFF25496B6D00CDC642 /* BaseTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA982BFE25496B6D00CDC642 /* BaseTableViewController.swift */; };
EAA5A7A1259DBFE6001AFA82 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = EAA5A7A3259DBFE6001AFA82 /* InfoPlist.strings */; };
EAA6C4CB253B5CD200ED1D60 /* InstalledResourceViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAA6C4CA253B5CD200ED1D60 /* InstalledResourceViewController.swift */; };
EABC245D248E162000205B5A /* FontHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = EABC245A248E162000205B5A /* FontHelper.m */; };
EABDE367247170F000E0A5FA /* SettngSliderCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = EABDE366247170F000E0A5FA /* SettngSliderCell.swift */; };
Expand Down Expand Up @@ -218,6 +219,8 @@
EA934C8F251D90C500DD284C /* MainSceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainSceneDelegate.swift; sourceTree = "<group>"; };
EA934C99251D92A700DD284C /* PanelSceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PanelSceneDelegate.swift; sourceTree = "<group>"; };
EA982BFE25496B6D00CDC642 /* BaseTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseTableViewController.swift; sourceTree = "<group>"; };
EAA5A7A2259DBFE6001AFA82 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
EAA5A7A7259DC062001AFA82 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh_CN; path = zh_CN.lproj/InfoPlist.strings; sourceTree = "<group>"; };
EAA6C4CA253B5CD200ED1D60 /* InstalledResourceViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InstalledResourceViewController.swift; sourceTree = "<group>"; };
EABC245A248E162000205B5A /* FontHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FontHelper.m; sourceTree = "<group>"; };
EABC245C248E162000205B5A /* FontHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FontHelper.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -293,6 +296,7 @@
children = (
EA28CA5124A2F399004B011E /* Fonts */,
97143F1623FFAEFD00F35D87 /* defaults.plist */,
EAA5A7A3259DBFE6001AFA82 /* InfoPlist.strings */,
);
path = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -679,6 +683,7 @@
knownRegions = (
en,
Base,
zh_CN,
);
mainGroup = 979D2F7123FEB1A6005D2592;
packageReferences = (
Expand Down Expand Up @@ -723,6 +728,7 @@
979D2F8723FEB1A8005D2592 /* Assets.xcassets in Resources */,
97143F1823FFAEFD00F35D87 /* defaults.plist in Resources */,
EA28CA5324A2F399004B011E /* Fonts in Resources */,
EAA5A7A1259DBFE6001AFA82 /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -906,13 +912,23 @@
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
EAA5A7A3259DBFE6001AFA82 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
EAA5A7A2259DBFE6001AFA82 /* en */,
EAA5A7A7259DC062001AFA82 /* zh_CN */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
979D2F9723FEB1A8005D2592 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
Expand Down Expand Up @@ -975,6 +991,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
Expand Down
9 changes: 9 additions & 0 deletions MobileCelestia/Resources/en.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
InfoPlist.strings
MobileCelestia

Created by Levin Li on 2020/12/31.
Copyright © 2020 Celestia Development Team. All rights reserved.
*/

"NSPhotoLibraryAddUsageDescription" = "Permission is needed to save screenshots to Photo Library.";
9 changes: 9 additions & 0 deletions MobileCelestia/Resources/zh_CN.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
InfoPlist.strings
MobileCelestia

Created by Levin Li on 2020/12/31.
Copyright © 2020 Celestia Development Team. All rights reserved.
*/

"NSPhotoLibraryAddUsageDescription" = "将截图保存到图片资源库需要权限。";

0 comments on commit 8264621

Please sign in to comment.