2020-05-21 09:05:32 +00:00
|
|
|
using System.Globalization;
|
|
|
|
using treasurechest;
|
|
|
|
namespace treasurechestCLI {
|
|
|
|
namespace translations {
|
|
|
|
|
|
|
|
internal class GetLanguage{
|
|
|
|
internal static string language = CultureInfo.CurrentCulture.TwoLetterISOLanguageName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public class Strings{
|
|
|
|
public string WELCOME;
|
|
|
|
public string HELP_TEXT;
|
|
|
|
public string EXIT;
|
|
|
|
public string MAIN_MENU_ENCRYPT;
|
|
|
|
public string MAIN_MENU_DECRYPT;
|
2020-05-28 22:14:45 +00:00
|
|
|
public string MAIN_MENU_KEYRING;
|
2020-05-21 09:05:32 +00:00
|
|
|
public string INVALID_OPTION;
|
|
|
|
public string MAIN_MENU_SELECT_INTEGER;
|
2020-05-23 09:51:17 +00:00
|
|
|
public string RETURN_TO_PREVIOUS_MENU;
|
|
|
|
public string ENCRYPT_MENU_ENCRYPT_MESSAGE;
|
|
|
|
public string ENCRYPT_MENU_ENCRYPT_FILE;
|
|
|
|
public string ENCRYPT_MENU_USE_PASSPHRASE;
|
|
|
|
public string ENCRYPT_MENU_USE_PUBKEY;
|
|
|
|
public string ENTER_MESSAGE_UNTIL_DONE;
|
2020-05-24 08:40:51 +00:00
|
|
|
public string PASSPHRASE;
|
2020-06-02 07:57:58 +00:00
|
|
|
public string ADD_IDENTITY;
|
|
|
|
public string CREATE_IDENTITY;
|
2020-05-21 09:05:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
public Strings(){
|
|
|
|
|
|
|
|
switch (GetLanguage.language){
|
|
|
|
case "es":
|
2020-05-23 09:51:17 +00:00
|
|
|
Spanish.load(this);
|
2020-05-21 09:05:32 +00:00
|
|
|
break;
|
|
|
|
case "en":
|
|
|
|
default:
|
|
|
|
WELCOME = treasurechest.Version.NAME + " - Protect your treasured information";
|
|
|
|
HELP_TEXT = "Run with help for more options";
|
2020-05-23 09:51:17 +00:00
|
|
|
EXIT = "Exit application";
|
2020-05-21 09:05:32 +00:00
|
|
|
MAIN_MENU_ENCRYPT = "Encrypt";
|
|
|
|
MAIN_MENU_DECRYPT = "Decrypt";
|
2020-05-28 22:14:45 +00:00
|
|
|
MAIN_MENU_KEYRING = "Manage contacts";
|
2020-05-21 09:05:32 +00:00
|
|
|
INVALID_OPTION = "Invalid option";
|
|
|
|
MAIN_MENU_SELECT_INTEGER = "Enter an integer from the menu";
|
2020-05-23 09:51:17 +00:00
|
|
|
RETURN_TO_PREVIOUS_MENU = "Previous menu";
|
|
|
|
ENCRYPT_MENU_ENCRYPT_MESSAGE = "Encrypt text";
|
|
|
|
ENCRYPT_MENU_ENCRYPT_FILE = "Encrypt file";
|
2020-05-28 22:14:45 +00:00
|
|
|
ENCRYPT_MENU_USE_PASSPHRASE = "Use mnemonic";
|
2020-05-23 09:51:17 +00:00
|
|
|
ENCRYPT_MENU_USE_PUBKEY = "Use public key";
|
|
|
|
ENTER_MESSAGE_UNTIL_DONE = "Enter your message and finish with -q on a new line.";
|
2020-05-24 08:40:51 +00:00
|
|
|
PASSPHRASE = "Passphrase";
|
2020-06-02 07:57:58 +00:00
|
|
|
ADD_IDENTITY = "Add identity";
|
|
|
|
CREATE_IDENTITY = "Create new identity";
|
2020-05-21 09:05:32 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|