Skip to content
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

Separate Language Config for Console Requests #7747

Closed
dralshehri opened this issue Mar 30, 2021 · 1 comment
Closed

Separate Language Config for Console Requests #7747

dralshehri opened this issue Mar 30, 2021 · 1 comment
Labels
enhancement improvements to existing features internationalization 🌐 features related to internationalization or localization

Comments

@dralshehri
Copy link

Description

When I set the defaultCpLanguage config to ar, some console requests show Arabic translations. See this example when running queued jobs:

» docker-compose exec container_name ./craft queue/run --verbose
2021-03-30 23:54:00 [pid: 5327] - Worker is started
2021-03-30 23:54:00 [5225] جاري تحديث فهارس البحث (attempt: 1, pid: 5327) - Started
2021-03-30 23:54:00 [5225] جاري تحديث فهارس البحث (attempt: 1, pid: 5327) - Done (0.055 s)
2021-03-30 23:54:00 [pid: 5327] - Worker is stopped (0:00:00)

That will even get worse if the system/terminal does not fully support Arabic output.

screenshot-20210331-000317

Therefore, for the console requests, it will be easier to read and interpret if it's in English but the defaultCpLanguage is controlling that in my case.

Is it possible to have a separate config for console requests language? e.g. defaultConsoleLanguage

@brandonkelly brandonkelly added enhancement improvements to existing features internationalization 🌐 features related to internationalization or localization and removed enhancement labels Mar 31, 2021
brandonkelly added a commit that referenced this issue Mar 31, 2021
@brandonkelly brandonkelly added this to the 3.7 milestone Mar 31, 2021
@brandonkelly
Copy link
Member

That’s pretty awkward, since the vast majority of strings in console commands aren’t actually translatable to begin with. So as of Craft 3.7, the defaultCpLanguage setting will no longer have any effect on console commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements to existing features internationalization 🌐 features related to internationalization or localization
Projects
None yet
Development

No branches or pull requests

2 participants