Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
[fix] path.exists was moved to fs.exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook authored and ozten committed Dec 14, 2012
1 parent 5ee15a0 commit 3678e01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/check-l10n-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
4 changes: 2 additions & 2 deletions bin/every-locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3678e01

Please sign in to comment.