-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: Language translations finder and update #7889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I fixed typehint for PHP 7.4 |
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 |
If possible, it is better. |
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? |
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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] <[email protected]>
…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: