5

I'm trying to install a locale on OSX (El Capitan) and I can't figure it out.

I've been googling for hours now.

In Ubuntu is as simple as locale-gen and dpkg-reconfigure.

I'm coding a PHP application that uses es_AR as a locale and I can't get my number formatting right.

Works fine in Linux systems.

$ locale -a | grep es
es_ES
es_ES.ISO8859-1
es_ES.ISO8859-15
es_ES.UTF-8

2 Answers 2

-1

You would set that up in the Languages and Region setting in System Preferences

enter image description here

Under the advanced tab, you can set your number formatting

enter image description here

6
  • Hi Allan! I only see "Spanish", "Spanish (México)" and "Spanish (Latin América)" but I need "Spanish (Argentina)"
    – fedeisas
    Jul 9, 2016 at 0:25
  • Wouldn't that be Spanish (Latin America) then?
    – Allan
    Jul 9, 2016 at 0:54
  • Nop. If I run locale -a on my terminal I don't see es_AR listed.
    – fedeisas
    Jul 9, 2016 at 0:55
  • What I mean is es_AR is covered under the Spanish (Latin America) locale?
    – Allan
    Jul 9, 2016 at 0:59
  • In Linux/Unix and Mac es_AR is really the exact same as the es_ES and es_419 locales. See my answer on SO here.
    – signus
    Jul 22, 2016 at 1:44
-1

I'm not sure if you can set it up. As you have self figured out, OS X doesn't care much for countries in Latin America and out them all together.

However, as what you need is to test your PHP application, you can check this post out. There are some steps you can do to force the locale.

There is otherwise the ability of the web browser to emulate another locale that the one of the OS. You should check the documentation of your browser, most of them have developer tools which can be useful. Another option is to look for some browser plugin.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .