Uh oh!
There was an error while loading. Please reload this page.
feat: Language translations finder and update - #7889
Conversation
neznaika0
commented
Sep 2, 2023
I fixed typehint for PHP 7.4 |
kenjis
commented
Sep 2, 2023
Uh oh!
There was an error while loading. Please reload this page.
Run |
There is a conflict between the Rector and php-cs-fixer (pre-commit). The rector erases the indents in the method, and php-cs-fixer adds. ---------- begin diff ----------
--- /home/aleksandr/www/codeigniter/tests/system/Commands/Translation/LocalizationFinderTest.php+++ /home/aleksandr/www/codeigniter/tests/system/Commands/Translation/LocalizationFinderTest.php@@ -149,33 +149,33 @@
private function getActualTableWithNewKeys(): string
{
return <<<'TEXT_WRAP'
-+------------------+----------------------------------------------------+-| File | Key |-+------------------+----------------------------------------------------+-| TranslationOne | TranslationOne.Copyright |
...many lines
-| TranslationThree | TranslationThree.formFields.new.short_tag |-+------------------+----------------------------------------------------+-TEXT_WRAP;+ +------------------+----------------------------------------------------++ | File | Key |+ +------------------+----------------------------------------------------++ | TranslationOne | TranslationOne.Copyright |
...many lines
+ | TranslationThree | TranslationThree.formFields.new.short_tag |+ +------------------+----------------------------------------------------++ TEXT_WRAP;
}
private function realizeAssertion(): void
----------- end diff -----------EDIT: Should I move files from Controllers/Translation to another location? This violates the router's tests |
The conflict is not a problem. We always need to run |
kenjis
commented
Sep 2, 2023
If possible, it is better. |
neznaika0
commented
Sep 2, 2023
I moved it to another folder with examples. Is it possible to get an assessment of the work, is it worth continuing? Or will the function be rejected after the tests? |
kenjis
commented
Sep 2, 2023
We have not yet reviewed the contents of the code because the GitHub Action checks have not passed. However, this feature is useful and I would like to include it in 4.5. |
| $countNewKeys += $this->arrayCountRecursive($languageDiff); | ||
| if ($cliOptionShowNew) { | ||
| $tableRows = array_merge($this->arrayToTableRows($langFileName, $languageDiff), $tableRows); |
There was a problem hiding this comment.
I would like use
| $tableRows = array_merge($this->arrayToTableRows($langFileName, $languageDiff), $tableRows); | |
| $tableRows = [$this->arrayToTableRows($langFileName, $languageDiff), $tableRows]; |
There was a problem hiding this comment.
No. Read the instructions carefully.
You are trying to merge two arrays, and the documentation talks about strings. This will result in an error.
- I applied the Rector before the commit
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…hub_actions/actions/checkout-4 build(deps): bump actions/checkout from 3 to 4
Oops. My commit has merged with the develop branch. Is it ugly? Do I now need a branch from 4.5 and not develop? I added to PR dashed keys search as |
Description
See thread https://forum.codeigniter.com/showthread.php?tid=88299
Ready to discuss the solution
Checklist: