ELECTRON-899: add japanese & french localisation for the dev tools menu item

This commit is contained in:
Vishwas Shashidhar 2018-12-04 12:30:53 -08:00
parent 252456536c
commit 3dedefbae8
8 changed files with 13 additions and 1 deletions

View File

@ -61,6 +61,7 @@
<p>Change language:<p>
<button id='set-locale-en-US'>Change language to English - US</button>
<button id='set-locale-ja-JP'>Change language to Japanese</button>
<button id='set-locale-fr-FR'>Change language to French</button>
<br>
<hr>
<p>Badge Count:<p>
@ -277,6 +278,11 @@
ssf.setLocale('ja-JP');
document.location.reload();
});
var setLocaleToFr = document.getElementById('set-locale-fr-FR');
setLocaleToFr.addEventListener('click', function () {
ssf.setLocale('fr-FR');
document.location.reload();
});
</script>
</html>

View File

@ -192,7 +192,7 @@ function getTemplate(app) {
}
},
{
label: 'Toggle Developer Tools',
label: i18n.getMessageFor('Toggle Developer Tools'),
accelerator: isMac ? 'Alt+Command+I' : 'Ctrl+Shift+I',
click(item, focusedWindow) {
let devToolsEnabled = readConfigFromFile('devToolsEnabled');

View File

@ -121,6 +121,7 @@
"Show All": "Show All",
"Show crash dump in Explorer": "Show crash dump in Explorer",
"Show crash dump in Finder": "Show crash dump in Finder",
"Toggle Developer Tools": "Toggle Developer Tools",
"More Information": "More Information",
"Show Logs in Explorer": "Show Logs in Explorer",
"Show Logs in Finder": "Show Logs in Finder",

View File

@ -119,6 +119,7 @@
"Show All": "Show All",
"Show crash dump in Explorer": "Show crash dump in Explorer",
"Show crash dump in Finder": "Show crash dump in Finder",
"Toggle Developer Tools": "Toggle Developer Tools",
"More Information": "More Information",
"Show Logs in Explorer": "Show Logs in Explorer",
"Show Logs in Finder": "Show Logs in Finder",

View File

@ -119,6 +119,7 @@
"Show All":"Tout afficher",
"Show crash dump in Explorer":"Afficher rapport de crash dans Explorateur",
"Show crash dump in Finder":"Afficher rapport de crash dans Finder",
"Toggle Developer Tools": "Basculer, les outils de développement",
"More Information": "Plus d'information",
"Show Logs in Explorer":"Afficher journal d'évenements dans Explorateur",
"Show Logs in Finder":"Afficher journal d'évenements dans Finder",

View File

@ -119,6 +119,7 @@
"Show All":"Tout afficher",
"Show crash dump in Explorer":"Afficher rapport de crash dans Explorateur",
"Show crash dump in Finder":"Afficher rapport de crash dans Finder",
"Toggle Developer Tools": "Basculer, les outils de développement",
"More Information": "Plus d'information",
"Show Logs in Explorer":"Afficher journal d'évenements dans Explorateur",
"Show Logs in Finder":"Afficher journal d'évenements dans Finder",

View File

@ -121,6 +121,7 @@
"Show All": "すべてを表示",
"Show crash dump in Explorer": "Explorerにクラッシュダンプを表示",
"Show crash dump in Finder": "ファインダーにクラッシュダンプを表示",
"Toggle Developer Tools": "開発者ツールの切り替え",
"More Information": "詳しくは",
"Show Logs in Explorer": "Explorerにログを表示",
"Show Logs in Finder": "ファインダーにログを表示",

View File

@ -119,6 +119,7 @@
"Show All": "すべてを表示",
"Show crash dump in Explorer": "Explorerにクラッシュダンプを表示",
"Show crash dump in Finder": "ファインダーにクラッシュダンプを表示",
"Toggle Developer Tools": "開発者ツールの切り替え",
"More Information": "詳しくは",
"Show Logs in Explorer": "Explorerにログを表示",
"Show Logs in Finder": "ファインダーにログを表示",