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
When exporting a file out of Google Drive with the language set as English (United Kingdom), PHPWord cannot read the document and throws an error.
English (United Kingdom)
File > Language
<?php require __DIR__ . '/vendor/autoload.php'; $phpWord = PhpOffice\PhpWord\IOFactory::load($_FILES['file']['tmp_name']); $htmlWriter = new PhpOffice\PhpWord\Writer\HTML($phpWord); $tempName = tempnam("/tmp", ''); $htmlWriter->save($tempName);
The document is correctly written as HTML.
An InvalidArgumentException is thrown, with the message en_GB is not a valid language code.
InvalidArgumentException
en_GB is not a valid language code
Please fill in your environment information:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
When exporting a file out of Google Drive with the language set as
English (United Kingdom)
, PHPWord cannot read the document and throws an error.Steps to Reproduce
English (United Kingdom)
(UnderFile > Language
)Expected Behavior
The document is correctly written as HTML.
Current Behavior
An
InvalidArgumentException
is thrown, with the messageen_GB is not a valid language code
.Context
Please fill in your environment information:
The text was updated successfully, but these errors were encountered: