Improving feedback messages when importing

pull/17/head
Leonardo Basilio 2016-02-21 12:15:40 -03:00
parent 4c429d0b6b
commit b47d3545e4
4 changed files with 11 additions and 3 deletions

5
main.c
View File

@ -579,11 +579,14 @@ ImportConfigFile()
}
}
else
{
ShowLocalizedMsg(IDS_NFO_IMPORT_SUCCESS);
return;
}
}
ShowLocalizedMsg(IDS_ERR_IMPORT_FAILED);
ShowLocalizedMsg(IDS_ERR_IMPORT_FAILED, destination);
}

View File

@ -246,5 +246,6 @@
#define IDS_ERR_IMPORT_EXISTS 1901
#define IDS_ERR_IMPORT_FAILED 1902
#define IDS_NFO_IMPORT_SUCCESS 1903
#endif

View File

@ -343,5 +343,7 @@ BEGIN
/* importation */
IDS_ERR_IMPORT_EXISTS "A config named ""%s"" already exists."
IDS_ERR_IMPORT_FAILED "Failed to import file."
IDS_ERR_IMPORT_FAILED "Failed to import file. The following path could not be created.\n\n" \
"%s\n\nMake sure you have the right permissions."
IDS_NFO_IMPORT_SUCCESS "File imported successfully."
END

View File

@ -328,5 +328,7 @@ BEGIN
/* importation */
IDS_ERR_IMPORT_EXISTS "Já existe uma configuração com o nome ""%s""."
IDS_ERR_IMPORT_FAILED "Falha ao importar o arquivo."
IDS_ERR_IMPORT_FAILED "Falha ao importar o arquivo. O seguinte caminho não pôde ser criado.\n\n" \
"%s\n\nCertifique-se de que você possui as permissões necessárias."
IDS_NFO_IMPORT_SUCCESS "Arquivo importado com sucesso."
END