treasurechest/cli/translations/text.cs

63 lines
2.5 KiB
C#
Raw Normal View History

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;
public string MAIN_MENU_KEYRING;
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;
public Strings(){
switch (GetLanguage.language){
case "es":
2020-05-23 09:51:17 +00:00
Spanish.load(this);
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";
MAIN_MENU_ENCRYPT = "Encrypt";
MAIN_MENU_DECRYPT = "Decrypt";
MAIN_MENU_KEYRING = "Manage contacts";
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";
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";
break;
}
}
}
}
}