| 1 | # Hamburg Stock Exchange setups. | ||
| 2 | |||
| 3 | # Copyright 2008, 2009, 2010 Kevin Ryde | ||
| 4 | |||
| 5 | # This file is part of Chart. | ||
| 6 | # | ||
| 7 | # Chart is free software; you can redistribute it and/or modify it under the | ||
| 8 | # terms of the GNU General Public License as published by the Free Software | ||
| 9 | # Foundation; either version 3, or (at your option) any later version. | ||
| 10 | # | ||
| 11 | # Chart is distributed in the hope that it will be useful, but WITHOUT ANY | ||
| 12 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | ||
| 14 | # details. | ||
| 15 | # | ||
| 16 | # You should have received a copy of the GNU General Public License along | ||
| 17 | # with Chart. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | package App::Chart::Suffix::HM; | ||
| 20 | |||
| 21 | use strict; | ||
| 22 | use warnings; | ||
| 23 | use Locale::TextDomain 'App-Chart'; | ||
| 24 | |||
| 25 | use App::Chart::Glib::Ex::MoreUtils; | ||
| 26 | use App::Chart; | ||
| 27 | use App::Chart::Sympred; | ||
| 28 | use App::Chart::TZ; | ||
| 29 | use App::Chart::Weblink; | ||
| 30 | use App::Chart::Yahoo; | ||
| 31 | |||
| 32 | my $timezone_hamburg = App::Chart::TZ->new | ||
| 33 | (name => __('Hamburg'), | ||
| 34 | # no Hamburg separately in Olson database | ||
| 35 | choose => [ 'Europe/Hamburg', 'Europe/Berlin' ], | ||
| 36 | fallback => 'CET-1'); | ||
| 37 | |||
| 38 | my $pred = App::Chart::Sympred::Suffix->new ('.HM'); | ||
| 39 | $timezone_hamburg->setup_for_symbol ($pred); | ||
| 40 | |||
| 41 | |||
| 42 | #------------------------------------------------------------------------------ | ||
| 43 | # weblink - only the home page for now ... | ||
| 44 | |||
| 45 | App::Chart::Weblink->new | ||
| 46 | (pred => $pred, | ||
| 47 | name => __('_Hamburg Stock Exchange Home Page'), | ||
| 48 | desc => __('Open web browser at the Hamburg Stock Exchange home page'), | ||
| 49 | url => App::Chart::Glib::Ex::MoreUtils::lang_select | ||
| 50 | (de => 'http://www.hamburger-boerse.de/HHBoerse_deutsch/index.jsp', | ||
| 51 | en => 'http://www.hamburger-boerse.de/HHBoerse_englisch/index.jsp')); | ||
| 52 | |||
| 53 | |||
| 54 | 1; | ||
| 55 | __END__ |