這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Arabic-Indic Numerals for Arabic WordPress

外掛說明

This plugin simply replaces Arabic numerals (a.k.a. Hindu-Arabic numerals or Indo-Arabic numerals) with Eastern Arabic numerals (a.k.a. Arabic–Indic numerals or Arabic Eastern numerals) in the date of posts or comments on WordPress. This is useful on sites using the Arabic version of WordPress, which translates month names but leaves the numbers unchanged.

螢幕擷圖

  • Example of date on Twenty Fourteen theme without the plugin.
  • Example of date on Twenty Fourteen theme with the plugin.

安裝方式

  1. Install via the plugin directory, or upload plugin files to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

How do I insert the Arabic date?

It is recommended to set the date format in the WordPress settings menu to j F Y in order to format every date in an Arabic-friendly order (day month year), or set the format in specific places in your theme by placing <?php echo get_the_time('j F Y'); ?> in your templates. Alternatively, you can use the shortcode [Arabic_Date] to insert the current post date in Arabic on any page or post.

Does this plugin translate the names of months into Arabic?

No, you will need to install the Arabic version of WordPress.

Will all dates on my site be written in Arabic-Indic numbers?

No, the dates will only be modified on parts of your site where the blog language is set to Arabic.

使用者評論

2023 年 5 月 28 日
A very impressive and indispensable addition.
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Arabic-Indic Numerals for Arabic WordPress〉的開發相關工作。

參與者

〈Arabic-Indic Numerals for Arabic WordPress〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Arabic-Indic Numerals for Arabic WordPress〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.3

  • Added Arabic-style comma substitution (kudos https://github.com/aitohamy)

1.0.2

  • Added POT file

1.0.0

  • Added shortcode to display the post date in Arabic
  • Load plugin textdomain
  • Checked compatibility with WordPress 5.0
  • Clearer documentation
  • Removed Arabic text from English readme so translation can be done via GlotPress

0.16

  • Added filter to get_the_date in addition to the get_the_time filter.

0.15

  • Initial public release.