Skip to content

Commit

Permalink
URL decode updated translation messages
Browse files Browse the repository at this point in the history
Since PR #72, all translation updates are sent URL-encoded to the
backend. To allow spaces and markup in translated messages the
datagrid handler must decode the messages before saving them.

Fixes issue #286
  • Loading branch information
Joris Steyn authored and sdieunidou committed Oct 5, 2017
1 parent a1df679 commit 93410b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Util/DataGrid/DataGridRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function updateFromRequest($id, Request $request)

$translationsContent = array();
foreach ($this->localeManager->getLocales() as $locale) {
$translationsContent[$locale] = $request->request->get($locale);
$translationsContent[$locale] = urldecode($request->request->get($locale));
}

$this->transUnitManager->updateTranslationsContent($transUnit, $translationsContent);
Expand Down

0 comments on commit 93410b1

Please sign in to comment.