mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
Swapped to American English spellings
- Traditionally all of Ghost's public-facing text was written in British English - We're changing that to US English because that's more common - US English should also be used in code e.g. properties are called color not colour - most of these changes are in comments, but I've changed them so that we have US English in front of us always - fixed a few other typos I noticed whilst there
This commit is contained in:
parent
0f6ea35d7e
commit
16728a3ef1
@ -20,7 +20,7 @@ class Bridge {
|
||||
constructor() {
|
||||
/**
|
||||
* When locale changes, we reload theme translations
|
||||
* @deprecated: the term "lang" was deprecated in favour of "locale" publicly in 4.0
|
||||
* @deprecated: the term "lang" was deprecated in favor of "locale" publicly in 4.0
|
||||
*/
|
||||
events.on('settings.lang.edited', (model) => {
|
||||
this.getActiveTheme().initI18n({locale: model.get('value')});
|
||||
|
@ -116,7 +116,7 @@ module.exports = function ghost_head(options) { // eslint-disable-line camelcase
|
||||
* - getMetaData(dataRoot, dataRoot) -> yes that looks confusing!
|
||||
* - there is a very mixed usage of `data.context` vs. `root.context` vs `root._locals.context` vs. `this.context`
|
||||
* - NOTE: getMetaData won't live here anymore soon, see https://github.com/TryGhost/Ghost/issues/8995
|
||||
* - therefor we get rid of using `getMetaData(this, dataRoot)`
|
||||
* - therefore we get rid of using `getMetaData(this, dataRoot)`
|
||||
* - dataRoot has access to *ALL* locals, see function description
|
||||
* - it should not break anything
|
||||
*/
|
||||
|
@ -203,7 +203,7 @@ SchedulingDefault.prototype._deleteJob = function (object) {
|
||||
* - accuracy
|
||||
* - setTimeout is limited to 24,3 days
|
||||
*
|
||||
* The execution of "setTimeout" is never guaranteed, therefor we've optimised the execution by using "setImmediate".
|
||||
* The execution of "setTimeout" is never guaranteed, therefore we've optimized the execution by using "setImmediate".
|
||||
* The executor will put each job to sleep using `setTimeout` with a threshold of 70ms. And "setImmediate" is then
|
||||
* used to detect the correct moment to trigger the URL.
|
||||
|
||||
|
@ -78,7 +78,7 @@ User = ghostBookshelf.Model.extend({
|
||||
* @TODO:
|
||||
*
|
||||
* The user model does not use bookshelf-relations yet.
|
||||
* Therefor we have to remove the relations manually.
|
||||
* Therefore we have to remove the relations manually.
|
||||
*/
|
||||
onDestroying(model, options) {
|
||||
ghostBookshelf.Model.prototype.onDestroying.apply(this, arguments);
|
||||
|
@ -25,7 +25,7 @@ module.exports = function normalize(req, res, next) {
|
||||
.then(() => {
|
||||
req.files = [];
|
||||
|
||||
// CASE: push the processed/optimised image
|
||||
// CASE: push the processed/optimized image
|
||||
req.files.push(Object.assign(req.file, {path: out}));
|
||||
|
||||
// CASE: push original image, we keep a copy of it
|
||||
|
@ -4,7 +4,7 @@
|
||||
// URLs get formatted correctly.
|
||||
// Slashes ensures that we get trailing slashes
|
||||
// Uncapitalise changes case to lowercase
|
||||
// @TODO optimise this to reduce the number of redirects required to get to a pretty URL
|
||||
// @TODO optimize this to reduce the number of redirects required to get to a pretty URL
|
||||
// @TODO move this to being used by routers?
|
||||
const slashes = require('connect-slashes');
|
||||
const config = require('../../../../shared/config');
|
||||
|
@ -5,7 +5,7 @@ const testUtils = require('../../../utils');
|
||||
const models = require('../../../../core/server/models');
|
||||
const validation = require('../../../../core/server/data/validation');
|
||||
|
||||
// Validate our customisations
|
||||
// Validate our customizations
|
||||
describe('Validation', function () {
|
||||
before(function () {
|
||||
models.init();
|
||||
|
@ -36,7 +36,7 @@ let existingData = {};
|
||||
/**
|
||||
* Because we use ObjectID we don't know the ID of fixtures ahead of time
|
||||
* This function fetches all of our fixtures and exposes them so that tests can use them
|
||||
* @TODO: Optimise this by making it optional / selective
|
||||
* @TODO: Optimize this by making it optional / selective
|
||||
*/
|
||||
const exposeFixtures = async () => {
|
||||
const fixturePromises = {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{{!< default}}
|
||||
|
||||
{{!-- This is a page template. A page outputs content just like any other post, and has all the same
|
||||
attributes by default, but you can also customise it to behave differently if you prefer. --}}
|
||||
attributes by default, but you can also customize it to behave differently if you prefer. --}}
|
||||
|
||||
{{!-- Everything inside the #post tags pulls data from the page --}}
|
||||
{{#post}}
|
||||
|
Loading…
Reference in New Issue
Block a user