Jump to content

Locations for translations


Adriano Faria

Recommended Posts

Posted

Hi there. 

On a costumer's server is showing only those options in locations:

D7B1952A-DB33-41F0-97C4-A714BD8D9A6C-357-0000002B04CF6C9A_tmp.png

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. 

Posted
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.

Posted

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.

Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...