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

Nyasro Nepali Date Converter

外掛說明

Nyasro Nepali Date Converter is plugin with widget which convert Nepali Date to English Date and English Date to Nepali Date.
You can use following shortcode either to display today’s nepali date or to convert english-nepali date, anywhere in the post or pages.

  • Use [ny_dateconvert] to show today nepali date.
  • Use [ny_dateconvert date='{date}'] to convert nepali date to english date.
  • Use [ny_dateconvert date='{date}' convert='{type}'] to convert nepali to english date or english to nepali date.

Where,

  • {date} format is YYYY-MM-DD [YYYY : four digit year, MM : one or tow digits month, DD : one or digits day]
  • {type} format is eng_to_nep or nep_to_eng

This plugin have special widget which allows user interface to convert english-nepali date or vice versa.
You can use following shortcode to display nyasro nepali date converter widget.

  • Use [ny_datewidget] to show date converter widget anywhere in your post or pages.

Not only that but also it has date converter widget for theme widgets named Nyasro Nepali Date Converter,
which you can use to show date converter from Dashboard > Appearance > Widgets section in your theme sidebar.

If you are a developer then use following PHP code for date converter.

  • To show today’s nepali date :

    <?php
    
        if(function_exists('_Nyasro_todayDate'))
            _Nyasro_todayDate();        
    
    ?>
    
  • To convert english-nepali date or vice versa:

    <?php
        if(function_exists('_Nyasro_NepaliDateConverter'))
            _Nyasro_NepaliDateConverter( $date, $conversion);
    ?>
    

where $date = YYYY-MM-DD and $conversion = eng_to_nep | nep_to_eng.

  • To show date converter widget or box:

    <?php
        if(function_exists('_Nyasro_NepaliDateConverterWidget'))
            _Nyasro_NepaliDateConverterWidget();
    ?>
    

螢幕擷圖

安裝方式

This plugin is installed just like any other WordPress plugin. More detailed installation instructions are available on the WordPress Codex.

If you want manual installation:

  1. Download Nyasro Nepali Date Converter
  2. Extract nyasro-nepali-date-converter.
  3. Upload this folder with files inside to ../wp-contents/plugins/
  4. Activate the plugin in Dashboard > Plugins
  5. Drag and drop from widget area if you want for sidebar.
  6. Use shortcodes for require features.
  7. Enjoy the converter. And then consider donating.

常見問題集

What does this plugin do?

You can either display today’s nepali date or convert english-nepali date or vice versa.

What are date formats that I can use with this plugin ?

You can use only four digits year, two or one digits month and two or one digits day in this order YYYY-MM-DD,
where YYYY is year (ex. 2012), MM is month (ex. 11) and DD is day (ex. 25)

Still have some questions ?

you can message us if you have any problem regarding this plugin or anything to ask.
nyasro@gmail.com

使用者評論

閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Nyasro Nepali Date Converter〉的開發相關工作。

參與者

將〈Nyasro Nepali Date Converter〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.0.1

  • Fixed some deprecated code.

2.0

  • Conversion file included with plugin.

1.0

  • First version of plugin.