diff --git a/HISTORY.md b/HISTORY.md index 5bd9c3bd..06716d20 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -19,11 +19,13 @@ * **Translation Updates:** * German * Catalan, thanks, Joan! + * Russian, thanks, Pavel! ### 2020-12-22 * threads: up to 40x speed-up for "new costume from list" reporter primitive * api: added unsavedChanges() method and documentation * blocks, gui: visual indication of unsaved changes in the IDE's project label +* Russian translation update, thanks, Pavel! ### 2020-12-21 * gui: tweaked backup / restore diff --git a/locale/lang-ru.js b/locale/lang-ru.js index e2b9e350..7bb323b8 100644 --- a/locale/lang-ru.js +++ b/locale/lang-ru.js @@ -185,7 +185,7 @@ SnapTranslator.dict.ru = { 'translator_e-mail': 'svetlanap@berkeley.edu, tema@school830.ru, pbsite@mail.ru', // optional 'last_changed': - '2020-11-02', // this, too, will appear in the Translators tab + '2020-12-22', // this, too, will appear in the Translators tab // GUI // control bar: @@ -623,6 +623,8 @@ SnapTranslator.dict.ru = { '%rel до %dst', 'distance': 'расстояние', + 'ray length': + 'длина луча', '%asp at %loc': 'получить %asp в точке %loc', 'r-g-b-a': @@ -1501,8 +1503,12 @@ SnapTranslator.dict.ru = { // new project 'New Project': 'Новый Проект', + 'Unsaved Changes!': + 'Несохранённые изменения!', 'Replace the current project with a new one?': 'Заменить данный проект на новый?', + 'Backup failed.\nThis cannot be undone, proceed anyway?': + 'Создание резервной копии не удалось.\nЭто не может быть отменено. Продолжить?', // save project 'Save Project As...': diff --git a/snap.html b/snap.html index 66bec251..d06e43cd 100755 --- a/snap.html +++ b/snap.html @@ -21,7 +21,7 @@ - + diff --git a/src/locale.js b/src/locale.js index e09c2eea..6903aa2f 100644 --- a/src/locale.js +++ b/src/locale.js @@ -46,7 +46,7 @@ /*global modules, contains*/ -modules.locale = '2020-December-21'; +modules.locale = '2020-December-22'; // Global stuff @@ -289,7 +289,7 @@ SnapTranslator.dict.ru = { 'translator_e-mail': 'svetlanap@berkeley.edu, tema@school830.ru, pbsite@mail.ru', 'last_changed': - '2020-11-02' + '2020-12-22' }; SnapTranslator.dict.es = { diff --git a/src/objects.js b/src/objects.js index 3c4def3b..620af1ec 100644 --- a/src/objects.js +++ b/src/objects.js @@ -5853,6 +5853,7 @@ SpriteMorph.prototype.moveRotationCenter = function () { SpriteMorph.prototype.setPivot = function (worldCoordinate) { var stage = this.parentThatIsA(StageMorph), + ide = this.parentThatIsA(IDE_Morph), cntr; if (stage) { cntr = stage.center(); @@ -5862,6 +5863,9 @@ SpriteMorph.prototype.setPivot = function (worldCoordinate) { (cntr.y - worldCoordinate.y) / stage.scale ) ); + if (ide) { + ide.recordUnsavedChanges(); + } } };