Skip to content

Commit e0c44da

Browse files
seto77claude
andcommitted
i18n(help): point F1/Help to per-language manuals, fix two help slugs
All 9 GitHub Pages manuals (40 pages each) are now live and pass mkdocs --strict, so flip HelpCulture from "en" to each language code: F1/Help (WEB) now opens the language-specific manual instead of English. Also promote pt and ko to Released=true (author's call: non-commercial software ships even while prose still needs native proofreading). Fix two HelpPage slugs that never matched a real page and would now 404 across all 9 languages once HelpCulture points at each locale: - FormBeamInteraction: 3-scattering-factor -> 3-beam-interaction - CBED simulator: 7-diffraction-simulator/4-cbed-simulation -> .../3-cbed-simulation (real-slug fix rather than adding more redirects) Update mkdocs.yml ko/pt comments to reflect Released=true. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9caa0bd commit e0c44da

4 files changed

Lines changed: 26 additions & 16 deletions

File tree

Crystallography/SupportedCultures.cs

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ public sealed class UiCulture
2525
/// <summary>この言語の UI フォントファミリ。Latin 系は "Segoe UI"、日本語は "Yu Gothic UI"、中国語簡体字は "Microsoft YaHei UI"。</summary>
2626
public string FontFamily { get; }
2727

28-
/// <summary>GitHub Pages マニュアルの言語ディレクトリ ("en" or "ja")。マニュアル未整備の言語は "en" にフォールバックする。</summary>
28+
/// <summary>GitHub Pages マニュアルの言語ディレクトリ (neutral 名。例 "en"/"ja"/"de"/"zh-Hans")。
29+
/// 260623Cl: 全 9 言語のマニュアル(全 40 ページ)が揃ったため各言語が自分のディレクトリを指す。
30+
/// マニュアル未整備の言語があれば "en" にフォールバックさせる運用 (値そのものがマニュアル整備済みフラグ)。</summary>
2931
public string HelpCulture { get; }
3032

3133
/// <summary>UI 翻訳 (resx) が出荷可能な水準まで用意できているか。
@@ -49,17 +51,20 @@ public static class SupportedCultures
4951
// 翻訳が揃ったら Released を true にし、言語メニュー項目 (Designer) を追加する。
5052
public static readonly UiCulture[] All = new UiCulture[]
5153
{
52-
new("en", "English", "Segoe UI", "en", true ),
53-
new("ja", "日本語", "Yu Gothic UI", "ja", true ),
54-
new("de", "Deutsch", "Segoe UI", "en", true ), // 260618Cl: 翻訳 resx 整備済→言語メニューに追加(Released=true)
55-
new("fr", "Français", "Segoe UI", "en", true ), // 260621Cl Released (波A 翻訳・tooltip 完了)
56-
new("es", "Español", "Segoe UI", "en", true ), // 260621Cl Released (波A)
57-
new("pt", "Português", "Segoe UI", "en", false), // preview: pt-BR 寄り綴り要ネイティブ校閲 (D 決定)
58-
new("it", "Italiano", "Segoe UI", "en", true ), // 260617Cl 追加 / 260621Cl Released (波A): Latin/Segoe UI・IUCr 用語あり
59-
new("ru", "Русский", "Segoe UI", "en", true ), // 260617Cl 追加 / 260621Cl Released (波A): Cyrillic は Segoe UI が網羅・IUCr 用語あり
60-
new("zh-Hans", "简体中文", "Microsoft YaHei UI", "en", true ), // 260621Cl Released (波B 翻訳・用語統一完了)
61-
new("zh-Hant", "繁體中文", "Microsoft JhengHei UI", "en", true ), // 260617Cl 追加 / 260621Cl Released (波B): 繁体字(台湾/香港)。zh-Hans より長い接頭辞として先に評価される
62-
new("ko", "한국어", "Malgun Gothic", "en", false), // 260617Cl 追加 / preview: IUCr 未収録→別途用語典拠 (D 決定)
54+
new("en", "English", "Segoe UI", "en", true ),
55+
new("ja", "日本語", "Yu Gothic UI", "ja", true ),
56+
// 260623Cl: HelpCulture を "en" → 各言語コードへ flip。全 9 言語の GitHub Pages マニュアル(全 40 ページ)が揃い
57+
// 機械ハーネス 40/0・mkdocs --strict 通過・本番 live になったため、F1/Help(WEB) を各言語マニュアルへ向ける。
58+
// ko/pt も同日 Released 化(作者判断: 非商用ソフトゆえ完成度が多少低くても公開する方針・prose ネイティブ校閲は継続課題)。
59+
new("de", "Deutsch", "Segoe UI", "de", true ), // 260618Cl Released(波A) / 260623Cl HelpCulture "en"→"de"
60+
new("fr", "Français", "Segoe UI", "fr", true ), // 260621Cl Released(波A) / 260623Cl HelpCulture "en"→"fr"
61+
new("es", "Español", "Segoe UI", "es", true ), // 260621Cl Released(波A) / 260623Cl HelpCulture "en"→"es"
62+
new("pt", "Português", "Segoe UI", "pt", true ), // 260623Cl Released(作者判断: 非商用ゆえ完成度低めでも公開可・要ネイティブ校閲) / HelpCulture "en"→"pt"
63+
new("it", "Italiano", "Segoe UI", "it", true ), // 260617Cl 追加 / 260621Cl Released(波A) / 260623Cl HelpCulture "en"→"it"
64+
new("ru", "Русский", "Segoe UI", "ru", true ), // 260617Cl 追加 / 260621Cl Released(波A) / 260623Cl HelpCulture "en"→"ru"
65+
new("zh-Hans", "简体中文", "Microsoft YaHei UI", "zh-Hans", true ), // 260621Cl Released(波B) / 260623Cl HelpCulture "en"→"zh-Hans"
66+
new("zh-Hant", "繁體中文", "Microsoft JhengHei UI", "zh-Hant", true ), // 260617Cl 追加 / 260621Cl Released(波B): zh-Hans より長い接頭辞として先に評価 / 260623Cl HelpCulture "en"→"zh-Hant"
67+
new("ko", "한국어", "Malgun Gothic", "ko", true ), // 260617Cl 追加 / 260623Cl Released(作者判断: 非商用ゆえ完成度低めでも公開可・要ネイティブ校閲) / HelpCulture "en"→"ko"
6368
};
6469

6570
/// <summary>既定言語 (英語)。未知カルチャはここへ解決する。</summary>

ReciPro/DiffractionSimulator/FormDiffractionSimulatorCBED.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ public double[] ThicknessArray
129129
public FormDiffractionSimulatorCBED()
130130
{
131131
InitializeComponent();
132-
HelpPage = "7-diffraction-simulator/4-cbed-simulation"; //260529Cl 追加
132+
//HelpPage = "7-diffraction-simulator/4-cbed-simulation"; //260529Cl 追加 (旧: 実ページは 3-cbed-simulation、4- は x-ray-neutron)
133+
HelpPage = "7-diffraction-simulator/3-cbed-simulation"; //260623Cl: 実ページ名へ修正 (HelpCulture flip で 9 言語に 404 波及するため)
133134
NumericBoxDivision_ValueChanged(new object(), new EventArgs());
134135

135136
//260611Cl 追加: ARM64 には MKL ネイティブが存在しない (x86/x64 専用) ため、MKL の選択肢自体を出さない

ReciPro/FormMain.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,11 @@ public FormMain()
303303
//260529Cl 追加: Crystallography.Controls 側 (CrystalControl 内) で生成される子フォームの
304304
//HelpPage は ReciPro からインスタンスに触れるここで設定する。
305305
crystalControl.FormSymmetryInformation.HelpPage = "2-symmetry-information";
306-
crystalControl.FormBeamInteraction.HelpPage = "3-scattering-factor";
306+
// 260623Cl: HelpPage スラッグを実ページ名へ修正。"3-scattering-factor" は存在せず (実ページは 3-beam-interaction)、
307+
// ja のみ redirect_maps、en も /en/ stub だけで HelpBaseUrl() のルート URL は 404 だった。HelpCulture flip で
308+
// 9 言語に 404 が波及するため根本修正 (redirect 増設より実スラッグに合わせる)。
309+
//crystalControl.FormBeamInteraction.HelpPage = "3-scattering-factor"; // 旧 (260529Cl): 実ページと不一致
310+
crystalControl.FormBeamInteraction.HelpPage = "3-beam-interaction";
307311

308312
//260413Cl DPI スケーリング補正 (ListBox.ColumnWidth は自動スケール対象外)
309313
listBox.ColumnWidth = (int)(listBox.ColumnWidth * DeviceDpi / 96.0);

docs/mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ plugins:
457457
A3.4. STEM: A3.4. STEM
458458
A3.5. EBSD: A3.5. EBSD
459459
Troubleshooting: 疑難排解
460-
# 260622Cl: 波B ko (preview/Released=false)。Material 内蔵 ko partial。lunr 非対応で検索除外。
460+
# 260622Cl: 波B ko。Material 内蔵 ko partial。lunr 非対応で検索除外。260623Cl Released=true(作者判断・要ネイティブ校閲)
461461
# IUCr 未収録のため用語は GUI ko.resx 実ラベル拠 (회절/스테레오넷/회전 기하학/구조 뷰어/매크로/결정 목록 等)。
462462
- locale: ko
463463
name: 한국어
@@ -505,7 +505,7 @@ plugins:
505505
A3.4. STEM: A3.4. STEM
506506
A3.5. EBSD: A3.5. EBSD
507507
Troubleshooting: 문제 해결
508-
# 260622Cl: pt (preview/Released=false・pt-BR 寄り綴り要ネイティブ校閲)。nav は GUI pt.resx 実ラベルに一致
508+
# 260622Cl: pt (pt-BR 寄り綴り要ネイティブ校閲)。260623Cl Released=true(作者判断)。nav は GUI pt.resx 実ラベルに一致
509509
# (Estereonete/Geometria de rotação/Interação do feixe/Visualizador de estrutura/Simulador de difração 等)。
510510
- locale: pt
511511
name: Português

0 commit comments

Comments
 (0)