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
Given file foo.po
foo.po
# "Bar" Something about "Foo" msgid "Foo" msgstr "Fop"
Running quotes.php over it (which doesn't change anything of the file itself):
quotes.php
<?php require_once 'vendor/autoload.php'; $parser = new PoParser\Parser(); $parser->read("foo.po"); $parser->write("foo.po");
Results in:
# Bar" Something about "Foo msgid "Foo" msgstr "Fop"
And seemingly the trailing newline too...
diff --git a/locale/foo.po b/locale/foo.po index 26d2324..1a38546 100644 --- a/locale/foo.po +++ b/locale/foo.po @@ -1,3 +1,3 @@ -# "Bar" Something about "Foo" +# Bar" Something about "Foo msgid "Foo" -msgstr "Fop" +msgstr "Fop" \ No newline at end of file
All together:
$ cat foo.po # "Bar" Something about "Foo" msgid "Foo" msgstr "Fop" $ cat quotes.php <?php require_once 'vendor/autoload.php'; $parser = new PoParser\Parser(); $parser->read("foo.po"); $parser->write("foo.po"); $ php quotes.php $ cat foo.po # Bar" Something about "Foo msgid "Foo" msgstr "Fop"$
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given file
foo.po
Running
quotes.php
over it (which doesn't change anything of the file itself):Results in:
And seemingly the trailing newline too...
All together:
The text was updated successfully, but these errors were encountered: