You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in commit c0c104f Jack edited two keys in the English fieldtypes.php files
Those changes were not picked up when running today php translator generate fr
By chance, I found Jack's commit and I was able to correct the translation, but this was pure luck.
each and every time I am running php translator generate fr, the translator generate a French validation.php file with empty keys though the current validation.php files already includes those translated keys. Those keys are arrays:
Current French validation.php file as it can be found in vendor/statamic/cms/resources/lang/fr/:
'between.numeric' => 'Doit être compris entre :min et :max .',
'between.file' => 'Doit être compris entre :min et :max kilo-octets.',
'between.string' => 'Doit être compris entre :min et :max caractères.',
'between.array' => 'Doit avoir entre :min et :max éléments.',
etc.
The text was updated successfully, but these errors were encountered:
jasonvarga
changed the title
Problem with PHP TRANSLATOR GENERATE xx command: not playing nice with arrays
php translator generate xx command: not playing nice with arrays
Sep 29, 2020
I've fixed the issue with the arrays, but knowing when existing translations have been updated using the command is a different issue which you can see here: statamic/ideas#309
tomhelmer
pushed a commit
to adaptdk/statamic
that referenced
this issue
Oct 1, 2020
Bug Description
Those changes were not picked up when running today
php translator generate fr
By chance, I found Jack's commit and I was able to correct the translation, but this was pure luck.
php translator generate fr
, the translator generate a French validation.php file with empty keys though the current validation.php files already includes those translated keys. Those keys are arrays:Current French validation.php file as it can be found in vendor/statamic/cms/resources/lang/fr/:
How to Reproduce
See above
Extra Detail
Environment
Statamic version: 3.0.13 Pro
PHP version: 7.4.2
Install method (choose one):
Updated 3.0.12 local install
The text was updated successfully, but these errors were encountered: