0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixing up some inconsistent TODO: items.

This commit is contained in:
Hannah Wolfe 2013-06-25 17:58:26 +01:00
parent 1dea187483
commit 1005be472a
2 changed files with 5 additions and 5 deletions

View file

@ -49,7 +49,7 @@ ghost.doFilter('messWithAdmin', adminNavbar, function () {
console.log('the dofilter hook called in /core/admin/controllers/index.js');
});
// TODO - make this a util or helper
// TODO: make this a util or helper
function setSelected(list, name) {
_.each(list, function (item, key) {
item.selected = key === name;

View file

@ -21,9 +21,9 @@ I18n = function (ghost) {
lang = 'en';
}
/** TODO potentially use req.acceptedLanguages rather than the default
* TODO handle loading language file for frontend on frontend request etc
* TODO switch this mess to be promise driven */
/** TODO: potentially use req.acceptedLanguages rather than the default
* TODO: handle loading language file for frontend on frontend request etc
* TODO: switch this mess to be promise driven */
fs.stat(langFilePath, function (error) {
if (error) {
console.log('No language file found for language ' + lang + '. Defaulting to en');
@ -38,7 +38,7 @@ I18n = function (ghost) {
try {
data = JSON.parse(data);
} catch (e) {
throw e; // TODO - do something better with the error here
throw e; // TODO: do something better with the error here
}
ghost.polyglot().extend(data);