From 1b7478fc46282a90d629f3bbd7ac859d724f802e Mon Sep 17 00:00:00 2001 From: Richard Cissee Date: Sun, 28 Jun 2020 10:45:26 +0200 Subject: [PATCH] Release 2.0.6.1.0 --- Gov4WebtreesModule.php | 117 ++++-- Gov4WebtreesModuleTrait.php | 26 +- README.md | 3 +- WhatsNew/{WhatsNew0.php => WhatsNew1.php} | 4 +- latest-version.txt | 2 +- resources/css/minimal.css | 7 + resources/css/webtrees.css | 5 + resources/lang/cs.mo | Bin 0 -> 12010 bytes resources/lang/cs.po | 485 ++++++++++++++++++++++ resources/views/icons/place.phtml | 5 + 10 files changed, 604 insertions(+), 50 deletions(-) rename WhatsNew/{WhatsNew0.php => WhatsNew1.php} (55%) create mode 100644 resources/lang/cs.mo create mode 100644 resources/lang/cs.po create mode 100644 resources/views/icons/place.phtml diff --git a/Gov4WebtreesModule.php b/Gov4WebtreesModule.php index 30087ac..983a1ba 100644 --- a/Gov4WebtreesModule.php +++ b/Gov4WebtreesModule.php @@ -7,6 +7,7 @@ use Cissee\Webtrees\Module\Gov4Webtrees\FunctionsGov; use Cissee\WebtreesExt\AbstractModule; use Cissee\WebtreesExt\FactPlaceAdditions; +use Cissee\WebtreesExt\MoreI18N; use Cissee\WebtreesExt\Requests; use DateTime; use Fisharebest\ExtCalendar\GregorianCalendar; @@ -87,7 +88,7 @@ protected function onBoot(): void { //migrate (we need the module name here to store the setting) $this->updateSchema('\Cissee\Webtrees\Module\Gov4Webtrees\Schema', 'SCHEMA_VERSION', 2); - $this->flashWhatsNew('\Cissee\Webtrees\Module\Gov4Webtrees\WhatsNew', 1); + $this->flashWhatsNew('\Cissee\Webtrees\Module\Gov4Webtrees\WhatsNew', 2); } public function flashGovServerUnavailable() { @@ -424,7 +425,7 @@ public function gov2html(GovReference $govReference, Tree $tree): ?GenericViewEl $locale = I18N::locale(); $compactDisplay = boolval($this->getPreference('COMPACT_DISPLAY', '1')); - $withInternalLinks = boolval($this->getPreference('DISPLAY_INTERNAL_LINKS', '1')); + $withInternalLinks = intval($this->getPreference('DISPLAY_INTERNAL_LINKS', '1')); $allowSettlements = boolval($this->getPreference('ALLOW_SETTLEMENTS', '1')); $fallbackPreferDeu = boolval($this->getPreference('FALLBACK_LANGUAGE_PREFER_DEU', '1')); @@ -558,7 +559,7 @@ public function factPlaceAdditions(PlaceStructure $place): ?FactPlaceAdditions { $locale = I18N::locale(); $compactDisplay = boolval($this->getPreference('COMPACT_DISPLAY', '1')); - $withInternalLinks = boolval($this->getPreference('DISPLAY_INTERNAL_LINKS', '1')); + $withInternalLinks = intval($this->getPreference('DISPLAY_INTERNAL_LINKS', '1')); $showCurrentDateGov = intval($this->getPreference('SHOW_CURRENT_DATE', '0')); $allowSettlements = boolval($this->getPreference('ALLOW_SETTLEMENTS', '1')); $useMedianDate = boolval($this->getPreference('USE_MEDIAN_DATE', '0')); @@ -595,10 +596,24 @@ public function factPlaceAdditions(PlaceStructure $place): ?FactPlaceAdditions { return new FactPlaceAdditions(GenericViewElement::createEmpty(), $gve, GenericViewElement::createEmpty()); } + + protected function plac2linkIcon(PlaceStructure $ps): string { + return $this->linkIcon( + $this->name() . '::icons/place', + MoreI18N::xlate('Place'), + $ps->getPlace()->url()); + } + + public function linkIcon($view, $title, $url) { + return '' . + view($view) . + '' . $title . '' . + ''; + } protected function getHierarchy( bool $compactDisplay, - bool $withInternalLinks, + int $withInternalLinks, bool $allowSettlements, string $locale, string $julianDay, @@ -632,47 +647,67 @@ protected function getHierarchy( if ($hierarchy !== '') { $hierarchy .= ', '; } - - if ($withInternalLinks) { - - //Issue #13: is this a known webtrees place? - //(note: there may be more than one - we restrict to first found) - $ps = FunctionsPlaceUtils::gov2plac($this, $govReference, $tree); - if ($ps !== null) { - + + switch ($withInternalLinks) { + case 0: //classic + $hierarchy .= ''; + $hierarchy .= $data['label']; + $hierarchy .= ''; + break; + case 1: //classic plus place/shared place icons + case 2: //names and main links to place, plus gov icons $pre = ''; - //link to location? note: for now not indirectly = only if location defines the GOV! - $loc = $ps->getLoc(); - if ($loc !== null) { - $locLink = FunctionsPlaceUtils::loc2linkIcon($this, new LocReference($loc, $tree, new Trace(''))); - if ($locLink !== null) { - $pre = $locLink; + + //Issue #13: is this a known webtrees place? + //(note: there may be more than one - we restrict to first found) + $ps = FunctionsPlaceUtils::gov2plac($this, $govReference, $tree); + if ($ps !== null) { + + //link to location? note: for now not indirectly = only if location defines the GOV! + $loc = $ps->getLoc(); + if ($loc !== null) { + $locLink = FunctionsPlaceUtils::loc2linkIcon($this, new LocReference($loc, $tree, new Trace(''))); + if ($locLink !== null) { + $pre = $locLink; + } } - } + } - $hierarchy .= ''; - $hierarchy .= ''; - $hierarchy .= ' '; //meh (Narrow no-break space), should do this with css instead - $hierarchy .= ''; - $hierarchy .= $pre; - $hierarchy .= '' . $ps->getPlace()->placeName() . ''; - - } else { - $hierarchy .= ''; - $hierarchy .= ''; - $hierarchy .= ' '; //meh (Narrow no-break space), should do this with css instead - $hierarchy .= ''; - $hierarchy .= '' . $data['label'] . ''; - } - - } else { - $hierarchy .= ''; - $hierarchy .= $data['label']; - $hierarchy .= ''; + switch ($withInternalLinks) { + case 1: //classic plus place/shared place icons + if (($ps !== null) && ($pre === '')) { + $pre = $this->plac2LinkIcon($ps); + } + $hierarchy .= $pre; + $hierarchy .= ''; + $hierarchy .= $data['label']; + $hierarchy .= ''; + break; + case 2: //names and main links to place, plus gov icons + if ($ps !== null) { + $hierarchy .= ''; + $hierarchy .= ''; + $hierarchy .= ' '; //meh (Narrow no-break space), should do this with css instead + $hierarchy .= ''; + $hierarchy .= $pre; + $hierarchy .= '' . $ps->getPlace()->placeName() . ''; + + } else { + $hierarchy .= ''; + $hierarchy .= ''; + $hierarchy .= ' '; //meh (Narrow no-break space), should do this with css instead + $hierarchy .= ''; + $hierarchy .= '' . $data['label'] . ''; + } + break; + default: + break; + } + break; + default: + break; } - - - + if (!$compactDisplay) { if ($hierarchy2 !== '') { $hierarchy2 .= ', '; diff --git a/Gov4WebtreesModuleTrait.php b/Gov4WebtreesModuleTrait.php index 075ee49..deba3b3 100644 --- a/Gov4WebtreesModuleTrait.php +++ b/Gov4WebtreesModuleTrait.php @@ -129,11 +129,6 @@ protected function createPrefs() { null, 'COMPACT_DISPLAY', '1'), - new ControlPanelCheckbox( - /* I18N: Module Configuration */I18N::translate('Use place names and link to places existing in webtrees'), - /* I18N: Module Configuration */I18N::translate('If this is checked, the displayed GOV hierarchy uses place names from the GEDCOM data, if possible.'), - 'DISPLAY_INTERNAL_LINKS', - '1'), new ControlPanelCheckbox( /* I18N: Module Configuration */I18N::translate('Allow objects of type \'settlement\' in hierarchy'), /* I18N: Module Configuration */I18N::translate('According to the current GOV specification, settlements are not supposed to be parents of other settlements.') . @@ -148,6 +143,27 @@ protected function createPrefs() { '0'))); $factsAndEventsSub[] = new ControlPanelSubsection( + /* I18N: Module Configuration */I18N::translate('Place text and links'), + array(new ControlPanelRadioButtons( + false, + array( + new ControlPanelRadioButton( + /* I18N: Module Configuration */I18N::translate('Use place names and links from GOV'), + /* I18N: Module Configuration */I18N::translate('\'Classic\' mode.'), + '0'), + new ControlPanelRadioButton( + /* I18N: Module Configuration */I18N::translate('Use place names and links from GOV, additionally link to places existing in webtrees via icons'), + /* I18N: Module Configuration */I18N::translate('\'Classic\' mode, extended to link to places from the GEDCOM data, if possible.'), + '1'), + new ControlPanelRadioButton( + /* I18N: Module Configuration */I18N::translate('Use place names and link to places existing in webtrees, additionally link to GOV via icons'), + /* I18N: Module Configuration */I18N::translate('If this is checked, the displayed GOV hierarchy uses place names from the GEDCOM data, if possible.'), + '2')), + null, + 'DISPLAY_INTERNAL_LINKS', + '1'))); + + $generalSub[] = new ControlPanelSubsection( /* I18N: Module Configuration */I18N::translate('Internals (adjusted automatically if necessary)'), array(/* new ControlPanelCheckbox( I18N::translate('Use fast ajax requests'), diff --git a/README.md b/README.md index aa06929..813fac8 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Access a demo of the module [here](https://cissee.de/gov4webtrees2Demo). Feel fr ### Download -* Current version: 2.0.6.0.4 +* Current version: 2.0.6.1.0 * Based on and tested with webtrees 2.0.6. Cannot be used with webtrees 1.x. May not work with earlier 2.x versions! * Requires the ⚶ Vesta Common module ('vesta_common'). * Displays data via the ⚶ Vesta Facts and events module ('vesta_personal_facts'). @@ -70,6 +70,7 @@ If you use GEDCOM data with _GOV tags for GOV ids (either directly or via the Sh * Nutzt Daten des [Geschichtlichen Orts-Verzeichnisses GOV](http://gov.genealogy.net) des [Vereins für Computergenealogie e. V.](http://compgen.de), basierend auf einer [Creative Commons-Lizenz](http://wiki-de.genealogy.net/GOV/Webservice#Lizenz). * Dutch translations provided by TheDutchJewel. * Slovak translations provided by Ladislav Rosival. +* Czech translations provided by Josef Prause. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/WhatsNew/WhatsNew0.php b/WhatsNew/WhatsNew1.php similarity index 55% rename from WhatsNew/WhatsNew0.php rename to WhatsNew/WhatsNew1.php index de2dcde..8424cb2 100644 --- a/WhatsNew/WhatsNew0.php +++ b/WhatsNew/WhatsNew1.php @@ -5,9 +5,9 @@ use Cissee\WebtreesExt\WhatsNew\WhatsNewInterface; use Fisharebest\Webtrees\I18N; -class WhatsNew0 implements WhatsNewInterface { +class WhatsNew1 implements WhatsNewInterface { public function getMessage(): string { - return I18N::translate("Vesta Gov4Webtrees: The displayed GOV hierarchy now uses place names and links from webtrees where possible. You can switch back to the traditional display via the module configuration."); + return I18N::translate("Vesta Gov4Webtrees: The displayed GOV hierarchy now additionally links to webtrees places where possible. You can switch back to the classic display (and others) via the module configuration."); } } diff --git a/latest-version.txt b/latest-version.txt index 32cd9cf..000ff3f 100644 --- a/latest-version.txt +++ b/latest-version.txt @@ -1 +1 @@ -2.0.6.0.4 \ No newline at end of file +2.0.6.1.0 \ No newline at end of file diff --git a/resources/css/minimal.css b/resources/css/minimal.css index ede85ee..9073147 100644 --- a/resources/css/minimal.css +++ b/resources/css/minimal.css @@ -4,3 +4,10 @@ background-repeat: no-repeat; background-size: cover; } + +.wt-icon-shared-place { + display: inline-block; + vertical-align: middle; + background-repeat: no-repeat; + background-size: cover; +} diff --git a/resources/css/webtrees.css b/resources/css/webtrees.css index 3de7e1b..42fcb2e 100644 --- a/resources/css/webtrees.css +++ b/resources/css/webtrees.css @@ -3,3 +3,8 @@ content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wYBCB8OTwkjaAAAApFJREFUKM99kktsTHEUxn/nf29NTWfKtE2ox4xnGI9UhJAgYiGSkjQkEqFIxMKikYhHikhuV54LiYUEC4kgQoiNhbDwWtCmknpMi3jXa6o1VLVz7/8ei6pUg293kvM7Oef7jjBAmhEkrWjGCKhIWkPNiAEKgTwgkla/r9/8A45CuAxIacZxgdXAA2A3sLk/4w6E/YduCQXBXgyFQZd54g62mzFswSdBiIfK0j9WNsYjFtvRO0RBn3D22dWSzgPb52/VV1xrujysuaa68tSNU6mT2sL+Pk7EG3j9+bFnDk0/p6/xF89b5w8v2/bNPjJ64fCUAOo6jnqz24tjO99B3UHH8RK9jIcr4omqqRoSbzxdluiKdmYj3KxPEi0MYoEVfuRdp2bNvaHHz8/ka2cE0G3WslLEW6/q3XCBNHBpzMgvjE+20/i4nDDs9TYMDakROWJRn/HJdgojlvqmcvzASalyVMRbYYAagHhRD/GiPO25weivo0IVpk74xJWbE2nriHLn0gl2bbrVF15alVkGKAAIrCEIDMWxHuS3wcrdplEgcOd+knzOoXbjbeZUvAEcANcAx0D5kI3zPhtn9vRW9NcKRpQwFD53RGl5XsrHzzEQmDbxE+C8EKHBiEgj6NqXrSX2fqac+LAe5s54SxgK37sGca9pFInibuZUvAWF7h6Xpy9Ls1CwSdV72C/GI5NWVa68mKuPdN86k9RIZI9u3bDEJobU2uWLV9nKhdVqH4vmGiJX4VVJX4ziOHVYGwJ1vc/UQjUu3umLFUX7j8+7mxrxhQWzXrvLFrVMnjIu28xkqkSwZYla2jr2/fYLbS4A9UXSqH3klJlSuxxhKkqATx64LqO53v/t/yrNCP+TZpw/6p8QEBG1wZlcQAAAAABJRU5ErkJggg==); } +.wt-icon-place { + /* plac.png embedded via https://onlineimagetools.com/convert-image-to-data-uri */ + content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wgZCSkm2P+xwQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAADBUlEQVQ4y82TyWucdRjHv7/t3eadfRIzydigQy0VG0QsCq2CBE+Kh6JCL0IRL0FaaMFKQXvwUkqr4sFiPcdE1KJI0aZWQaHRaNrESRPbdyaZyUxmppNttszSd/l5SOv2F/g5PZfvh4dnIfgLCYAAkPTts+tJv1h9MRbMjnQ7FVlvlj68vVq/sJKbtcbHLsp3Tr2Lt948CtxN/AOpjH66cSERmx0ullPazM095WZ9OtB1wohGMoyLyGWfZx84cfKEfS/xt0B4ZipFpmYyzq4fJ5ZLpjIv1jYsXVUkhB72QAda8d7ZuCKMedKHJ44ffL0JAPS98W3ZqfNkJJlY353+7Uq7sOLr/Pr7/qXF4qGUpq2ofiMdjASvxTh3wBU8rNT1EQAYv3juXgeSpBYq7czc1+r0TAr5laIE0wjozqaihrxIpBzoOE9WQaJ2OLwWCIW33COvHvQBBBQAvvrGO07b19Vb6Tyyy2vo3BEERINpZM3N6t4CIY4b8FnB/r5LkVLpkUY6s5edPD32BoBtwaMPWcM3rWUsF8qo1hqglIISAg86emOTifTiIYuzKjHjz7EOe1CvlAc2II1nAYADwOjYbCER30C5vApK6d2lEkAKqFrZP9A/kUhbr2Wb1Ex0m6C20+XpW4EcADAAuPL9A3M3rMZh06jalEsmhArOBYTgYFwlmm4r/YmrwamppyuNllZvuYVY17Fezsx9UWXbQ7y66ZHB3bqqJkOhlkKZCqFwuK7PVhRKDIPgp8lX1rbahqOqWzpc69J3n73w8dnh98EG9x1DLT+JaBQLmZxx4P4BVdMUyrki0Gr7bcOU9PxHj992WEQ2ahmj213QC9YHnzc2M79MLH3rslp+Esld+5BbnF4Nhb0brme8FIuqCmUCfr/kggNNPObu6MuF1zcXjWrlk/FS9vIogPy/LjEx2I9CrgjKEHlq/zNnenp7nhea2fNHdqed3NGqXZ+r/1xc+vJcu577AUCbEAopvf/8AgPgbpdDQ0P3UT0Zr3fCMjt/reLZMyX8L/kTDRpJZHMVLaEAAAAASUVORK5CYII=); +} + diff --git a/resources/lang/cs.mo b/resources/lang/cs.mo new file mode 100644 index 0000000000000000000000000000000000000000..2e36934859fbd87bc4df41e4425b53e91377f0df GIT binary patch literal 12010 zcmb`NZH!#!RmY#UNt!xMQ(7pb(Dn&Qyt8z7vTLV_yN>f}JFy+V5ZmjPCdw1vV z+_`tSFJsSuqEaDLB3aN>AVmhM6{>`(T!WA(jpR@=I|xC)@bU$y`hkjkLGTSBAw}YM z&U5db+4Tk$#459Y&&<8gJBPjNIA9m~ZLAma? z!By~k;4$!ij6VnVz%KX}_))O=5n~R4PlLY%ehKuzcR*R^WiFC+ejR)gd>a(M&i%Ms z?-2OYynhXp^}Ypu415dZKl2a#dIJ1+a6j1O<{{VuFN5C)EqI=r9t8*BQSe(JCYb*K zUj^^{Nqho+4HUcn7!26Z-cVG=OBsTSHLsiUxFLp zy%=*E{1p(Fo4*HNpaC@Kx{;@C1vConHpO3H~i8@p}a_ zH^Hxg4e%{+75rCF)_Z!dF+UIf8u)qepFoM*qjN5IkAq+5{cnM1!ADqR5quRq4*n^4 z0({@RF@(~b20sU`gSgOq7bJA%2cYomKS5k>KKgTR|4ZP*ypO?O27eD6f)C;hTwuNq zJ_G(aDE8jI;Ou)Iyu$mJLGkaufnwL){5l051n&S}1@8gB3gRlW3BCwUK=JRVaL!%e zE1<;ZRq!+54e&PbU%>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tk=G*~J*tJKh1WudHAfh96j7V$ zCN^|AuW&p6a(Xf1PiCUm@)wP`aO_^NU4Q5*p*}W?iU}3-rc~vmE21k^p%-S8Z;1Dh zC2`p`J=J+K%B_b(IBZqDAwm(_#)gs(IaA6ZaiczDgT8Y6jDpM)F8WWlal~VHaC2F zNqQS;52h?^h{||_FrTNfpKNy3<Nd%wZKR?O4%-1B+@80v2t)kG!@hl4{vONeA zNnvC8#()7_KcOF>sUb`~_Bnaoqpz5!S{C#JT8*3)G+CP6()x|yaj)yG%yuqLJ;c`1 zYOHh8D4f4VNVhE$)7dZ)*K*{sG3x(-(%grWEstlyCGr)~oqA7mL)e3`(C=#z zbCp~8D;)>B+PX5{%xPpBq#JhOW0;(E_`?quaqM)tb-fqz)lIpa299%aHR2~(Pu{YF zT|Tn^{H51yZ*oKGuW&-^beF`^j-oNZp}Fh__ffs+jP=MdxiN1p4(Kdhv#d==Al=`! z1zf%s(5?A#Ae(V;kE9h`GQqUrXIgeUnqVoK;xfjZM{Hx2jgLQnIai zuKX){UBtv9?czj_DG4&M2-{sc?Yz0s#N~24aHU=P%~EHsOa;!WlO;|E}n5bK0 zcS0d;RK4@OXKBd}h1wMQ5CQ!++~hpWLx z(i%3BCj&iM*LMq9>*_b-p6StCyR}v@vWYYuB7>x5Ic*J_MyIVMAv8;9<|F<`imI;> zGlpfKUk(C@UVYlv23F53@Tab1TUR$Go6=*MN)EBY{7CxhE~>S<)E`d=u)6t8S7kP& QL6A7e0o(Ze&s65W0gj&u;Q#;t literal 0 HcmV?d00001 diff --git a/resources/lang/cs.po b/resources/lang/cs.po new file mode 100644 index 0000000..c020296 --- /dev/null +++ b/resources/lang/cs.po @@ -0,0 +1,485 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the vesta package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: vesta 1.0\n" +"Report-Msgid-Bugs-To: ric@richard-cissee.de\n" +"POT-Creation-Date: 2020-06-07 17:28+0200\n" +"PO-Revision-Date: 2020-06-23 17:40+0200\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.3.1\n" +"Last-Translator: Josef Prause \n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n" +"Language: cs\n" + +#: EditGovMappingController.php:52 +#, php-format +msgid "Set GOV id for %1$s" +msgstr "Nastavit GOV id pro %1$s" + +#: EditGovMappingController.php:54 +#, php-format +msgid "Reset GOV id for %1$s" +msgstr "Obnovit GOV id pro %1$s" + +#: EditGovMappingController.php:81 +#, php-format +msgid "GOV id for %1$s has been removed." +msgstr "GOV id pro %1$s byl odstraněn." + +#: EditGovMappingController.php:92 +#: resources/views/script/select2-initializer-gov.phtml:15 +msgid "" +"Invalid GOV id! Valid GOV ids are e.g. 'EITTZE_W3091', 'object_1086218'." +msgstr "" +"Neplatný GOV id! Platné GOV idy jsou např. 'EITTZE_W3091', 'object_1086218'." + +#: EditGovMappingController.php:103 +#, php-format +msgid "GOV id for %1$s has been set to %2$s." +msgstr "GOV id pro %1$s je nastaven na %2$s." + +#: Gov4WebtreesModule.php:99 +#: resources/views/script/select2-initializer-gov.phtml:19 +msgid "The GOV server seems to be temporarily unavailable." +msgstr "GOV server je pravděpodobně dočasně nedostupný." + +#: Gov4WebtreesModule.php:262 +#, php-format +msgid "GOV place hierarchy for %1$s will be reloaded from server." +msgstr "GOV hierarchie míst pro %1$s bude ze serveru znova stažena." + +#: Gov4WebtreesModule.php:333 +msgid "reload the GOV place hierarchy" +msgstr "znovu stáhnout GOV hierarchii míst" + +#: Gov4WebtreesModule.php:349 +msgid "Set GOV id (outside GEDCOM)" +msgstr "Nastavit GOV id (vne GEDCOMu)" + +#: Gov4WebtreesModule.php:351 +msgid "Reset GOV id (outside GEDCOM) and reload the GOV place hierarchy" +msgstr "" +"Znovu nastavit GOV id (vně GEDCOMu) a znovu stáhnout GOV hierarchii míst" + +#: Gov4WebtreesModule.php:452 Gov4WebtreesModule.php:600 +msgid "today" +msgstr "dnes" + +#: Gov4WebtreesModule.php:727 +msgid "Administrative levels" +msgstr "Administrativní úrovně" + +#. I18N: Module Configuration +#: Gov4WebtreesModule.php:785 +msgid "Gov4Webtrees Module Location Data Providers" +msgstr "Gov4Webtrees Module Location Data Providers" + +#. I18N: Module Configuration +#: Gov4WebtreesModule.php:789 +msgid "" +"Modules listed here are used (in the configured order) to determine GOV Ids " +"of places." +msgstr "" +"Moduly v tomto seznamu slouží (v uspořádaném pořadí) k určení GOV idů míst." + +#: Gov4WebtreesModuleTrait.php:17 +msgid "Vesta Gov4Webtrees" +msgstr "Vesta Gov4Webtrees" + +#: Gov4WebtreesModuleTrait.php:22 +msgid "A module integrating GOV (historic gazetteer) data." +msgstr "Modul začleňující údaje GOV (historický zeměpisný slovník)." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:27 +msgid "" +"A module integrating GOV (historic gazetteer) data. Enhances places with GOV " +"data via the extended 'Facts and events' tab." +msgstr "" +"Modul začleňující údaje GOV (historický zeměpisný slovník). Vylepšuje místa " +"o údaje GOV přes záložku Fakta a události." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:28 +msgid "" +"Place hierarchies are displayed historically, i.e. according to the date of " +"the respective event." +msgstr "" +"Hierarchie míst se zobrazují historicky, t.j. podle data příslušné události." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:29 +msgid "" +"All data (except for the mapping of places to GOV ids, which has to be done " +"manually) is retrieved from the GOV server and cached internally." +msgstr "" +"Všechny údaje (vyjma údajů pro mapování míst na GOV idy, což se musí udělat " +"ručně) se berou ze serveru GOV a interně se ukládají." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:30 +msgid "" +"Consequently, place hierarchy information can only be changed indirectly, " +"via the GOV website." +msgstr "" +"Tudíž informace o hierarchii místa lze měnit pouze nepřímo, přes web GOV." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:31 +msgid "" +"GOV ids are stored outside GEDCOM data by default, but ids stored via _GOV " +"tags are also supported." +msgstr "" +"GOV idy se normálně ukládají mimo údaje GEDCOM, ale je možno je ukládat i " +"přes tagy _GOV." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:32 +msgid "" +"In particular, the Shared Places custom module may be used to manage GOV ids " +"within GEDCOM data." +msgstr "" +"Zejména pro manipulaci s GOV idy uvnitř údajů GEDCOM se dá použít modul " +"Shared Places (Sílená místa)." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:33 +#, php-format +msgid "" +"Requires the '%1$s Vesta Common' module, and the '%1$s Vesta Facts and " +"events' module." +msgstr "" +"Vyžaduje modul '%1$s Vesta Common' a modul '%1$s Vesta Facts and events'." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:34 +msgid "Provides location data to other custom modules." +msgstr "Poskytuje údaje o poloze ostatním modulům." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:51 +msgid "Local GOV data" +msgstr "Lokální údaje GOV" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:53 +msgid "reset all cached data once" +msgstr "znovu nastavit všechna cachovaná data jednorázově" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:54 +msgid "Subsequently, all data is retrieved again from the GOV server. " +msgstr "Následně se všechny údaje znovu odeberou ze serveru GOV. " + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:55 +msgid "Usually only required in case of substantial changes of the GOV data. " +msgstr "Obvykle požadováno jen v případě podstatných změn údajů GOV. " + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:56 +msgid "Mappings of places to GOV ids are not affected." +msgstr "Nedotkne se mapování míst na GOV idy." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:61 +msgid "Fallback language" +msgstr "Záložní jazyk" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:63 +msgid "fallback to German place names" +msgstr "zůstat u německých názvů míst" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:64 +msgid "" +"Determines strategy in case the place name is not available in the current " +"language (for the given date): " +msgstr "" +"Určuje strategii pro případ, že název místa není dostupný v současném jazyce " +"(pro dané datum): " + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:65 +msgid "If checked, attempt to fall back to the German place name. " +msgstr "Je-li zvoleno, pokusí se zůstat u německého názvu místa. " + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:66 +msgid "If unchecked, prefer any language other than German; " +msgstr "Není-li zvoleno, preferuje se libovolný jiný jazyk než němčina. " + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:67 +msgid "" +"motivated by the assumption that place names in the local language are more " +"useful in general " +msgstr "" +"motivováno předpokladem, že názvy míst v místním jazyce jsou obecně " +"užitečnější. " + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:68 +msgid "" +"(Why is German in particular singled out like this? Because the GOV " +"gazetteer is currently rather German-language centric, and therefore many " +"places have German names)." +msgstr "" +"(Proč se němčina takto vyzdvihuje? Protože zeměpisný slovník GOV je " +"soustředěn právě kolem němčiny a proto mnohá místa mají německé názvy.)" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:74 +msgid "Where to edit and store GOV ids" +msgstr "Kde editovat a ukládat GOV idy" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:77 +msgid "Within GEDCOM data (via other custom modules). " +msgstr "Uvnitř údajů GEDCOM (skrze jiné moduly). " + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:78 +msgid "" +"Particularly useful in order to manage GOV ids via the Shared Places module. " +"Ids are stored and exportable via GEDCOM tags. " +msgstr "" +"Zvláště užitečné, má-li se zacházet s GOV idy skrze modul Sdílená místa " +"(Shared Places). Idy se ukládají a dají se exportovat skrze tagy GEDCOM. " + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:79 +msgid "" +"If this option is checked, you usually want to disable the following option. " +msgstr "" +"Je-li zvolena tato možnost, obvykle se chce potlačit následující možnost. " + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:83 +msgid "Outside GEDCOM data" +msgstr "Mimo údaje GEDCOM" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:84 +msgid "" +"In this case, the GOV ids are stored in a separate database table, which has " +"to be managed manually when moving the respective tree to a different " +"webtrees installation. " +msgstr "" +"V tomto případě jsou GOV idy uloženy v samostatné databázové tabulce, se " +"kterou se musí zacházet manuálně, když se příslušný rodokmen přemisťuje do " +"jiné instalace webtrees. " + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:85 +msgid "" +"When this option is disabled, an alternative edit control is provided, which " +"still allows to reload place hierarchies from the GOV server." +msgstr "" +"Když je tato volba odmítnuta, je po ruce alternativní řízení editace, které " +"stále dovoluje stáhnout hierarchie míst ze serveru GOV." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:89 +msgid "Outside GEDCOM data - editable by anyone (including visitors)" +msgstr "Mimo údaje GEDCOM ‒ může editovat kdokoliv (včetně návštěvníků)" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:90 +msgid "" +"This option mainly exists for demo servers and is not recommended otherwise. " +"It has precedence over the preceding option." +msgstr "" +"Tato možnost existuje hlavně pro předváděcí servery a jinak se nedoporučuje. " +"Má přednost před předcházející volbou." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:96 +msgid "Show GOV hierarchy for" +msgstr "Zobrazit hierarchii GOV pro" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:102 +msgid "date of event" +msgstr "datum události" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:106 +msgid "present time" +msgstr "současnost" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:110 +msgid "both" +msgstr "obojí" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:113 +msgid "" +"for events without a date, present time hierarchy will be used regardless of " +"this preference." +msgstr "" +"pro nedatované události se použije hierarchie v současnosti bez ohledu na " +"preferenci." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:117 +msgid "Show additional info" +msgstr "Zobrazit přidané informace" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:118 +msgid "" +"Display a tooltip indicating the source of the GOV id. This is intended " +"mainly for debugging." +msgstr "" +"Zobrazit tooltip naznačující pramen GOV idu. Hlavně pro účely debuggingu." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:123 +msgid "Displayed data" +msgstr "Zobrazené údaje" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:128 +msgid "Compact display (administrative levels only as tooltips)" +msgstr "Kompaktní zobrazení (administrační údaje jen jako tooltip)" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:133 +msgid "Use place names and link to places existing in webtrees" +msgstr "Použít jména míst a spojení na místa existující ve webtrees" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:134 +msgid "" +"If this is checked, the displayed GOV hierarchy uses place names from the " +"GEDCOM data, if possible." +msgstr "" +"Je-li toto zvoleno, zobrazená hierarchie GOV bere jména míst pokud možno z " +"údajů GEDCOM." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:138 +msgid "Allow objects of type 'settlement' in hierarchy" +msgstr "V hierarchii připustit objekty typu 'sídliště' (settlement)" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:139 +msgid "" +"According to the current GOV specification, settlements are not supposed to " +"be parents of other settlements." +msgstr "" +"Podle současné specifikace GOV sídliště nemohou být rodiči jiných sídlišť." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:140 +msgid "" +"This policy hasn't been strictly followed though. Check this option if you " +"end up with incomplete hierarchies otherwise." +msgstr "" +"Tato taktika se však nedodržuje přísně. Zvolte tuto možnost, pokud byste " +"jinak skončili u neúplných hierarchií." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:141 +msgid "" +"Note: Ultimately it's probably preferable to correct the respective GOV data " +"itself." +msgstr "" +"Poznámka: nakonec dostane pravděpodobně přednost opravit údaje GOV samotné." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:145 +msgid "For events with a date range, use the median date" +msgstr "Pro události s rozsahem data použít středové datum" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:146 +msgid "" +"Otherwise, the start date is used (this is more consistent with other date-" +"based calculations in webtrees)." +msgstr "" +"Jinak se použije datum počátku (to se více shoduje s ostatními výpočty ve " +"webtrees)." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:151 +msgid "Internals (adjusted automatically if necessary)" +msgstr "Vnitřnosti (je-li nutno, přizpůsobené automaticky)" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:158 +msgid "Use NuSOAP instead of SoapClient" +msgstr "Místo SoapClient použít NuSOAP" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:159 +msgid "" +"Execute requests to the GOV server via NuSOAP, rather than using the native " +"php SoapClient. The native SoapClient is usually enabled (you can check this " +"in your php.ini settings), but may not be provided by all hosters. If the " +"native client is not enabled/available, this option is checked automatically." +msgstr "" +"Požadavky směrem k serveru GOV provádět skrze NuSOAP, nikoliv s použitím " +"vrozeného php SoapClient. Vrozený SoapClient je obvykle aktivován (lze " +"ověřit nahlédnutím do nastavení php.ini), ale nemusí jej poskytovat všichni " +"hostitelé. Jestliže vrozený klient není aktivován ani dostupný, pak se tato " +"možnost volí automaticky." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:165 +msgid "General" +msgstr "Všeobecné" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:169 +msgid "GOV Id Management" +msgstr "Správa GOV id" + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:170 +msgid "" +"It is recommended to use only one of the following options. You may also " +"(temporarily) disable all editing via unchecking all of them." +msgstr "" +"Doporučuje se zvolit právě jen jednu z následujících možností. Je možno také " +"(dočasně) potlačit (odstavit) veškerou editaci tím, že nezaškrtneme žádnou." + +#. I18N: Module Configuration +#: Gov4WebtreesModuleTrait.php:173 +msgid "Facts and Events Tab Settings" +msgstr "Nastavení záložky Fakta a události" + +#: resources/views/edit/gov-id-edit-control.phtml:16 +msgid "GOV id" +msgstr "GOV id" + +#: resources/views/edit/gov-id-edit-control.phtml:23 +msgid "Look up a matching GOV id on the GOV server" +msgstr "Vyhledat odpovídající GOV id na serveru GOV" + +#: resources/views/edit/gov-id-edit-control.phtml:26 +msgid "" +"Note: The mapping from place to GOV id is stored outside the gedcom data." +msgstr "Poznámka: zobrazení místa na GOV id se ukládá mimo údaje GEDCOM." + +#: resources/views/edit/gov-id-edit-control.phtml:27 +msgid "" +"Save the current id in order to reload the place hierarchy data from the GOV " +"server." +msgstr "" +"Uložit současný id kvůli novému stažení údajů hierarchie místa ze serveru " +"GOV." + +#: resources/views/edit/gov-id-edit-control.phtml:28 +msgid "You may also save an empty id in order to remove the mapping." +msgstr "Je možno také uložit prázdný id a tím odstranit zobrazení (mapování)." diff --git a/resources/views/icons/place.phtml b/resources/views/icons/place.phtml new file mode 100644 index 0000000..e6c26b4 --- /dev/null +++ b/resources/views/icons/place.phtml @@ -0,0 +1,5 @@ + + +