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 ();
|
||||
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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include <text.h>
|
||||
#include <util.h>
|
||||
#include <i18n.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
static const std::string getResponse (const std::string& prompt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue