Forráskód Böngészése

轻会员-BUG18380解决,错误码文案添加

lvle 1 éve
szülő
commit
7c97157f25

+ 72 - 1
PDF Office/Helper/ErrorCodeHelper.cs

@@ -275,6 +275,70 @@ namespace PDF_Master.Helper
                 SetProperty(ref _code327, value);
             }
         }
+        private string _code328 = "";
+        public string code328
+        {
+            get { return _code328; }
+            set
+            {
+                SetProperty(ref _code328, value);
+            }
+        }
+        private string _code329 = "";
+        public string code329
+        {
+            get { return _code329; }
+            set
+            {
+                SetProperty(ref _code329, value);
+            }
+        }
+        private string _code330 = "";
+        public string code330
+        {
+            get { return _code330; }
+            set
+            {
+                SetProperty(ref _code330, value);
+            }
+        }
+        private string _code331 = "";
+        public string code331
+        {
+            get { return _code331; }
+            set
+            {
+                SetProperty(ref _code331, value);
+            }
+        }
+        private string _code332 = "";
+        public string code332
+        {
+            get { return _code332; }
+            set
+            {
+                SetProperty(ref _code332, value);
+            }
+        }
+        private string _code333 = "";
+        public string code333
+        {
+            get { return _code333; }
+            set
+            {
+                SetProperty(ref _code333, value);
+            }
+        }
+        private string _code334 = "";
+        public string code334
+        {
+            get { return _code334; }
+            set
+            {
+                SetProperty(ref _code334, value);
+            }
+        }
+
 
         private string _code300 = "";
         public string code300
@@ -323,7 +387,14 @@ namespace PDF_Master.Helper
             code324 = App.ServiceLoader.GetString("code324");
             code325 = App.ServiceLoader.GetString("code325");
             code326 = App.ServiceLoader.GetString("code326");
-            code326 = App.ServiceLoader.GetString("code327");
+            code327 = App.ServiceLoader.GetString("code327");
+            code328 = App.ServiceLoader.GetString("code328");
+            code329 = App.ServiceLoader.GetString("code329");
+            code330 = App.ServiceLoader.GetString("code330");
+            code331 = App.ServiceLoader.GetString("code331");
+            code332 = App.ServiceLoader.GetString("code332");
+            code333 = App.ServiceLoader.GetString("code333");
+            code334 = App.ServiceLoader.GetString("code334");
             code300 = App.ServiceLoader.GetString("code300");
             codehad= App.ServiceLoader.GetString("codehad");
         }

+ 4 - 0
PDF Office/MultilingualResources/PDF Office.en.xlf

@@ -598,6 +598,10 @@
           <source>Your account has been logged into another device. If it was not done by you, please change your password as soon as possible.</source>
           <target state="new">Your account has been logged into another device. If it was not done by you, please change your password as soon as possible.</target>
         </trans-unit>
+        <trans-unit id="TextCancellationtop" translate="yes" xml:space="preserve">
+          <source>Cancellation failed</source>
+          <target state="new">Cancellation failed</target>
+        </trans-unit>
       </group>
     </body>
   </file>

+ 4 - 0
PDF Office/MultilingualResources/PDF Office.zh-Hans.xlf

@@ -598,6 +598,10 @@
           <source>Your account has been logged into another device. If it was not done by you, please change your password as soon as possible.</source>
           <target state="new">Your account has been logged into another device. If it was not done by you, please change your password as soon as possible.</target>
         </trans-unit>
+        <trans-unit id="TextCancellationtop" translate="yes" xml:space="preserve">
+          <source>Cancellation failed</source>
+          <target state="new">Cancellation failed</target>
+        </trans-unit>
       </group>
     </body>
   </file>

+ 4 - 0
PDF Office/MultilingualResources/PDF Office.zh-Hant.xlf

@@ -598,6 +598,10 @@
           <source>Your account has been logged into another device. If it was not done by you, please change your password as soon as possible.</source>
           <target state="new">Your account has been logged into another device. If it was not done by you, please change your password as soon as possible.</target>
         </trans-unit>
+        <trans-unit id="TextCancellationtop" translate="yes" xml:space="preserve">
+          <source>Cancellation failed</source>
+          <target state="new">Cancellation failed</target>
+        </trans-unit>
       </group>
     </body>
   </file>

+ 63 - 0
PDF Office/Strings/Service/Service.Designer.cs

@@ -60,6 +60,69 @@ namespace PDF_Master.Strings.Service {
             }
         }
         
+        /// <summary>
+        ///   查找类似 Payment method error 的本地化字符串。
+        /// </summary>
+        public static string _328 {
+            get {
+                return ResourceManager.GetString("328", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Current events are not supported 的本地化字符串。
+        /// </summary>
+        public static string _329 {
+            get {
+                return ResourceManager.GetString("329", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Account is logged in on another device 的本地化字符串。
+        /// </summary>
+        public static string _330 {
+            get {
+                return ResourceManager.GetString("330", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 This email account is no longer available or cancelled 的本地化字符串。
+        /// </summary>
+        public static string _331 {
+            get {
+                return ResourceManager.GetString("331", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 AppStore receipt verification failed 的本地化字符串。
+        /// </summary>
+        public static string _332 {
+            get {
+                return ResourceManager.GetString("332", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Please re-verify the receipt 的本地化字符串。
+        /// </summary>
+        public static string _333 {
+            get {
+                return ResourceManager.GetString("333", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Users have already subscribed to PDF Master 的本地化字符串。
+        /// </summary>
+        public static string _334 {
+            get {
+                return ResourceManager.GetString("334", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   查找类似 Save with Watermark 的本地化字符串。
         /// </summary>

+ 21 - 0
PDF Office/Strings/Service/Service.resx

@@ -117,6 +117,27 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <data name="328" xml:space="preserve">
+    <value>Payment method error</value>
+  </data>
+  <data name="329" xml:space="preserve">
+    <value>Current events are not supported</value>
+  </data>
+  <data name="330" xml:space="preserve">
+    <value>Account is logged in on another device</value>
+  </data>
+  <data name="331" xml:space="preserve">
+    <value>This email account is no longer available or cancelled</value>
+  </data>
+  <data name="332" xml:space="preserve">
+    <value>AppStore receipt verification failed</value>
+  </data>
+  <data name="333" xml:space="preserve">
+    <value>Please re-verify the receipt</value>
+  </data>
+  <data name="334" xml:space="preserve">
+    <value>Users have already subscribed to PDF Master</value>
+  </data>
   <data name="BtnTextSavewithWatermark" xml:space="preserve">
     <value>Save with Watermark</value>
   </data>

+ 1 - 1
PDF Office/ViewModels/Dialog/ServiceDialog/UserDialogViewModel.cs

@@ -384,7 +384,7 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
             if(Settings.Default.UserDate.subscribestatus == 1)
             {
                 AlertsMessage alertsMessage = new AlertsMessage();
-                alertsMessage.ShowDialog(App.ServiceLoader.GetString("TextCancellationtop"), App.ServiceLoader.GetString("TextCancellation"), App.ServiceLoader.GetString("Text_yes"),IconType.Tip);
+                alertsMessage.ShowDialog(App.ServiceLoader.GetString("TextCancellationtop"), App.ServiceLoader.GetString("TextCancellation"), App.ServiceLoader.GetString("Text_ok"),IconType.Tip);
             }
             else
             {