• Hello Lester,

    First of all thank you for the great plugins you wrote.

    One quick small question: is it possible to remove the little comma of the view number by adding one option field at the setting page? You see, in Easter Asia, numbers are not separated by thousands, instead they are separated by ten thousands.. Then there shows no comma at all..

    e.g. 2,102,310 views shows “2102310次检视” or “210万次检视” in Chinese, looks weird when it shows “2,102,310次检视”.

    Since three years ago i always modified the plugin php page but now am tired of modifying everytime it upgrades… &_&

    Thanks!!

    John Shen

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Lester Chan

    (@gamerz)

    It uses number_format_i18n, which should be using your locale numbering. Is the plugin translated as well as your WP?

    Thread Starter Y.Shen

    (@synyan)

    Yep I was aware of the i18n function, and remove it manually everytime the plugin upgrades. Nop for some reason the plugin does not translate as well as my WP which has locale zh_CN.

    Plugin Author Lester Chan

    (@gamerz)

    Unfortunately, I don’t have a solution for it, as the proper way is to use the i18n. Would you investigate why is it not translating properly? Maybe that would be a better fix. Is it a WP problem or the translation problem?

    Thread Starter Y.Shen

    (@synyan)

    I don’t know, because we all use the same Chinese edition of WordPress, as was downloaded from https://cn.www.ads-software.com/

    Plugin Author Lester Chan

    (@gamerz)

    How about the plugin? Are you using a CN translated version of the plugin?

    Thread Starter Y.Shen

    (@synyan)

    There is no CN translated ver. of your plugin anywhere… Lol..maybe somebody can translate one…Does the plugin have a po file?

    Plugin Author Lester Chan

    (@gamerz)

    Yeap it has https://github.com/lesterchan/wp-postviews, there is a POT file inside. Once translated, just put it in the same folder as the plugin.

    Thread Starter Y.Shen

    (@synyan)

    OK now I translated the Pot file into Chinese and uploaded to the directory, the translation works but unfortunately i18n still shows comma. Any ideas?

    ps. I don’t know how to upload my MO file to the https://dev.wp-plugins.org/browser/wp-postviews/i18n/ which was specified by your readme.txt…

    Plugin Author Lester Chan

    (@gamerz)

    Weird, I am not sure anymore. Do you know anybody can shed some light to it? Do you have any 1000+ items in WordPress? Because WP internally uses i18n as well.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Remove the Comma of View Number?’ is closed to new replies.