Yuki Takei 8 лет назад
Родитель
Сommit
c6f6c3e322
3 измененных файлов с 9 добавлено и 0 удалено
  1. 1 0
      lib/locales/en-US/translation.json
  2. 1 0
      lib/locales/ja/translation.json
  3. 7 0
      lib/views/modal/shortcuts.html

+ 1 - 0
lib/locales/en-US/translation.json

@@ -200,6 +200,7 @@
           "title": "Editor shortcuts",
           "title": "Editor shortcuts",
           "Indent": "Indent",
           "Indent": "Indent",
           "Outdent": "Outdent",
           "Outdent": "Outdent",
+          "Save Page": "Save Page",
           "Delete Line": "Delete Line"
           "Delete Line": "Delete Line"
       }
       }
   }
   }

+ 1 - 0
lib/locales/ja/translation.json

@@ -197,6 +197,7 @@
     "editor": {
     "editor": {
         "Indent": "インデント",
         "Indent": "インデント",
         "Outdent": "左インデント",
         "Outdent": "左インデント",
+        "Save Page": "保存",
         "Delete Line": "行削除"
         "Delete Line": "行削除"
     }
     }
 }
 }

+ 7 - 0
lib/views/modal/shortcuts.html

@@ -41,6 +41,10 @@
                 <th>{{ t('modal_shortcuts.editor.Outdent') }}:</th>
                 <th>{{ t('modal_shortcuts.editor.Outdent') }}:</th>
                 <td><span class="key key-long">Shift</span> + <span class="key key-longer">Tab</span></td>
                 <td><span class="key key-long">Shift</span> + <span class="key key-longer">Tab</span></td>
               </tr>
               </tr>
+              <tr>
+                <th>{{ t('modal_shortcuts.editor.Save Page') }}:</th>
+                <td><span class="key cmd-key"></span> + <span class="key">S</span></td>
+              </tr>
               <tr>
               <tr>
                 <th>{{ t('modal_shortcuts.editor.Delete Line') }}:</th>
                 <th>{{ t('modal_shortcuts.editor.Delete Line') }}:</th>
                 <td><span class="key cmd-key"></span> + <span class="key">D</span></td>
                 <td><span class="key cmd-key"></span> + <span class="key">D</span></td>
@@ -57,6 +61,9 @@
   </div><!-- /.modal-dialog -->
   </div><!-- /.modal-dialog -->
 
 
   <script>
   <script>
+    /*
+     * add classes to cmd-key by OS
+     */
     var platform = navigator.platform.toLowerCase();
     var platform = navigator.platform.toLowerCase();
     var isMac = (platform.indexOf('mac') > -1);
     var isMac = (platform.indexOf('mac') > -1);