From c5f3c69b3a008ab87542e523e2a59f37801bd65a Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 18 Jan 2020 00:50:31 +0800 Subject: ... --- Timeline/Resources/Common.Designer.cs | 72 ------ Timeline/Resources/Common.resx | 123 ---------- .../Controllers/TimelineController.Designer.cs | 54 ----- .../Resources/Controllers/TimelineController.resx | 18 -- .../Controllers/TimelineController.zh.resx | 138 ----------- .../Controllers/TokenController.Designer.cs | 45 ---- .../Resources/Controllers/TokenController.resx | 15 -- .../Resources/Controllers/TokenController.zh.resx | 135 ----------- .../Controllers/UserAvatarController.Designer.cs | 72 ------ .../Controllers/UserAvatarController.resx | 24 -- .../Controllers/UserAvatarController.zh.resx | 144 ----------- .../Controllers/UserController.Designer.cs | 118 +-------- Timeline/Resources/Controllers/UserController.resx | 42 +--- .../Resources/Controllers/UserController.zh.resx | 138 ----------- Timeline/Resources/Filters.Designer.cs | 63 ----- Timeline/Resources/Filters.resx | 21 -- Timeline/Resources/Filters.zh.resx | 141 ----------- Timeline/Resources/Messages.Designer.cs | 270 +++++++++++++++++++++ Timeline/Resources/Messages.resx | 189 +++++++++++++++ Timeline/Resources/Messages.zh.resx | 189 +++++++++++++++ Timeline/Resources/Models/Http/Common.Designer.cs | 36 --- Timeline/Resources/Models/Http/Common.resx | 12 - Timeline/Resources/Models/Http/Common.zh.resx | 12 - 23 files changed, 656 insertions(+), 1415 deletions(-) delete mode 100644 Timeline/Resources/Common.Designer.cs delete mode 100644 Timeline/Resources/Common.resx delete mode 100644 Timeline/Resources/Controllers/TimelineController.zh.resx delete mode 100644 Timeline/Resources/Controllers/TokenController.zh.resx delete mode 100644 Timeline/Resources/Controllers/UserAvatarController.zh.resx delete mode 100644 Timeline/Resources/Controllers/UserController.zh.resx delete mode 100644 Timeline/Resources/Filters.zh.resx create mode 100644 Timeline/Resources/Messages.Designer.cs create mode 100644 Timeline/Resources/Messages.resx create mode 100644 Timeline/Resources/Messages.zh.resx (limited to 'Timeline/Resources') diff --git a/Timeline/Resources/Common.Designer.cs b/Timeline/Resources/Common.Designer.cs deleted file mode 100644 index 4f1c8e3f..00000000 --- a/Timeline/Resources/Common.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Timeline.Resources { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Common { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Common() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Timeline.Resources.Common", typeof(Common).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to The branch is invalid. Normally this branch is not reachable.. - /// - internal static string ExceptionInvalidBranch { - get { - return ResourceManager.GetString("ExceptionInvalidBranch", resourceCulture); - } - } - } -} diff --git a/Timeline/Resources/Common.resx b/Timeline/Resources/Common.resx deleted file mode 100644 index 8a036996..00000000 --- a/Timeline/Resources/Common.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - The branch is invalid. Normally this branch is not reachable. - - \ No newline at end of file diff --git a/Timeline/Resources/Controllers/TimelineController.Designer.cs b/Timeline/Resources/Controllers/TimelineController.Designer.cs index 47c43fa2..ae6414e6 100644 --- a/Timeline/Resources/Controllers/TimelineController.Designer.cs +++ b/Timeline/Resources/Controllers/TimelineController.Designer.cs @@ -77,59 +77,5 @@ namespace Timeline.Resources.Controllers { return ResourceManager.GetString("LogUnknownTimelineMemberOperationUserException", resourceCulture); } } - - /// - /// Looks up a localized string similar to The {0}-st username to do operation {1} on is of bad format.. - /// - internal static string MessageMemberUsernameBadFormat { - get { - return ResourceManager.GetString("MessageMemberUsernameBadFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The {0}-st user to do operation {1} on does not exist.. - /// - internal static string MessageMemberUserNotExist { - get { - return ResourceManager.GetString("MessageMemberUserNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You have no permission to read posts of the timeline.. - /// - internal static string MessagePostListGetForbid { - get { - return ResourceManager.GetString("MessagePostListGetForbid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You have no permission to create posts in the timeline.. - /// - internal static string MessagePostOperationCreateForbid { - get { - return ResourceManager.GetString("MessagePostOperationCreateForbid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You have no permission to delete posts in the timeline.. - /// - internal static string MessagePostOperationDeleteForbid { - get { - return ResourceManager.GetString("MessagePostOperationDeleteForbid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The post to delete does not exist.. - /// - internal static string MessagePostOperationDeleteNotExist { - get { - return ResourceManager.GetString("MessagePostOperationDeleteNotExist", resourceCulture); - } - } } } diff --git a/Timeline/Resources/Controllers/TimelineController.resx b/Timeline/Resources/Controllers/TimelineController.resx index 0cf7e881..4cf3d6fb 100644 --- a/Timeline/Resources/Controllers/TimelineController.resx +++ b/Timeline/Resources/Controllers/TimelineController.resx @@ -123,22 +123,4 @@ An unknown TimelineMemberOperationUserException is thrown. Can't recognize its inner exception. It is rethrown. - - The {0}-st username to do operation {1} on is of bad format. - - - The {0}-st user to do operation {1} on does not exist. - - - You have no permission to read posts of the timeline. - - - You have no permission to create posts in the timeline. - - - You have no permission to delete posts in the timeline. - - - The post to delete does not exist. - \ No newline at end of file diff --git a/Timeline/Resources/Controllers/TimelineController.zh.resx b/Timeline/Resources/Controllers/TimelineController.zh.resx deleted file mode 100644 index 170ab4cd..00000000 --- a/Timeline/Resources/Controllers/TimelineController.zh.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 第{0}个做{1}操作的用户名格式错误。 - - - 第{0}个做{1}操作的用户不存在。 - - - 你没有权限读取这个时间线消息。 - - - 你没有权限在这个时间线中创建消息。 - - - 你没有权限在这个时间线中删除消息。 - - - 要删除的消息不存在。 - - \ No newline at end of file diff --git a/Timeline/Resources/Controllers/TokenController.Designer.cs b/Timeline/Resources/Controllers/TokenController.Designer.cs index 22e6a8be..a7c2864b 100644 --- a/Timeline/Resources/Controllers/TokenController.Designer.cs +++ b/Timeline/Resources/Controllers/TokenController.Designer.cs @@ -60,51 +60,6 @@ namespace Timeline.Resources.Controllers { } } - /// - /// Looks up a localized string similar to Username or password is invalid.. - /// - internal static string ErrorBadCredential { - get { - return ResourceManager.GetString("ErrorBadCredential", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The token is of bad format. It might not be created by the server.. - /// - internal static string ErrorVerifyBadFormat { - get { - return ResourceManager.GetString("ErrorVerifyBadFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The token is expired.. - /// - internal static string ErrorVerifyExpire { - get { - return ResourceManager.GetString("ErrorVerifyExpire", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Token has an old version. User might have update some info.. - /// - internal static string ErrorVerifyOldVersion { - get { - return ResourceManager.GetString("ErrorVerifyOldVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User does not exist. Administrator might have deleted this user.. - /// - internal static string ErrorVerifyUserNotExist { - get { - return ResourceManager.GetString("ErrorVerifyUserNotExist", resourceCulture); - } - } - /// /// Looks up a localized string similar to The password is wrong.. /// diff --git a/Timeline/Resources/Controllers/TokenController.resx b/Timeline/Resources/Controllers/TokenController.resx index 42e1ff92..683d6cc9 100644 --- a/Timeline/Resources/Controllers/TokenController.resx +++ b/Timeline/Resources/Controllers/TokenController.resx @@ -117,21 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Username or password is invalid. - - - The token is of bad format. It might not be created by the server. - - - The token is expired. - - - Token has an old version. User might have update some info. - - - User does not exist. Administrator might have deleted this user. - The password is wrong. diff --git a/Timeline/Resources/Controllers/TokenController.zh.resx b/Timeline/Resources/Controllers/TokenController.zh.resx deleted file mode 100644 index 51e0f25b..00000000 --- a/Timeline/Resources/Controllers/TokenController.zh.resx +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 用户名或密码错误。 - - - 符号格式错误。这个符号可能不是这个服务器创建的。 - - - 符号过期了。 - - - 符号是一个旧版本。用户可能已经更新了信息。 - - - 用户不存在。管理员可能已经删除了这个用户。 - - \ No newline at end of file diff --git a/Timeline/Resources/Controllers/UserAvatarController.Designer.cs b/Timeline/Resources/Controllers/UserAvatarController.Designer.cs index 1dacb19f..e6eeb1e8 100644 --- a/Timeline/Resources/Controllers/UserAvatarController.Designer.cs +++ b/Timeline/Resources/Controllers/UserAvatarController.Designer.cs @@ -60,78 +60,6 @@ namespace Timeline.Resources.Controllers { } } - /// - /// Looks up a localized string similar to Normal user can't delete other's avatar.. - /// - internal static string ErrorDeleteForbid { - get { - return ResourceManager.GetString("ErrorDeleteForbid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User does not exist.. - /// - internal static string ErrorDeleteUserNotExist { - get { - return ResourceManager.GetString("ErrorDeleteUserNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User does not exist.. - /// - internal static string ErrorGetUserNotExist { - get { - return ResourceManager.GetString("ErrorGetUserNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Image is not a square.. - /// - internal static string ErrorPutBadFormatBadSize { - get { - return ResourceManager.GetString("ErrorPutBadFormatBadSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Decoding image failed.. - /// - internal static string ErrorPutBadFormatCantDecode { - get { - return ResourceManager.GetString("ErrorPutBadFormatCantDecode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Image format is not the one in header.. - /// - internal static string ErrorPutBadFormatUnmatchedFormat { - get { - return ResourceManager.GetString("ErrorPutBadFormatUnmatchedFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Normal user can't change other's avatar.. - /// - internal static string ErrorPutForbid { - get { - return ResourceManager.GetString("ErrorPutForbid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User does not exist.. - /// - internal static string ErrorPutUserNotExist { - get { - return ResourceManager.GetString("ErrorPutUserNotExist", resourceCulture); - } - } - /// /// Looks up a localized string similar to Unknown AvatarDataException.ErrorReason value.. /// diff --git a/Timeline/Resources/Controllers/UserAvatarController.resx b/Timeline/Resources/Controllers/UserAvatarController.resx index 3f444b04..58860c83 100644 --- a/Timeline/Resources/Controllers/UserAvatarController.resx +++ b/Timeline/Resources/Controllers/UserAvatarController.resx @@ -117,30 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Normal user can't delete other's avatar. - - - User does not exist. - - - User does not exist. - - - Image is not a square. - - - Decoding image failed. - - - Image format is not the one in header. - - - Normal user can't change other's avatar. - - - User does not exist. - Unknown AvatarDataException.ErrorReason value. diff --git a/Timeline/Resources/Controllers/UserAvatarController.zh.resx b/Timeline/Resources/Controllers/UserAvatarController.zh.resx deleted file mode 100644 index 94de1606..00000000 --- a/Timeline/Resources/Controllers/UserAvatarController.zh.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 普通用户不能删除其他用户的头像。 - - - 用户不存在。 - - - 用户不存在。 - - - 图片不是正方形。 - - - 解码图片失败。 - - - 图片格式与请求头中指示的不一样。 - - - 普通用户不能修改其他用户的头像。 - - - 用户不存在。 - - \ No newline at end of file diff --git a/Timeline/Resources/Controllers/UserController.Designer.cs b/Timeline/Resources/Controllers/UserController.Designer.cs index 0c9ac0d7..c8067614 100644 --- a/Timeline/Resources/Controllers/UserController.Designer.cs +++ b/Timeline/Resources/Controllers/UserController.Designer.cs @@ -61,56 +61,11 @@ namespace Timeline.Resources.Controllers { } /// - /// Looks up a localized string similar to Old password is wrong.. + /// Looks up a localized string similar to Unknown PutResult.. /// - internal static string ErrorChangePasswordBadPassword { + internal static string ExceptionUnknownPutResult { get { - return ResourceManager.GetString("ErrorChangePasswordBadPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The new username {0} already exists.. - /// - internal static string ErrorChangeUsernameAlreadyExist { - get { - return ResourceManager.GetString("ErrorChangeUsernameAlreadyExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The old username {0} does not exist.. - /// - internal static string ErrorChangeUsernameNotExist { - get { - return ResourceManager.GetString("ErrorChangeUsernameNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The user does not exist.. - /// - internal static string ErrorGetUserNotExist { - get { - return ResourceManager.GetString("ErrorGetUserNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Can't patch a user that does not exist.. - /// - internal static string ErrorPatchUserNotExist { - get { - return ResourceManager.GetString("ErrorPatchUserNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Username is of bad format.. - /// - internal static string ErrorPutBadUsername { - get { - return ResourceManager.GetString("ErrorPutBadUsername", resourceCulture); + return ResourceManager.GetString("ExceptionUnknownPutResult", resourceCulture); } } @@ -123,21 +78,12 @@ namespace Timeline.Resources.Controllers { } } - /// - /// Looks up a localized string similar to A user has changed password.. - /// - internal static string LogChangePasswordSuccess { - get { - return ResourceManager.GetString("LogChangePasswordSuccess", resourceCulture); - } - } - /// /// Looks up a localized string similar to Attempt to change a user's username to a existent one failed.. /// - internal static string LogChangeUsernameAlreadyExist { + internal static string LogChangeUsernameConflict { get { - return ResourceManager.GetString("LogChangeUsernameAlreadyExist", resourceCulture); + return ResourceManager.GetString("LogChangeUsernameConflict", resourceCulture); } } @@ -150,33 +96,6 @@ namespace Timeline.Resources.Controllers { } } - /// - /// Looks up a localized string similar to A user has changed username.. - /// - internal static string LogChangeUsernameSuccess { - get { - return ResourceManager.GetString("LogChangeUsernameSuccess", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A user has been deleted.. - /// - internal static string LogDeleteDelete { - get { - return ResourceManager.GetString("LogDeleteDelete", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Attempt to delete a user that does not exist.. - /// - internal static string LogDeleteNotExist { - get { - return ResourceManager.GetString("LogDeleteNotExist", resourceCulture); - } - } - /// /// Looks up a localized string similar to Attempt to retrieve info of a user that does not exist failed.. /// @@ -194,32 +113,5 @@ namespace Timeline.Resources.Controllers { return ResourceManager.GetString("LogPatchUserNotExist", resourceCulture); } } - - /// - /// Looks up a localized string similar to Attempt to create a user with bad username failed.. - /// - internal static string LogPutBadUsername { - get { - return ResourceManager.GetString("LogPutBadUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A user has been created.. - /// - internal static string LogPutCreate { - get { - return ResourceManager.GetString("LogPutCreate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A user has been modified.. - /// - internal static string LogPutModify { - get { - return ResourceManager.GetString("LogPutModify", resourceCulture); - } - } } } diff --git a/Timeline/Resources/Controllers/UserController.resx b/Timeline/Resources/Controllers/UserController.resx index 50aa13d6..0bdf4845 100644 --- a/Timeline/Resources/Controllers/UserController.resx +++ b/Timeline/Resources/Controllers/UserController.resx @@ -117,58 +117,22 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Old password is wrong. - - - The new username {0} already exists. - - - The old username {0} does not exist. - - - The user does not exist. - - - Can't patch a user that does not exist. - - - Username is of bad format. + + Unknown PutResult. Attempt to change password with wrong old password failed. - - A user has changed password. - - + Attempt to change a user's username to a existent one failed. Attempt to change a username of a user that does not exist failed. - - A user has changed username. - - - A user has been deleted. - - - Attempt to delete a user that does not exist. - Attempt to retrieve info of a user that does not exist failed. Attempt to patch a user that does not exist failed. - - Attempt to create a user with bad username failed. - - - A user has been created. - - - A user has been modified. - \ No newline at end of file diff --git a/Timeline/Resources/Controllers/UserController.zh.resx b/Timeline/Resources/Controllers/UserController.zh.resx deleted file mode 100644 index 3556083e..00000000 --- a/Timeline/Resources/Controllers/UserController.zh.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 旧密码错误。 - - - 新用户名{0}已经存在。 - - - 旧用户名{0}不存在。 - - - 用户不存在。 - - - 不能修改一个不存在的用户。 - - - 用户名格式错误。 - - \ No newline at end of file diff --git a/Timeline/Resources/Filters.Designer.cs b/Timeline/Resources/Filters.Designer.cs index 5576190d..dedfe498 100644 --- a/Timeline/Resources/Filters.Designer.cs +++ b/Timeline/Resources/Filters.Designer.cs @@ -86,68 +86,5 @@ namespace Timeline.Resources { return ResourceManager.GetString("LogSelfOrAdminUsernameNotString", resourceCulture); } } - - /// - /// Looks up a localized string similar to Header Content-Length is missing or of bad format.. - /// - internal static string MessageHeaderContentLengthMissing { - get { - return ResourceManager.GetString("MessageHeaderContentLengthMissing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Header Content-Length must not be 0.. - /// - internal static string MessageHeaderContentLengthZero { - get { - return ResourceManager.GetString("MessageHeaderContentLengthZero", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Header Content-Type is required.. - /// - internal static string MessageHeaderContentTypeMissing { - get { - return ResourceManager.GetString("MessageHeaderContentTypeMissing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You can't access the resource unless you are the owner or administrator.. - /// - internal static string MessageSelfOrAdminForbid { - get { - return ResourceManager.GetString("MessageSelfOrAdminForbid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The requested timeline does not exist.. - /// - internal static string MessageTimelineNotExist { - get { - return ResourceManager.GetString("MessageTimelineNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The requested personal timeline does not exist because the user does not exist.. - /// - internal static string MessageTimelineNotExistUser { - get { - return ResourceManager.GetString("MessageTimelineNotExistUser", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The user does not exist.. - /// - internal static string MessageUserNotExist { - get { - return ResourceManager.GetString("MessageUserNotExist", resourceCulture); - } - } } } diff --git a/Timeline/Resources/Filters.resx b/Timeline/Resources/Filters.resx index 7bfbc703..22620889 100644 --- a/Timeline/Resources/Filters.resx +++ b/Timeline/Resources/Filters.resx @@ -126,25 +126,4 @@ You apply a SelfOrAdminAttribute on an action, found a model named username, but it is not string. - - Header Content-Length is missing or of bad format. - - - Header Content-Length must not be 0. - - - Header Content-Type is required. - - - You can't access the resource unless you are the owner or administrator. - - - The requested timeline does not exist. - - - The requested personal timeline does not exist because the user does not exist. - - - The user does not exist. - \ No newline at end of file diff --git a/Timeline/Resources/Filters.zh.resx b/Timeline/Resources/Filters.zh.resx deleted file mode 100644 index 36aac788..00000000 --- a/Timeline/Resources/Filters.zh.resx +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 请求头Content-Length缺失或者格式不对。 - - - 请求头Content-Length不能为0。 - - - 缺少必需的请求头Content-Type。 - - - 你无权访问该资源除非你是资源的拥有者或者管理员。 - - - 请求的时间线不存在。 - - - 请求的个人时间线不存在因为该用户不存在。 - - - 用户不存在。 - - \ No newline at end of file diff --git a/Timeline/Resources/Messages.Designer.cs b/Timeline/Resources/Messages.Designer.cs new file mode 100644 index 00000000..8c13374f --- /dev/null +++ b/Timeline/Resources/Messages.Designer.cs @@ -0,0 +1,270 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Timeline.Resources { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Messages { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Messages() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Timeline.Resources.Messages", typeof(Messages).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Body is too big. It can't be bigger than {0}.. + /// + internal static string Common_Content_TooBig { + get { + return ResourceManager.GetString("Common_Content_TooBig", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Actual body length is bigger than it in header.. + /// + internal static string Common_Content_UnmatchedLength_Bigger { + get { + return ResourceManager.GetString("Common_Content_UnmatchedLength_Bigger", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Actual body length is smaller than it in header.. + /// + internal static string Common_Content_UnmatchedLength_Smaller { + get { + return ResourceManager.GetString("Common_Content_UnmatchedLength_Smaller", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You have no permission to do the operation.. + /// + internal static string Common_Forbid { + get { + return ResourceManager.GetString("Common_Forbid", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Header Content-Length is missing or of bad format.. + /// + internal static string Common_Header_ContentLength_Missing { + get { + return ResourceManager.GetString("Common_Header_ContentLength_Missing", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Header Content-Length must not be 0.. + /// + internal static string Common_Header_ContentLength_Zero { + get { + return ResourceManager.GetString("Common_Header_ContentLength_Zero", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Header Content-Type is missing.. + /// + internal static string Common_Header_ContentType_Missing { + get { + return ResourceManager.GetString("Common_Header_ContentType_Missing", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Header If-Non-Match is of bad format.. + /// + internal static string Common_Header_IfNonMatch_BadFormat { + get { + return ResourceManager.GetString("Common_Header_IfNonMatch_BadFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Model is of bad format.. + /// + internal static string Common_InvalidModel { + get { + return ResourceManager.GetString("Common_InvalidModel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The {0}-st username to do operation {1} on is of bad format.. + /// + internal static string TimelineController_ChangeMember_UsernameBadFormat { + get { + return ResourceManager.GetString("TimelineController_ChangeMember_UsernameBadFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The {0}-st user to do operation {1} on does not exist.. + /// + internal static string TimelineController_ChangeMember_UserNotExist { + get { + return ResourceManager.GetString("TimelineController_ChangeMember_UserNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The post to delete does not exist.. + /// + internal static string TimelineController_PostOperationDelete_NotExist { + get { + return ResourceManager.GetString("TimelineController_PostOperationDelete_NotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Username or password is invalid.. + /// + internal static string TokenController_Create_BadCredential { + get { + return ResourceManager.GetString("TokenController_Create_BadCredential", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The token is of bad format. It might not be created by the server.. + /// + internal static string TokenController_Verify_BadFormat { + get { + return ResourceManager.GetString("TokenController_Verify_BadFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Token has an old version. User might have update some info.. + /// + internal static string TokenController_Verify_OldVersion { + get { + return ResourceManager.GetString("TokenController_Verify_OldVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The token is expired.. + /// + internal static string TokenController_Verify_TimeExpired { + get { + return ResourceManager.GetString("TokenController_Verify_TimeExpired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to User does not exist. Administrator might have deleted this user.. + /// + internal static string TokenController_Verify_UserNotExist { + get { + return ResourceManager.GetString("TokenController_Verify_UserNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Image is not a square.. + /// + internal static string UserAvatar_BadFormat_BadSize { + get { + return ResourceManager.GetString("UserAvatar_BadFormat_BadSize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Image decode failed.. + /// + internal static string UserAvatar_BadFormat_CantDecode { + get { + return ResourceManager.GetString("UserAvatar_BadFormat_CantDecode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Image format does not match the one in header.. + /// + internal static string UserAvatar_BadFormat_UnmatchedFormat { + get { + return ResourceManager.GetString("UserAvatar_BadFormat_UnmatchedFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The user to operate on does not exist.. + /// + internal static string UserCommon_NotExist { + get { + return ResourceManager.GetString("UserCommon_NotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Old password is wrong.. + /// + internal static string UserController_ChangePassword_BadOldPassword { + get { + return ResourceManager.GetString("UserController_ChangePassword_BadOldPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The new username already exists.. + /// + internal static string UserController_ChangeUsername_Conflict { + get { + return ResourceManager.GetString("UserController_ChangeUsername_Conflict", resourceCulture); + } + } + } +} diff --git a/Timeline/Resources/Messages.resx b/Timeline/Resources/Messages.resx new file mode 100644 index 00000000..c5228ed5 --- /dev/null +++ b/Timeline/Resources/Messages.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Body is too big. It can't be bigger than {0}. + + + Actual body length is bigger than it in header. + + + Actual body length is smaller than it in header. + + + You have no permission to do the operation. + + + Header Content-Length is missing or of bad format. + + + Header Content-Length must not be 0. + + + Header Content-Type is missing. + + + Header If-Non-Match is of bad format. + + + Model is of bad format. + + + The {0}-st username to do operation {1} on is of bad format. + + + The {0}-st user to do operation {1} on does not exist. + + + The post to delete does not exist. + + + Username or password is invalid. + + + The token is of bad format. It might not be created by the server. + + + Token has an old version. User might have update some info. + + + The token is expired. + + + User does not exist. Administrator might have deleted this user. + + + Image is not a square. + + + Image decode failed. + + + Image format does not match the one in header. + + + The user to operate on does not exist. + + + Old password is wrong. + + + The new username already exists. + + \ No newline at end of file diff --git a/Timeline/Resources/Messages.zh.resx b/Timeline/Resources/Messages.zh.resx new file mode 100644 index 00000000..6e52befd --- /dev/null +++ b/Timeline/Resources/Messages.zh.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 请求体太大。它不能超过{0}. + + + 实际的请求体长度比头中指示的大。 + + + 实际的请求体长度比头中指示的小。 + + + 你没有权限做此操作。 + + + 请求头Content-Length缺失或者格式不对。 + + + 请求头Content-Length不能为0。 + + + 请求头Content-Type缺失。 + + + 请求头If-Non-Match格式不对。 + + + 请求模型格式不对。 + + + 第{0}个做{1}操作的用户名格式错误。 + + + 第{0}个做{1}操作的用户不存在。 + + + 要删除的消息不存在。 + + + 用户名或密码错误。 + + + 符号格式错误。这个符号可能不是这个服务器创建的。 + + + 符号是一个旧版本。用户可能已经更新了信息。 + + + 符号过期了。 + + + 用户不存在。管理员可能已经删除了这个用户。 + + + 图片不是正方形。 + + + 解码图片失败。 + + + 图片格式与请求头中指示的不一样。 + + + 要操作的用户不存在。 + + + 旧密码错误。 + + + 新用户名已经存在。 + + \ No newline at end of file diff --git a/Timeline/Resources/Models/Http/Common.Designer.cs b/Timeline/Resources/Models/Http/Common.Designer.cs index 4eebd2bc..5165463e 100644 --- a/Timeline/Resources/Models/Http/Common.Designer.cs +++ b/Timeline/Resources/Models/Http/Common.Designer.cs @@ -60,33 +60,6 @@ namespace Timeline.Resources.Models.Http { } } - /// - /// Looks up a localized string similar to Body is too big. It can't be bigger than {0}.. - /// - internal static string MessageContentTooBig { - get { - return ResourceManager.GetString("MessageContentTooBig", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Actual body length is bigger than it in header.. - /// - internal static string MessageContentUnmatchedLengthBigger { - get { - return ResourceManager.GetString("MessageContentUnmatchedLengthBigger", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Actual body length is smaller than it in header.. - /// - internal static string MessageContentUnmatchedLengthSmaller { - get { - return ResourceManager.GetString("MessageContentUnmatchedLengthSmaller", resourceCulture); - } - } - /// /// Looks up a localized string similar to An existent item is deleted.. /// @@ -105,15 +78,6 @@ namespace Timeline.Resources.Models.Http { } } - /// - /// Looks up a localized string similar to Header If-Non-Match is of bad format.. - /// - internal static string MessageHeaderIfNonMatchBad { - get { - return ResourceManager.GetString("MessageHeaderIfNonMatchBad", resourceCulture); - } - } - /// /// Looks up a localized string similar to A new item is created.. /// diff --git a/Timeline/Resources/Models/Http/Common.resx b/Timeline/Resources/Models/Http/Common.resx index 540c6c58..85ec4d32 100644 --- a/Timeline/Resources/Models/Http/Common.resx +++ b/Timeline/Resources/Models/Http/Common.resx @@ -117,24 +117,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Body is too big. It can't be bigger than {0}. - - - Actual body length is bigger than it in header. - - - Actual body length is smaller than it in header. - An existent item is deleted. The item does not exist, so nothing is changed. - - Header If-Non-Match is of bad format. - A new item is created. diff --git a/Timeline/Resources/Models/Http/Common.zh.resx b/Timeline/Resources/Models/Http/Common.zh.resx index 467916a2..de74ac3b 100644 --- a/Timeline/Resources/Models/Http/Common.zh.resx +++ b/Timeline/Resources/Models/Http/Common.zh.resx @@ -117,24 +117,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 请求体太大。它不能超过{0}. - - - 实际的请求体长度比头中指示的大。 - - - 实际的请求体长度比头中指示的小。 - 删除了一个项目。 要删除的项目不存在,什么都没有修改。 - - 请求头If-Non-Match格式不对。 - 创建了一个新项目。 -- cgit v1.2.3