Skip to content

Commit f0f5389

Browse files
seto77claude
andcommitted
i18n(de): add German de: arg to code-side Localization.Loc calls (Phase 3 de wave)
44 Loc(en, ja) calls across FormMain (splash, MessageBox, status, language-switch dialogs), FormAutoProcedure, FormAboutMe, FormSequentialImage, FormFindParameter, FormFindParameterBruteForce now carry a German translation; interpolation holes and \r\n preserved. Dormant until 'de' joins releasedCulturesInIPA. Build: 0 errors. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8c97d50 commit f0f5389

6 files changed

Lines changed: 45 additions & 42 deletions

File tree

IPAnalyzer/FindParameter/FormFindParameter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,7 +1963,7 @@ private void backgroundWorkerRefine_RunWorkerCompleted(object sender, RunWorkerC
19631963

19641964
sw.Stop();
19651965
resetHorizontalMode();
1966-
formMain.toolStripStatusLabel.Text = Crystallography.Localization.Loc(en: "Calculating Time (Find Parameter): ", ja: "計算時間 (パラメータ探索): ") + (sw.ElapsedMilliseconds).ToString() + "ms";
1966+
formMain.toolStripStatusLabel.Text = Crystallography.Localization.Loc(en: "Calculating Time (Find Parameter): ", ja: "計算時間 (パラメータ探索): ", de: "Berechnungszeit (Parameter finden): ") + (sw.ElapsedMilliseconds).ToString() + "ms";
19671967

19681968
IsSkipTextChangeEvent = false;
19691969

@@ -2262,7 +2262,7 @@ private void RefineParameters()
22622262
}//2imageモード終了
22632263

22642264
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
2265-
toolStripStatusLabel1.Text = string.Format(Crystallography.Localization.Loc(en: "Completed ! Elapsed time: {0}sec.", ja: "完了 ! 経過時間: {0}秒"), (sw.ElapsedMilliseconds / 1000.0).ToString("f2")); // 260626Cl Loc化
2265+
toolStripStatusLabel1.Text = string.Format(Crystallography.Localization.Loc(en: "Completed ! Elapsed time: {0}sec.", ja: "完了 ! 経過時間: {0}秒", de: "Fertig ! Verstrichene Zeit: {0}Sek."), (sw.ElapsedMilliseconds / 1000.0).ToString("f2")); // 260626Cl Loc化
22662266
}
22672267

22682268
/// <summary>
@@ -2512,7 +2512,7 @@ private void DrawTiltCorrectionMain(List<List<PointD>> EllipseCenter, List<Point
25122512
g.SmoothingMode = SmoothingMode.HighQuality;
25132513
g.Clear(Color.White);
25142514

2515-
g.DrawString(IsPrimary ? Crystallography.Localization.Loc(en: "Primary", ja: "プライマリ") : Crystallography.Localization.Loc(en: "Secondary", ja: "セカンダリ"), TahomaFont8, Brushes.Black, 0, 0); // 260626Cl Loc化
2515+
g.DrawString(IsPrimary ? Crystallography.Localization.Loc(en: "Primary", ja: "プライマリ", de: "Primär") : Crystallography.Localization.Loc(en: "Secondary", ja: "セカンダリ", de: "Sekundär"), TahomaFont8, Brushes.Black, 0, 0); // 260626Cl Loc化
25162516

25172517
//目盛りを描く
25182518
double graduation;

IPAnalyzer/FindParameter/FormFindParameterBruteForce.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ void report(Profile profile, int n)
541541
}
542542
#endregion
543543

544-
toolStripStatusLabel1.Text = string.Format(Crystallography.Localization.Loc(en: "Complete! Total time: {0} sec.", ja: "完了! 合計時間: {0} 秒."), (sw.ElapsedMilliseconds / 1000.0).ToString("f0")); // 260626Cl Loc化
544+
toolStripStatusLabel1.Text = string.Format(Crystallography.Localization.Loc(en: "Complete! Total time: {0} sec.", ja: "完了! 合計時間: {0} 秒.", de: "Fertig! Gesamtzeit: {0} Sek."), (sw.ElapsedMilliseconds / 1000.0).ToString("f0")); // 260626Cl Loc化
545545
buttonStop.Visible = false;
546546
FormMain.SetIntegralProperty();
547547
var finalProfile = Ring.GetProfile(Ring.IP);
@@ -844,7 +844,7 @@ private void buttonOptimizeGandolfi_Click(object sender, EventArgs e)
844844
}
845845

846846
}
847-
toolStripStatusLabel1.Text = string.Format(Crystallography.Localization.Loc(en: "Complete! Total time: {0} sec.", ja: "完了! 合計時間: {0} 秒."), (sw.ElapsedMilliseconds / 1000.0).ToString("f0")); // 260626Cl Loc化
847+
toolStripStatusLabel1.Text = string.Format(Crystallography.Localization.Loc(en: "Complete! Total time: {0} sec.", ja: "完了! 合計時間: {0} 秒.", de: "Fertig! Gesamtzeit: {0} Sek."), (sw.ElapsedMilliseconds / 1000.0).ToString("f0")); // 260626Cl Loc化
848848
FormMain.SetIntegralProperty();
849849
Profile finalProfile = Ring.GetProfile(Ring.IP);
850850
Fitting(finalProfile, crystal.Plane);

IPAnalyzer/FormAboutMe.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ private void FormAboutMe_MouseDown(object sender, MouseEventArgs e)
7171
else if (n == 3)
7272
{
7373
// 260626Cl Loc化 (英語環境で日本語直書きが出ていたのを修正)
74-
textBoxReadMe.Text = Crystallography.Localization.Loc(en: "Hidden comment\r\n", ja: "隠しコメント\r\n");
74+
textBoxReadMe.Text = Crystallography.Localization.Loc(en: "Hidden comment\r\n", ja: "隠しコメント\r\n", de: "Versteckter Kommentar\r\n");
7575
textBoxReadMe.Text += Crystallography.Localization.Loc(
7676
en: "This software is free, but donations are gladly accepted.\r\nIf you found this software useful, please treat me to a meal at a conference or some other occasion.",
77-
ja: "このソフトはフリーですが、喜んで寄付も申し受けております。\r\nもしこのソフトを使って便利だなぁと感じた方、学会か何かの折にご飯をおごってください。");
77+
ja: "このソフトはフリーですが、喜んで寄付も申し受けております。\r\nもしこのソフトを使って便利だなぁと感じた方、学会か何かの折にご飯をおごってください。",
78+
de: "Diese Software ist kostenlos, über Spenden freue ich mich aber sehr.\r\nWenn Sie diese Software nützlich finden, laden Sie mich bei Gelegenheit (z. B. auf einer Tagung) gern zu einer Mahlzeit ein.");
7879

7980
n = 0;
8081

IPAnalyzer/FormAutoProcedure.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private void checkBoxAutoLoad_CheckedChanged(object sender, EventArgs e)
188188
targetFolder = textBoxDiectory.Text;
189189
if (targetFolder.Length == 0 || !Directory.Exists(targetFolder))
190190
{
191-
MessageBox.Show(Crystallography.Localization.Loc(en: "Set the appropriate directories to be monitored.", ja: "監視するディレクトリを正しく設定してください。")); // 260625Cl Loc化
191+
MessageBox.Show(Crystallography.Localization.Loc(en: "Set the appropriate directories to be monitored.", ja: "監視するディレクトリを正しく設定してください。", de: "Bitte legen Sie die zu überwachenden Verzeichnisse korrekt fest.")); // 260625Cl Loc化
192192
checkBoxAutoLoad.Checked = false;
193193
return;
194194
}

0 commit comments

Comments
 (0)