Skip to content

Commit

Permalink
Merge pull request #18 from dkd/TYPO3-12
Browse files Browse the repository at this point in the history
[TASK] Upgrade to TYPO3 12
  • Loading branch information
lochmueller authored Jun 15, 2024
2 parents 7b54bfc + 4a0f4a8 commit e9c6d07
Show file tree
Hide file tree
Showing 13 changed files with 3,090 additions and 1,499 deletions.
2 changes: 1 addition & 1 deletion Classes/Domain/Model/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Country extends AbstractEntity
*
* @var string
*/
protected $shortNameZh = '';
protected string $shortNameZh = '';

/**
* Sets the Chinese short name.
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/Model/Territory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Territory extends AbstractEntity
*
* @var string
*/
protected $nameZh = '';
protected string $nameZh = '';

/**
* Sets the Chinese name of the territory
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Extbase/Persistence/Classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'tableName' => 'static_territories',
'properties' => [
'nameZh' => [
'fieldName' => 'name_zh',
'fieldName' => 'tr_name_zh',
],
],
],
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/Overrides/static_countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

defined('TYPO3_MODE') or die();
defined('TYPO3') || die();

$additionalFields = [
'cn_short_en' => 'cn_short_zh'
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/Overrides/static_territories.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

defined('TYPO3_MODE') or die();
defined('TYPO3') || die();

$additionalFields = [
'tr_name_en' => 'tr_name_zh'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ config.tx_extbase {
}
}
}
}
}
}
}
}
}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# EXT:static_info_tables_zh
# TYPO3 extension static_info_tables_zh

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/lochmueller/static_info_tables_zh/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/lochmueller/static_info_tables_zh/?branch=master)

## What is does

Use this extension to get the simplified chinese namings for countries and territories.
It is an enhancement for the extension static_info_tables.
4 changes: 2 additions & 2 deletions Resources/Private/Language/locallang_db.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2014-01-26T15:19:07Z" product-name="static_info_tables_zh">
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file source-language="en" datatype="plaintext" original="EXT:static_info_tables_zh/Resources/Private/Language/locallang_db.xlf" date="2024-06-07T13:26:07Z" product-name="static_info_tables_zh">
<header/>
<body>
<trans-unit id="static_countries_item.cn_short_zh" xml:space="preserve">
Expand Down
32 changes: 0 additions & 32 deletions class.ext_update.php

This file was deleted.

12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
}
],
"require": {
"php": "^7.2||^8.0",
"typo3/cms-core": "^9.5||^10.4.6||^11.5",
"sjbr/static-info-tables": "^6.9||^11.5"
"php": "^8.1",
"typo3/cms-core": "^12.4",
"sjbr/static-info-tables": "^12.4"
},
"replace": {
"typo3-ter/static-info-tables-zh": "self.version"
Expand All @@ -34,7 +34,11 @@
},
"config": {
"vendor-dir": ".Build/vendor",
"bin-dir": ".Build/bin"
"bin-dir": ".Build/bin",
"allow-plugins": {
"typo3/cms-composer-installers": true,
"typo3/class-alias-loader": true
}
},
"extra": {
"typo3/cms": {
Expand Down
Loading

0 comments on commit e9c6d07

Please sign in to comment.