Просмотр исходного кода

change translasion.json keys to snake_case

kaoritokashiki 6 лет назад
Родитель
Сommit
fc95f89952

+ 6 - 6
resource/locales/en-US/translation.json

@@ -111,12 +111,12 @@
   "Specified users only": "Specified users only",
   "Just me": "Just me",
   "Only inside the group": "Only inside the group",
-  "Page list and search results": "Page list ・ Search results",
-  "Scope of page disclosure": "Scope of page disclosure",
-  "Set point": "Set point",
-  "Always displayed": "Always displayed",
-  "Always hidden": "Always hidden",
-  "Displayed or hidden": "Displayed / Hidden",
+  "page_list_and_search_results": "Page list ・ Search results",
+  "scope_of_page_disclosure": "Scope of page disclosure",
+  "set_point": "Set point",
+  "always_displayed": "Always displayed",
+  "always_hidden": "Always hidden",
+  "displayed_or_hidden": "Displayed / Hidden",
   "Reselect the group": "Reselect the group",
   "Shareable link": "Shareable link",
   "The whitelist of registration permission E-mail address": "The whitelist of registration permission E-mail address",

+ 6 - 6
resource/locales/ja/translation.json

@@ -110,12 +110,12 @@
   "Specified users": "特定ユーザーのみ",
   "Just me": "自分のみ",
   "Only inside the group": "特定グループのみ",
-  "Page list and search results": "ページリスト・検索結果",
-  "Scope of page disclosure": "ページの公開範囲",
-  "Set point": "設定値",
-  "Always displayed": "表示 (固定)",
-  "Always hidden": "非表示 (固定)",
-  "Displayed or hidden": "表示 / 非表示",
+  "page_list_and_search_results": "ページリスト・検索結果",
+  "scope_of_page_disclosure": "ページの公開範囲",
+  "set_point": "設定値",
+  "always_displayed": "表示 (固定)",
+  "always_hidden": "非表示 (固定)",
+  "displayed_or_hidden": "表示 / 非表示",
   "Reselect the group": "グループの再選択",
   "Shareable link": "このページの共有用URL",
   "The whitelist of registration permission E-mail address": "登録許可メールアドレスの<br>ホワイトリスト",

+ 7 - 7
src/client/js/components/Admin/Security/SecuritySetting.jsx

@@ -59,23 +59,23 @@ class SecuritySetting extends React.Component {
           )}
 
         <h4 className="mt-4">
-          { t('Page list and search results') }
+          { t('page_list_and_search_results') }
         </h4>
         <table className="table col-lg-9">
           <thead>
             <tr>
-              <th scope="col">{ t('Scope of page disclosure') }</th>
-              <th scope="col">{ t('Set point') }</th>
+              <th scope="col">{ t('scope_of_page_disclosure') }</th>
+              <th scope="col">{ t('set_point') }</th>
             </tr>
           </thead>
           <tbody>
             <tr>
               <th scope="row">{ t('Public') }</th>
-              <td>{ t('Always displayed') }</td>
+              <td>{ t('always_displayed') }</td>
             </tr>
             <tr>
               <th scope="row">{ t('Anyone with the link') }</th>
-              <td>{ t('Always hidden') }</td>
+              <td>{ t('always_hidden') }</td>
             </tr>
             <tr>
               <th scope="row">{ t('Just me') }</th>
@@ -89,7 +89,7 @@ class SecuritySetting extends React.Component {
                     onChange={() => { adminGeneralSecurityContainer.switchIsShowRestrictedByOwner() }}
                   />
                   <label className="custom-control-label" htmlFor="isShowRestrictedByOwner">
-                    {t('Displayed or hidden')}
+                    {t('displayed_or_hidden')}
                   </label>
                 </div>
               </td>
@@ -106,7 +106,7 @@ class SecuritySetting extends React.Component {
                     onChange={() => { adminGeneralSecurityContainer.switchIsShowRestrictedByGroup() }}
                   />
                   <label className="custom-control-label" htmlFor="isShowRestrictedByGroup">
-                    {t('Displayed or hidden')}
+                    {t('displayed_or_hidden')}
                   </label>
                 </div>
               </td>