Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Russiam translation update with benefits #119

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
684 changes: 258 additions & 426 deletions dist/h5player.js

Large diffs are not rendered by default.

365 changes: 165 additions & 200 deletions src/h5player/index.js

Large diffs are not rendered by default.

36 changes: 19 additions & 17 deletions src/h5player/locale/core-lang/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,35 @@ export default {
issues: 'issues',
setting: 'setting',
tipsMsg: {
playspeed: 'Speed: ',
playSpeed: 'Speed: ',
forward: 'Forward: ',
backward: 'Backward: ',
seconds: 'sec',
volume: 'Volume: ',
nextframe: 'Next frame',
previousframe: 'Previous frame',
stopframe: 'Stopframe: ',
frameNext: 'Next frame',
framePrevious: 'Previous frame',
frameStop: 'Stopframe: ',
play: 'Play',
pause: 'Pause',
arpl: 'Allow auto resume playback progress',
drpl: 'Disable auto resume playback progress',
arpl: 'Auto resume playback position: ON',
drpl: 'Auto resume playback position: OFF',
brightness: 'Brightness: ',
contrast: 'Contrast: ',
saturation: 'Saturation: ',
hue: 'HUE: ',
hue: 'Hue: ',
blur: 'Blur: ',
imgattrreset: 'Attributes: reset',
imgrotate: 'Picture rotation: ',
onplugin: 'ON h5Player plugin',
offplugin: 'OFF h5Player plugin',
globalmode: 'Global mode: ',
playbackrestored: 'Restored the last playback progress for you',
playbackrestoreoff: 'The function of restoring the playback progress is disabled. Press SHIFT+R to turn on the function',
filterReset: 'Image filters: reset',
rotate: 'Picture rotation: ',
pluginOn: 'h5Player plugin: ON',
pluginOff: 'h5Player plugin: OFF',
globalModeOn: 'Global mode: ON',
globalModeOff: 'Global mode: OFF',
playbackRestored: 'The last playback position restored',
playbackRestoreOff: 'Press Shift+R to turn on restoring playback position',
horizontal: 'Horizontal displacement: ',
vertical: 'Vertical displacement: ',
videozoom: 'Video zoom: '
},
demo: 'demo-test'
videoZoom: 'Video zoom: ',
playbackRate: 'Playback rate: ',
framesPerSecond: ' fps'
}
}
3 changes: 2 additions & 1 deletion src/h5player/locale/core-lang/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const messages = {
'zh-TW': zhTW,
'en-US': enUS,
en: enUS,
ru: ru
ru: ru,
'ru-RU': ru,
}

export default messages
39 changes: 21 additions & 18 deletions src/h5player/locale/core-lang/ru.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
export default {
about: 'около',
issues: 'обратная связь',
setting: 'установка',
about: 'О скрипте',
issues: 'Оставить отзыв',
setting: 'Настройки',
tipsMsg: {
playspeed: 'Скорость: ',
playSpeed: 'Скорость: ',
forward: 'Вперёд: ',
backward: 'Назад: ',
seconds: ' сек',
volume: 'Громкость: ',
nextframe: 'Следующий кадр',
previousframe: 'Предыдущий кадр',
stopframe: 'Стоп-кадр: ',
play: 'Запуск',
frameNext: 'Следующий кадр',
framePrevious: 'Предыдущий кадр',
frameStop: 'Стоп-кадр: ',
play: 'Воспроизведение',
pause: 'Пауза',
arpl: 'Разрешить автоматическое возобновление прогресса воспроизведения',
drpl: 'Запретить автоматическое возобновление прогресса воспроизведения',
arpl: 'Запоминать последнее место',
drpl: 'Не запоминать последнее место',
brightness: 'Яркость: ',
contrast: 'Контраст: ',
saturation: 'Насыщенность: ',
hue: 'Оттенок: ',
blur: 'Размытие: ',
imgattrreset: 'Атрибуты: сброс',
imgrotate: 'Поворот изображения: ',
onplugin: 'ВКЛ: плагин воспроизведения',
offplugin: 'ВЫКЛ: плагин воспроизведения',
globalmode: 'Глобальный режим:',
playbackrestored: 'Восстановлен последний прогресс воспроизведения',
playbackrestoreoff: 'Функция восстановления прогресса воспроизведения отключена. Нажмите SHIFT + R, чтобы включить функцию',
filterReset: 'Фильтры сброшены',
rotate: 'Поворот: ',
pluginOn: 'h5Player включен',
pluginOff: 'h5Player выключен',
globalModeOn: 'Глобальный режим включен',
globalModeOff: 'Глобальный режим выключен',
playbackRestored: 'Восстановлено последнее место',
playbackRestoreOff: 'Включить запоминание последнего места: Shift+R',
horizontal: 'Горизонтальное смещение: ',
vertical: 'Вертикальное смещение: ',
videozoom: 'Увеличить видео: '
videoZoom: 'Масштаб: ',
playbackRate: 'Частота видео: ',
framesPerSecond: ' кадров/сек'
}
}
27 changes: 15 additions & 12 deletions src/h5player/locale/core-lang/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ export default {
issues: '反馈',
setting: '设置',
tipsMsg: {
playspeed: '播放速度:',
playSpeed: '播放速度:',
forward: '前进:',
backward: '后退:',
seconds: '秒',
volume: '音量:',
nextframe: '定位:下一帧',
previousframe: '定位:上一帧',
stopframe: '定格帧画面:',
frameNext: '定位:下一帧',
framePrevious: '定位:上一帧',
frameStop: '定格帧画面:',
play: '播放',
pause: '暂停',
arpl: '允许自动恢复播放进度',
Expand All @@ -20,15 +20,18 @@ export default {
saturation: '图像饱和度:',
hue: '图像色相:',
blur: '图像模糊度:',
imgattrreset: '图像属性:复位',
imgrotate: '画面旋转:',
onplugin: '启用h5Player插件',
offplugin: '禁用h5Player插件',
globalmode: '全局模式:',
playbackrestored: '为你恢复上次播放进度',
playbackrestoreoff: '恢复播放进度功能已禁用,按 SHIFT+R 可开启该功能',
filterReset: '图像属性:复位',
rotate: '画面旋转:',
pluginOn: '启用h5Player插件',
pluginOff: '禁用h5Player插件',
globalModeOn: '全局模式: ON',
globalModeOff: '全局模式: OFF',
playbackRestored: '为你恢复上次播放进度',
playbackRestoreOff: '恢复播放进度功能已禁用,按 SHIFT+R 可开启该功能',
horizontal: '水平位移:',
vertical: '垂直位移:',
videozoom: '视频缩放率:'
videoZoom: '视频缩放率:',
playbackRate: '播放速度:',
framesPerSecond: '倍'
}
}
27 changes: 15 additions & 12 deletions src/h5player/locale/core-lang/zh-TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ export default {
issues: '反饋',
setting: '設置',
tipsMsg: {
playspeed: '播放速度:',
playSpeed: '播放速度:',
forward: '向前:',
backward: '向後:',
seconds: '秒',
volume: '音量:',
nextframe: '定位:下一幀',
previousframe: '定位:上一幀',
stopframe: '定格幀畫面:',
frameNext: '定位:下一幀',
framePrevious: '定位:上一幀',
frameStop: '定格幀畫面:',
play: '播放',
pause: '暫停',
arpl: '允許自動恢復播放進度',
Expand All @@ -20,15 +20,18 @@ export default {
saturation: '圖像飽和度:',
hue: '圖像色相:',
blur: '圖像模糊度:',
imgattrreset: '圖像屬性:復位',
imgrotate: '畫面旋轉:',
onplugin: '啟用h5Player插件',
offplugin: '禁用h5Player插件',
globalmode: '全局模式:',
playbackrestored: '為你恢復上次播放進度',
playbackrestoreoff: '恢復播放進度功能已禁用,按 SHIFT+R 可開啟該功能',
filterReset: '圖像屬性:復位',
rotate: '畫面旋轉:',
pluginOn: '啟用h5Player插件',
pluginOff: '禁用h5Player插件',
globalModeOn: '全局模式: ON',
globalModeOff: '全局模式: OFF',
playbackRestored: '為你恢復上次播放進度',
playbackRestoreOff: '恢復播放進度功能已禁用,按 SHIFT+R 可開啟該功能',
horizontal: '水平位移:',
vertical: '垂直位移:',
videozoom: '視頻縮放率:'
videoZoom: '視頻縮放率:',
playbackRate: '播放速度:',
framesPerSecond: '倍'
}
}
6 changes: 3 additions & 3 deletions src/h5player/ui/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ const appStatus = {
defaultSpeed: 1
},
keyMap: {
playspeed: '',
playSpeed: '',
playAndPause: '',
volumeUp: '',
volumeDown: '',
mute: '',
forward: '',
backward: '',
nextframe: '',
previousframe: ''
frameNext: '',
framePrevious: ''
}
}
export default appStatus
2 changes: 0 additions & 2 deletions src/libs/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import hackAttachShadow from './hackAttachShadow'
import hackEventListener from './hackEventListener'
import { getType, isType, isObj, isErr, isArr, isRegExp, isFunction, isUndefined, isNull } from './typeof'
import { clone, forIn, getObjKeys, mergeObj, merge, getValByPath } from './object'
import { quickSort } from './number'
import { hideDom, eachParentNode, getContainer, loadCSSText, isEditableTarget } from './dom'
import { fakeUA, userAgentMap } from './fakeUA'
import { fakeVisible, fakeHidden } from './fakeVisibilityState'
Expand All @@ -29,7 +28,6 @@ export {
mergeObj,
merge,
getValByPath,
quickSort,
hideDom,
loadCSSText,
isEditableTarget,
Expand Down
17 changes: 0 additions & 17 deletions src/libs/utils/number.js

This file was deleted.