Browse Source

WinRT: Remove file type association & internationalized Package.appxmanifest

louyihua 8 years ago
parent
commit
8f253a2e3b

+ 6 - 0
winrt/SDLPal.Common/Strings/en/Resources.resw

@@ -117,6 +117,9 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <data name="AppDescription" xml:space="preserve">
+    <value>SDL-based reimplementation of classic Chinese RPG "Xian Jian Qi Xia Zhuan".</value>
+  </data>
   <data name="AspectRatio.Header" xml:space="preserve">
     <value>Keep aspect ratio</value>
   </data>
@@ -226,6 +229,9 @@ Choose the behavior of next launch:</value>
   <data name="OPLSR.PlaceholderText" xml:space="preserve">
     <value>Sample rate of OPL simulator</value>
   </data>
+  <data name="Publisher" xml:space="preserve">
+    <value>SDLPAL developing team</value>
+  </data>
   <data name="Quality.Header" xml:space="preserve">
     <value>Audio quality</value>
   </data>

+ 6 - 0
winrt/SDLPal.Common/Strings/zh-hans/Resources.resw

@@ -117,6 +117,9 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <data name="AppDescription" xml:space="preserve">
+    <value>基于 SDL 重制的经典 RPG 游戏《仙剑奇侠传》。</value>
+  </data>
   <data name="AspectRatio.Header" xml:space="preserve">
     <value>保持纵横比</value>
   </data>
@@ -226,6 +229,9 @@
   <data name="OPLSR.PlaceholderText" xml:space="preserve">
     <value>OPL 模拟器采样率</value>
   </data>
+  <data name="Publisher" xml:space="preserve">
+    <value>SDLPAL 开发组</value>
+  </data>
   <data name="Quality.Header" xml:space="preserve">
     <value>音频质量</value>
   </data>

+ 6 - 0
winrt/SDLPal.Common/Strings/zh-hant/Resources.resw

@@ -117,6 +117,9 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <data name="AppDescription" xml:space="preserve">
+    <value>基於 SDL 重制的經典 RPG 遊戲《仙劍奇俠傳》。</value>
+  </data>
   <data name="AspectRatio.Header" xml:space="preserve">
     <value>保持縱橫比</value>
   </data>
@@ -226,6 +229,9 @@
   <data name="OPLSR.PlaceholderText" xml:space="preserve">
     <value>OPL 模擬器取樣速率</value>
   </data>
+  <data name="Publisher" xml:space="preserve">
+    <value>SDLPAL 開發組</value>
+  </data>
   <data name="Quality.Header" xml:space="preserve">
     <value>音訊品質</value>
   </data>

+ 3 - 20
winrt/SDLPal.UWP/Package.appxmanifest

@@ -3,8 +3,8 @@
   <Identity Name="67d7840d-5e23-4312-8484-b33ffe3d5f36" Publisher="CN=louyihua" Version="2.0.0.0" />
   <mp:PhoneIdentity PhoneProductId="67d7840d-5e23-4312-8484-b33ffe3d5f36" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
   <Properties>
-    <DisplayName>SDLPal</DisplayName>
-    <PublisherDisplayName>SDLPal Team</PublisherDisplayName>
+    <DisplayName>SDL PAL</DisplayName>
+    <PublisherDisplayName>ms-resource:Publisher</PublisherDisplayName>
     <Logo>Assets\StoreLogo.png</Logo>
   </Properties>
   <Dependencies>
@@ -15,7 +15,7 @@
   </Resources>
   <Applications>
     <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="SDLPal.App">
-      <uap:VisualElements DisplayName="SDLPal" Square150x150Logo="Assets\Logo.png" Square44x44Logo="Assets\SmallLogo.png" Description="SDL-based reimplementation of classic Chinese RPG &quot;Xian Jian Qi Xia Zhuan&quot;." BackgroundColor="transparent">
+      <uap:VisualElements DisplayName="SDLPal" Square150x150Logo="Assets\Logo.png" Square44x44Logo="Assets\SmallLogo.png" Description="ms-resource:AppDescription" BackgroundColor="transparent">
         <uap:DefaultTile Wide310x150Logo="Assets\WideLogo.png" Square71x71Logo="Assets\Square71x71Logo.png" Square310x310Logo="Assets\Square310x310Logo.png">
           <uap:ShowNameOnTiles>
             <uap:ShowOn Tile="square310x310Logo" />
@@ -23,23 +23,6 @@
         </uap:DefaultTile>
         <uap:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="black" />
       </uap:VisualElements>
-      <Extensions>
-        <uap:Extension Category="windows.fileTypeAssociation">
-          <uap:FileTypeAssociation Name="pal">
-            <uap:SupportedFileTypes>
-              <uap:FileType>.mkf</uap:FileType>
-              <uap:FileType>.dat</uap:FileType>
-              <uap:FileType>.msg</uap:FileType>
-              <uap:FileType>.cfg</uap:FileType>
-              <uap:FileType>.asc</uap:FileType>
-              <uap:FileType>.mp3</uap:FileType>
-              <uap:FileType>.ogg</uap:FileType>
-              <uap:FileType>.rpg</uap:FileType>
-              <uap:FileType>.bmp</uap:FileType>
-            </uap:SupportedFileTypes>
-          </uap:FileTypeAssociation>
-        </uap:Extension>
-      </Extensions>
     </Application>
   </Applications>
 </Package>

+ 1 - 1
winrt/SDLPal.UWP/SDLPal.UWP.vcxproj

@@ -3,7 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{b1809b68-0d9a-4e0e-addb-272ca1c9fa38}</ProjectGuid>
     <RootNamespace>SDLPal</RootNamespace>
-    <DefaultLanguage>zh-CN</DefaultLanguage>
+    <DefaultLanguage>en</DefaultLanguage>
     <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
     <AppContainerApplication>true</AppContainerApplication>
     <ApplicationType>Windows Store</ApplicationType>

+ 3 - 20
winrt/SDLPal.Windows/Package.appxmanifest

@@ -2,8 +2,8 @@
 <Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
   <Identity Name="c84165f3-7148-4381-affb-84265925b7e8" Publisher="CN=LouYihua" Version="2.0.0.0" />
   <Properties>
-    <DisplayName>SDLPal</DisplayName>
-    <PublisherDisplayName>SDLPal Team</PublisherDisplayName>
+    <DisplayName>SDL PAL</DisplayName>
+    <PublisherDisplayName>ms-resource:Publisher</PublisherDisplayName>
     <Logo>Assets\StoreLogo.png</Logo>
   </Properties>
   <Prerequisites>
@@ -15,28 +15,11 @@
   </Resources>
   <Applications>
     <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="SDLPal.App">
-      <m2:VisualElements DisplayName="SDLPal" Square150x150Logo="Assets\Logo.png" Square30x30Logo="Assets\SmallLogo.png" Description="SDL-based reimplementation of classic Chinese RPG &quot;Xian Jian Qi Xia Zhuan&quot;." ForegroundText="light" BackgroundColor="blue">
+      <m2:VisualElements DisplayName="SDLPal" Square150x150Logo="Assets\Logo.png" Square30x30Logo="Assets\SmallLogo.png" Description="ms-resource:AppDescription" ForegroundText="light" BackgroundColor="blue">
         <m2:DefaultTile Square70x70Logo="Assets\Square70x70Logo.png" Wide310x150Logo="Assets\WideLogo.png" Square310x310Logo="Assets\Square310x310Logo.png">
         </m2:DefaultTile>
         <m2:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="black" />
       </m2:VisualElements>
-      <Extensions>
-        <Extension Category="windows.fileTypeAssociation">
-          <FileTypeAssociation Name="pal">
-            <SupportedFileTypes>
-              <FileType>.mkf</FileType>
-              <FileType>.dat</FileType>
-              <FileType>.msg</FileType>
-              <FileType>.cfg</FileType>
-              <FileType>.asc</FileType>
-              <FileType>.mp3</FileType>
-              <FileType>.ogg</FileType>
-              <FileType>.rpg</FileType>
-              <FileType>.bmp</FileType>
-            </SupportedFileTypes>
-          </FileTypeAssociation>
-        </Extension>
-      </Extensions>
     </Application>
   </Applications>
 </Package>

+ 4 - 21
winrt/SDLPal.WindowsPhone/Package.appxmanifest

@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest" xmlns:m3="http://schemas.microsoft.com/appx/2014/manifest" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest">
-  <Identity Name="ac4bf6d5-bbea-4be4-a7d8-4a404f7ee2af" Publisher="CN=LouYihua" Version="2.0.0.1" />
+  <Identity Name="ac4bf6d5-bbea-4be4-a7d8-4a404f7ee2af" Publisher="CN=LouYihua" Version="2.0.0.0" />
   <mp:PhoneIdentity PhoneProductId="ac4bf6d5-bbea-4be4-a7d8-4a404f7ee2af" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
   <Properties>
-    <DisplayName>SDLPal</DisplayName>
-    <PublisherDisplayName>SDLPal Team</PublisherDisplayName>
+    <DisplayName>SDL PAL</DisplayName>
+    <PublisherDisplayName>ms-resource:Publisher</PublisherDisplayName>
     <Logo>Assets\StoreLogo.png</Logo>
   </Properties>
   <Prerequisites>
@@ -16,28 +16,11 @@
   </Resources>
   <Applications>
     <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="SDLPal.App">
-      <m3:VisualElements DisplayName="SDLPal" Square150x150Logo="Assets\Logo.png" Square44x44Logo="Assets\SmallLogo.png" Description="SDL-based reimplementation of classic Chinese RPG &quot;Xian Jian Qi Xia Zhuan&quot;." ForegroundText="light" BackgroundColor="transparent">
+      <m3:VisualElements DisplayName="SDLPal" Square150x150Logo="Assets\Logo.png" Square44x44Logo="Assets\SmallLogo.png" Description="ms-resource:AppDescription" ForegroundText="light" BackgroundColor="transparent">
         <m3:DefaultTile Wide310x150Logo="Assets\WideLogo.png" Square71x71Logo="Assets\Square71x71Logo.png">
         </m3:DefaultTile>
         <m3:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="black" />
       </m3:VisualElements>
-      <Extensions>
-        <Extension Category="windows.fileTypeAssociation">
-          <FileTypeAssociation Name="pal">
-            <SupportedFileTypes>
-              <FileType>.mkf</FileType>
-              <FileType>.dat</FileType>
-              <FileType>.msg</FileType>
-              <FileType>.cfg</FileType>
-              <FileType>.asc</FileType>
-              <FileType>.mp3</FileType>
-              <FileType>.ogg</FileType>
-              <FileType>.rpg</FileType>
-              <FileType>.bmp</FileType>
-            </SupportedFileTypes>
-          </FileTypeAssociation>
-        </Extension>
-      </Extensions>
     </Application>
   </Applications>
 </Package>