Go to file
Jacob Fugal 2c7a691bf0 teach tz.format to recognize localization keys
refs CNVS-19516

so you can say e.g. tz.format(date, 'time.formats.tiny') and it will
choose the appropriate format string based on the locale.

at the same time, use localized format string (using this new
functionality) for $.dateString (and by extensions, datetimeString)
instead of hard-coded english-style format strings.

finally, refactor out I18nStubber javascript spec helper for testing
this.

test-plan:
 - change you profile locale to french
 - view a time formatted by $.datetimeString in the UI, e.g.
   due dates in a course's assignments page
 - should show with "<day> <month> <year> à <24-hour time>" rather than
   using "<month> <day>, <year>" and/or "<12-hour time with am/pm>"

Change-Id: Ic7779917d7af5e0fe9d4ef3cd99e6f12cf141c3c
Reviewed-on: https://gerrit.instructure.com/51447
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
2015-04-07 17:19:09 +00:00
Gemfile.d initial live events implementation 2015-04-03 15:22:33 +00:00
app don't open tinymce help menu on ALT-0 (numpad) 2015-04-07 16:16:43 +00:00
bin rails 4.0.10 2014-09-16 22:07:39 +00:00
client_apps Alters attempt indicators for a11y 2015-03-05 19:58:35 +00:00
config drop columns in a postdeploy, not a predeploy 2015-04-03 16:00:09 +00:00
db/migrate drop columns in a postdeploy, not a predeploy 2015-04-03 16:00:09 +00:00
doc initial live events implementation 2015-04-03 15:22:33 +00:00
docker-compose initial live events implementation 2015-04-03 15:22:33 +00:00
gems detect text nodes in qti answer extraction 2015-04-06 18:44:50 +00:00
guard Implement PostGrades dialog in ReactJS 2014-11-19 23:55:56 +00:00
lib fix assignment fields copying in assignment_json 2015-04-04 18:34:56 +00:00
public teach tz.format to recognize localization keys 2015-04-07 17:19:09 +00:00
script initial live events implementation 2015-04-03 15:22:33 +00:00
spec teach tz.format to recognize localization keys 2015-04-07 17:19:09 +00:00
.bowerrc introduced bower to manage js dependencies 2013-12-13 17:45:57 +00:00
.dockerignore docker-compose based dev environment 2015-03-30 20:59:48 +00:00
.fontcustom-manifest.json Add Import/Export Icons 2015-02-19 16:26:52 +00:00
.gitignore docker-compose based dev environment 2015-03-30 20:59:48 +00:00
.i18nignore bump rails 3 to github branch for ruby 2.2 compatibility 2015-02-18 22:55:20 +00:00
.jshintrc make jslint settings more sane 2012-08-17 11:04:40 -06:00
.travis.yml more travis builds 2014-02-10 16:23:19 +00:00
CONTRIBUTING.md add a contributing doc for github coolness 2012-09-19 10:16:04 -06:00
COPYRIGHT Initial commit. 2011-01-31 18:57:29 -07:00
Gemfile use eval_gemfile for bundler goodness 2015-02-18 18:15:14 +00:00
Guardfile added jsx 2014-11-03 23:20:33 +00:00
LICENSE Initial commit. 2011-01-31 18:57:29 -07:00
README.md remove travis.ci badge until we are re-enabled 2014-07-01 23:08:00 +00:00
Rakefile remove rails 2 support 2014-08-06 18:16:19 +00:00
bower.json Upgrades react-modal to the latest version in bower 2015-04-01 16:51:11 +00:00
code_of_conduct.md contributor code of conduct 2014-12-23 18:13:59 +00:00
config.ru start adding rails 3.0 support 2013-03-22 19:08:40 +00:00
docker-compose.yml initial live events implementation 2015-04-03 15:22:33 +00:00
karma.conf.js address a number of issues with the js test suite 2015-02-20 16:35:17 +00:00
package.json Make changes for node 12/iojs. 2015-03-05 22:43:38 +00:00

README.md

Canvas LMS

Canvas is a new, open-source LMS by Instructure Inc. It is released under the AGPLv3 license for use by anyone interested in learning more about or using learning management systems.

Please see our main wiki page for more information

Installation

Detailed instructions for installation and configuration of Canvas are provided on our wiki.