From 86687adb9718e7663d07c4cdb3aa79a52c81c070 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 25 May 2015 11:35:07 -0400 Subject: [PATCH] FS: L10N --- src/FS.cpp | 2 +- src/i18n.h | 2 +- src/{ => l10n}/eng-USA.h | 4 ++-- src/review.cpp | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) rename src/{ => l10n}/eng-USA.h (98%) diff --git a/src/FS.cpp b/src/FS.cpp index 6782b9d..b7eaab6 100644 --- a/src/FS.cpp +++ b/src/FS.cpp @@ -389,7 +389,7 @@ bool File::open () bool already_exists = exists (); if (already_exists) if (!readable () || !writable ()) - throw std::string (format ("Missing permissions for '{1}'", _data)); + throw std::string (format (STRING_FS_PERMS, _data)); _fh = fopen (_data.c_str (), (already_exists ? "r+" : "w+")); if (_fh) diff --git a/src/i18n.h b/src/i18n.h index 3a44899..4a16636 100644 --- a/src/i18n.h +++ b/src/i18n.h @@ -43,7 +43,7 @@ // Translators: // Add more, as appropriate. #if PACKAGE_LANGUAGE == LANGUAGE_ENG_USA -#include +#include #endif #define CCOLOR_BOLD 500 diff --git a/src/eng-USA.h b/src/l10n/eng-USA.h similarity index 98% rename from src/eng-USA.h rename to src/l10n/eng-USA.h index 5a2ca42..a548db8 100644 --- a/src/eng-USA.h +++ b/src/l10n/eng-USA.h @@ -109,8 +109,8 @@ // Color #define STRING_COLOR_UNRECOGNIZED "The color '{1}' is not recognized." -// File -#define STRING_FILE_PERMS "Tasksh does not have the correct permissions for '{1}'." +// FS +#define STRING_FS_PERMS "Tasksh does not have the correct permissions for '{1}'." #endif diff --git a/src/review.cpp b/src/review.cpp index 79e39a7..67cf9f6 100644 --- a/src/review.cpp +++ b/src/review.cpp @@ -36,6 +36,7 @@ #include #include +#include //////////////////////////////////////////////////////////////////////////////// static const std::string getResponse (const std::string& prompt)