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