Skip to content

Commit

Permalink
added ru, fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
MarZab committed Aug 23, 2015
1 parent 344dea5 commit 5ec2efe
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 4 deletions.
77 changes: 74 additions & 3 deletions src/chrome/content/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ FxKeyboardLocales.en = {
[{
'label': "\uD83C\uDF10",
special: 'toggleLocale',
flex: '1',
flex: 10,
class: 'fxKeyboardActionKeys toggleLocale narrow',
'tooltiptext': 'Toggle locale'
}], // keep open
[{'label': "", flex: '50', char: 32}], // space
[{'label': "", flex: 50, char: 32}], // space
[{
'label': "\uD83D\uDD12",
special: 'keepOpen',
flex: '1',
flex: 10,
class: 'fxKeyboardActionKeys keepOpen narrow',
'tooltiptext': 'Keep open'
}] // keep open
Expand Down Expand Up @@ -234,3 +234,74 @@ FxKeyboardLocales.sl = {
FxKeyboardLocales.en.main[3]
]
};


FxKeyboardLocales.ru = {
name: 'Russian',
locale: 'ru',
defaultFlex: 10,
main: [[
[{
'label': "\u21E5",
special: 'tab',
flex: 10,
class: 'fxKeyboardActionKeys tab',
'tooltiptext': 'Перейти к следующему'
}], // tab
['й', 'Й', '1', {label: 'Tab', string: '\t', flex: 10}],
['ц', 'Ц', '2', ''],
['у', 'У', '3', ''],
['к', 'К', '4', ''],
['е', 'Е', '5', ''],
['н', 'Н', '6', ''],
['г', 'Г', '7', ''],
['ш', 'Ш', '8', ''],
['щ', 'Щ', '9', ''],
['з', 'З', '0', ''],
['х', 'Х', '', ''],
['ъ', 'Ъ', '', ''],
[{'label': "\u232B", special: 8, flex: 10, type: 'repeat', class: 'fxKeyboardActionKeys backspace'}] // backspace
], [
[{'label': "\u2325", flex: 15, special: 'alt', class: 'fxKeyboardActionKeys alt'}], // alt
['ф', 'Ф', '#', '€'],
['ы', 'Ы', '$', '£'],
['в', 'В', '|', '¥'],
['а', 'А', '^', '¤'],
['п', 'П', '&', '~'],
['р', 'Р', '(', '`'],
['о', 'О', ')', ''],
['л', 'Л', '*', '♥'],
['д', 'Д', '%', '✮'],
['ж', 'Ж', '', ''],
['э', 'Э', '', ''],
[{'label': "\u23ce", flex: 15, special: 13, class: 'fxKeyboardActionKeys enter'}] // enter
], [
[{'label': "\u21E7", flex: 20, special: 'shift', class: 'fxKeyboardActionKeys shift'}], // shift / caps
['я', 'Я', '\'', ''],
['ч', 'Ч', '"', ''],
['с', 'С', '/', '['],
['м', 'М', '\\', ']'],
['и', 'И', '<', '{'],
['т', 'Т', '>', '}'],
['ь', 'Ь', '+', ''],
['б', 'Б', '-', ''],
['ю', 'Ю', '×', ''],
['.', '.', '÷', '¡'],
], [
[{
'label': "\uD83C\uDF10",
special: 'toggleLocale',
flex: 10,
class: 'fxKeyboardActionKeys toggleLocale narrow',
'tooltiptext': 'Переключить локаль'
}], // keep open
[{'label': "", flex: 50, char: 32}], // space
[{
'label': "\uD83D\uDD12",
special: 'keepOpen',
flex: 10,
class: 'fxKeyboardActionKeys keepOpen narrow',
'tooltiptext': 'Оставить открытым'
}] // keep open
]]
};
2 changes: 1 addition & 1 deletion src/defaults/preferences/defaults.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pref("extensions.fxkeyboard.repeat_all", true);
pref("extensions.fxkeyboard.keep_closed", false);
pref("extensions.fxkeyboard.locale_default", 'en');
pref("extensions.fxkeyboard.locale_picker", 'en de da sl');
pref("extensions.fxkeyboard.locale_picker", 'en de da sl ru');
pref("extensions.fxkeyboard.key_height", '40');
pref("extensions.fxkeyboard.main_max_width", '1200px');

0 comments on commit 5ec2efe

Please sign in to comment.