Hi @ahmedgad_it,
I would recommend trying a test script outside of OJS. Put a file named localetest.php
in your OJS installation directory with the following contents:
<?php
$locale = 'ar_IQ';
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();
$languages = $isoCodes->getLanguages();
// Print the localized name of Ukrainian language in the locale defined above
echo $languages->getByAlpha2('uk')->getLocalName() . "\n";
Try running this. Is the name of the Ukrainian language it outputs localized to the ar_IQ
language?
Regards,
Alec Smecher
Public Knowledge Project Team