From 8472aedc2c158958a5c02d2788fc47a4f5a570ac Mon Sep 17 00:00:00 2001 From: Musashi Miyamoto <44890163+musashi-miyamoto@users.noreply.github.com> Date: Wed, 29 Dec 2021 17:34:57 +0900 Subject: [PATCH 1/4] add japanese resources --- .../HandyControlDemo_Net_40.csproj | 8 + .../HandyControl_Net_40.csproj | 3 + .../HandyControlDemo_Net_GE45.csproj | 8 + .../HandyControl_Net_GE45.csproj | 3 + .../Properties/Langs/Lang.ja.resx | 804 ++++++++++++++++++ .../Resources/Img/Flag/ja.png | Bin 0 -> 500 bytes .../Main/NonClientAreaContent.xaml | 3 + .../Properties/Langs/Lang.ja.resx | 240 ++++++ 8 files changed, 1069 insertions(+) create mode 100644 src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx create mode 100644 src/Shared/HandyControlDemo_Shared/Resources/Img/Flag/ja.png create mode 100644 src/Shared/HandyControl_Shared/Properties/Langs/Lang.ja.resx diff --git a/src/Net_40/HandyControlDemo_Net_40/HandyControlDemo_Net_40.csproj b/src/Net_40/HandyControlDemo_Net_40/HandyControlDemo_Net_40.csproj index 0f84bcabe..158c1a2da 100644 --- a/src/Net_40/HandyControlDemo_Net_40/HandyControlDemo_Net_40.csproj +++ b/src/Net_40/HandyControlDemo_Net_40/HandyControlDemo_Net_40.csproj @@ -180,6 +180,9 @@ Resources\Img\Flag\fr.png + + Resources\Img\Flag\ja.png + Resources\Img\Flag\ko-KR.png @@ -533,6 +536,9 @@ Properties\Langs\Lang.fr.resx + + Properties\Langs\Lang.ja.resx + Properties\Langs\Lang.ko-KR.resx @@ -581,6 +587,7 @@ rd /s /q Langs\es rd /s /q Langs\fa rd /s /q Langs\fr + rd /s /q Langs\ja rd /s /q Langs\ko-KR rd /s /q Langs\pt-BR rd /s /q Langs\pl @@ -591,6 +598,7 @@ move es Langs move fa Langs move fr Langs + move ja Langs move ko-KR Langs move pt-BR Langs move pl Langs diff --git a/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj b/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj index c88b6d261..8e3cccc36 100644 --- a/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj +++ b/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj @@ -50,6 +50,9 @@ Properties\Langs\Lang.fr.resx + + Properties\Langs\Lang.ja.resx + Properties\Langs\Lang.ko-KR.resx diff --git a/src/Net_GE45/HandyControlDemo_Net_GE45/HandyControlDemo_Net_GE45.csproj b/src/Net_GE45/HandyControlDemo_Net_GE45/HandyControlDemo_Net_GE45.csproj index 2eb1c1327..0f40d28a8 100644 --- a/src/Net_GE45/HandyControlDemo_Net_GE45/HandyControlDemo_Net_GE45.csproj +++ b/src/Net_GE45/HandyControlDemo_Net_GE45/HandyControlDemo_Net_GE45.csproj @@ -182,6 +182,9 @@ Resources\Img\Flag\fr.png + + Resources\Img\Flag\ja.png + Resources\Img\Flag\ko-KR.png @@ -535,6 +538,9 @@ Properties\Langs\Lang.fr.resx + + Properties\Langs\Lang.ja.resx + Properties\Langs\Lang.ko-KR.resx @@ -583,6 +589,7 @@ rd /s /q Langs\es rd /s /q Langs\fa rd /s /q Langs\fr + rd /s /q Langs\ja rd /s /q Langs\ko-KR rd /s /q Langs\pt-BR rd /s /q Langs\pl @@ -593,6 +600,7 @@ move es Langs move fa Langs move fr Langs + move ja Langs move ko-KR Langs move pt-BR Langs move pl Langs diff --git a/src/Net_GE45/HandyControl_Net_GE45/HandyControl_Net_GE45.csproj b/src/Net_GE45/HandyControl_Net_GE45/HandyControl_Net_GE45.csproj index 1881b3189..66830ddfa 100644 --- a/src/Net_GE45/HandyControl_Net_GE45/HandyControl_Net_GE45.csproj +++ b/src/Net_GE45/HandyControl_Net_GE45/HandyControl_Net_GE45.csproj @@ -51,6 +51,9 @@ Properties\Langs\Lang.fr.resx + + Properties\Langs\Lang.ja.resx + Properties\Langs\Lang.ko-KR.resx diff --git a/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx b/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx new file mode 100644 index 000000000..7002d9779 --- /dev/null +++ b/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx @@ -0,0 +1,804 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Controls + + + Styles + + + Growl + + + It's a nice day today~~~ + + + File saved successfully! + + + Disk space is running out! + + + Connection failed. please check your network! + + + The program has crashed~~~ + + + A new version has been detected!Do you want to update? + + + Loading + + + ImageBrowser + + + ColorPicker + + + Carousel + + + CompareSlider + + + TimeBar + + + Expander + + + Pagination + + + Click to open image browser + + + ProgressBar + + + AnimationPath + + + Button + + + ToggleButton + + + TabControl + + + CheckBox + + + TextBlock + + + Default + + + Primary + + + Success + + + Info + + + Warning + + + Danger + + + Custom button + + + Title + + + StepBar + + + Prev + + + Next + + + Register + + + Fill in the basic information + + + Upload file + + + Complete + + + Clock + + + Calendar + + + DatePicker + + + TimePicker + + + TextBox + + + This is the content + + + This is the title + + + This item must be filled in + + + Please enter content + + + The title is on the left + + + Text + + + Subtitle + + + PasswordBox + + + CirclePanel + + + ComboBox + + + NumericUpDown + + + DataGrid + + + Index + + + Name + + + Type + + + Remark + + + Selected + + + ListBox + + + TreeView + + + ScrollViewer + + + Window + + + Menu + + + Right click here + + + RadioButton + + + open message window + + + open common window + + + open custom Non-client Area window + + + open mouse follow window + + + open custom content window + + + Ignore + + + Error + + + Ask + + + Fatal + + + Clear + + + Whether to restart to change the language? + + + About + + + Repository + + + Email + + + Chatroom + + + Blog + + + Brush + + + PreviewSlider + + + Contributors + + + Slider + + + It's not a phone number + + + please enter email + + + Step + + + CalendarWithClock + + + DateTimePicker + + + GroupBox + + + ListView + + + RichTextBox + + + ToolBar + + + Common + + + ShowRowNumber + + + SearchBar + + + Tag + + + GifImage + + + OutlineText + + + QQ Group + + + FlipClock + + + open blur window + + + Rate + + + Shield + + + WaterfallPanel + + + Groups + + + CoverView + + + CoverFlow + + + Please input a keyword + + + open no Non-client Area dragable window + + + Drag here + + + MessageBox + + + ProgressButton + + + Upload;Uploading + + + open custom message window + + + Transfer + + + ChatBubble + + + Push to talk + + + Sec + + + Label + + + GotoTop + + + NotifyIcon + + + Badge + + + Gravatar + + + Coming Soon + + + Comment + + + Reply + + + Dialog + + + TextDialog + + + Please wait... + + + Growl demo + + + New window + + + Visibility + + + Blink + + + Exit + + + Open Panel + + + The tray icon is open and will hide the window instead of closing the program + + + Prompt + + + Try to close app? + + + Interactive Dialog + + + Ok + + + Please input... + + + Click to count + + + RepeatButton + + + Dialog demo + + + Show in the current window + + + Show in the main window + + + SideMenu + + + Grid + + + Basic layout + + + Column spacing + + + Hybrid layout + + + Column offset + + + Responsive layout + + + Border + + + Poptip + + + Recommendation + + + Project + + + RangeSlider + + + RelativePanel + + + On + + + Off + + + ButtonGroup + + + Card + + + TextDialog with timer + + + Magnifier + + + ImageBlock + + + RunningBlock + + + HoneycombPanel + + + Add an item + + + Remove an item + + + Sprite + + + Open sprite + + + Notification + + + Send notification + + + Stays open + + + FloatingBlock + + + SplitButton + + + Tools + + + HatchBrushGenerator + + + Morphing Animation + + + Divider + + + top-start;top;top-end;right-start;right;right-end;bottom-end;bottom;bottom-start;left-end;left;left-start + + + TransitioningContentControl + + + Drawer + + + Documentation + + + Effects + + + Website + + + Vsix + + + English document + + + Chinese document + + + Demo + + + PinBox + + + FlowDocumentScrollViewer + + + Open glowWindow + + + FlowDocument + + + FlowDocumentPageViewer + + + FlowDocumentReader + + + Open native common window + + + Open navigation window + + + Frame + + + Practical demos + + + Start screenshot + + + Screenshot + + + TextDialog(In control) + + + Looks up a localized string similar to "{0}". + + + PropertyGrid + + + ImageSelector + + + Geometry + + + CheckComboBox + + + FlexPanel + + + open touch drag move window + + + UniformSpacingPanel + + + Misc + + + Interacting + + + Data Entry + + + Data Display + + + Navigation + + + Layout + + + Feedback + + + Empty + + + ElementGroup + + + AutoCompleteTextBox + + \ No newline at end of file diff --git a/src/Shared/HandyControlDemo_Shared/Resources/Img/Flag/ja.png b/src/Shared/HandyControlDemo_Shared/Resources/Img/Flag/ja.png new file mode 100644 index 0000000000000000000000000000000000000000..6b2e7cde5335d21d4a8b51b7956b269cc36508d1 GIT binary patch literal 500 zcmVhSJWWs{hny1v6oT&z1z zrLC^E?^*3{IWNm$ditLP;y1>zIbbX(n%7%}{LQ$1cYPN=plk>&P z;F_ysYI16JxM*&7VP|lomA+?fb)KTBsg1PX0!_jI0004WQchCHy z_PGbE@E{b$^++MRx5uI_N#r3U(tfLjZn3?q(^QETyEvCRF@Xv>RuERDey^Q0z qQF`vdb>BJBybnV0SvrT=PW}Qb;}-MYTY_f*0000 + diff --git a/src/Shared/HandyControl_Shared/Properties/Langs/Lang.ja.resx b/src/Shared/HandyControl_Shared/Properties/Langs/Lang.ja.resx new file mode 100644 index 000000000..4fce5d32f --- /dev/null +++ b/src/Shared/HandyControl_Shared/Properties/Langs/Lang.ja.resx @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 確定 + + + キャンセル + + + PNG画像 + + + 画像の場所が正しくありません + + + 画像のサイズが正しくありません + + + 不明なサイズ + + + 大きすぎます + + + 不明 + + + 30秒間隔 + + + 1分間隔 + + + 5分間隔 + + + 10分間隔 + + + 30分間隔 + + + 1時間間隔 + + + 2時間間隔 + + + クリア + + + 閉じる + + + 全て閉じる + + + 他を閉じる + + + 午前 + + + 午後 + + + プロンプト + + + 空欄にできません + + + 範囲外 + + + 書式エラー + + + はい + + + いいえ + + + ズームイン + + + ズームアウト + + + 前へ + + + 次へ + + + Page mode + + + 見開きモード + + + スクロールモード + + + 検索 + + + Looks up a localized string similar to "{0}". + + + 移動 + + + Miscellaneous + + + All + + + データなし + + \ No newline at end of file From e652a8a7dbc3eec6842b949d83a9b942e4b6569e Mon Sep 17 00:00:00 2001 From: Musashi Miyamoto <44890163+musashi-miyamoto@users.noreply.github.com> Date: Wed, 29 Dec 2021 17:49:58 +0900 Subject: [PATCH 2/4] add nuspec for japanese lang pack --- build/build-for-myget.nuspec | 15 ++++++++++ build/build.Lang.ja.nuspec | 55 ++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 build/build.Lang.ja.nuspec diff --git a/build/build-for-myget.nuspec b/build/build-for-myget.nuspec index 546faaef4..a10069222 100644 --- a/build/build-for-myget.nuspec +++ b/build/build-for-myget.nuspec @@ -35,6 +35,7 @@ + @@ -47,6 +48,7 @@ + @@ -59,6 +61,7 @@ + @@ -71,6 +74,7 @@ + @@ -83,6 +87,7 @@ + @@ -95,6 +100,7 @@ + @@ -107,6 +113,7 @@ + @@ -119,6 +126,7 @@ + @@ -131,6 +139,7 @@ + @@ -143,6 +152,7 @@ + @@ -155,6 +165,7 @@ + @@ -167,6 +178,7 @@ + @@ -181,6 +193,7 @@ + @@ -195,6 +208,7 @@ + @@ -208,6 +222,7 @@ + diff --git a/build/build.Lang.ja.nuspec b/build/build.Lang.ja.nuspec new file mode 100644 index 000000000..08ca8ff80 --- /dev/null +++ b/build/build.Lang.ja.nuspec @@ -0,0 +1,55 @@ + + + + HandyControl.Lang.ja + 3.3.0 + HandyOrg + HandyOrg + HandyOrg + true + LICENSE + icon.png + https://github.com/HandyOrg/HandyControl + Contains some simple and commonly used WPF controls + Changes are detailed at https://github.com/HandyOrg/HandyControl/releases + Copyright © HandyOrg 2018-2021 + WPF C# Control + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 1663311bc31c18fc331d78717bc53b9cf2081d4e Mon Sep 17 00:00:00 2001 From: Musashi Miyamoto <44890163+musashi-miyamoto@users.noreply.github.com> Date: Sat, 26 Mar 2022 06:11:10 +0900 Subject: [PATCH 3/4] update demo-app japanese translation Control names are still English because: - Visual Studio did not translate WPF controls in Japanese. - Japanese accepts common English words. --- .../Properties/Langs/Lang.ja.resx | 152 +++++++++--------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx b/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx index 7002d9779..c2e44f164 100644 --- a/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx +++ b/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx @@ -118,13 +118,13 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - Controls + コントロール - Styles + スタイル - Growl + Growl通知 It's a nice day today~~~ @@ -136,13 +136,13 @@ Disk space is running out! - Connection failed. please check your network! + 接続できません。ネットワーク接続を確認してください! The program has crashed~~~ - A new version has been detected!Do you want to update? + 新しいバージョンがあります!アップデートしますか? Loading @@ -169,7 +169,7 @@ Pagination - Click to open image browser + 画像ブラウザを開く ProgressBar @@ -214,7 +214,7 @@ Custom button - Title + タイトル StepBar @@ -253,25 +253,25 @@ TextBox - This is the content + ここはコンテンツ - This is the title + ここはタイトル - This item must be filled in + ここは入力必須 - Please enter content + 内容を入力 - The title is on the left + 左寄せタイトル - Text + テキスト - Subtitle + サブタイトル PasswordBox @@ -289,19 +289,19 @@ DataGrid - Index + インデックス - Name + 名前 - Type + 種類 - Remark + 注記 - Selected + 選択 ListBox @@ -319,25 +319,25 @@ Menu - Right click here + ここを右クリック RadioButton - open message window + メッセージウインドウを開く - open common window + 通常のウインドウを開く - open custom Non-client Area window + カスタム非クライアント領域ウインドウを開く - open mouse follow window + マウス位置にウインドウを開く - open custom content window + カスタムコンテンツウインドウを開く Ignore @@ -358,19 +358,19 @@ Whether to restart to change the language? - About + 情報 - Repository + リポジトリ - Email + Eメール - Chatroom + チャットルーム - Blog + ブログ Brush @@ -379,7 +379,7 @@ PreviewSlider - Contributors + 貢献者 Slider @@ -388,7 +388,7 @@ It's not a phone number - please enter email + Eメールアドレスを入力 Step @@ -412,10 +412,10 @@ ToolBar - Common + 通常 - ShowRowNumber + 行番号表示 SearchBar @@ -436,7 +436,7 @@ FlipClock - open blur window + BlurWindowを開く Rate @@ -457,10 +457,10 @@ CoverFlow - Please input a keyword + 検索ワードを入力 - open no Non-client Area dragable window + 非クライアント領域の無いドラッグ可能ウインドウを開く Drag here @@ -472,10 +472,10 @@ ProgressButton - Upload;Uploading + アップロード;アップロード中 - open custom message window + カスタムメッセージウインドウを開く Transfer @@ -505,7 +505,7 @@ Gravatar - Coming Soon + 近日公開 Comment @@ -520,19 +520,19 @@ TextDialog - Please wait... + お待ちください... - Growl demo + Growl通知デモ - New window + 新規ウインドウ - Visibility + 表示 - Blink + 点滅 Exit @@ -550,13 +550,13 @@ Try to close app? - Interactive Dialog + 対話型 Dialog Ok - Please input... + 入力してください... Click to count @@ -565,13 +565,13 @@ RepeatButton - Dialog demo + Dialog デモ - Show in the current window + このウインドウに表示 - Show in the main window + メインウインドウに表示 SideMenu @@ -580,19 +580,19 @@ Grid - Basic layout + 基本レイアウト - Column spacing + 列スペース - Hybrid layout + 混合レイアウト - Column offset + 列オフセット - Responsive layout + レスポンシブレイアウト Border @@ -601,10 +601,10 @@ Poptip - Recommendation + おすすめ - Project + プロジェクト RangeSlider @@ -625,7 +625,7 @@ Card - TextDialog with timer + TextDialog, タイマーあり Magnifier @@ -640,25 +640,25 @@ HoneycombPanel - Add an item + アイテム追加 - Remove an item + アイテム削除 Sprite - Open sprite + Spriteを開く Notification - Send notification + 通知を送信 - Stays open + 開いたままにする FloatingBlock @@ -667,7 +667,7 @@ SplitButton - Tools + ツール HatchBrushGenerator @@ -688,25 +688,25 @@ Drawer - Documentation + ドキュメント Effects - Website + ウェブサイト Vsix - English document + 英語ドキュメント - Chinese document + 中国語ドキュメント - Demo + デモ PinBox @@ -715,7 +715,7 @@ FlowDocumentScrollViewer - Open glowWindow + GlowWindowを開く FlowDocument @@ -727,25 +727,25 @@ FlowDocumentReader - Open native common window + 標準のウインドウを開く - Open navigation window + ナビゲーションウインドウを開く Frame - Practical demos + 実用例 - Start screenshot + スクリーンショット開始 Screenshot - TextDialog(In control) + TextDialog(コントロール内) Looks up a localized string similar to "{0}". @@ -766,7 +766,7 @@ FlexPanel - open touch drag move window + タッチ移動ウインドウを開く UniformSpacingPanel From def4397c08eaa86049c712de6929a744917d0ed1 Mon Sep 17 00:00:00 2001 From: Musashi Miyamoto <44890163+musashi-miyamoto@users.noreply.github.com> Date: Sat, 26 Mar 2022 06:20:22 +0900 Subject: [PATCH 4/4] update demo-app japanese translation Fix invalid translation. --- .../HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx b/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx index c2e44f164..740f985b3 100644 --- a/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx +++ b/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.ja.resx @@ -124,7 +124,7 @@ スタイル - Growl通知 + Growl It's a nice day today~~~ @@ -523,7 +523,7 @@ お待ちください... - Growl通知デモ + Growl デモ 新規ウインドウ