add localization for new windows

pull/442/head
Li Linfeng 2019-10-11 21:53:13 +08:00
parent 13980dc5ac
commit a1d5dce9d1
5 changed files with 129 additions and 4 deletions

View File

@ -33,12 +33,12 @@
970AEE92232943DC00E9ED22 /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 970AEE91232943DC00E9ED22 /* libiconv.tbd */; };
9717E96E234B641E00AAD7D1 /* Migrator.m in Sources */ = {isa = PBXBuildFile; fileRef = 9717E96D234B641E00AAD7D1 /* Migrator.m */; };
973256992349A397002D1DAE /* unixdirectory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 973256982349A397002D1DAE /* unixdirectory.cpp */; };
9746D3DF2350BDD50018CFD1 /* ConfigSelectionWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9746D3E12350BDD50018CFD1 /* ConfigSelectionWindow.xib */; };
9761B09C234F470C0057CF1F /* AUTHORS in Resources */ = {isa = PBXBuildFile; fileRef = E57283980793F82A00C1F239 /* AUTHORS */; };
9761B09D234F47110057CF1F /* COPYING in Resources */ = {isa = PBXBuildFile; fileRef = E572839A0793F82A00C1F239 /* COPYING */; };
9761B09E234F471E0057CF1F /* README in Resources */ = {isa = PBXBuildFile; fileRef = E57283AD0793FC7300C1F239 /* README */; };
9761B09F234F47260057CF1F /* ChangeLog in Resources */ = {isa = PBXBuildFile; fileRef = E57283990793F82A00C1F239 /* ChangeLog */; };
9772E5A02329DDC400531773 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9772E59F2329DDC400531773 /* Images.xcassets */; };
978EBA922324D0740025C9D5 /* ConfigSelectionWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 978EBA912324D0740025C9D5 /* ConfigSelectionWindow.xib */; };
9798FB522324D2BE007F92B8 /* ConfigSelectionWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9798FB502324D2BE007F92B8 /* ConfigSelectionWindowController.m */; };
97E4018123101501002013C7 /* cspice.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CE4EEA6D0F50144A003341A2 /* cspice.a */; };
97E4018323101501002013C7 /* libpng.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 97E4018223101501002013C7 /* libpng.a */; };
@ -500,8 +500,9 @@
9717E96D234B641E00AAD7D1 /* Migrator.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Migrator.m; sourceTree = "<group>"; };
9726813A231D0D930014C8D7 /* Celestia.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Celestia.entitlements; sourceTree = "<group>"; };
973256982349A397002D1DAE /* unixdirectory.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = unixdirectory.cpp; path = ../src/celutil/unixdirectory.cpp; sourceTree = SOURCE_ROOT; };
973619692350BF2D00B1D89E /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = "zh_CN"; path = zh_CN.lproj/ConfigSelectionWindow.xib; sourceTree = "<group>"; };
9746D3E02350BDD50018CFD1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ConfigSelectionWindow.xib; sourceTree = "<group>"; };
9772E59F2329DDC400531773 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
978EBA912324D0740025C9D5 /* ConfigSelectionWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ConfigSelectionWindow.xib; sourceTree = "<group>"; };
9798FB4F2324D2BE007F92B8 /* ConfigSelectionWindowController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ConfigSelectionWindowController.h; sourceTree = "<group>"; };
9798FB502324D2BE007F92B8 /* ConfigSelectionWindowController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ConfigSelectionWindowController.m; sourceTree = "<group>"; };
97E4018223101501002013C7 /* libpng.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libpng.a; path = lib/libpng.a; sourceTree = "<group>"; };
@ -1153,7 +1154,7 @@
E50CCA530C065F0100E9C76A /* EclipseFinder.nib */,
E5D7660E0982B1860099DBBD /* HelpWindow.nib */,
E5E2BDD00C24F7B6000D6E83 /* TextWindow.nib */,
978EBA912324D0740025C9D5 /* ConfigSelectionWindow.xib */,
9746D3E12350BDD50018CFD1 /* ConfigSelectionWindow.xib */,
089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
E5CC204509AA843300CFFF2C /* Localizable.strings */,
);
@ -1863,6 +1864,7 @@
zh_TW,
de,
Base,
zh,
);
mainGroup = 29B97314FDCFA39411CA2CEA /* celestia */;
projectDirPath = "";
@ -1879,7 +1881,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
978EBA922324D0740025C9D5 /* ConfigSelectionWindow.xib in Resources */,
9746D3DF2350BDD50018CFD1 /* ConfigSelectionWindow.xib in Resources */,
E56430BB07769C9000E2C4A3 /* MainMenu.nib in Resources */,
E56430BC07769C9000E2C4A3 /* InfoPlist.strings in Resources */,
E54343120783C3F200053094 /* BrowserWindow.nib in Resources */,
@ -2150,6 +2152,15 @@
name = MainMenu.nib;
sourceTree = "<group>";
};
9746D3E12350BDD50018CFD1 /* ConfigSelectionWindow.xib */ = {
isa = PBXVariantGroup;
children = (
9746D3E02350BDD50018CFD1 /* Base */,
973619692350BF2D00B1D89E /* zh_CN */,
);
name = ConfigSelectionWindow.xib;
sourceTree = "<group>";
};
E50CCA530C065F0100E9C76A /* EclipseFinder.nib */ = {
isa = PBXVariantGroup;
children = (

View File

@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="ConfigSelectionWindowController">
<connections>
<outlet property="cancelButton" destination="ff6-C3-vKK" id="kLt-ZT-Tum"/>
<outlet property="configFilePathControl" destination="Rsa-NG-CKd" id="zuh-8R-j4m"/>
<outlet property="dataDirPathControl" destination="28L-dp-ArL" id="vJR-Xg-VZd"/>
<outlet property="window" destination="RKC-D9-XqT" id="wIx-7S-quQ"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window title="选择配置文件" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" frameAutosaveName="" animationBehavior="default" id="RKC-D9-XqT">
<windowStyleMask key="styleMask" titled="YES" closable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="131" y="158" width="393" height="111"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
<value key="minSize" type="size" width="393" height="111"/>
<value key="maxSize" type="size" width="393" height="111"/>
<view key="contentView" id="OOK-Xk-qXu">
<rect key="frame" x="0.0" y="0.0" width="393" height="111"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<pathControl verticalHuggingPriority="750" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Rsa-NG-CKd">
<rect key="frame" x="133" y="73" width="204" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<pathCell key="cell" controlSize="small" selectable="YES" editable="YES" alignment="left" pathStyle="popUp" id="e39-KY-FwS">
<font key="font" metaFont="menu" size="11"/>
<url key="url" string="file://localhost/Applications/"/>
<allowedTypes>
<string>cfg</string>
</allowedTypes>
</pathCell>
</pathControl>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="RPi-Te-S7L">
<rect key="frame" x="18" y="77" width="97" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<textFieldCell key="cell" controlSize="small" lineBreakMode="clipping" title="配置文件" id="mm9-vf-wMR">
<font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wHC-tW-1gU">
<rect key="frame" x="18" y="55" width="80" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<textFieldCell key="cell" controlSize="small" lineBreakMode="clipping" title="数据目录" id="UVE-HK-9If">
<font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<pathControl verticalHuggingPriority="750" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="28L-dp-ArL">
<rect key="frame" x="133" y="51" width="204" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<pathCell key="cell" controlSize="small" selectable="YES" editable="YES" alignment="left" pathStyle="popUp" id="mzg-f0-1Fg">
<font key="font" metaFont="menu" size="11"/>
<url key="url" string="file://localhost/Applications/"/>
<allowedTypes>
<string>public.folder</string>
</allowedTypes>
</pathCell>
</pathControl>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="niS-ko-H04">
<rect key="frame" x="262" y="14" width="116" height="27"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="push" title="确认并退出" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="bzF-c1-7D5">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="menu" size="11"/>
<string key="keyEquivalent" base64-UTF8="YES">
DQ
</string>
</buttonCell>
<connections>
<action selector="confirmSelection:" target="-2" id="fHd-Fv-LIW"/>
</connections>
</button>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="5kO-L1-5fQ">
<rect key="frame" x="185" y="14" width="79" height="27"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="push" title="恢复默认" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="0Be-hl-H3l">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="menu" size="11"/>
</buttonCell>
<connections>
<action selector="reset:" target="-2" id="wjO-34-KGh"/>
</connections>
</button>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ff6-C3-vKK">
<rect key="frame" x="108" y="14" width="79" height="27"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="push" title="取消" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nal-G6-jSo">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="menu" size="11"/>
<string key="keyEquivalent" base64-UTF8="YES">
Gw
</string>
</buttonCell>
<connections>
<action selector="cancelButtonClicked:" target="-2" id="wAn-rF-JTn"/>
</connections>
</button>
</subviews>
</view>
<point key="canvasLocation" x="31.5" y="90.5"/>
</window>
</objects>
</document>