Auto Currency Converter

Description

When money notations appear in your posts/page text, this plugin detects and adds the converted amount in foreign currency.

For now, this plugin only works between Japanese Yen and US dollars, in English and Japanese.

For example, sentence like “It costs $350.” would be “It costs $350(32,854 Japanese yen).”

The conversion is looking up the latest foreign exchange rates.

For bloggers who already did such conversion manually, the plugin has an option to set a date only after when the conversion works.

FAQ

Some numbers are not detected. What are limitations?
  • number in text are not detected. For example,
    • twenty dollars
    • few thousand dollars
    • a couple of dollars
    • numbers bigger than billion are not handled
    • billion/trillion are in US style, not UK style (because it can not be supported both notations simultaneously)
What if I do not want to display auto-converted prices in a specific post?

You may suppress the conversion by giving “acc_disable” tag on the post.

How are Japanese zenkaku(full-width) digits handled?

All Japanese zenkaku digits are converted, then checked and filtered. Because of that, all digits in the text, even though they are not money related, will be converted with regular ASCII digits.

Reviews

Read all 2 reviews

Changelog

1.1.2

  • when the converted dollar is less than $1, it now displays like ‘$0.xx’ instead of ‘$0’.
  • added missing Japanese translations.

1.1.1

  • 1.1.0 missed libraries for specific env.

1.1.0

  • removed php_intl extension check
  • even if php_intl extension is off, it works with the symfony/intl compatible library. Performance-wise, php_intl is better to be turned on. And it only supports English locale.

1.0.9

  • added a feature to disable conversion on specific post with ‘acc_disable’ tag

1.0.8

  • fixed a new bug at 1.0.7

1.0.7

  • checked with the latest WordPress 4.4.2

1.0.6

  • checked with the latest WordPress 4.4.1

1.0.5

  • updated Composer autoloader to avoid collision with other plugins using later version of Composer

1.0.4

  • make it work even allow_url_fopen is off.
  • fixed – not caching the rates when data-fetching failed.

1.0.3

  • stop trying to convert money in title. only money in body are processed.

1.0.2

  • make the default cache period to one month, to avoid too much updates on feed

1.0.1

  • changed to skip gracefully in case exchange rate are unavailable

1.0.0

  • initial release

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code