This commit is contained in:
Paul Beckingham 2015-05-25 11:35:07 -04:00
parent 3c4b2162e1
commit 86687adb97
4 changed files with 5 additions and 4 deletions

View file

@ -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)

View file

@ -43,7 +43,7 @@
// Translators:
// Add more, as appropriate.
#if PACKAGE_LANGUAGE == LANGUAGE_ENG_USA
#include <eng-USA.h>
#include <l10n/eng-USA.h>
#endif
#define CCOLOR_BOLD 500

View file

@ -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

View file

@ -36,6 +36,7 @@
#include <text.h>
#include <util.h>
#include <i18n.h>
////////////////////////////////////////////////////////////////////////////////
static const std::string getResponse (const std::string& prompt)