diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..bdb0cab --- /dev/null +++ b/.gitattributes @@ -0,0 +1,17 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a74ae2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,79 @@ +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# Created by .ignore support plugin (hsz.mobi) +### Typo3 template +## TYPO3 v6.2 +# Ignore several upload and file directories. +/fileadmin/user_upload/ +/fileadmin/_temp_/ +/fileadmin/_processed_/ +/uploads/ +# Ignore cache +/typo3conf/temp_CACHED* +/typo3conf/temp_fieldInfo.php +/typo3conf/deprecation_*.log +/typo3conf/ENABLE_INSTALL_TOOL +/typo3conf/realurl_autoconf.php +/FIRST_INSTALL +# Ignore system folders, you should have them symlinked. +# If not comment out the following entries. +/typo3 +/typo3_src +/typo3_src-* +/Packages +/.htaccess +/index.php +# Ignore temp directory. +/typo3temp/ +### Example user template template +### Example user template + +# IntelliJ project files +.idea +*.iml +out +gen + +*.lock diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bcea583..0000000 --- a/.travis.yml +++ /dev/null @@ -1,50 +0,0 @@ - -language: php - -matrix: - include: - - php: 5.5 - env: TYPO3_VERSION=^7.6 - - php: 5.6 - env: TYPO3_VERSION=^7.6 - - php: 7 - env: TYPO3_VERSION=^7.6 - - php: 7 - env: TYPO3_VERSION=dev-master - allow_failures: - - env: TYPO3_VERSION=dev-master - -cache: - directories: - - $HOME/.composer/cache - -before_install: - - phpenv config-rm xdebug.ini - - composer self-update - - composer --version - -before_script: - - > - if [ -n "$TRAVIS_TAG" ]; then - composer set-version $TRAVIS_TAG - # If this fails, we forgot to update version numbers before tagging the release - test -z "$(git diff --shortstat 2> /dev/null | tail -n1)"; - fi - - composer require typo3/cms=$TYPO3_VERSION - - export TYPO3_PATH_WEB="$PWD/.Build/Web" - -script: - - > - echo; - echo "Running unit tests"; - .Build/bin/phpunit -c .Build/vendor/typo3/cms/typo3/sysext/core/Build/UnitTests.xml Tests/Unit/ - - > - echo; - echo "Executing PHP code sniffer"; - .Build/bin/phpcs --runtime-set ignore_warnings_on_exit true --standard=PSR2 Classes/ - -after_script: - - > - echo; - echo "Everything done"; - diff --git a/ChangeLog b/ChangeLog index 3e11fe4..272e42c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,31 +1,8 @@ -2015-07-30 Tomasz Krawczyk - * Added support for capitals. - * Added a few currencies. - * Updated PHP dependency to 5.6. - * Added compatibility with TYPO3 6.2. - * Dropped support for TYPO3 older than 6.2. +2019-10-08 Ephraim Härer + * updates for TYPO3 9.5 + * release of version 6.8.1 -2014-09-17 Tomasz Krawczyk - * Made changes for compatibility with static_info_tables v. 6.1.0. - * Removed commented out sql commands from the ext_tables_static_update.sql file. - * Updated dependencies. -2014-09-17 Tomasz Krawczyk - * Updated dependencies. - -2014-08-17 Simon Schmidt - * Update dependencies and bugfix name for argentina. - -2013-03-11 Simon Schmidt - * Updated dependencies. - -2011-12-18 Tomasz Krawczyk - * Made changes for compatibility with static_info_tables v. 2.3.0. - -2011-08-03 Tomasz Krawczyk - * Updated Polish countries. - * Added Polish zones, languages, territories and a few currencies. - * Updated US zones. - -2011-06-15 - * Got a list of Polish names for countries. +2019-06-11 Ephraim Härer + * compatibility for TYPO3 9.5 + * release of version 6.8.0 \ No newline at end of file diff --git a/Classes/Domain/Model/Country.php b/Classes/Domain/Model/Country.php index 257d748..d68041c 100644 --- a/Classes/Domain/Model/Country.php +++ b/Classes/Domain/Model/Country.php @@ -1,31 +1,27 @@ - * (c) 2013 Stanislas Rolland - * (c) 2015 Tomasz Krawczyk - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ +/*************************************************************** + * Copyright notice + * (c) 2011-2012 Armin Rüdiger Vieweg + * (c) 2013 Stanislas Rolland + * (c) 2015 Tomasz Krawczyk + * All rights reserved + * This script is part of the TYPO3 project. The TYPO3 project is + * free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * The GNU General Public License can be found at + * http://www.gnu.org/copyleft/gpl.html. + * This script is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This copyright notice MUST APPEAR in all copies of the script! + ***************************************************************/ + /** * The Country model * @@ -34,20 +30,24 @@ */ class Country extends AbstractEntity { + /** * The Polish short name + * * @var string */ protected $shortNamePl = ''; /** * The Polish official name + * * @var string */ protected $officialNamePl = ''; /** * The Polish capital name + * * @var string */ protected $capitalPl = ''; @@ -56,7 +56,6 @@ class Country extends AbstractEntity * Sets the Polish short name. * * @param string $shortNamePl - * * @return void */ public function setShortNamePl($shortNamePl) @@ -78,7 +77,6 @@ public function getShortNamePl() * Sets the Polish short name. * * @param string $officialNamePl - * * @return void */ public function setOfficialtNamePl($officialNamePl) @@ -100,7 +98,6 @@ public function getOfficialNamePl() * Sets the Polish short name. * * @param string $capitalPl - * * @return void */ public function setCapitalPl($capitalPl) diff --git a/Classes/Domain/Model/CountryTest.php b/Classes/Domain/Model/CountryTest.php deleted file mode 100644 index 58d66e2..0000000 --- a/Classes/Domain/Model/CountryTest.php +++ /dev/null @@ -1,18 +0,0 @@ - - * (c) 2013 Stanislas Rolland - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ +/*************************************************************** + * Copyright notice + * (c) 2011-2012 Armin Rüdiger Vieweg + * (c) 2013 Stanislas Rolland + * All rights reserved + * This script is part of the TYPO3 project. The TYPO3 project is + * free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * The GNU General Public License can be found at + * http://www.gnu.org/copyleft/gpl.html. + * This script is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This copyright notice MUST APPEAR in all copies of the script! + ***************************************************************/ + /** * The Country Zone model * @@ -33,8 +29,10 @@ */ class CountryZone extends AbstractEntity { + /** * Polish name of the country zone + * * @var string */ protected $namePl = ''; @@ -43,7 +41,6 @@ class CountryZone extends AbstractEntity * Sets the Polish name. * * @param string $namePl - * * @return void */ public function setNamePl($namePl) @@ -63,4 +60,4 @@ public function getNamePl() } return $this->namePl; } -} \ No newline at end of file +} diff --git a/Classes/Domain/Model/Currency.php b/Classes/Domain/Model/Currency.php index 11555b0..1f6624b 100644 --- a/Classes/Domain/Model/Currency.php +++ b/Classes/Domain/Model/Currency.php @@ -1,30 +1,26 @@ - * (c) 2013 Stanislas Rolland - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ +/*************************************************************** + * Copyright notice + * (c) 2011-2012 Armin Rüdiger Vieweg + * (c) 2013 Stanislas Rolland + * All rights reserved + * This script is part of the TYPO3 project. The TYPO3 project is + * free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * The GNU General Public License can be found at + * http://www.gnu.org/copyleft/gpl.html. + * This script is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This copyright notice MUST APPEAR in all copies of the script! + ***************************************************************/ + /** * The Currency model * @@ -33,14 +29,17 @@ */ class Currency extends AbstractEntity { + /** * Polish name of the currency + * * @var string */ protected $namePl = ''; /** * Polish name of the currency subdivision unit + * * @var string */ protected $subdivisionNamePl = ''; @@ -49,7 +48,6 @@ class Currency extends AbstractEntity * Sets the Polish name of the currency * * @param string $namePl - * * @return void */ public function setNamePl($namePl) @@ -71,7 +69,6 @@ public function getNamePl() * Sets the Polish name of the currency subdivision * * @param string $subdivisionNamePl - * * @return void */ public function setSubdivisionNamePl($subdivisionNamePl) @@ -88,4 +85,4 @@ public function getSubdivisionNamePl() { return $this->subdivisionNamePl; } -} \ No newline at end of file +} diff --git a/Classes/Domain/Model/Language.php b/Classes/Domain/Model/Language.php index a3a00df..4e1dbba 100644 --- a/Classes/Domain/Model/Language.php +++ b/Classes/Domain/Model/Language.php @@ -1,30 +1,25 @@ - * (c) 2013 Stanislas Rolland - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ +/*************************************************************** + * Copyright notice + * (c) 2011-2012 Armin Rüdiger Vieweg + * (c) 2013 Stanislas Rolland + * All rights reserved + * This script is part of the TYPO3 project. The TYPO3 project is + * free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * The GNU General Public License can be found at + * http://www.gnu.org/copyleft/gpl.html. + * This script is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This copyright notice MUST APPEAR in all copies of the script! + ***************************************************************/ /** * The Language model @@ -34,8 +29,10 @@ */ class Language extends AbstractEntity { + /** * Polish name of the language + * * @var string */ protected $namePl = ''; @@ -44,7 +41,6 @@ class Language extends AbstractEntity * Sets the Polish name of the language * * @param string $namePl - * * @return void */ public function setNamePl($namePl) @@ -61,4 +57,4 @@ public function getNamePl() { return $this->namePl; } -} \ No newline at end of file +} diff --git a/Classes/Domain/Model/Territory.php b/Classes/Domain/Model/Territory.php index 8bc12a9..57702d8 100644 --- a/Classes/Domain/Model/Territory.php +++ b/Classes/Domain/Model/Territory.php @@ -1,30 +1,26 @@ - * (c) 2013 Stanislas Rolland - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ +/*************************************************************** + * Copyright notice + * (c) 2011-2012 Armin Rüdiger Vieweg + * (c) 2013 Stanislas Rolland + * All rights reserved + * This script is part of the TYPO3 project. The TYPO3 project is + * free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * The GNU General Public License can be found at + * http://www.gnu.org/copyleft/gpl.html. + * This script is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * This copyright notice MUST APPEAR in all copies of the script! + ***************************************************************/ + /** * The Territory model * @@ -33,8 +29,10 @@ */ class Territory extends AbstractEntity { + /** * Polish name of the territory + * * @var string */ protected $namePl = ''; @@ -43,7 +41,6 @@ class Territory extends AbstractEntity * Sets the Polish name of the territory * * @param string $namePl - * * @return void */ public function setNamePl($namePl) @@ -60,4 +57,4 @@ public function getNamePl() { return $this->namePl; } -} \ No newline at end of file +} diff --git a/Configuration/TCA/Overrides/static_countries.php b/Configuration/TCA/Overrides/static_countries.php index 8380f8f..2e411ae 100644 --- a/Configuration/TCA/Overrides/static_countries.php +++ b/Configuration/TCA/Overrides/static_countries.php @@ -1,27 +1,20 @@ 'cn_short_pl', - 'cn_official_name_en' => 'cn_official_name_pl', - 'cn_capital' => 'cn_capital_pl', -]; - -$LL = 'LLL:EXT:static_info_tables_pl/Resources/Private/Language/locallang_db.xlf:static_countries_item.'; - -foreach ($additionalFields as $sourceField => $destField) { - $additionalColumns = []; - $additionalColumns[$destField] = $GLOBALS['TCA']['static_countries']['columns'][$sourceField]; - $additionalColumns[$destField]['label'] = $LL . $destField; - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('static_countries', $additionalColumns); - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( - 'static_countries', - $destField, - '', - 'after:' . $sourceField - ); - // Add as search field - $GLOBALS['TCA']['static_countries']['ctrl']['searchFields'] .= ',' . $destField; -} -unset($additionalColumns); -unset($additionalFields); +call_user_func(function ($extKey, $table) { + $additionalFields = [ + 'cn_short_en' => 'cn_short_pl', + 'cn_official_name_en' => 'cn_official_name_pl', + 'cn_capital' => 'cn_capital_pl', + ]; + foreach ($additionalFields as $sourceField => $destField) { + $additionalColumns = []; + $additionalColumns[$destField] = $GLOBALS['TCA'][$table]['columns'][$sourceField]; + $additionalColumns[$destField]['label'] = 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:static_countries_item.' . $destField; + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns($table, $additionalColumns); + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes($table, $destField, '', + 'after:' . $sourceField); + // Add as search field + $GLOBALS['TCA'][$table]['ctrl']['searchFields'] .= ',' . $destField; + } +}, 'static_info_tables_pl', 'static_countries'); diff --git a/Configuration/TCA/Overrides/static_country_zones.php b/Configuration/TCA/Overrides/static_country_zones.php index 08b5edb..9c1b454 100644 --- a/Configuration/TCA/Overrides/static_country_zones.php +++ b/Configuration/TCA/Overrides/static_country_zones.php @@ -1,25 +1,18 @@ 'zn_name_pl' -]; - -$LL = 'LLL:EXT:static_info_tables_pl/Resources/Private/Language/locallang_db.xlf:static_country_zones_item.'; - -foreach ($additionalFields as $sourceField => $destField) { - $additionalColumns = []; - $additionalColumns[$destField] = $GLOBALS['TCA']['static_country_zones']['columns'][$sourceField]; - $additionalColumns[$destField]['label'] = $LL . $destField; - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('static_country_zones', $additionalColumns); - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( - 'static_country_zones', - $destField, - '', - 'after:' . $sourceField - ); - // Add as search field - $GLOBALS['TCA']['static_country_zones']['ctrl']['searchFields'] .= ',' . $destField; -} -unset($additionalColumns); -unset($additionalFields); +call_user_func(function ($extKey, $table) { + $additionalFields = [ + 'zn_name_en' => 'zn_name_pl' + ]; + foreach ($additionalFields as $sourceField => $destField) { + $additionalColumns = []; + $additionalColumns[$destField] = $GLOBALS['TCA'][$table]['columns'][$sourceField]; + $additionalColumns[$destField]['label'] = 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:static_country_zones_item.' . $destField; + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns($table, $additionalColumns); + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes($table, $destField, '', + 'after:' . $sourceField); + // Add as search field + $GLOBALS['TCA'][$table]['ctrl']['searchFields'] .= ',' . $destField; + } +}, 'static_info_tables_pl', 'static_country_zones'); diff --git a/Configuration/TCA/Overrides/static_currencies.php b/Configuration/TCA/Overrides/static_currencies.php index 35240fa..86ebba3 100644 --- a/Configuration/TCA/Overrides/static_currencies.php +++ b/Configuration/TCA/Overrides/static_currencies.php @@ -1,26 +1,19 @@ 'cu_name_pl', - 'cu_sub_name_en' => 'cu_sub_name_pl' -]; - -$LL = 'LLL:EXT:static_info_tables_pl/Resources/Private/Language/locallang_db.xlf:static_currencies_item.'; - -foreach ($additionalFields as $sourceField => $destField) { - $additionalColumns = []; - $additionalColumns[$destField] = $GLOBALS['TCA']['static_currencies']['columns'][$sourceField]; - $additionalColumns[$destField]['label'] = $LL . $destField; - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('static_currencies', $additionalColumns); - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( - 'static_currencies', - $destField, - '', - 'after:' . $sourceField - ); - // Add as search field - $GLOBALS['TCA']['static_currencies']['ctrl']['searchFields'] .= ',' . $destField; -} -unset($additionalColumns); -unset($additionalFields); +call_user_func(function ($extKey, $table) { + $additionalFields = [ + 'cu_name_en' => 'cu_name_pl', + 'cu_sub_name_en' => 'cu_sub_name_pl' + ]; + foreach ($additionalFields as $sourceField => $destField) { + $additionalColumns = []; + $additionalColumns[$destField] = $GLOBALS['TCA'][$table]['columns'][$sourceField]; + $additionalColumns[$destField]['label'] = 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:static_currencies_item.' . $destField; + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns($table, $additionalColumns); + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes($table, $destField, '', + 'after:' . $sourceField); + // Add as search field + $GLOBALS['TCA'][$table]['ctrl']['searchFields'] .= ',' . $destField; + } +}, 'static_info_tables_pl', 'static_currencies'); diff --git a/Configuration/TCA/Overrides/static_languages.php b/Configuration/TCA/Overrides/static_languages.php index d5ab217..c2495d4 100644 --- a/Configuration/TCA/Overrides/static_languages.php +++ b/Configuration/TCA/Overrides/static_languages.php @@ -1,25 +1,18 @@ 'lg_name_pl' -]; - -$LL = 'LLL:EXT:static_info_tables_pl/Resources/Private/Language/locallang_db.xlf:static_languages_item.'; - -foreach ($additionalFields as $sourceField => $destField) { - $additionalColumns = []; - $additionalColumns[$destField] = $GLOBALS['TCA']['static_languages']['columns'][$sourceField]; - $additionalColumns[$destField]['label'] = $LL . $destField; - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('static_languages', $additionalColumns); - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( - 'static_languages', - $destField, - '', - 'after:' . $sourceField - ); - // Add as search field - $GLOBALS['TCA']['static_languages']['ctrl']['searchFields'] .= ',' . $destField; -} -unset($additionalColumns); -unset($additionalFields); +call_user_func(function ($extKey, $table) { + $additionalFields = [ + 'lg_name_en' => 'lg_name_pl' + ]; + foreach ($additionalFields as $sourceField => $destField) { + $additionalColumns = []; + $additionalColumns[$destField] = $GLOBALS['TCA'][$table]['columns'][$sourceField]; + $additionalColumns[$destField]['label'] = 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:static_languages_item.' . $destField; + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns($table, $additionalColumns); + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes($table, $destField, '', + 'after:' . $sourceField); + // Add as search field + $GLOBALS['TCA'][$table]['ctrl']['searchFields'] .= ',' . $destField; + } +}, 'static_info_tables_pl', 'static_languages'); diff --git a/Configuration/TCA/Overrides/static_territories.php b/Configuration/TCA/Overrides/static_territories.php index f9170bf..90edb47 100644 --- a/Configuration/TCA/Overrides/static_territories.php +++ b/Configuration/TCA/Overrides/static_territories.php @@ -1,25 +1,18 @@ 'tr_name_pl' -]; - -$LL = 'LLL:EXT:static_info_tables_pl/Resources/Private/Language/locallang_db.xlf:static_territories_item.'; - -foreach ($additionalFields as $sourceField => $destField) { - $additionalColumns = []; - $additionalColumns[$destField] = $GLOBALS['TCA']['static_territories']['columns'][$sourceField]; - $additionalColumns[$destField]['label'] = $LL . $destField; - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('static_territories', $additionalColumns); - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( - 'static_territories', - $destField, - '', - 'after:' . $sourceField - ); - // Add as search field - $GLOBALS['TCA']['static_territories']['ctrl']['searchFields'] .= ',' . $destField; -} -unset($additionalColumns); -unset($additionalFields); +call_user_func(function ($extKey, $table) { + $additionalFields = [ + 'tr_name_en' => 'tr_name_pl' + ]; + foreach ($additionalFields as $sourceField => $destField) { + $additionalColumns = []; + $additionalColumns[$destField] = $GLOBALS['TCA'][$table]['columns'][$sourceField]; + $additionalColumns[$destField]['label'] = 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:static_territories_item.' . $destField; + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns($table, $additionalColumns); + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes($table, $destField, '', + 'after:' . $sourceField); + // Add as search field + $GLOBALS['TCA'][$table]['ctrl']['searchFields'] .= ',' . $destField; + } +}, 'static_info_tables_pl', 'static_territories'); diff --git a/Configuration/TypoScript/Extbase/setup.txt b/Configuration/TypoScript/Extbase/setup.txt deleted file mode 100644 index bc02d99..0000000 --- a/Configuration/TypoScript/Extbase/setup.txt +++ /dev/null @@ -1,48 +0,0 @@ -config.tx_extbase { - persistence { - classes { - SJBR\StaticInfoTables\Domain\Model\Country { - mapping { - columns { - cn_short_pl.mapOnProperty = shortNamePl - cn_official_name_pl.mapOnProperty = officialNamePl - cn_capital_pl.mapOnProperty = capitalPl - } - } - } - - SJBR\StaticInfoTables\Domain\Model\CountryZone { - mapping { - columns { - zn_name_pl.mapOnProperty = namePl - } - } - } - - SJBR\StaticInfoTables\Domain\Model\Currency { - mapping { - columns { - cu_name_pl.mapOnProperty = namePl - cu_sub_name_pl.mapOnProperty = subdivisionNamePl - } - } - } - - SJBR\StaticInfoTables\Domain\Model\Language { - mapping { - columns { - lg_name_pl.mapOnProperty = namePl - } - } - } - - SJBR\StaticInfoTables\Domain\Model\Territory { - mapping { - columns { - tr_name_pl.mapOnProperty = namePl - } - } - } - } - } -} diff --git a/Configuration/TypoScript/Extbase/setup.typoscript b/Configuration/TypoScript/Extbase/setup.typoscript new file mode 100644 index 0000000..a54db37 --- /dev/null +++ b/Configuration/TypoScript/Extbase/setup.typoscript @@ -0,0 +1,48 @@ +config.tx_extbase { + persistence { + classes { + SJBR\StaticInfoTables\Domain\Model\Country { + mapping { + columns { + cn_short_pl.mapOnProperty = shortNamePl + cn_official_name_pl.mapOnProperty = officialNamePl + cn_capital_pl.mapOnProperty = capitalPl + } + } + } + + SJBR\StaticInfoTables\Domain\Model\CountryZone { + mapping { + columns { + zn_name_pl.mapOnProperty = namePl + } + } + } + + SJBR\StaticInfoTables\Domain\Model\Currency { + mapping { + columns { + cu_name_pl.mapOnProperty = namePl + cu_sub_name_pl.mapOnProperty = subdivisionNamePl + } + } + } + + SJBR\StaticInfoTables\Domain\Model\Language { + mapping { + columns { + lg_name_pl.mapOnProperty = namePl + } + } + } + + SJBR\StaticInfoTables\Domain\Model\Territory { + mapping { + columns { + tr_name_pl.mapOnProperty = namePl + } + } + } + } + } +} \ No newline at end of file diff --git a/Configuration/TypoScript/Static/setup.txt b/Configuration/TypoScript/Static/setup.txt deleted file mode 100644 index 4fb7eb8..0000000 --- a/Configuration/TypoScript/Static/setup.txt +++ /dev/null @@ -1,6 +0,0 @@ -plugin.tx_staticinfotables_pi1 { - currencyCode = PLN - countryCode = POL - countryZoneCode = WP - languageCode = PL -} diff --git a/Documentation/AdministratorManual/Index.rst b/Documentation/AdministratorManual/Index.rst new file mode 100644 index 0000000..e362a98 --- /dev/null +++ b/Documentation/AdministratorManual/Index.rst @@ -0,0 +1,36 @@ +.. ================================================== +.. FOR YOUR INFORMATION +.. -------------------------------------------------- +.. -*- coding: utf-8 -*- with BOM. + +.. include:: ../Includes.txt + + +.. _admin-manual: + +Administrator Manual +==================== + + +Installation +------------ + +The extension is simply installed using the Extension Manager. + +When installing for the **very first time**, the database updates are performed **automatically**. When **re-installing** after an uninstall or when **updating**, the update script needs to be run **manually** in the Extension Manager. + +**Note:** It is not recommended to change data manually since changes will be lost the next time you run the update script. If you find any data error please report them via email to the extension author. + +.. figure:: ../Images/AdministratorManual/ExtensionManager.png + :width: 500px + :alt: Extension Manager + + Extension Manager + + Filtered list of extensions within the Extension Manager also shortend as "EM" + + +FAQ +^^^ + +See the extension static_info_tables. \ No newline at end of file diff --git a/Documentation/Images/AdministratorManual/ExtensionManager.png b/Documentation/Images/AdministratorManual/ExtensionManager.png new file mode 100644 index 0000000..8297bad Binary files /dev/null and b/Documentation/Images/AdministratorManual/ExtensionManager.png differ diff --git a/Documentation/Images/IntroductionPackage.png b/Documentation/Images/IntroductionPackage.png new file mode 100644 index 0000000..4fad07b Binary files /dev/null and b/Documentation/Images/IntroductionPackage.png differ diff --git a/Documentation/Images/UserManual/BackendView.png b/Documentation/Images/UserManual/BackendView.png new file mode 100644 index 0000000..5bbb46d Binary files /dev/null and b/Documentation/Images/UserManual/BackendView.png differ diff --git a/Documentation/Includes.txt b/Documentation/Includes.txt new file mode 100644 index 0000000..8ef89a7 --- /dev/null +++ b/Documentation/Includes.txt @@ -0,0 +1,21 @@ +.. ================================================== +.. FOR YOUR INFORMATION +.. -------------------------------------------------- +.. -*- coding: utf-8 -*- with BOM. + +.. This is 'Includes.txt'. It is included at the very top of each and + every ReST source file in this documentation project (= manual). + + +.. ================================================== +.. DEFINE SOME TEXT ROLES +.. -------------------------------------------------- + +.. role:: typoscript(code) + +.. role:: ts(typoscript) + :class: typoscript + +.. role:: php(code) + +.. highlight:: php diff --git a/Documentation/Index.rst b/Documentation/Index.rst new file mode 100644 index 0000000..513460f --- /dev/null +++ b/Documentation/Index.rst @@ -0,0 +1,61 @@ +.. ================================================== +.. FOR YOUR INFORMATION +.. -------------------------------------------------- +.. -*- coding: utf-8 -*- with BOM. + +.. include:: Includes.txt + + +.. _start: + +============================================================= +Static Info Tables (it) +============================================================= + +.. only:: html + + :Classification: + static_info_tables_pl + + :Version: + |release| + + :Language: + en + + :Description: + Provides Polish translations for static_info_tables + + :Keywords: + translation pack + + :Copyright: + 2019 + + :Author: + Simon Schmidt + + :Email: + sfs@marketing-factory.de + + :License: + This document is published under the Open Content License + available from http://www.opencontent.org/opl.shtml + + :Rendered: + |today| + + The content of this document is related to TYPO3, + a GNU/GPL CMS/Framework available from `www.typo3.org `_. + + + **Table of Contents** + +.. toctree:: + :maxdepth: 5 + :titlesonly: + :glob: + + Introduction/Index + UsersManual/Index + AdministratorManual/Index diff --git a/Documentation/Introduction/Index.rst b/Documentation/Introduction/Index.rst new file mode 100644 index 0000000..c602fa2 --- /dev/null +++ b/Documentation/Introduction/Index.rst @@ -0,0 +1,18 @@ +.. ================================================== +.. FOR YOUR INFORMATION +.. -------------------------------------------------- +.. -*- coding: utf-8 -*- with BOM. + +.. include:: ../Includes.txt + + +What does it do? +================ + +This extension provides Italian translation for the country, country subdivision, currency, language, and territory records of static_info_tables. For this purpose, it adds one or two fields to the those tables and fills them with Polish data, if available. + +.. figure:: ../Images/IntroductionPackage.png + :width: 500px + :alt: Record view of a country record + + Record view of a "Polish" country record with new field "Short name (PL)" filled with the Polish translation. diff --git a/Documentation/Settings.yml b/Documentation/Settings.yml new file mode 100644 index 0000000..8f04a5b --- /dev/null +++ b/Documentation/Settings.yml @@ -0,0 +1,31 @@ +# This is the project specific Settings.yml file. +# Place Sphinx specific build information here. +# Settings given here will replace the settings of 'conf.py'. + +--- +conf.py: + copyright: 2019 + project: Static Info Tables (pl) + version: 6.8 + release: 6.8.1 + latex_documents: + - - Index + - static_info_tables_pl.tex + - Static Info Tables (pl) + - Franz Holzinger + - manual + latex_elements: + papersize: a4paper + pointsize: 10pt + preamble: \usepackage{typo3} + intersphinx_mapping: + t3tsref: + - http://docs.typo3.org/typo3cms/TyposcriptReference/ + - null + t3start: + - http://docs.typo3.org/typo3cms/GettingStartedTutorial/ + - null + t3editors: + - http://docs.typo3.org/typo3cms/EditorsTutorial/ + - null +... diff --git a/Documentation/UsersManual/Index.rst b/Documentation/UsersManual/Index.rst new file mode 100644 index 0000000..06fd848 --- /dev/null +++ b/Documentation/UsersManual/Index.rst @@ -0,0 +1,31 @@ +.. ================================================== +.. FOR YOUR INFORMATION +.. -------------------------------------------------- +.. -*- coding: utf-8 -*- with BOM. + +.. include:: ../Includes.txt + + +.. _users-manual: + +Users manual +============ + +Use the TYPO3 backend's List Module to see the records of the countries, zones, currencies and languages. This extension provides additional fields for the Polish language. + +Target group: **Users** + +.. figure:: ../Images/UserManual/BackendView.png + :width: 500px + :alt: Backend view + + Backend TCE record of the country + + The Backend view of TYPO3 after the user has clicked on module "List" and on a country record. + + + +FAQ +^^^ + +See the manual of the extension static_info_tables. diff --git a/README.md b/README.md deleted file mode 100644 index c893512..0000000 --- a/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Static Info Tables (pl) - -**master** [![Build Status](https://travis-ci.org/manuelselbach/static_info_tables_pl.svg?branch=master)](https://travis-ci.org/manuelselbach/static_info_tables_pl) - -**develop** [![Build Status](https://travis-ci.org/manuelselbach/static_info_tables_pl.svg?branch=develop)](https://travis-ci.org/manuelselbach/static_info_tables_pl) - -This extension provides Polish language pack for the Static Info Tables -providing localized names for countries, zones, currencies and so on. - -Homepage: [https://github.com/manuelselbach/static_info_tables_pl](https://github.com/manuelselbach/static_info_tables_pl) - -Bugtracker: [https://github.com/manuelselbach/static_info_tables_pl/issues](https://github.com/manuelselbach/static_info_tables_pl/issues) diff --git a/Resources/Private/Language/locallang_db.xlf b/Resources/Private/Language/locallang_db.xlf index b911647..58c7ece 100644 --- a/Resources/Private/Language/locallang_db.xlf +++ b/Resources/Private/Language/locallang_db.xlf @@ -1,6 +1,7 @@ - +
@@ -29,4 +30,4 @@ - + \ No newline at end of file diff --git a/Resources/Public/Icons/Extension.svg b/Resources/Public/Icons/Extension.svg new file mode 100644 index 0000000..cc3cea6 --- /dev/null +++ b/Resources/Public/Icons/Extension.svg @@ -0,0 +1,85 @@ + +image/svg+xml diff --git a/class.ext_update.php b/class.ext_update.php index fb3a23b..86bb582 100644 --- a/class.ext_update.php +++ b/class.ext_update.php @@ -1,4 +1,5 @@ doUpdate(self::EXTENSION_KEY); $updateLanguageLabels = LocalizationUtility::translate('updateLanguageLabels', 'StaticInfoTables'); - $content.= '

' . $updateLanguageLabels . ' '. self::EXTENSION_KEY . '

'; + $content .= '

' . $updateLanguageLabels . ' ' . self::EXTENSION_KEY . '

'; return $content; } diff --git a/composer.json b/composer.json index b65930e..9d567fd 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,15 @@ { - "name": "sjbr/static_info_tables_pl", - "description": "Polish (PL) language pack for the Static Info Tables providing localized names for countries, currencies and so on.", - "version": "6.3.0", + "name": "sjbr/static-info-tables-pl", "type": "typo3-cms-extension", - "license": "GPL-2.0+", + "description": "Polish (pl) language pack for the Static Info Tables providing localized names for countries, currencies and so on. TYPO3 extension.", + "license": "GPL-2.0-or-later", + "keywords": [ + "TYPO3 CMS", + "Static Info Tables" + ], + "support": { + "issues": "https://github.com/marketing-factory/static_info_tables_pl/issues" + }, "authors": [ { "name": "Simon Schmidt", @@ -11,10 +17,12 @@ } ], "replace": { - "sjbr/static_info_tables_pl": "*" + "static_info_tables_pl": "self.version", + "typo3-ter/static-info-tables-pl": "self.version" }, "require": { - "typo3/cms-core": "6.2.0-7.6.99", - "sjbr/static_info_tables": "^6.3.1" + "php": "^7.0", + "typo3/cms-core": "^8.7 || ^9.5", + "sjbr/static-info-tables": "^6.7" } } diff --git a/ext_emconf.php b/ext_emconf.php index c9ef55a..4c41b1a 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -1,34 +1,31 @@ 'Static Info Tables (pl)', - 'description' => '(pl) language pack for the Static Info Tables providing localized names for countries.', + 'description' => 'Polish (pl) language pack for the Static Info Tables providing localized names for countries, currencies and so on.', 'category' => 'misc', - 'version' => '6.3.1', + 'version' => '6.8.1', 'state' => 'stable', - 'uploadfolder' => 0, + 'uploadfolder' => false, 'createDirs' => '', - 'clearcacheonload' => 0, + 'modify_tables' => 'static_countries,static_languages,static_currencies,static_territories', + 'clearcacheonload' => false, 'author' => 'Simon Schmidt', 'author_email' => 'sfs@marketing-factory.de', - 'author_company' => 'Marketing Factory Consulting GmbH', + 'author_company' => 'jambage.com', 'constraints' => [ 'depends' => [ - 'static_info_tables' => '6.3.0-6.3.99', - 'php' => '5.5.0-7.0.99', - 'typo3' => '7.6.0-7.6.99', - ], - 'conflicts' => [ - ], - 'suggests' => [ + 'typo3' => '8.7.0-9.5.99', + 'static_info_tables' => '6.7.3-6.7.99', ], + 'conflicts' => [], + 'suggests' => [], ], ]; + diff --git a/ext_icon.gif b/ext_icon.gif deleted file mode 100644 index 72bfd90..0000000 Binary files a/ext_icon.gif and /dev/null differ diff --git a/ext_icon.png b/ext_icon.png new file mode 100644 index 0000000..402e2d4 Binary files /dev/null and b/ext_icon.png differ diff --git a/ext_localconf.php b/ext_localconf.php index 769c1d2..c2a07ec 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -1,10 +1,8 @@ ' -); +call_user_func(function ($extKey) { + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup( + '' + ); +}, 'static_info_tables_pl'); diff --git a/ext_tables_static+adt.sql b/ext_tables_static+adt.sql index 4203631..cdd3d8e 100644 --- a/ext_tables_static+adt.sql +++ b/ext_tables_static+adt.sql @@ -250,66 +250,8 @@ UPDATE static_countries SET cn_short_pl = 'Sint Maarten', cn_capital_pl = 'Phili UPDATE static_countries SET cn_short_pl = 'Sudan Południowy' WHERE cn_iso_2='SS'; UPDATE static_countries SET cn_official_name_pl = cn_short_pl WHERE cn_official_name_pl='' OR cn_official_name_pl IS NULL; - -## static_country_zones -UPDATE static_country_zones SET zn_name_pl = 'Alabama' WHERE zn_country_iso_2 = 'US' AND zn_code = 'AL'; -UPDATE static_country_zones SET zn_name_pl = 'Alaska' WHERE zn_country_iso_2 = 'US' AND zn_code = 'AK'; -UPDATE static_country_zones SET zn_name_pl = 'Arizona' WHERE zn_country_iso_2 = 'US' AND zn_code = 'AZ'; -UPDATE static_country_zones SET zn_name_pl = 'Arkansas' WHERE zn_country_iso_2 = 'US' AND zn_code = 'AR'; -UPDATE static_country_zones SET zn_name_pl = 'Kalifornien' WHERE zn_country_iso_2 = 'US' AND zn_code = 'CA'; -UPDATE static_country_zones SET zn_name_pl = 'Kalifornia' WHERE zn_country_iso_2 = 'US' AND zn_code = 'CO'; -UPDATE static_country_zones SET zn_name_pl = 'Connecticut' WHERE zn_country_iso_2 = 'US' AND zn_code = 'CT'; -UPDATE static_country_zones SET zn_name_pl = 'Delaware' WHERE zn_country_iso_2 = 'US' AND zn_code = 'DE'; -UPDATE static_country_zones SET zn_name_pl = 'Dystrykt Kolumbia' WHERE zn_country_iso_2 = 'US' AND zn_code = 'DC'; -UPDATE static_country_zones SET zn_name_pl = 'Floryda' WHERE zn_country_iso_2 = 'US' AND zn_code = 'FL'; -UPDATE static_country_zones SET zn_name_pl = 'Georgia' WHERE zn_country_iso_2 = 'US' AND zn_code = 'GA'; -UPDATE static_country_zones SET zn_name_pl = 'Guam' WHERE zn_country_iso_2 = 'US' AND zn_code = 'GU'; -UPDATE static_country_zones SET zn_name_pl = 'Hawaje' WHERE zn_country_iso_2 = 'US' AND zn_code = 'HI'; -UPDATE static_country_zones SET zn_name_pl = 'Idaho' WHERE zn_country_iso_2 = 'US' AND zn_code = 'ID'; -UPDATE static_country_zones SET zn_name_pl = 'Illinois' WHERE zn_country_iso_2 = 'US' AND zn_code = 'IL'; -UPDATE static_country_zones SET zn_name_pl = 'Indiana' WHERE zn_country_iso_2 = 'US' AND zn_code = 'IN'; -UPDATE static_country_zones SET zn_name_pl = 'Iowa' WHERE zn_country_iso_2 = 'US' AND zn_code = 'IA'; -UPDATE static_country_zones SET zn_name_pl = 'Kansas' WHERE zn_country_iso_2 = 'US' AND zn_code = 'KS'; -UPDATE static_country_zones SET zn_name_pl = 'Kentucky' WHERE zn_country_iso_2 = 'US' AND zn_code = 'KY'; -UPDATE static_country_zones SET zn_name_pl = 'Luizjana' WHERE zn_country_iso_2 = 'US' AND zn_code = 'LA'; -UPDATE static_country_zones SET zn_name_pl = 'Maine' WHERE zn_country_iso_2 = 'US' AND zn_code = 'ME'; -UPDATE static_country_zones SET zn_name_pl = 'Maryland' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MD'; -UPDATE static_country_zones SET zn_name_pl = 'Massachusetts' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MA'; -UPDATE static_country_zones SET zn_name_pl = 'Michigan' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MI'; -UPDATE static_country_zones SET zn_name_pl = 'Minnesota' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MN'; -UPDATE static_country_zones SET zn_name_pl = 'Missisipi' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MS'; -UPDATE static_country_zones SET zn_name_pl = 'Missouri' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MO'; -UPDATE static_country_zones SET zn_name_pl = 'Montana' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MT'; -UPDATE static_country_zones SET zn_name_pl = 'Nebraska' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NE'; -UPDATE static_country_zones SET zn_name_pl = 'Nevada' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NV'; -UPDATE static_country_zones SET zn_name_pl = 'New Hampshire' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NH'; -UPDATE static_country_zones SET zn_name_pl = 'New Jersey' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NJ'; -UPDATE static_country_zones SET zn_name_pl = 'Nowy Meksyk' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NM'; -UPDATE static_country_zones SET zn_name_pl = 'Nowy Jork' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NY'; -UPDATE static_country_zones SET zn_name_pl = 'Karolina Północna' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NC'; -UPDATE static_country_zones SET zn_name_pl = 'Dakota Północna' WHERE zn_country_iso_2 = 'US' AND zn_code = 'ND'; -UPDATE static_country_zones SET zn_name_pl = 'Ohio' WHERE zn_country_iso_2 = 'US' AND zn_code = 'OH'; -UPDATE static_country_zones SET zn_name_pl = 'Oklahoma' WHERE zn_country_iso_2 = 'US' AND zn_code = 'OK'; -UPDATE static_country_zones SET zn_name_pl = 'Oregon' WHERE zn_country_iso_2 = 'US' AND zn_code = 'OR'; -UPDATE static_country_zones SET zn_name_pl = 'Pensylwania' WHERE zn_country_iso_2 = 'US' AND zn_code = 'PA'; -UPDATE static_country_zones SET zn_name_pl = 'Portoryko' WHERE zn_country_iso_2 = 'US' AND zn_code = 'PR'; -UPDATE static_country_zones SET zn_name_pl = 'Rhode Island' WHERE zn_country_iso_2 = 'US' AND zn_code = 'RI'; -UPDATE static_country_zones SET zn_name_pl = 'Karolina Południowa' WHERE zn_country_iso_2 = 'US' AND zn_code = 'SC'; -UPDATE static_country_zones SET zn_name_pl = 'Dakota Południowa' WHERE zn_country_iso_2 = 'US' AND zn_code = 'SD'; -UPDATE static_country_zones SET zn_name_pl = 'Tennessee' WHERE zn_country_iso_2 = 'US' AND zn_code = 'TN'; -UPDATE static_country_zones SET zn_name_pl = 'Teksas' WHERE zn_country_iso_2 = 'US' AND zn_code = 'TX'; -UPDATE static_country_zones SET zn_name_pl = 'Utah' WHERE zn_country_iso_2 = 'US' AND zn_code = 'UT'; -UPDATE static_country_zones SET zn_name_pl = 'Vermont' WHERE zn_country_iso_2 = 'US' AND zn_code = 'VT'; -UPDATE static_country_zones SET zn_name_pl = 'Wirginia' WHERE zn_country_iso_2 = 'US' AND zn_code = 'VA'; -UPDATE static_country_zones SET zn_name_pl = 'Waszyngton' WHERE zn_country_iso_2 = 'US' AND zn_code = 'WA'; -UPDATE static_country_zones SET zn_name_pl = 'Wirginia Zachodnia' WHERE zn_country_iso_2 = 'US' AND zn_code = 'WV'; -UPDATE static_country_zones SET zn_name_pl = 'Wisconsin' WHERE zn_country_iso_2 = 'US' AND zn_code = 'WI'; -UPDATE static_country_zones SET zn_name_pl = 'Wyoming' WHERE zn_country_iso_2 = 'US' AND zn_code = 'WY'; - - ## Update for data inserted previously by static_info_tables -UPDATE static_country_zones SET zn_name_pl = zn_name_local WHERE zn_country_iso_2 = 'PL' - +UPDATE static_country_zones SET zn_name_pl = zn_name_local WHERE zn_country_iso_2 = 'PL'; ## static_currencies UPDATE static_currencies SET cu_name_pl = 'Dolar australijski', cu_sub_name_pl = 'cent' WHERE cu_iso_3='AUD'; @@ -338,7 +280,6 @@ UPDATE static_currencies SET cu_name_pl = 'Korona szwedzka', cu_sub_name_pl = ' UPDATE static_currencies SET cu_name_pl = 'Hrywna', cu_sub_name_pl = 'kopiejka' WHERE cu_iso_3='UAH'; UPDATE static_currencies SET cu_name_pl = 'Dolar amerykański', cu_sub_name_pl = 'cent' WHERE cu_iso_3='USD'; - ## static_languages UPDATE static_languages SET lg_name_pl = 'abchaski' WHERE lg_iso_2 = 'AB' AND lg_country_iso_2 = ''; UPDATE static_languages SET lg_name_pl = 'afar' WHERE lg_iso_2 = 'AA' AND lg_country_iso_2 = ''; @@ -538,7 +479,6 @@ UPDATE static_languages SET lg_name_pl = 'staro-cerkiewno-słowiański' WHERE lg UPDATE static_languages SET lg_name_pl = 'ido' WHERE lg_iso_2 = 'IO' AND lg_country_iso_2 = ''; UPDATE static_languages SET lg_name_pl = 'pali' WHERE lg_iso_2 = 'PI' AND lg_country_iso_2 = ''; - ## static_territories UPDATE static_territories SET tr_name_pl = 'Afryka' WHERE tr_iso_nr = '2'; UPDATE static_territories SET tr_name_pl = 'Oceania' WHERE tr_iso_nr = '9'; @@ -567,3 +507,61 @@ UPDATE static_territories SET tr_name_pl = 'Melanezja' WHERE tr_iso_nr = '54'; UPDATE static_territories SET tr_name_pl = 'Mikronezja' WHERE tr_iso_nr = '57'; UPDATE static_territories SET tr_name_pl = 'Polinezia' WHERE tr_iso_nr = '61'; UPDATE static_territories SET tr_name_pl = 'Azja południowa' WHERE tr_iso_nr = '34'; + +## static_country_zones +UPDATE static_country_zones SET zn_name_pl = 'Alabama' WHERE zn_country_iso_2 = 'US' AND zn_code = 'AL'; +UPDATE static_country_zones SET zn_name_pl = 'Alaska' WHERE zn_country_iso_2 = 'US' AND zn_code = 'AK'; +UPDATE static_country_zones SET zn_name_pl = 'Arizona' WHERE zn_country_iso_2 = 'US' AND zn_code = 'AZ'; +UPDATE static_country_zones SET zn_name_pl = 'Arkansas' WHERE zn_country_iso_2 = 'US' AND zn_code = 'AR'; +UPDATE static_country_zones SET zn_name_pl = 'Kalifornien' WHERE zn_country_iso_2 = 'US' AND zn_code = 'CA'; +UPDATE static_country_zones SET zn_name_pl = 'Kalifornia' WHERE zn_country_iso_2 = 'US' AND zn_code = 'CO'; +UPDATE static_country_zones SET zn_name_pl = 'Connecticut' WHERE zn_country_iso_2 = 'US' AND zn_code = 'CT'; +UPDATE static_country_zones SET zn_name_pl = 'Delaware' WHERE zn_country_iso_2 = 'US' AND zn_code = 'DE'; +UPDATE static_country_zones SET zn_name_pl = 'Dystrykt Kolumbia' WHERE zn_country_iso_2 = 'US' AND zn_code = 'DC'; +UPDATE static_country_zones SET zn_name_pl = 'Floryda' WHERE zn_country_iso_2 = 'US' AND zn_code = 'FL'; +UPDATE static_country_zones SET zn_name_pl = 'Georgia' WHERE zn_country_iso_2 = 'US' AND zn_code = 'GA'; +UPDATE static_country_zones SET zn_name_pl = 'Guam' WHERE zn_country_iso_2 = 'US' AND zn_code = 'GU'; +UPDATE static_country_zones SET zn_name_pl = 'Hawaje' WHERE zn_country_iso_2 = 'US' AND zn_code = 'HI'; +UPDATE static_country_zones SET zn_name_pl = 'Idaho' WHERE zn_country_iso_2 = 'US' AND zn_code = 'ID'; +UPDATE static_country_zones SET zn_name_pl = 'Illinois' WHERE zn_country_iso_2 = 'US' AND zn_code = 'IL'; +UPDATE static_country_zones SET zn_name_pl = 'Indiana' WHERE zn_country_iso_2 = 'US' AND zn_code = 'IN'; +UPDATE static_country_zones SET zn_name_pl = 'Iowa' WHERE zn_country_iso_2 = 'US' AND zn_code = 'IA'; +UPDATE static_country_zones SET zn_name_pl = 'Kansas' WHERE zn_country_iso_2 = 'US' AND zn_code = 'KS'; +UPDATE static_country_zones SET zn_name_pl = 'Kentucky' WHERE zn_country_iso_2 = 'US' AND zn_code = 'KY'; +UPDATE static_country_zones SET zn_name_pl = 'Luizjana' WHERE zn_country_iso_2 = 'US' AND zn_code = 'LA'; +UPDATE static_country_zones SET zn_name_pl = 'Maine' WHERE zn_country_iso_2 = 'US' AND zn_code = 'ME'; +UPDATE static_country_zones SET zn_name_pl = 'Maryland' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MD'; +UPDATE static_country_zones SET zn_name_pl = 'Massachusetts' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MA'; +UPDATE static_country_zones SET zn_name_pl = 'Michigan' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MI'; +UPDATE static_country_zones SET zn_name_pl = 'Minnesota' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MN'; +UPDATE static_country_zones SET zn_name_pl = 'Missisipi' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MS'; +UPDATE static_country_zones SET zn_name_pl = 'Missouri' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MO'; +UPDATE static_country_zones SET zn_name_pl = 'Montana' WHERE zn_country_iso_2 = 'US' AND zn_code = 'MT'; +UPDATE static_country_zones SET zn_name_pl = 'Nebraska' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NE'; +UPDATE static_country_zones SET zn_name_pl = 'Nevada' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NV'; +UPDATE static_country_zones SET zn_name_pl = 'New Hampshire' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NH'; +UPDATE static_country_zones SET zn_name_pl = 'New Jersey' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NJ'; +UPDATE static_country_zones SET zn_name_pl = 'Nowy Meksyk' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NM'; +UPDATE static_country_zones SET zn_name_pl = 'Nowy Jork' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NY'; +UPDATE static_country_zones SET zn_name_pl = 'Karolina Północna' WHERE zn_country_iso_2 = 'US' AND zn_code = 'NC'; +UPDATE static_country_zones SET zn_name_pl = 'Dakota Północna' WHERE zn_country_iso_2 = 'US' AND zn_code = 'ND'; +UPDATE static_country_zones SET zn_name_pl = 'Ohio' WHERE zn_country_iso_2 = 'US' AND zn_code = 'OH'; +UPDATE static_country_zones SET zn_name_pl = 'Oklahoma' WHERE zn_country_iso_2 = 'US' AND zn_code = 'OK'; +UPDATE static_country_zones SET zn_name_pl = 'Oregon' WHERE zn_country_iso_2 = 'US' AND zn_code = 'OR'; +UPDATE static_country_zones SET zn_name_pl = 'Pensylwania' WHERE zn_country_iso_2 = 'US' AND zn_code = 'PA'; +UPDATE static_country_zones SET zn_name_pl = 'Portoryko' WHERE zn_country_iso_2 = 'US' AND zn_code = 'PR'; +UPDATE static_country_zones SET zn_name_pl = 'Rhode Island' WHERE zn_country_iso_2 = 'US' AND zn_code = 'RI'; +UPDATE static_country_zones SET zn_name_pl = 'Karolina Południowa' WHERE zn_country_iso_2 = 'US' AND zn_code = 'SC'; +UPDATE static_country_zones SET zn_name_pl = 'Dakota Południowa' WHERE zn_country_iso_2 = 'US' AND zn_code = 'SD'; +UPDATE static_country_zones SET zn_name_pl = 'Tennessee' WHERE zn_country_iso_2 = 'US' AND zn_code = 'TN'; +UPDATE static_country_zones SET zn_name_pl = 'Teksas' WHERE zn_country_iso_2 = 'US' AND zn_code = 'TX'; +UPDATE static_country_zones SET zn_name_pl = 'Utah' WHERE zn_country_iso_2 = 'US' AND zn_code = 'UT'; +UPDATE static_country_zones SET zn_name_pl = 'Vermont' WHERE zn_country_iso_2 = 'US' AND zn_code = 'VT'; +UPDATE static_country_zones SET zn_name_pl = 'Wirginia' WHERE zn_country_iso_2 = 'US' AND zn_code = 'VA'; +UPDATE static_country_zones SET zn_name_pl = 'Waszyngton' WHERE zn_country_iso_2 = 'US' AND zn_code = 'WA'; +UPDATE static_country_zones SET zn_name_pl = 'Wirginia Zachodnia' WHERE zn_country_iso_2 = 'US' AND zn_code = 'WV'; +UPDATE static_country_zones SET zn_name_pl = 'Wisconsin' WHERE zn_country_iso_2 = 'US' AND zn_code = 'WI'; +UPDATE static_country_zones SET zn_name_pl = 'Wyoming' WHERE zn_country_iso_2 = 'US' AND zn_code = 'WY'; + +## Update for data inserted previously by static_info_tables +UPDATE static_country_zones SET zn_name_pl = zn_name_local WHERE zn_country_iso_2 = 'PL'; \ No newline at end of file