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
Scott Erickson
09a9358b9e
Modify courses i18n edit view to be less error-prone
...
* Do not use 'backup' system
* Warn when about to lose changes
* Show list of patches and their statuses
2016-08-23 14:36:45 -07:00
Scott Erickson
d4af931e05
Add course (name, description) translations
2016-08-18 10:10:18 -07:00
Scott Erickson
2e5c15cc6d
Internationalize student UI for game dev levels
2016-08-10 12:47:34 -07:00
Matt Lott
ecb5169ca7
Add hintsB to level schema
2016-06-14 10:29:30 -07:00
Scott Erickson
8f7e4e2278
Add hints to level schema, I18N editor
2016-05-26 14:51:28 -07:00
phoenixeliot
02d833639b
Make LevelComponent names translatable, show spell name translations in doc tooltips
2016-04-26 16:37:06 -07:00
Imperadeiro98
92dc72cce1
Remove name from loadModel
2016-02-18 16:44:40 +00:00
Imperadeiro98
f47640e59a
Cleaned couple files
...
Removed some unused styles, a template, a view and changed the class
name of some views
2016-01-16 12:07:15 +00:00
Nick Winter
155246173a
Only showing general i18n coverage for languages with more than one family.
2015-04-22 13:13:24 -07:00
Nick Winter
0f124bdddc
Fixed i18n editor not allowing translation of level guides.
2015-04-08 09:51:54 -07:00
Nick Winter
f9d9b0985b
Merge pull request #2540 from nixel2007/master
...
Add "Translated Name" to /i18n
2015-03-18 16:21:34 -07:00
Nick Winter
585fa40a8c
Added first draft of campaign info to campaign selector screen.
2015-03-18 16:20:30 -07:00
nixel2007
9b509fa83e
Add "Translated Name" to /i18n
2015-03-19 01:44:23 +03:00
nixel2007
38275dd2a9
Show extendedName and unlockLevelName in i18n-thang editor only if it needs to show
2015-03-17 01:15:13 +03:00
nixel2007
e5c8fc4a1c
More humane view of i18n-editor
...
Change the layout to
Description
en
non-en
2015-03-11 16:45:35 +03:00
Nick Winter
e21360127d
Polls!
2015-03-08 16:36:17 -07:00
Nick Winter
dc56a50b75
Handling empty context objects in i18n edit view.
2015-03-01 09:40:14 -08:00
Nick Winter
c0f738d736
Fixed bug with Campaign i18n not showing fullNames properly.
2015-02-16 09:21:59 -08:00
Scott Erickson
eafecaf492
Addressing #2173 , part 1. It should now be possible to submit changes for non-versioned documents like Campaigns and Achievements.
2015-02-05 11:47:27 -08:00
Scott Erickson
f7403a6b77
Fixing #1866
2015-02-05 10:56:58 -08:00
Nick Winter
57d12c199e
Tweaks to campaign status view. Hooking up i18n for Campaigns, but it doesn't work yet.
2015-01-29 09:07:25 -08:00
Scott Erickson
aeebee891e
Added 'submitting...' text to the i18n translation form button to show when a submission is successful.
2015-01-07 16:15:26 -08:00
Scott Erickson
1446f77a17
Refactored away from having the underscore string library added to the String prototype.
2015-01-04 08:05:46 -08:00
Nick Winter
c54fd5ab4b
Moved editors from PUT to POST so that version saving behavior is preserved and admins can PUT without saving new versions.
2014-12-29 09:14:43 -08:00
Scott Erickson
129e07e231
Refactored a bunch of editor stuff to be included in the wads. Fixed a bug with the I18NEditModelView.
2014-11-29 13:36:48 -08:00
Scott Erickson
31214e854e
Wabam. Refactored a bunch of stuff into 'core' folders so that it's clearer which files are being loaded first thing, and which are not. Also reworked a bunch of the anymatch things in config.coffee, cause there were better ways.
2014-11-28 17:49:41 -08:00
Scott Erickson
b698745e05
Set up the site to load its logic and templates piecemeal rather than in one giant app.js file.
2014-11-28 16:38:56 -08:00
Scott Erickson
790217f227
Tweaked how the I18N editor works to guard against garbage English submissions and make the chosen language more consistent.
2014-11-25 16:22:06 -08:00
Nick Winter
98f1eec10c
Upgraded choose hero view for locked heroes. Went back to animated heroes instead of feature images. Removed some server logs.
2014-11-25 09:28:50 -08:00
Nick Winter
b359c25c97
Fixed multiplexed-by-code-and-spoken-language component documentation i18n.
2014-11-23 10:22:06 -08:00
Scott Erickson
025780a575
Added loadingTip property to levels, set them up on the LevelLoadingView, and got them prepped for i18n-ing.
2014-11-12 15:00:24 -08:00
Nick Winter
851bf39c5c
Using extendedName.
2014-11-05 20:22:15 -08:00
Nick Winter
5ba1f61abe
Added i18n support for level code comments.
2014-10-28 21:15:47 -07:00
Scott Erickson
e5ea4f70e9
Added a progress bar to the i18n home view. Sorting models by completion so documents needing translation go to the top.
2014-10-28 11:28:31 -07:00
Scott Erickson
346f3b33bf
Added context to the i18n editor for components.
2014-10-28 11:21:26 -07:00
Nick Winter
68ac412f2b
I think this return is needed to prevent sending the i18n query results twice and crashing the server.
2014-10-27 22:54:50 -07:00
Scott Erickson
cea04d27ad
Built diplomat-specific views for editing levels, components, achievements and thang types.
2014-10-27 17:16:22 -07:00