mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 06:37:20 +02:00
L10N
- Localized Hooks.cpp
This commit is contained in:
parent
fa36931064
commit
e200b2a502
3 changed files with 17 additions and 10 deletions
|
@ -385,13 +385,8 @@ void Context::createDefaultConfig ()
|
|||
// Do we need to create a default rc?
|
||||
if (! rc_file.exists ())
|
||||
{
|
||||
if (!confirm ("A configuration file could not be found in " // TODO i18n
|
||||
+ home_dir
|
||||
+ "\n\n"
|
||||
+ "Would you like a sample "
|
||||
+ rc_file.data
|
||||
+ " created, so taskwarrior can proceed?"))
|
||||
throw std::string ("Cannot proceed without rc file.");
|
||||
if (!confirm (format (STRING_CONTEXT_CREATE_RC, home_dir, rc_file.data)))
|
||||
throw std::string (STRING_CONTEXT_NEED_RC);
|
||||
|
||||
config.createDefaultRC (rc_file, data_dir);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue