Hi @crosfield,
I tried on my Ubuntu machine with the following test script:
<?php
$locale = 'ru_RU';
putenv('LANGUAGE=' . $locale . '.UTF-8');
putenv('LC_ALL=' . $locale . '.UTF-8');
setlocale(LC_ALL, $locale . '.UTF-8');
require_once('lib/pkp/lib/vendor/autoload.php');
$isoCodes = new \Sokil\IsoCodes\IsoCodesFactory();
$countries = $isoCodes->getCountries();
echo $countries->getByAlpha2('RU')->getLocalName() . "\n";
I successfully get the result:
Российская Федерация
Do you see the same?
Regards,
Alec Smecher
Public Knowledge Project Team