Adriano Faria Posted December 23, 2016 Posted December 23, 2016 Hi there. On a costumer's server is showing only those options in locations: Due to that I can't install my translation (pt_BR). His support guy said it isn't a server issue, which I doubt. So, what should be done to fix it? It's their own server.
teraßyte Posted December 23, 2016 Posted December 23, 2016 As far as I know that dropdown loads all the locales installed on the server, if pt_BR is not appearing that means it is not installed. Or it is installed but not enabled.
Adriano Faria Posted December 23, 2016 Author Posted December 23, 2016 Just now, teraßyte said: As far as I know that dropdown loads all the locales installed on the server, if pt_BR is not appearing that means it is not installed. Or it is installed but not enabled. Yeah, I'm sure it's a server thing. I just want to know exactly what it is to request the support server guy to add/fix it.
teraßyte Posted December 23, 2016 Posted December 23, 2016 Taking a look at the code this is the function in languages.php that adds those locales (pt_BR is indeed listed in the possible locales list): \IPS\Lang::localeField( $form ); And it calls the validateLocale() function in the same class to verify the locale exists on the server, that function itself calls the php function setlocale(). The test for this one fails and the locale is not added in the dropdown because of it.
Adriano Faria Posted December 23, 2016 Author Posted December 23, 2016 @bfarber, please, can you tell me exactly what should be done? Need to request their support to fix it. Tks.
bfarber Posted December 28, 2016 Posted December 28, 2016 I agree with terabyte's suggestion - most likely pt_BR is not installed on the server and the only solution would be to install it. I couldn't tell for sure without checking the server though. Most likely I'd write a small standalone script that tests each locale to determine if it is available or not.
Adriano Faria Posted December 28, 2016 Author Posted December 28, 2016 Tks. pt_BR installed and forum translated.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.