locales: non generic on/off strings
This commit is contained in:
parent
926ae55fa7
commit
ed29a5c313
3 changed files with 12 additions and 7 deletions
|
|
@ -1,6 +1,8 @@
|
|||
module.exports = {
|
||||
|
||||
// editor
|
||||
editor_on: 'On',
|
||||
editor_off: 'Off',
|
||||
editor_root: 'Root',
|
||||
editor_load: 'Load',
|
||||
editor_save: 'Save',
|
||||
|
|
@ -47,9 +49,11 @@ module.exports = {
|
|||
state_export: 'Export',
|
||||
state_uploaderror: 'Failed to upload state file.',
|
||||
|
||||
// traversing
|
||||
traversing_on: 'On',
|
||||
traversing_off: 'Off',
|
||||
|
||||
// misc
|
||||
on: 'On',
|
||||
off: 'Off',
|
||||
error: 'Error'
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
var locales = {
|
||||
en: require('./en')
|
||||
en: require('./en'),
|
||||
fr: require('./fr')
|
||||
}
|
||||
|
||||
var lang = locales[LANG] ? LANG : 'en'
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ var sidepanelData = [
|
|||
title: icon('magic') + ' ' + locales('sidepanel_traversing'),
|
||||
actions: [
|
||||
{
|
||||
title: locales('on'),
|
||||
title: locales('traversing_on'),
|
||||
action:()=>{
|
||||
DOM.each(document, '.traversingEnable, .traversingDisable', (el)=>{
|
||||
el.classList.toggle('on')
|
||||
|
|
@ -62,7 +62,7 @@ var sidepanelData = [
|
|||
class:'traversingEnable'
|
||||
},
|
||||
{
|
||||
title: locales('off'),
|
||||
title: locales('traversing_off'),
|
||||
action:()=>{
|
||||
DOM.each(document, '.traversingEnable, .traversingDisable', (el)=>{
|
||||
el.classList.toggle('on')
|
||||
|
|
@ -78,12 +78,12 @@ var sidepanelData = [
|
|||
class:'editor-menu',
|
||||
actions: [
|
||||
{
|
||||
title: locales('on'),
|
||||
title: locales('editor_on'),
|
||||
action:editor.enable.bind(editor),
|
||||
class:'enable-editor'
|
||||
},
|
||||
{
|
||||
title: locales('off'),
|
||||
title: locales('editor_off'),
|
||||
action:editor.disable.bind(editor),
|
||||
class:'on disable-editor'
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue