home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 May / Gamestar_62_2004-05_dvd.iso / Programy / openoffice / f_0221 / Lang_en.xba < prev    next >
Extensible Markup Language  |  2002-11-21  |  7KB  |  158 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
  3. <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Lang_en" script:language="StarBasic">Option Explicit
  4.  
  5. Sub LoadEnglishLanguage()
  6.  
  7.     sProductname = GetProductname
  8.     sOK = "~OK" 
  9.     sCancel = "Cancel"
  10.     sColumnHeader = "Column Header"
  11.     sInsertStockName = "Please enter shares in your portfolio."
  12.     sTitle = "<PRODUCTNAME>: Stocks Manager"
  13.     sTitle = ReplaceString(sTitle, sProductName, "<PRODUCTNAME>")
  14.     sMsgError = "Input Error"
  15.     sMsgNoName = sInsertStockname
  16.     sMsgNoQuantity = "Please enter a quantity larger than 0"
  17.     sMsgNoDividend = "Please enter the dividend per share or the total dividend"
  18.     sMsgNoExchangeRate = "Please enter the correct exchange rate (old shares -> new shares)"
  19.     sMsgNoValidExchangeDate = "Please enter a valid date for the split."
  20.     sMsgWrongExchangeDate = "Splitting not possible, as transactions already exist after the split date."
  21.     sMsgSellTooMuch = "You cannot sell that many shares. Maximum: "
  22.     sMsgConfirm = "Confirmation Required"
  23.     sMsgFreeStock = "Do you intend to enter free shares?"
  24.     sMsgTotalLoss = "Do you intend to enter a total loss?"
  25.     sMsgAuthorization = "Security Query"
  26.     sMsgDeleteAll = "Do you want to delete all movements and reset the portfolio overview?"
  27.     cSplit = "Stock split on "
  28.     sHistory = "History"
  29.     TransactTitle(1) =      "StarOffice Stocks Manager: Selling Shares"
  30.     TransactTitle(2) = "StarOffice Stocks Manager: Buying Shares"
  31.     StockRatesTitle(1) = "StarOffice Stocks Manager: Dividend Payment"
  32.     StockRatesTitle(2) = "Stock Split"
  33.     StockRatesTitle(3) = sHistory
  34.     sDepotCurrency = "Portfolio Currency"    
  35.     sStockName = "Name of Stock"
  36.     TransactMode = LIFO    ' Possible values: "FIFO" and "LIFO"
  37.     DateCellStyle = "Result Date"
  38.     CurrCellStyle = "1"
  39.     sStartDate = "Start date:"
  40.     sEndDate = "End date:"
  41.     sStartUpWelcome = "This template enables you to manage your stock portfolio efficiently."
  42.     sStartUpChooseMarket = "First, select your reference currency and thus the stock exchange for the Internet update."
  43.     sStartUpHint = "Unfortunately, the only <History> function available to you is that for the American market."
  44.     sStartupHint = ReplaceString(sStartUpHint, sHistory, "<History>")
  45.     sNoInternetUpdate = "without Internet update"
  46.     sMarketPlace = "Stock exchange:"
  47.     sNoInternetDataAvailable = "No prices could be received from the Internet!"
  48.     sCheckInternetSettings = "Possible causes could be: <BR>Your Internet settings have to be modified. <BR>The Symbol (e.g. Code, Ticker Symbol) entered for the stock was incorrect."
  49.     sCheckInternetSettings = ReplaceString(sCheckInternetSettings, chr(13), "<BR>")
  50.  
  51.     sMsgEndDatebeforeNow = "The end date has to be before today's date."
  52.     sMsgStartDatebeforeEndDate = "The start date has to be before the end date."
  53.  
  54.     sMarket(0,0) = "American Dollar"
  55.     sMarket(0,1) = "$"
  56.     sMarket(0,2) = "New York"
  57.     sMarket(0,3) = "http://quote.yahoo.com/d/quotes.csv?s=<StockID>&f=sl1d1t1c1ohgv&e=.csv"
  58.     sMarket(0,4) = "http://table.finance.yahoo.com/table.csv?" &_
  59.                     "a=<StartMonth>&b=<StartDay>&c=<Startyear>&d=<EndMonth>&" &_
  60.                     "e=<EndDay>&f=<Endyear>&s=<StockID>&y=0&g=<interval>&ignore=.csv"
  61.     sMarket(0,5) = "Symbol"
  62.     sMarket(0,6) = "en"
  63.     sMarket(0,7) = "US"
  64.     sMarket(0,8) = "409"
  65.     sMarket(0,9) = "44"
  66.     sMarket(0,10) = "1"
  67.     
  68.     sMarket(1,0) = "Euro"
  69.     sMarket(1,1) = chr(8364)
  70.     sMarket(1,2) = "Frankfurt"
  71.     sMarket(1,3) = "http://de.finance.yahoo.com/d/quotes.csv?s=<StockID>.F&f=sl1t1c1ghpv&e=.csv"
  72.     sMarket(1,5) = "Ticker Symbol"
  73.     sMarket(1,6) = "de;nl;pt;el"
  74.     sMarket(1,7) = "DE;NL;PT;GR"
  75.     sMarket(1,8) = "407;413;816;408"
  76.     sMarket(1,9) = "59/9"
  77.     sMarket(1,10) = "1"
  78.  
  79.     sMarket(2,0) = "British Pound"
  80.     sMarket(2,1) = "┬ú"
  81.     sMarket(2,2) = "London"
  82.     sMarket(2,3) = "http://uk.finance.yahoo.com/d/quotes.csv?s=<StockID>.L&m=*&f=sl1t1c1ghov&e=.csv"
  83.     sMarket(2,5) = "Symbol"
  84.     sMarket(2,6) = "en"
  85.     sMarket(2,7) = "GB"
  86.     sMarket(2,8) = "809"
  87.     sMarket(2,9) = "44"
  88.     sMarket(2,10) = "1"
  89.  
  90.     sMarket(3,0) = "Japanese Yen"
  91.     sMarket(3,1) = "┬Ñ"
  92.     sMarket(3,2) = "Tokyo"
  93.     sMarket(3,3) = ""
  94.     sMarket(3,5) = "Code"
  95.     sMarket(3,6) = "ja"
  96.     sMarket(3,7) = "JP"
  97.     sMarket(3,8) = "411"
  98.     sMarket(3,9) = ""
  99.     sMarket(3,10) = ""
  100.     
  101.     sMarket(4,0) = "Hong Kong Dollar"
  102.     sMarket(4,1) = "HK$"
  103.     sMarket(4,2) = "Hong Kong"
  104.     sMarket(4,3) = "http://hk.finance.yahoo.com/d/quotes.csv?s=<StockID>&f=sl1d1t1c1ohgv&e=.csv"
  105.     sMarket(4,5) = "Number"
  106.     sMarket(4,6) = "zh"
  107.     sMarket(4,7) = "HK"    
  108.     sMarket(4,8) = "C04"
  109.     sMarket(4,9) = "44"
  110.     sMarket(4,10) = "1"
  111.  
  112.     sMarket(5,0) = "Australian Dollar"
  113.     sMarket(5,1) = "$"
  114.     sMarket(5,2) = "Sydney"
  115.     sMarket(5,3) = "http://au.finance.yahoo.com/d/quotes.csv?s=<StockID>&f=sl1d1t1c1ohgv&e=.csv"
  116.     sMarket(5,5) = "Symbol"
  117.     sMarket(5,6) = "en"
  118.     sMarket(5,7) = "AU"
  119.     sMarket(5,8) = "C09"
  120.     sMarket(5,9) = "44"
  121.     sMarket(5,10) = "1"
  122.  
  123. ' ****************************End of the default subset*********************************
  124.     CompleteMarketList()
  125.  
  126.     LocalizedCurrencies()
  127.  
  128.     With TransactModel
  129.         .lblStockNames.Label = sStockname
  130.         .lblQuantity.Label = "Quantity"
  131.         .lblRate.Label = "Price"
  132.         .lblDate.Label = "Transaction Date"
  133.         .hlnCommission.Label = "Other expenditures"
  134.         .lblCommission.Label = "Commission"
  135.         .lblMinimum.Label = "Min. Commission"
  136.         .lblFix.Label = "Fixed Costs/Charges"
  137.         .cmdGoOn.Label = sOK
  138.         .cmdCancel.Label = sCancel
  139.     End With
  140.     
  141.     With StockRatesModel
  142.         .optPerShare.Label = "Dividends/Stocks"
  143.         .optTotal.Label = "Total Dividends"
  144.         .lblDividend.Label = "Amount"
  145.         .lblExchangeRate.Label = "Exchange Rate (old->new)"
  146.         .lblColon.Label = ":"
  147.         .lblDate.Label = "Exchange Date:"
  148.         .lblStockNames.Label = sStockname
  149.         .lblStartDate.Label = sStartDate
  150.         .lblEndDate.Label = sEndDate
  151.         .optDaily.Label = "~Daily"
  152.         .optWeekly.Label = "~Weekly"
  153.         .hlnInterval.Label = "Time period"
  154.         .cmdGoOn.Label = sOk
  155.         .cmdCancel.Label = sCancel
  156.     End With
  157. End Sub
  158. </script:module>