Skip to content
Browse files

[fix] path.exists was moved to fs.exists

  • Loading branch information...
1 parent 5ee15a0 commit 3678e010eec273b8bd33c5c381b4a6ce809e3046 @jfhbrook jfhbrook committed with ozten Dec 14, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 bin/check-l10n-config.js
  2. +2 −2 bin/every-locale.js
View
2 bin/check-l10n-config.js
@@ -21,7 +21,7 @@ config.get('supported_languages').forEach(function (lang, i) {
locale, " and back again into language=", i18n.languageFrom(locale));
error = 1;
}
- path.exists(path.join(__dirname, '..', 'locale', locale, 'LC_MESSAGES', 'messages.po'), function (m_exists) {
+ fs.exists(path.join(__dirname, '..', 'locale', locale, 'LC_MESSAGES', 'messages.po'), function (m_exists) {
if (! m_exists) {
console.error("Language ", lang, " doesn't exist. Expected",
path.join(__dirname, '..', 'locale', locale, 'LC_MESSAGES', 'messages.po'));
View
4 bin/every-locale.js
@@ -8,9 +8,9 @@ var allLocales = [],
fs.readdir(localeDir, function (err, files) {
files.forEach(function (file, i) {
- path.exists(path.join(localeDir, file, 'LC_MESSAGES', 'client.po'), function (c_exists) {
+ fs.exists(path.join(localeDir, file, 'LC_MESSAGES', 'client.po'), function (c_exists) {
if (c_exists) {
- path.exists(path.join(localeDir, file, 'LC_MESSAGES', 'messages.po'), function (m_exists) {
+ fs.exists(path.join(localeDir, file, 'LC_MESSAGES', 'messages.po'), function (m_exists) {
if (m_exists) {
allLocales.push(i18n.languageFrom(file));
} else {

0 comments on commit 3678e01

Please sign in to comment.
Something went wrong with that request. Please try again.