title: How to deal with localization? Is there a standard I should follow?
body: <p>I'm trying to make a set of classes to deal with localization (mostly the currency part, but also language).</p>
  
  <p>I can imagine how the logic could be, but I don't know what names to use for the different languages and currencies. I have seen there are many ISO standards for this, which one should I pick?</p>
  
  <p>Anyway here's the logic I was thinking of in case you can help with this too:</p>
  
  <p>I would have a Money class, with amount and currency attributes. On creation, the object receives the amount and the currency (an object provided by the localization class maybe?). You can add to or multiply the amount. The add method takes another money object as parameter, and if it has a different currency, a convertion is made automatically.
  Somewhere an array is stored with all the standard names such as en_US and USD, relating them appropiately, and also relating them to the equivalent in USD as a scalar value. Money objects should be able to print the amounts in different formats, such as $ 1000, or U$s, etc.</p>
  
  <ul>
  <li>Is this a good way to deal with this?</li>
  <li>Which standar should I follow?</li>
  <li>Do you know any already existent, decoupled php libraries to do this?</li>
  </ul>