themsaid / laravel-langman

Language files manager in your artisan console.
MIT License
876 stars 166 forks source link

key with ' in it, breaks it #79

Open sebastiaanspeck opened 6 years ago

sebastiaanspeck commented 6 years ago

Description:

When you have a key in a language-file with a \' in it and run php artisan langman:missing it works okay and you can translate things, but when you run php artisan langman:missing again, it crashes because langman overwrites the key with \' and changes it to '

Steps to reproduce:

  1. Add a key to a language-file with \' in it. e.a. 'today\'s posts'
  2. Run php artisan langman:missing (also works with php artisan langman:trans KEY) (note: you also cannot use the 'today's posts' as key)
  3. Translate (or press Enter)
  4. Run php artisan langman:missing again -> crash and 'today\'s posts' is changed to 'today's posts'