Menu

Currency from left, right

i18n
2005-06-16
2013-03-27
  • Nobody/Anonymous

    Hi!
    How to change $fn->Currency to show the symbol sign from left or right side of the number?
    For example en_us is 100$
    but
    hr_hr is kn100

    Thanks!

     
    • flaimo

      flaimo - 2005-06-16

      hm, good question. at the moment ... not at all. never thought of that, but i'll take a look at it how it can be done. if you want to do a quick and dirty hack yourself right now, i guess you could modify the "currency" method in the "class.I18NformatNumber.inc.php" class and add a new argument ("position" for example) and do a if/else seperation for the return output.

       
    • Nobody/Anonymous

      Yes,

      I thought so. This is the obvious problem for all appl translated to other langs.
      Position is good, but how I will decide about the correct position?
      Let say a new lang_classFormatNumber.inc entry ( currency_position = left or right)?

      And than, things are to complicated for me to hack ;) Still using V1.061.

      Flaimo, thanks for reply. Dean

       
    • flaimo

      flaimo - 2005-06-17

      normaly that depends on the locale where to put symbol, but for example for $ or  both variations can be correct, so you would have to decide from string to string anyway where you want it.

       
    • flaimo

      flaimo - 2005-06-17

      oh, and ny the way, i'm not developing the 1.x version anymore. if its a bug i maybe fix it, but this would be a feature request, which i only will add to the 2.x version.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.