Skip to content

Double quotes get slash #45

Closed
Closed
@swedishzorro

Description

@swedishzorro

Steps to reproduce:

  1. Create new label and enter text Hello "zorro":
    php artisan langman:trans labels.bye
  2. Now check the lang file and see that the double quotes have slashes, this is the output:
    `
'Hello \"zorro\"' ); ` Seems it's the addslashes in the Manager that causes this, possibly try to use var_export instead of stringLineMaker() function? This is what the Manager.php's writeFile function could look like: ` ``` public function writeFile($filePath, array $translations) { $content = "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions