Skip to content

Commit

Permalink
Fixed broken i18n keys
Browse files Browse the repository at this point in the history
refs #9519

- discovered by #9519 (comment)
  • Loading branch information
kirrg001 committed Apr 18, 2018
1 parent ce98d27 commit e43bdad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/server/api/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ themes = {
theme = themeList.get(themeName);

if (!theme) {
return Promise.reject(new common.errors.BadRequestError({message: common.i18n.t('errors.api.themes.invalidRequest')}));
return Promise.reject(new common.errors.BadRequestError({message: common.i18n.t('errors.api.themes.invalidThemeName')}));
}

return localUtils
Expand Down
2 changes: 1 addition & 1 deletion core/server/helpers/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ get = function get(resource, options) {
apiMethod;

if (!options.fn) {
data.error = i18n.t('warnings.helpers.get.mustBeCalledAsBlock', {helperName: 'get'});
data.error = i18n.t('warnings.helpers.mustBeCalledAsBlock', {helperName: 'get'});
logging.warn(data.error);
return Promise.resolve();
}
Expand Down
1 change: 1 addition & 0 deletions core/server/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@
"noPermissionToEditThemes": "You do not have permission to edit themes.",
"themeDoesNotExist": "Theme does not exist.",
"invalidTheme": "Theme is not compatible or contains errors.",
"invalidThemeName": "Please select a valid theme.",
"missingFile": "Please select a theme.",
"invalidFile": "Please select a valid zip file.",
"overrideCasper": "Please rename your zip, it's not allowed to override the default casper theme.",
Expand Down

0 comments on commit e43bdad

Please sign in to comment.