Code covered by the BSD License  

Highlights from
FinMetrics

  • fm(varargin) This source file is subject to version 3 of the GPL license,
  • AssetThis source file is subject to version 3 of the GPL license,
  • AssetUniverseThis source file is subject to version 3 of the GPL license,
  • AxlThis source file is subject to version 3 of the GPL license,
  • CashPositionThis source file is subject to version 3 of the GPL license,
  • CashTransactionThis source file is subject to version 3 of the GPL license,
  • Config This source file is subject to version 3 of the GPL license,
  • ConsoleMenuThis source file is subject to version 3 of the GPL license,
  • ConsoleMenuItemThis source file is subject to version 3 of the GPL license,
  • CurrencyAssetThis source file is subject to version 3 of the GPL license,
  • ExchangeTradedAssetThis source file is subject to version 3 of the GPL license,
  • FinMetricsThis source file is subject to version 3 of the GPL license,
  • PortfolioThis source file is subject to version 3 of the GPL license,
  • PositionThis source file is subject to version 3 of the GPL license,
  • StatisticsThis source file is subject to version 3 of the GPL license,
  • StockPositionThis source file is subject to version 3 of the GPL license,
  • StockTransactionThis source file is subject to version 3 of the GPL license,
  • TextUIThis source file is subject to version 3 of the GPL license,
  • TextUILocaleThis source file is subject to version 3 of the GPL license,
  • TextUIQuestionThis source file is subject to version 3 of the GPL license,
  • TextUIQuestionnaireThis source file is subject to version 3 of the GPL license,
  • TransactionThis source file is subject to version 3 of the GPL license,
  • View all files

FinMetrics

by

 

Open source/open architecture quantitative portfolio management environment.

TextUILocale
classdef TextUILocale < handle
% This source file is subject to version 3 of the GPL license, 
% that is bundled with this package in the file LICENSE, and is 
% available online at http://www.gnu.org/licenses/gpl.txt
%
% This source file can be linked to GPL-incompatible facilities, 
% produced or made available by MathWorks, Inc.
    
    properties (GetAccess = public, SetAccess = private)
        COREWORD_YES;
        COREWORD_NO;
        COREWORD_HELP;
        COREWORD_CANCEL;
        
        MENU_MAIN_TITLE;
        MENU_MAIN_PROJECT;
        MENU_MAIN_AU;
        MENU_MAIN_PORTFOLIO;        
        
        MENU_PROJECT_TITLE;
        MENU_PROJECT_NEW;
        MENU_PROJECT_AU_NEW;
        MENU_PROJECT_PORTFOLIO_NEW;
        MENU_PROJECT_NEW_SCRIPT_TEMPLATE;
        MENU_PROJECT_OPEN;
        MENU_PROJECT_AU_OPEN;
        MENU_PROJECT_SAVE;
        MENU_PROJECT_AU_SAVE;
        MENU_PROJECT_PORTFOLIO_IMPORT;
        
        Q_NEW_PROJECT_TITLE;
        Q_NEW_PROJECT_NAME;
        Q_NEW_PROJECT_LOCATION;
        Q_NEW_PROJECT_LOCATION_CHG;
        Q_OPEN_PROJECT_TITLE;
        Q_OPEN_PROJECT_FILE;
        
        MENU_AU_TITLE;        
        MENU_AU_ASSET_BROWSE;
        MENU_AU_ASSET_LIST_IMPORT;
        MENU_AU_ASSET_ADD;
        MENU_AU_ASSET_DELETE;
        MENU_AU_ASSET_UPDATE;
        MENU_BA_TITLE;
        
        MENU_AU_NEW_QUEST_TITLE;
        MENU_AU_NEW_QUEST_NAME;
        MENU_AU_NEW_QUEST_LOCATION;
        MENU_AU_NEW_QUEST_LOCATION_CHG;               
        
        Q_AU_OPEN_TITLE;
        Q_AU_OPEN_ASK_FILE;
        
        Q_ASSET_ADD_TITLE;
        Q_ASSET_ADD_TYPE;
        Q_ASSET_ADD_SYMBOL;
        Q_ASSET_ADD_EXCHANGE;
        Q_ASSET_ADD_CLASS;
        Q_ASSET_ADD_CATEGORY;
        Q_ASSET_ADD_CURRENCY;
        
        Q_ASSET_IMPORT_LIST;
        Q_ASSET_IMPORT_LIST_FILEPATH;
        Q_ASSET_IMPORT_LIST_IMPORTED;
        
        Q_NEW_SCRIPT_TEMPLATE_TITLE;
        Q_NEW_SCRIPT_TEMPLATE_FILEPATH;
        Q_NEW_SCRIPT_TEMPLATE_FILEPATH_CHG;
        
        MENU_PORTFOLIO_TITLE;
        MENU_PORTFOLIO_ACTIVE
        MENU_PORTFOLIO_ACTIVE_TITLE;
        MENU_PORTFOLIO_NEW_TRANS;
        MENU_PORTFOLIO_LIST_TRANS;
        MENU_PORTFOLIO_COMM_TRANS;
        MENU_PORTFOLIO_UNCOMM_TRANS;
        MENU_PORTFOLIO_LT_TITLE;
        MENU_PORTFOLIO_CT_TITLE;
        MENU_PORTFOLIO_LP_TITLE;
        MENU_PORTFOLIO_LIST_POS;
        
        MENU_PORTFOLIO_UT_TITLE;
        
        Q_PORTFOLIO_NEW_TRANSACTION;
        Q_PORTFOLIO_NEW_TRANSACTION_UNDERLYING_ASSET_TITLE;
        Q_PORTFOLIO_NEW_TRANSACTION_SELECT_ASSET_DETAILS;
        Q_PORTFOLIO_NEW_TRANSACTION_SELECT_ASSET;
        Q_PORTFOLIO_TR_ACTION;
        Q_PORTFOLIO_TR_QUANTITY;
        Q_PORTFOLIO_TR_ADDED;
        Q_PORTFOLIO_TR_FAILED_ADD;        
        
        Q_PORTFOLIO_NEW_TITLE;
        Q_PORTFOLIO_NEW_NAME;
        Q_PORTFOLIO_NEW_LOCATION;
        Q_PORTFOLIO_NEW_LOCATION_CHG;
        Q_PORTFOLIO_NEW_NAME_CONFL;
        
        Q_PORTFOLIO_CT;
        Q_PORTFOLIO_CT_RANGE;
        Q_PORTFOLIO_CT_STOP;
        Q_PORTFOLIO_CT_ALL;
        Q_PORTFOLIO_CT_SEL;        
        Q_PORTFOLIO_CTRANS;
        Q_PORTFOLIO_CTRANS_TIME;
        Q_PORTFOLIO_CTRANS_PRICE;
        Q_PORTFOLIO_CTRANS_RECOMMIT;                
        
        Q_PORTFOLIO_IMPORT_TITLE;        
        Q_PORTFOLIO_IMPORT_LOCATION;
        Q_PORTFOLIO_IMPORT_LOCATION_CHG;
        Q_PORTFOLIO_IMPORT_NAME_CONFL;
        
        Q_PORTFOLIO_UT;
        Q_PORTFOLIO_UT_RANGE;

        GEN_PRESS_ENTER_CONT;
        ERR_GEN_FILE_NOT_FOUND;
        ERR_PORTFOLIO_CT_FAILED;
        
    end
    
    methods
        function l = TextUILocale(language)
            switch upper(language)
                case 'EN_US'
                    l.COREWORD_YES = 'Yes';
                    l.COREWORD_NO = 'No';
                    l.COREWORD_HELP = 'Help';
                    l.COREWORD_CANCEL = 'Cancel';
                    
                    l.MENU_MAIN_TITLE = 'Main Menu';
                    l.MENU_MAIN_PROJECT = 'Project';
                    l.MENU_MAIN_AU = 'Asset Universe';
                    l.MENU_MAIN_PORTFOLIO = 'Portfolio';
                    
                    l.MENU_PROJECT_TITLE = 'Project';
                    l.MENU_PROJECT_NEW = 'New Project';
                    l.MENU_PROJECT_AU_NEW = 'New Asset Universe';
                    l.MENU_PROJECT_PORTFOLIO_NEW = 'New Portfolio';
                    l.MENU_PROJECT_NEW_SCRIPT_TEMPLATE = 'New Script Template';
                    l.MENU_PROJECT_OPEN = 'Open Project';
                    l.MENU_PROJECT_AU_OPEN = 'Open Asset Universe';
                    l.MENU_PROJECT_SAVE = 'Save Project';
                    l.MENU_PROJECT_AU_SAVE = 'Save Asset Universe';
                    l.MENU_PROJECT_PORTFOLIO_IMPORT = 'Import Portfolio';
                    
                    l.Q_NEW_PROJECT_TITLE = 'Save Project';
                    l.Q_NEW_PROJECT_NAME = 'Project name';
                    l.Q_NEW_PROJECT_LOCATION = 'Please enter path and name of the project file';  
                    l.Q_NEW_PROJECT_LOCATION_CHG = 'Do you want to change project file path or name';
                    l.Q_OPEN_PROJECT_TITLE = 'Open Project';
                    l.Q_OPEN_PROJECT_FILE = 'Please enter path and name of the project file';
                    
                    l.MENU_AU_TITLE = 'Asset Universe';                                                                                
                    l.MENU_AU_ASSET_ADD = 'Add asset to Universe';
                    l.MENU_AU_ASSET_LIST_IMPORT = 'Import asset list from CSV file';
                    l.MENU_AU_ASSET_BROWSE = 'Browse assets in Universe';
                    l.MENU_AU_ASSET_DELETE = 'Delete asset from Universe';
                    l.MENU_AU_ASSET_UPDATE = 'Update asset prices';                                        

                    l.MENU_BA_TITLE = 'Browse assets in Universe';
                                                            
                    l.MENU_AU_NEW_QUEST_LOCATION = 'Please enter path and name of the asset universe file';
                    l.MENU_AU_NEW_QUEST_LOCATION_CHG =  'Do you want to change asset universe file path or name';                    
                    l.MENU_AU_NEW_QUEST_TITLE = 'Create new asset universe';
                    l.MENU_AU_NEW_QUEST_NAME = 'Asset universe name';
                    
                    l.Q_PORTFOLIO_NEW_TITLE = 'New Portfolio';
                    l.Q_PORTFOLIO_NEW_NAME = 'Portfolio name';
                    l.Q_PORTFOLIO_NEW_LOCATION = 'Portfolio location and file name';
                    l.Q_PORTFOLIO_NEW_LOCATION_CHG = 'Do you want to change Portfolio file name or location';
                    
                    l.Q_PORTFOLIO_IMPORT_TITLE = 'Import Portfolio';        
                    l.Q_PORTFOLIO_IMPORT_LOCATION = 'Portfolio location and file name';
                    l.Q_PORTFOLIO_IMPORT_LOCATION_CHG = 'Do you want to change Portfolio file name or location';
                    l.Q_PORTFOLIO_IMPORT_NAME_CONFL = 'Portfolio with specified file name already exists in the project.';
                    
                    l.Q_NEW_SCRIPT_TEMPLATE_TITLE = 'Create new script template file';
                    l.Q_NEW_SCRIPT_TEMPLATE_FILEPATH = 'Please enter file location for a new script template';                       
                    l.Q_NEW_SCRIPT_TEMPLATE_FILEPATH_CHG = 'Do you want to change Script Template file';
                    
                    l.Q_AU_OPEN_TITLE = 'Open an Asset Universe';
                    l.Q_AU_OPEN_ASK_FILE = 'Please enter Asset Universe file location';                    
                    l.Q_ASSET_ADD_TITLE = 'Add new asset to Asset Universe';
                    l.Q_ASSET_ADD_TYPE = 'What asset type do you want to add';
                    l.Q_ASSET_ADD_SYMBOL = 'Please enter asset symbol';
                    l.Q_ASSET_ADD_EXCHANGE = 'Please select exchange where the asset is traded';
                    l.Q_ASSET_ADD_CLASS = 'Please select asset class';
                    l.Q_ASSET_ADD_CATEGORY = 'Please select asset category';
                    l.Q_ASSET_ADD_CURRENCY = 'Please enter currency symbol';
                    
                    l.Q_ASSET_IMPORT_LIST = 'Import asset list from CSV file';
                    l.Q_ASSET_IMPORT_LIST_FILEPATH = 'Please enter file location and name';   
                    l.Q_ASSET_IMPORT_LIST_IMPORTED = 'assets have been imported';
                    
                    l.MENU_PORTFOLIO_TITLE = 'Portfolio';
                    l.MENU_PORTFOLIO_ACTIVE = 'Switch active portfolio';
                    l.MENU_PORTFOLIO_ACTIVE_TITLE = 'Switch active portfolio';
                    
                    l.MENU_PORTFOLIO_NEW_TRANS = 'New transaction';
                    l.MENU_PORTFOLIO_LIST_TRANS = 'List transactions';
                    l.MENU_PORTFOLIO_LIST_POS = 'List positions';
                    l.MENU_PORTFOLIO_COMM_TRANS = 'Commit transactions';
                    l.MENU_PORTFOLIO_UNCOMM_TRANS = 'Uncommit transactions';
                    l.MENU_PORTFOLIO_LT_TITLE = 'Portfolio transactions';
                    l.MENU_PORTFOLIO_CT_TITLE = 'Commit transactions';
                    l.MENU_PORTFOLIO_LP_TITLE = 'List positions';
                    
                    l.MENU_PORTFOLIO_UT_TITLE = 'Uncommit transactions';
                    
                    l.Q_PORTFOLIO_NEW_TRANSACTION = 'New transaction';
                    l.Q_PORTFOLIO_NEW_TRANSACTION_UNDERLYING_ASSET_TITLE = 'Select underlying asset';
                    l.Q_PORTFOLIO_NEW_TRANSACTION_SELECT_ASSET = 'Underlying asset';
                    l.Q_PORTFOLIO_NEW_TRANSACTION_SELECT_ASSET_DETAILS = 'Please enter asset ID number or ''l'' to select underlying asset from the list';
                    l.Q_PORTFOLIO_TR_ACTION = 'Transaction action';
                    l.Q_PORTFOLIO_TR_QUANTITY = 'Quantity';
                    l.Q_PORTFOLIO_TR_ADDED = 'New transaction has been added to the active portfolio.';
                    l.Q_PORTFOLIO_TR_FAILED_ADD = 'Failed to add new transaction to the active portfolio.';
                    
                    l.Q_PORTFOLIO_CT = 'Commit transactions';
                    l.Q_PORTFOLIO_CT_RANGE = 'Commit selected transaction only or all uncomitted prior and including selected';
                    l.Q_PORTFOLIO_CT_STOP = 'Stop if one of commits fails';
                    l.Q_PORTFOLIO_CTRANS_RECOMMIT = 'Recommit transaction';
                    l.Q_PORTFOLIO_CT_ALL = 'All';
                    l.Q_PORTFOLIO_CT_SEL = 'Selected';
                    l.Q_PORTFOLIO_CTRANS = 'Commit details';
                    l.Q_PORTFOLIO_CTRANS_TIME = 'Commit date';
                    l.Q_PORTFOLIO_CTRANS_PRICE = 'Commit price';
                    l.ERR_PORTFOLIO_CT_FAILED = 'Commit failed.';
                                                
                    l.Q_PORTFOLIO_UT = 'Uncommit transactions';
                    l.Q_PORTFOLIO_UT_RANGE = 'Proceed with uncommit';
                            
                    l.Q_PORTFOLIO_NEW_TITLE = 'New Portfolio';
                    l.Q_PORTFOLIO_NEW_NAME = 'Portfolio name';
                    l.Q_PORTFOLIO_NEW_LOCATION = 'Portfolio location and file name';
                    l.Q_PORTFOLIO_NEW_LOCATION_CHG = 'Do you want to change Portfolio file name or location';
                    l.Q_PORTFOLIO_NEW_NAME_CONFL = 'Portfolio with specified file name already exists in the project.';
                    % Generic information messages
                    
                    l.GEN_PRESS_ENTER_CONT = 'Press [ENTER] to continue...';
                    % Generic error messages
                    l.ERR_GEN_FILE_NOT_FOUND = 'File not found';
                case 'RU_RU'
                    l.MENU_MAIN_TITLE = '??????? ????';
            end            
        end
    end
    
end

Contact us