mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-07-07 20:06:42 +02:00
FS: L10N
This commit is contained in:
parent
3c4b2162e1
commit
86687adb97
4 changed files with 5 additions and 4 deletions
|
@ -389,7 +389,7 @@ bool File::open ()
|
||||||
bool already_exists = exists ();
|
bool already_exists = exists ();
|
||||||
if (already_exists)
|
if (already_exists)
|
||||||
if (!readable () || !writable ())
|
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+"));
|
_fh = fopen (_data.c_str (), (already_exists ? "r+" : "w+"));
|
||||||
if (_fh)
|
if (_fh)
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
// Translators:
|
// Translators:
|
||||||
// Add more, as appropriate.
|
// Add more, as appropriate.
|
||||||
#if PACKAGE_LANGUAGE == LANGUAGE_ENG_USA
|
#if PACKAGE_LANGUAGE == LANGUAGE_ENG_USA
|
||||||
#include <eng-USA.h>
|
#include <l10n/eng-USA.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CCOLOR_BOLD 500
|
#define CCOLOR_BOLD 500
|
||||||
|
|
|
@ -109,8 +109,8 @@
|
||||||
// Color
|
// Color
|
||||||
#define STRING_COLOR_UNRECOGNIZED "The color '{1}' is not recognized."
|
#define STRING_COLOR_UNRECOGNIZED "The color '{1}' is not recognized."
|
||||||
|
|
||||||
// File
|
// FS
|
||||||
#define STRING_FILE_PERMS "Tasksh does not have the correct permissions for '{1}'."
|
#define STRING_FS_PERMS "Tasksh does not have the correct permissions for '{1}'."
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
|
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
|
#include <i18n.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
static const std::string getResponse (const std::string& prompt)
|
static const std::string getResponse (const std::string& prompt)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue