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