Browse Source

将首页"全部栏目"替换为"工具箱",添加多语言支持

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
visuddhinanda 4 days ago
parent
commit
3358b38745

+ 4 - 0
api-v13/resources/lang/en/labels.php

@@ -24,4 +24,8 @@ return [
     'script_chinese_simple' => 'Chinese Phonetic (simple)',
     'script_chinese_simple' => 'Chinese Phonetic (simple)',
     'script_chinese_pinyin' => 'Chinese Pinyin',
     'script_chinese_pinyin' => 'Chinese Pinyin',
     'script_telugu' => 'Telugu',
     'script_telugu' => 'Telugu',
+
+    'toolbox' => 'Toolbox',
+    'tool_script_convertor' => 'Script Converter',
+    'tool_script_convertor_desc' => 'Convert Pāli text between scripts',
 ];
 ];

+ 4 - 0
api-v13/resources/lang/my/labels.php

@@ -24,4 +24,8 @@ return [
     'script_chinese_simple' => 'တရုတ် အသံထွက် (ရိုးရှင်း)',
     'script_chinese_simple' => 'တရုတ် အသံထွက် (ရိုးရှင်း)',
     'script_chinese_pinyin' => 'တရုတ် ပင်းယင်း',
     'script_chinese_pinyin' => 'တရုတ် ပင်းယင်း',
     'script_telugu' => 'တယ်လူဂူ',
     'script_telugu' => 'တယ်လူဂူ',
+
+    'toolbox' => 'ကိရိယာများ',
+    'tool_script_convertor' => 'စာလုံးပြောင်းစက်',
+    'tool_script_convertor_desc' => 'ပါဠိစာ အမျိုးမျိုး ပြောင်းလဲခြင်း',
 ];
 ];

+ 4 - 0
api-v13/resources/lang/si/labels.php

@@ -24,4 +24,8 @@ return [
     'script_chinese_simple' => 'චීන උච්චාරණ (සරල)',
     'script_chinese_simple' => 'චීන උච්චාරණ (සරල)',
     'script_chinese_pinyin' => 'චීන පින්යින්',
     'script_chinese_pinyin' => 'චීන පින්යින්',
     'script_telugu' => 'තෙලිඟු',
     'script_telugu' => 'තෙලිඟු',
+
+    'toolbox' => 'මෙවලම්',
+    'tool_script_convertor' => 'අක්ෂර පරිවර්තකය',
+    'tool_script_convertor_desc' => 'පාලි පෙළ විවිධ අක්ෂර අතර පරිවර්තනය',
 ];
 ];

+ 4 - 0
api-v13/resources/lang/th/labels.php

@@ -24,4 +24,8 @@ return [
     'script_chinese_simple' => 'สัทอักษรจีน (ย่อ)',
     'script_chinese_simple' => 'สัทอักษรจีน (ย่อ)',
     'script_chinese_pinyin' => 'พินอิน',
     'script_chinese_pinyin' => 'พินอิน',
     'script_telugu' => 'เตลูกู',
     'script_telugu' => 'เตลูกู',
+
+    'toolbox' => 'กล่องเครื่องมือ',
+    'tool_script_convertor' => 'ตัวแปลงอักษร',
+    'tool_script_convertor_desc' => 'แปลงอักษรบาลีข้ามสคริปต์',
 ];
 ];

+ 4 - 0
api-v13/resources/lang/zh-Hans/labels.php

@@ -24,4 +24,8 @@ return [
     'script_chinese_simple' => '锡兰注音(简)',
     'script_chinese_simple' => '锡兰注音(简)',
     'script_chinese_pinyin' => '汉语拼音(锡)',
     'script_chinese_pinyin' => '汉语拼音(锡)',
     'script_telugu' => '泰卢固文',
     'script_telugu' => '泰卢固文',
+
+    'toolbox' => '工具箱',
+    'tool_script_convertor' => '脚本转换器',
+    'tool_script_convertor_desc' => '巴利文字多脚本互转',
 ];
 ];

+ 4 - 0
api-v13/resources/lang/zh-Hant/labels.php

@@ -24,4 +24,8 @@ return [
     'script_chinese_simple' => '錫蘭注音(簡)',
     'script_chinese_simple' => '錫蘭注音(簡)',
     'script_chinese_pinyin' => '漢語拼音(錫)',
     'script_chinese_pinyin' => '漢語拼音(錫)',
     'script_telugu' => '泰盧固文',
     'script_telugu' => '泰盧固文',
+
+    'toolbox' => '工具箱',
+    'tool_script_convertor' => '腳本轉換器',
+    'tool_script_convertor_desc' => '巴利文字多腳本互轉',
 ];
 ];

+ 8 - 36
api-v13/resources/views/library/index.blade.php

@@ -130,49 +130,21 @@
         </div>
         </div>
         @endisset
         @endisset
 
 
-        {{-- ── 三、栏目导航 ── --}}
+        {{-- ── 三、工具箱 ── --}}
         <div class="lib-section">
         <div class="lib-section">
             <div class="lib-section__header">
             <div class="lib-section__header">
                 <h2 class="lib-section__title">
                 <h2 class="lib-section__title">
-                    <i class="ti ti-layout-grid"></i>
-                    全部栏目
+                    <i class="ti ti-tools"></i>
+                    {{ __('labels.toolbox') }}
                 </h2>
                 </h2>
             </div>
             </div>
 
 
             <div class="row g-3">
             <div class="row g-3">
-                <div class="col-6 col-sm-4 col-md">
-                    <a href="{{ route('library.tipitaka.index') }}" class="lib-nav-card">
-                        <i class="ti ti-books lib-nav-card__icon"></i>
-                        <div class="lib-nav-card__name">三藏</div>
-                        <div class="lib-nav-card__desc">巴利文原典及译文</div>
-                    </a>
-                </div>
-                <div class="col-6 col-sm-4 col-md">
-                    <a href="{{ route('library.wiki.home') }}" class="lib-nav-card">
-                        <i class="ti ti-world lib-nav-card__icon"></i>
-                        <div class="lib-nav-card__name">百科</div>
-                        <div class="lib-nav-card__desc">佛法术语词典</div>
-                    </a>
-                </div>
-                <div class="col-6 col-sm-4 col-md">
-                    <a href="{{ route('library.anthology.index') }}" class="lib-nav-card">
-                        <i class="ti ti-notebook lib-nav-card__icon"></i>
-                        <div class="lib-nav-card__name">文集</div>
-                        <div class="lib-nav-card__desc">法义探讨与注疏</div>
-                    </a>
-                </div>
-                <div class="col-6 col-sm-4 col-md">
-                    <a href="{{ route('library.course') }}" class="lib-nav-card">
-                        <i class="ti ti-school lib-nav-card__icon"></i>
-                        <div class="lib-nav-card__name">课程</div>
-                        <div class="lib-nav-card__desc">系统学习路径</div>
-                    </a>
-                </div>
-                <div class="col-6 col-sm-4 col-md">
-                    <a href="{{ route('library.download') }}" class="lib-nav-card">
-                        <i class="ti ti-download lib-nav-card__icon"></i>
-                        <div class="lib-nav-card__name">下载</div>
-                        <div class="lib-nav-card__desc">离线阅读资源</div>
+                <div class="col-6 col-sm-4 col-md-3">
+                    <a href="{{ route('library.tools.script-convertor') }}" class="lib-nav-card">
+                        <i class="ti ti-transform lib-nav-card__icon"></i>
+                        <div class="lib-nav-card__name">{{ __('labels.tool_script_convertor') }}</div>
+                        <div class="lib-nav-card__desc">{{ __('labels.tool_script_convertor_desc') }}</div>
                     </a>
                     </a>
                 </div>
                 </div>
             </div>
             </div>