We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When using drush locale:export strings containing \ are not escaped fully.
drush locale:export
\
To Reproduce See: https://www.drupal.org/project/views_data_export/issues/3222763
drush locale:export en | msguniq -
Expected behavior When exporting the string:
t('Indicates the character used for escaping. Defaults to a backslash (<code>\</code>).');
It should be exported as:
msgid "" "Indicates the character used for escaping. Defaults to a backslash " "(<code>\\</code>)."
Actual behavior It is exported as:
msgid "" "Indicates the character used for escaping. Defaults to a backslash " "(<code>\</code>)."
Workaround Not sure who's responsibility to escape the string is? The write component is in core!
Additional information See: https://www.drupal.org/project/views_data_export/issues/3222763
The text was updated successfully, but these errors were encountered:
Okay, it's because of this line:
drush/src/Commands/core/LocaleCommands.php
Line 178 in cfe465a
This will mean that the output goes through a formatter, and changes the \\ to a \. Crazy!
\\
Simple solution though:
$this->output()->writeln(file_get_contents($file_uri), OutputInterface::OUTPUT_RAW);
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When using
drush locale:export
strings containing\
are not escaped fully.To Reproduce
See: https://www.drupal.org/project/views_data_export/issues/3222763
Expected behavior
When exporting the string:
It should be exported as:
Actual behavior
It is exported as:
Workaround
Not sure who's responsibility to escape the string is? The write component is in core!
System Configuration
Additional information
See: https://www.drupal.org/project/views_data_export/issues/3222763
The text was updated successfully, but these errors were encountered: