Skip to content

Commit

Permalink
Only get the first line of the locale list
Browse files Browse the repository at this point in the history
  • Loading branch information
joppuyo committed Aug 3, 2018
1 parent c995da9 commit 0646a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searchwp-finnish-base-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function searchwp_finnish_base_forms_voikkospell($words, $apiType)

$process = new \Symfony\Component\Process\Process('locale -a | grep -i "utf-\?8"');
$process->run();
$locale = trim($process->getOutput());
$locale = strtok($process->getOutput(), "\n");

$process = new \Symfony\Component\Process\Process("$binaryPath -M", null, [
'LANG' => $locale,
Expand Down

0 comments on commit 0646a62

Please sign in to comment.