codecombat/app/views/i18n
Scott Erickson 7bab895dee Generalize new I18N view system
Previously, when diplomats submit translations, the system
would try to figure out whether it should be a 'patch' or a 'change',
and then would either create a patch for an admin or artisan to
review and accept or reject, or would apply the changes immediately
and they would be live. This was done as a compromise between
getting translations live quickly, but also preventing already-translated
text from getting overwritten without oversight.

But having the client handle this added logical complexity. So
this makes all diplomats submit patches, no matter what. The server
is then in charge of deciding if it should auto-accept the patch or not.
Either way, a patch is created.

There was also much refactoring. This commit includes:

* Update jsondiffpatch so changes within array items are handled correctly
* Refactor posting patches to use the new auto-accepting logic, and out of Patch model
* Refactor POST /db/patch/:handle/status so that it doesn't rely on handlers
* Refactor patch stat handling to ensure auto-accepted patches are counted
* Refactor User.incrementStat to use mongodb update commands, to avoid race conditions
* Refactor Patch tests
2016-09-09 10:59:26 -07:00
..
I18NEditAchievementView.coffee
I18NEditCampaignView.coffee
I18NEditComponentView.coffee Make LevelComponent names translatable, show spell name translations in doc tooltips 2016-04-26 16:37:06 -07:00
I18NEditCourseView.coffee Generalize new I18N view system 2016-09-09 10:59:26 -07:00
I18NEditLevelView.coffee Internationalize student UI for game dev levels 2016-08-10 12:47:34 -07:00
I18NEditModelView.coffee Generalize new I18N view system 2016-09-09 10:59:26 -07:00
I18NEditPollView.coffee
I18NEditThangTypeView.coffee Cleaned couple files 2016-01-16 12:07:15 +00:00
I18NHomeView.coffee Add course (name, description) translations 2016-08-18 10:10:18 -07:00