Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted December 23, 20168 yr 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.
December 23, 20168 yr 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.
December 23, 20168 yr Author 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.
December 23, 20168 yr 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.
December 23, 20168 yr Author @bfarber, please, can you tell me exactly what should be done? Need to request their support to fix it. Tks.
December 28, 20168 yr 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.
Archived
This topic is now archived and is closed to further replies.