تفصیل
Allows the user to insert a hook to WordPress and replace english version of the dates and translate them to their own language.
It uses a modular function that takes as input 3 arguments:
- Days
- Months
- Months (shorthand)
It then searches for the English versions and replaces them.
انسٹالیشن
- Upload
date_translate.phpto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Array-ize the days
<?php $days = (Sunday, Monday, ...) ?> - Repeat procedure for months and shorthand (Jan, Feb, …)
- Finalize by hooking
<?php qnt_date_translate($days,$months,$months_shorthand)?>– of course, replace array names with your own.
Examples at plugin GitHub page.
عمومی سوالات
- Does the week begin with Sunday?
-
Yes. Please arrange the array so your week begins in Sunday and ends in Saturday.
- No shorthand for days?
-
There is no need, date formats take full day name and use shorthand for months.
جائزے
There are no reviews for this plugin.
شراکت دار اور ڈیویلپرز
“Date Translate” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ لیا:
شراکت دار“Date Translate” کا اپنی زبان میں ترجمہ کریں۔
ڈویلپمینٹ میں دلچسپی ہے؟
کوڈ براؤز کریں، ایس این وی ریپوزیٹری کو چیک کریں یا ڈویلپمینٹ لاگ کو سبسکرائب کریں بذریعہ آر ایس ایس۔
چینج لاگ
1.0.1
- Fixed issue with date-translate not intercepting get_date()
1.0
- Allows translating by inserting the hook on functions.php