Parsi Date - Version 4.0.1

Version Description

  • Fix showing English number in admin and frontend
  • Add setting for Vazir font
  • Fix showing zero for time in output
Download this release

Release Info

Developer man4toman
Plugin Icon Parsi Date
Version 4.0.1
Comparing to
See all releases

Code changes from version 4.0.0 to 4.0.1

assets/css/settings.css CHANGED
@@ -111,6 +111,12 @@ div.update-nag:before {
111
  color: #797979
112
  }
113
 
 
 
 
 
 
 
114
  #tab_container {
115
  flex: 5;
116
  padding: 0 15px
111
  color: #797979
112
  }
113
 
114
+ [dir="ltr"] .nav-tab-wrapper > a.nav-tab-active::after {
115
+ transform: scale(-1);
116
+ right: 40px;
117
+ left: auto;
118
+ }
119
+
120
  #tab_container {
121
  flex: 5;
122
  padding: 0 15px
includes/fixes-dates.php CHANGED
@@ -48,9 +48,10 @@ function wpp_fix_post_date( $time, $format = '' ) {
48
  return date( $format, strtotime( $post->post_modified ) );
49
  }
50
 
51
- return parsidate( $format, date( 'Y-m-d', strtotime( $post->post_date ) ), ! wpp_is_active( 'conv_dates' ) ? 'eng' : 'per' );
52
  }
53
 
 
54
  /**
55
  * Fixes post date and returns to Jalali format
56
  *
@@ -158,7 +159,7 @@ function wpp_fix_comment_date( $time, $format = '' ) {
158
  */
159
  function wpp_fix_i18n( $date, $format, $timestamp, $gmt ) {
160
  global $post;
161
- $post_id = ! empty( $post ) ? $post->ID : null;
162
 
163
  if ( ! disable_wpp() ) {
164
  return $format;
48
  return date( $format, strtotime( $post->post_modified ) );
49
  }
50
 
51
+ return parsidate( $format, date( 'Y-m-d H:i:s', strtotime( $post->post_date ) ), ! wpp_is_active( 'conv_dates' ) ? 'eng' : 'per' );
52
  }
53
 
54
+
55
  /**
56
  * Fixes post date and returns to Jalali format
57
  *
159
  */
160
  function wpp_fix_i18n( $date, $format, $timestamp, $gmt ) {
161
  global $post;
162
+ $post_id = isset( $post->ID ) ? $post->ID : null;
163
 
164
  if ( ! disable_wpp() ) {
165
  return $format;
includes/parsidate.php CHANGED
@@ -256,7 +256,7 @@ class bn_parsidate {
256
  }
257
  }
258
 
259
- if ( in_array( strtolower( $format ), [ 'u', 'timestamp' ] ) && $lang == 'per' ) {
260
  return self::trim_number( $out );
261
  } else {
262
  return $out;
256
  }
257
  }
258
 
259
+ if ( !in_array( strtolower( $format ), [ 'u', 'timestamp' ] ) && $lang == 'per' ) {
260
  return self::trim_number( $out );
261
  } else {
262
  return $out;
includes/settings.php CHANGED
@@ -59,6 +59,7 @@ function wp_parsi_get_settings() {
59
  'disable_widget_block' => 'disable',
60
  'submenu_move' => 'disable',
61
  'dev_mode' => 'disable',
 
62
  'conv_title' => 'disable',
63
  'conv_contents' => 'disable',
64
  'conv_excerpt' => 'disable',
@@ -260,6 +261,14 @@ function wpp_get_registered_settings() {
260
  'std' => 0,
261
  'desc' => __( 'By enabling this option, the uncompressed version of the JS and CSS files will be loaded.', 'wp-parsidate' )
262
  ),
 
 
 
 
 
 
 
 
263
  ) ),
264
  'conv' => apply_filters( 'wpp_conv_settings', array(
265
  'conv_nums' => array(
@@ -648,7 +657,7 @@ function wpp_render_settings() {
648
 
649
  $active = $active_tab == $tab_id ? ' nav-tab-active' : '';
650
 
651
- echo '<a href="' . esc_url( $tab_url ) . '" title="' . esc_attr( $tab_name ) . '" class="nav-tab' . $active . '">';
652
  echo $tab_name;
653
  echo '</a>';
654
  }
@@ -700,4 +709,4 @@ function wpp_enqueue_setting_page_style( $hook ) {
700
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || wpp_is_active( 'dev_mode' ) ? '' : '.min';
701
 
702
  wp_enqueue_style( 'wpp_option_page', WP_PARSI_URL . "assets/css/settings$suffix.css", null, WP_PARSI_VER );
703
- }
59
  'disable_widget_block' => 'disable',
60
  'submenu_move' => 'disable',
61
  'dev_mode' => 'disable',
62
+ 'enable_fonts' => 'disable',
63
  'conv_title' => 'disable',
64
  'conv_contents' => 'disable',
65
  'conv_excerpt' => 'disable',
261
  'std' => 0,
262
  'desc' => __( 'By enabling this option, the uncompressed version of the JS and CSS files will be loaded.', 'wp-parsidate' )
263
  ),
264
+ 'enable_fonts' => array(
265
+ 'id' => 'enable_fonts',
266
+ 'name' => __( 'Vazir Font', 'wp-parsidate' ),
267
+ 'type' => 'checkbox',
268
+ 'options' => 'enable',
269
+ 'std' => 0,
270
+ 'desc' => __( 'By enabling this option, the Vazir font will be enable in whole admin area.', 'wp-parsidate' )
271
+ ),
272
  ) ),
273
  'conv' => apply_filters( 'wpp_conv_settings', array(
274
  'conv_nums' => array(
657
 
658
  $active = $active_tab == $tab_id ? ' nav-tab-active' : '';
659
 
660
+ echo '<a href="' . esc_url( $tab_url ) . '" title="' . esc_attr( strip_tags($tab_name) ) . '" class="nav-tab' . $active . '">';
661
  echo $tab_name;
662
  echo '</a>';
663
  }
709
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || wpp_is_active( 'dev_mode' ) ? '' : '.min';
710
 
711
  wp_enqueue_style( 'wpp_option_page', WP_PARSI_URL . "assets/css/settings$suffix.css", null, WP_PARSI_VER );
712
+ }
languages/common-strings.php CHANGED
@@ -1,4 +1,4 @@
1
  <?php
2
  __( 'WP-Parsidate', 'wp-parsidate' );
3
  __( 'Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: posts, comments, pages, archives, search, categories, permalinks and all admin sections and TinyMce editor, lists, quick editor. This package has Jalali archive widget.', 'wp-parsidate' );
4
- __( 'WP-Parsi Team', 'wpo' );
1
  <?php
2
  __( 'WP-Parsidate', 'wp-parsidate' );
3
  __( 'Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: posts, comments, pages, archives, search, categories, permalinks and all admin sections and TinyMce editor, lists, quick editor. This package has Jalali archive widget.', 'wp-parsidate' );
4
+ __( 'WP-Parsi Team', 'wp-parsidate' );
languages/fa_IR.mo CHANGED
Binary file
languages/fa_IR.po CHANGED
@@ -2,301 +2,376 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP-Parsi additional strings\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2019-02-02 10:37+0330\n"
6
- "PO-Revision-Date: 2021-09-02 17:59+0000\n"
7
  "Last-Translator: Ehsan <iehsan.ir@gmail.com>\n"
8
  "Language-Team: Persian (Iran)\n"
9
- "Language: fa-IR\n"
10
- "Plural-Forms: nplurals=1; plural=0;\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
 
14
  "X-Loco-Source-Locale: en_FR\n"
15
- "X-Generator: Loco https://localise.biz/\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-KeywordsList: __;_e\n"
18
  "X-Poedit-SourceCharset: UTF-8\n"
 
19
  "X-Poedit-SearchPath-0: ..\n"
20
- "\n"
21
- "X-Loco-Parser: loco_parse_po"
22
 
23
- #: ../includes/admin/lists-fix.php:83
24
  msgid "Show All Dates"
25
  msgstr "نمایش همۀ تاریخ‌ها"
26
 
27
- #: ../includes/general.php:170
28
  #, php-format
29
  msgid ""
30
  "<div class=\"updated wpp-message\"><p>ParsiDate activated, you may need to "
31
  "configure it to work properly. <a href=\"%s\">Go to configuration page</a> "
32
  "&ndash; <a href=\"%s\">Dismiss</a></p></div>"
33
  msgstr ""
34
- "<div class=\"updated wpp-message\"><p>وردپرس پارسی فعال شد! برای کارکردن "
35
- "افزونه نیاز به پیکربندی آن دارید. <a href=\"%s\">برگه‌ی پیکربندی</a> &ndash; "
36
- "<a href=\"%s\">بی‌خیال</a></p></div>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
- #: ../includes/plugins/disable.php:130 ../includes/plugins/edd.php:58
39
- #: ../includes/plugins/woocommerce.php:49 ../includes/settings.php:210
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  msgid "Enable"
41
  msgstr "فعال"
42
 
43
- #: ../includes/plugins/disable.php:131 ../includes/plugins/edd.php:59
44
- #: ../includes/plugins/woocommerce.php:50 ../includes/settings.php:211
45
  msgid "Disable"
46
  msgstr "غیرفعال"
47
 
48
- #: ../includes/plugins/disable.php:136
49
  msgid "Hook deactivator"
50
  msgstr "غیرفعال کردن فیلتر وردپرس پارسی"
51
 
52
- #: ../includes/plugins/disable.php:141
53
  msgid "Hook list"
54
  msgstr "لیست قلاب‌ها"
55
 
56
- #: ../includes/plugins/disable.php:145
57
  msgid "Enter hook,class,function to remove parsidate filter from it"
58
  msgstr "نام قلاب، کلاس و تابع موردنظر را جهت رفع فیلتر پارسی‌دیت وارد کنید"
59
 
60
- #: ../includes/plugins/edd.php:64
61
  msgid "Easy Digital Downloads"
62
  msgstr "Easy Digital Downloads"
63
 
64
- #: ../includes/plugins/edd.php:69 ../includes/plugins/woocommerce.php:60
65
  msgid "Fix prices"
66
  msgstr "تصحیح قیمت‌ها"
67
 
68
- #: ../includes/plugins/edd.php:76
69
  msgid "Replace ریال with RIAL"
70
  msgstr "جایگزینی ریال با RIAL"
71
 
72
- #: ../includes/plugins/woocommerce.php:55
73
  msgid "WooCommerce"
74
  msgstr "ووکامرس"
75
 
76
- #: ../includes/settings.php:28 ../includes/settings.php:29
77
- #: ../includes/settings.php:36 ../includes/settings.php:37
78
- #: ../includes/settings.php:572
 
 
 
 
 
 
 
 
79
  msgid "Parsi Settings"
80
  msgstr "تنظیمات پارسی"
81
 
82
- #: ../includes/settings.php:130
83
  #, php-format
84
  msgid "%s Core"
85
  msgstr "%s هسته"
86
 
87
- #: ../includes/settings.php:131
88
  #, php-format
89
  msgid "%s Converts"
90
  msgstr "%s تبدیل"
91
 
92
- #: ../includes/settings.php:132
93
  #, php-format
94
  msgid "%s Plugins compatibility"
95
  msgstr "%s هماهنگی با افزونه‌ها"
96
 
97
- #: ../includes/settings.php:217
98
  msgid "Change Locale in admin"
99
  msgstr "تغییر زبان مدیریت"
100
 
101
- #: ../includes/settings.php:221
102
  msgid "This option change WordPress locale to Persian in Admin"
103
  msgstr "این گزینه باعث تغییر زبان مدیریت می‌شود"
104
 
105
- #: ../includes/settings.php:225
106
  msgid "Change Locale in theme"
107
  msgstr "تغییر زبان سایت"
108
 
109
- #: ../includes/settings.php:229
110
  msgid "This option change WordPress locale to Persian in theme"
111
  msgstr "این گزینه باعث تغییر زبان سایت می‌شود"
112
 
113
- #: ../includes/settings.php:233
114
  msgid "Shamsi date"
115
  msgstr "تاریخ خورشیدی"
116
 
117
- #: ../includes/settings.php:237
118
  msgid "By enabling this, Dates will convert to Shamsi (Jalali) dates"
 
 
 
 
 
 
 
 
119
  msgstr ""
120
- "با فعال‌کردن این گزینه، تاریخ‌ها به صورت تاریخ خورشیدی (جلالی) درمی‌آیند"
121
 
122
- #: ../includes/settings.php:241
123
  msgid "Move page to submenu?"
124
  msgstr "انتقال این برگه به زیرمنو؟"
125
 
126
- #: ../includes/settings.php:245
127
  msgid ""
128
  "By enabling this option, page item will be moved to Settings menu as submenu."
129
  msgstr ""
130
- "با فعال‌کردن این گزینه، صفحۀ پیکربندی پارسی‌دیت به زیرفهرست «تنظیمات» منتقل "
131
- "می‌شود."
 
 
 
 
 
 
 
 
 
 
 
132
 
133
- #: ../includes/settings.php:251
 
 
 
 
 
 
 
 
 
134
  msgid "Persian digits"
135
  msgstr "رقم‌های پارسی"
136
 
137
- #: ../includes/settings.php:256
138
  msgid "Page title"
139
  msgstr "در عنوان صفحه"
140
 
141
- #: ../includes/settings.php:263
142
  msgid "Post title"
143
  msgstr "در عنوان نوشته‌ها"
144
 
145
- #: ../includes/settings.php:270
146
  msgid "Post content"
147
  msgstr "در محتوای نوشته‌ها"
148
 
149
- #: ../includes/settings.php:277
150
  msgid "Post excerpt"
151
  msgstr "در خلاصه‌ی نوشته‌ها"
152
 
153
- #: ../includes/settings.php:284
154
  msgid "Comments text"
155
  msgstr "در نوشته‌ی دیدگاه‌ها"
156
 
157
- #: ../includes/settings.php:291
158
  msgid "Comments count"
159
  msgstr "تعداد دیدگاه‌ها"
160
 
161
- #: ../includes/settings.php:298
162
  msgid "Dates"
163
  msgstr "تاریخ‌ها"
164
 
165
- #: ../includes/settings.php:305
166
  msgid "Categories"
167
  msgstr "دسته‌بندی‌ها"
168
 
169
- #: ../includes/settings.php:316
170
  msgid "Fix arabic characters"
171
  msgstr "تصحیح حروف عربی"
172
 
173
- #: ../includes/settings.php:320
174
  msgid "Fixes arabic characters caused by wrong keyboard layouts"
175
  msgstr ""
176
  "این گزینه، حروف عربی را در کل سیستم به حروف فارسی تصحیح می‌کند<br>برای مثال "
177
  "٤/٥/٦ به ۴ / ۵ / ۶ و ك / ي به ک / ی"
178
 
179
- #: ../includes/settings.php:324
180
  msgid "Fix permalinks dates"
181
  msgstr "تبدیل تاریخ در پیوندهای یکتا"
182
 
183
- #: ../includes/settings.php:328
184
  msgid "By enabling this, dates in permalinks converted to Shamsi (Jalali) date"
185
  msgstr ""
186
- "با فعال‌کردن این گزینه، تاریخ‌ها در پیوندهای یکتا به تاریخ خورشیدی (جلالی) "
187
- "تبدیل می‌شوند"
188
 
189
- #: ../includes/settings.php:541
190
  msgid "Upload File"
191
  msgstr "آپلود فایل"
192
 
193
- #: ../includes/widget/widget_archive.php:13
194
- #: ../includes/widget/widget_archive.php:15
195
- #: ../includes/widget/widget_archive.php:22
196
- #: ../includes/widget/widget_archive.php:31
197
- #: ../includes/widget/widget_archive.php:64
198
- #: ../includes/widget/widget_archive.php:79
 
 
199
  msgid "Jalali Date Archives"
200
  msgstr "بایگانی تاریخ خورشیدی"
201
 
202
- #: ../includes/widget/widget_archive.php:36
 
 
 
 
 
 
 
 
203
  msgid "Yearly"
204
  msgstr "سالانه"
205
 
206
- #: ../includes/widget/widget_archive.php:39
207
  msgid "Monthly"
208
  msgstr "ماهانه"
209
 
210
- #: ../includes/widget/widget_archive.php:43
211
  msgid "Daily"
212
  msgstr "روزانه"
213
 
214
- #: ../includes/widget/widget_archive.php:49
215
  msgid "Show post counts"
216
  msgstr "نمايش تعداد نوشته‌ها"
217
 
218
- #: ../includes/widget/widget_archive.php:54
219
  msgid "Display as dropdown"
220
  msgstr "نمايش به صورت ليست بازشو"
221
 
222
- #: ../includes/widget/widget_archive.php:58
223
- #: ../includes/widget/widget_calendar.php:28
224
- msgid ""
225
- "For use widget, active \"Fix permalinks dates\" option in plugin settings."
226
  msgstr ""
227
  "برای استفاده از ابزارک، گزینه \"تبدیل تاریخ در پیوندهای یکتا\" را در تنظیمات "
228
  "افزونه فعال کنید."
229
 
230
- #: ../includes/widget/widget_calendar.php:11
231
- #: ../includes/widget/widget_calendar.php:13
232
- #: ../includes/widget/widget_calendar.php:24
233
  msgid "Jalali Date Calender"
234
  msgstr "گاه‌شمار تاریخ خورشیدی"
235
 
236
- #: ../includes/widget/widget_calendar.php:21
237
  msgid "Title:"
238
  msgstr "عنوان:"
239
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  #: ../languages/common-strings.php:2
241
  msgid "WP-Parsidate"
242
  msgstr "بسته وردپرس پارسی"
243
 
244
  #: ../languages/common-strings.php:3
245
  msgid ""
246
- "Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for:"
247
- " posts, comments, pages, archives, search, categories, permalinks and all "
248
- "admin sections and TinyMce editor, lists, quick editor. This package has "
249
- "Jalali archive widget."
250
  msgstr ""
251
- "بسته‌ی پارسی سازی وردپرس، اضافه‌کردن پشتیبانی کامل راست‌به‌چپ و تاریخ "
252
- "خورشیدی برای وردپرس. این افزونه از نوشته‌ها، دیدگاه‌ها، برگه‌ها، بایگانی‌ها، "
253
- "جستجو‌ها و دسته‌بندی‌ها و پیوندهای یکتا پشتیبانی می‌کند و تمام قسمت‌های "
254
- "مدیریت و ویرایشگر را پارسی می‌کند. این افزونه هم‌چنین یک بزارک بایگانی شمسی "
255
- "نیز دارد."
256
 
257
  #: ../languages/common-strings.php:4
258
  msgid "WP-Parsi Team"
259
  msgstr "تیم وردپرس پارسی"
260
 
261
- #: ../wp-parsidate.php:180
262
  msgid "settings"
263
  msgstr "تنظیمات"
264
-
265
- msgid "By enabling this, Widget Block Editor disabled"
266
- msgstr ""
267
- "با فعال‌کردن این گزینه، «ویرایشگر بلوک ابزارک» در بخش ابزارک‌ها غیرفعال "
268
- "می‌شود."
269
-
270
- msgid "Debug Mode"
271
- msgstr "حالت اشکال‌زادیی"
272
-
273
- msgid ""
274
- "By enabling this option, the uncompressed version of the JS and CSS files "
275
- "will be loaded."
276
- msgstr ""
277
- "با فعال‌کردن این گزینه، نسخۀ فشرده‌نشدۀ پرونده‌های JS و CSS افزونۀ پارسی‌دیت "
278
- "بارگذاری می‌شوند."
279
-
280
- msgid "Jalali Datepicker"
281
- msgstr "انتخاب‌گر تاریخ شمسی (جلالی)"
282
-
283
- msgid "Save dates in Jalali format (Not recommended)"
284
- msgstr "ذخیره‌سازی تاریخ بصورت شمسی (توصیه نمی‌شود)"
285
-
286
- msgid "Advanced Custom Fields (ACF)"
287
- msgstr "زمینه‌های سفارشی (ACF)"
288
-
289
- msgid "Date"
290
- msgstr "تاریخ شمسی"
291
-
292
- msgid "Error! Please select a valid date."
293
- msgstr "خطا! لطفاً تاریخ معتبری وارد کنید."
294
-
295
- msgid "Placeholder"
296
- msgstr "متن راهنما"
297
-
298
- msgid "Show custom placeholder"
299
- msgstr "نمایش متن راهنمای سفارشی"
300
-
301
- msgid "Disable Widget Block"
302
- msgstr "غیرفعال کردن ویرایشگر بلوک ابزارک"
2
  msgstr ""
3
  "Project-Id-Version: WP-Parsi additional strings\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2021-12-05 19:17+0330\n"
6
+ "PO-Revision-Date: 2021-12-05 19:17+0330\n"
7
  "Last-Translator: Ehsan <iehsan.ir@gmail.com>\n"
8
  "Language-Team: Persian (Iran)\n"
9
+ "Language: fa_IR\n"
 
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=1; plural=0;\n"
14
  "X-Loco-Source-Locale: en_FR\n"
15
+ "X-Generator: Poedit 2.4.2\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-KeywordsList: __;_e\n"
18
  "X-Poedit-SourceCharset: UTF-8\n"
19
+ "X-Loco-Parser: loco_parse_po\n"
20
  "X-Poedit-SearchPath-0: ..\n"
 
 
21
 
22
+ #: ../includes/admin/lists-fix.php:90
23
  msgid "Show All Dates"
24
  msgstr "نمایش همۀ تاریخ‌ها"
25
 
26
+ #: ../includes/general.php:74
27
  #, php-format
28
  msgid ""
29
  "<div class=\"updated wpp-message\"><p>ParsiDate activated, you may need to "
30
  "configure it to work properly. <a href=\"%s\">Go to configuration page</a> "
31
  "&ndash; <a href=\"%s\">Dismiss</a></p></div>"
32
  msgstr ""
33
+ "<div class=\"updated wpp-message\"><p>وردپرس پارسی فعال شد! برای کارکردن افزونه "
34
+ "نیاز به پیکربندی آن دارید. <a href=\"%s\">برگه‌ی پیکربندی</a> &ndash; <a href="
35
+ "\"%s\">بی‌خیال</a></p></div>"
36
+
37
+ #: ../includes/plugins/acf-fields/class-wpp-acf-datepicker-v4.php:20
38
+ #: ../includes/plugins/acf-fields/class-wpp-acf-datepicker-v5.php:21
39
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v4.php:20
40
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v4.php:22
41
+ msgid "Date"
42
+ msgstr "تاریخ شمسی"
43
+
44
+ #: ../includes/plugins/acf-fields/class-wpp-acf-datepicker-v4.php:22
45
+ #: ../includes/plugins/acf-fields/class-wpp-acf-datepicker-v5.php:23
46
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v5.php:23
47
+ msgid "Parsidate"
48
+ msgstr "بسته وردپرس پارسی"
49
+
50
+ #: ../includes/plugins/acf-fields/class-wpp-acf-datepicker-v4.php:45
51
+ #: ../includes/plugins/acf-fields/class-wpp-acf-datepicker-v5.php:47
52
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v5.php:59
53
+ msgid "Placeholder"
54
+ msgstr "متن راهنما"
55
+
56
+ #: ../includes/plugins/acf-fields/class-wpp-acf-datepicker-v4.php:46
57
+ #: ../includes/plugins/acf-fields/class-wpp-acf-datepicker-v5.php:48
58
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v5.php:60
59
+ msgid "Show custom placeholder"
60
+ msgstr "نمایش متن راهنمای سفارشی"
61
+
62
+ #: ../includes/plugins/acf-fields/class-wpp-acf-datepicker-v5.php:30
63
+ msgid "Error! Please select a valid date."
64
+ msgstr "خطا! لطفاً تاریخ معتبری وارد کنید."
65
+
66
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v4.php:45
67
+ msgid "Preview Size"
68
+ msgstr ""
69
 
70
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v4.php:46
71
+ msgid "Thumbnail is advised"
72
+ msgstr ""
73
+
74
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v5.php:21
75
+ msgid "Time"
76
+ msgstr ""
77
+
78
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v5.php:31
79
+ msgid "Error! Please select a valid time."
80
+ msgstr "خطا! لطفاً تاریخ معتبری وارد کنید."
81
+
82
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v5.php:48
83
+ msgid "Time Format"
84
+ msgstr ""
85
+
86
+ #: ../includes/plugins/acf-fields/class-wpp-acf-timepicker-v5.php:49
87
+ msgid "Display time picker in 24 or 12 hours format"
88
+ msgstr ""
89
+
90
+ #: ../includes/plugins/acf.php:71
91
+ msgid "Advanced Custom Fields (ACF)"
92
+ msgstr "زمینه‌های سفارشی (ACF)"
93
+
94
+ #: ../includes/plugins/acf.php:76
95
+ msgid "Save dates in Jalali format (Not recommended)"
96
+ msgstr "ذخیره‌سازی تاریخ بصورت شمسی (توصیه نمی‌شود)"
97
+
98
+ #: ../includes/plugins/disable.php:181 ../includes/settings.php:210
99
  msgid "Enable"
100
  msgstr "فعال"
101
 
102
+ #: ../includes/plugins/disable.php:182 ../includes/settings.php:211
 
103
  msgid "Disable"
104
  msgstr "غیرفعال"
105
 
106
+ #: ../includes/plugins/disable.php:188
107
  msgid "Hook deactivator"
108
  msgstr "غیرفعال کردن فیلتر وردپرس پارسی"
109
 
110
+ #: ../includes/plugins/disable.php:193
111
  msgid "Hook list"
112
  msgstr "لیست قلاب‌ها"
113
 
114
+ #: ../includes/plugins/disable.php:197
115
  msgid "Enter hook,class,function to remove parsidate filter from it"
116
  msgstr "نام قلاب، کلاس و تابع موردنظر را جهت رفع فیلتر پارسی‌دیت وارد کنید"
117
 
118
+ #: ../includes/plugins/edd.php:61
119
  msgid "Easy Digital Downloads"
120
  msgstr "Easy Digital Downloads"
121
 
122
+ #: ../includes/plugins/edd.php:66 ../includes/plugins/woocommerce.php:89
123
  msgid "Fix prices"
124
  msgstr "تصحیح قیمت‌ها"
125
 
126
+ #: ../includes/plugins/edd.php:73
127
  msgid "Replace ریال with RIAL"
128
  msgstr "جایگزینی ریال با RIAL"
129
 
130
+ #: ../includes/plugins/woocommerce.php:77
131
  msgid "WooCommerce"
132
  msgstr "ووکامرس"
133
 
134
+ #: ../includes/plugins/woocommerce.php:82
135
+ msgid "Jalali Datepicker"
136
+ msgstr "انتخاب‌گر تاریخ شمسی (جلالی)"
137
+
138
+ #: ../includes/plugins/woocommerce.php:304
139
+ msgid "Expiry date"
140
+ msgstr ""
141
+
142
+ #: ../includes/settings.php:25 ../includes/settings.php:26
143
+ #: ../includes/settings.php:33 ../includes/settings.php:34
144
+ #: ../includes/settings.php:648
145
  msgid "Parsi Settings"
146
  msgstr "تنظیمات پارسی"
147
 
148
+ #: ../includes/settings.php:141
149
  #, php-format
150
  msgid "%s Core"
151
  msgstr "%s هسته"
152
 
153
+ #: ../includes/settings.php:142
154
  #, php-format
155
  msgid "%s Converts"
156
  msgstr "%s تبدیل"
157
 
158
+ #: ../includes/settings.php:143
159
  #, php-format
160
  msgid "%s Plugins compatibility"
161
  msgstr "%s هماهنگی با افزونه‌ها"
162
 
163
+ #: ../includes/settings.php:218
164
  msgid "Change Locale in admin"
165
  msgstr "تغییر زبان مدیریت"
166
 
167
+ #: ../includes/settings.php:222
168
  msgid "This option change WordPress locale to Persian in Admin"
169
  msgstr "این گزینه باعث تغییر زبان مدیریت می‌شود"
170
 
171
+ #: ../includes/settings.php:226
172
  msgid "Change Locale in theme"
173
  msgstr "تغییر زبان سایت"
174
 
175
+ #: ../includes/settings.php:230
176
  msgid "This option change WordPress locale to Persian in theme"
177
  msgstr "این گزینه باعث تغییر زبان سایت می‌شود"
178
 
179
+ #: ../includes/settings.php:234
180
  msgid "Shamsi date"
181
  msgstr "تاریخ خورشیدی"
182
 
183
+ #: ../includes/settings.php:238
184
  msgid "By enabling this, Dates will convert to Shamsi (Jalali) dates"
185
+ msgstr "با فعال‌کردن این گزینه، تاریخ‌ها به صورت تاریخ خورشیدی (جلالی) درمی‌آیند"
186
+
187
+ #: ../includes/settings.php:242
188
+ msgid "Disable Widget Block"
189
+ msgstr "غیرفعال کردن ویرایشگر بلوک ابزارک"
190
+
191
+ #: ../includes/settings.php:246
192
+ msgid "By enabling this, Widget Block Editor disabled"
193
  msgstr ""
194
+ "با فعال‌کردن این گزینه، «ویرایشگر بلوک ابزارک» در بخش ابزارک‌ها غیرفعال می‌شود."
195
 
196
+ #: ../includes/settings.php:250
197
  msgid "Move page to submenu?"
198
  msgstr "انتقال این برگه به زیرمنو؟"
199
 
200
+ #: ../includes/settings.php:254
201
  msgid ""
202
  "By enabling this option, page item will be moved to Settings menu as submenu."
203
  msgstr ""
204
+ "با فعال‌کردن این گزینه، صفحۀ پیکربندی پارسی‌دیت به زیرفهرست «تنظیمات» منتقل می‌شود."
205
+
206
+ #: ../includes/settings.php:258
207
+ msgid "Debug Mode"
208
+ msgstr "حالت اشکال‌زادیی"
209
+
210
+ #: ../includes/settings.php:262
211
+ msgid ""
212
+ "By enabling this option, the uncompressed version of the JS and CSS files will "
213
+ "be loaded."
214
+ msgstr ""
215
+ "با فعال‌کردن این گزینه، نسخۀ فشرده‌نشدۀ پرونده‌های JS و CSS افزونۀ پارسی‌دیت "
216
+ "بارگذاری می‌شوند."
217
 
218
+ #: ../includes/settings.php:266
219
+ msgid "Vazir Font"
220
+ msgstr "فونت وزیر"
221
+
222
+ #: ../includes/settings.php:270
223
+ msgid ""
224
+ "By enabling this option, the Vazir font will be enable in whole admin area."
225
+ msgstr "با فعال‌کردن این گزینه، فونت وزیر در همه بخش‌های مدیریت فعال می‌شود."
226
+
227
+ #: ../includes/settings.php:276
228
  msgid "Persian digits"
229
  msgstr "رقم‌های پارسی"
230
 
231
+ #: ../includes/settings.php:281
232
  msgid "Page title"
233
  msgstr "در عنوان صفحه"
234
 
235
+ #: ../includes/settings.php:288
236
  msgid "Post title"
237
  msgstr "در عنوان نوشته‌ها"
238
 
239
+ #: ../includes/settings.php:295
240
  msgid "Post content"
241
  msgstr "در محتوای نوشته‌ها"
242
 
243
+ #: ../includes/settings.php:302
244
  msgid "Post excerpt"
245
  msgstr "در خلاصه‌ی نوشته‌ها"
246
 
247
+ #: ../includes/settings.php:309
248
  msgid "Comments text"
249
  msgstr "در نوشته‌ی دیدگاه‌ها"
250
 
251
+ #: ../includes/settings.php:316
252
  msgid "Comments count"
253
  msgstr "تعداد دیدگاه‌ها"
254
 
255
+ #: ../includes/settings.php:323
256
  msgid "Dates"
257
  msgstr "تاریخ‌ها"
258
 
259
+ #: ../includes/settings.php:330
260
  msgid "Categories"
261
  msgstr "دسته‌بندی‌ها"
262
 
263
+ #: ../includes/settings.php:341
264
  msgid "Fix arabic characters"
265
  msgstr "تصحیح حروف عربی"
266
 
267
+ #: ../includes/settings.php:345
268
  msgid "Fixes arabic characters caused by wrong keyboard layouts"
269
  msgstr ""
270
  "این گزینه، حروف عربی را در کل سیستم به حروف فارسی تصحیح می‌کند<br>برای مثال "
271
  "٤/٥/٦ به ۴ / ۵ / ۶ و ك / ي به ک / ی"
272
 
273
+ #: ../includes/settings.php:349
274
  msgid "Fix permalinks dates"
275
  msgstr "تبدیل تاریخ در پیوندهای یکتا"
276
 
277
+ #: ../includes/settings.php:353
278
  msgid "By enabling this, dates in permalinks converted to Shamsi (Jalali) date"
279
  msgstr ""
280
+ "با فعال‌کردن این گزینه، تاریخ‌ها در پیوندهای یکتا به تاریخ خورشیدی (جلالی) تبدیل "
281
+ "می‌شوند"
282
 
283
+ #: ../includes/settings.php:616
284
  msgid "Upload File"
285
  msgstr "آپلود فایل"
286
 
287
+ #: ../includes/widget/widget_archive.php:15
288
+ #: ../includes/widget/widget_archive.php:16
289
+ #: ../includes/widget/widget_archive.php:18
290
+ #: ../includes/widget/widget_archive.php:19
291
+ #: ../includes/widget/widget_archive.php:35
292
+ #: ../includes/widget/widget_archive.php:46
293
+ #: ../includes/widget/widget_archive.php:123
294
+ #: ../includes/widget/widget_archive.php:148
295
  msgid "Jalali Date Archives"
296
  msgstr "بایگانی تاریخ خورشیدی"
297
 
298
+ #: ../includes/widget/widget_archive.php:42
299
+ msgid "Title"
300
+ msgstr "عنوان"
301
+
302
+ #: ../includes/widget/widget_archive.php:51
303
+ msgid "How to display"
304
+ msgstr ""
305
+
306
+ #: ../includes/widget/widget_archive.php:57
307
  msgid "Yearly"
308
  msgstr "سالانه"
309
 
310
+ #: ../includes/widget/widget_archive.php:66
311
  msgid "Monthly"
312
  msgstr "ماهانه"
313
 
314
+ #: ../includes/widget/widget_archive.php:75
315
  msgid "Daily"
316
  msgstr "روزانه"
317
 
318
+ #: ../includes/widget/widget_archive.php:86
319
  msgid "Show post counts"
320
  msgstr "نمايش تعداد نوشته‌ها"
321
 
322
+ #: ../includes/widget/widget_archive.php:96
323
  msgid "Display as dropdown"
324
  msgstr "نمايش به صورت ليست بازشو"
325
 
326
+ #: ../includes/widget/widget_archive.php:102
327
+ #: ../includes/widget/widget_calendar.php:34
328
+ msgid "For use widget, active \"Fix permalinks dates\" option in plugin settings."
 
329
  msgstr ""
330
  "برای استفاده از ابزارک، گزینه \"تبدیل تاریخ در پیوندهای یکتا\" را در تنظیمات "
331
  "افزونه فعال کنید."
332
 
333
+ #: ../includes/widget/widget_calendar.php:14
334
+ #: ../includes/widget/widget_calendar.php:16
335
+ #: ../includes/widget/widget_calendar.php:30
336
  msgid "Jalali Date Calender"
337
  msgstr "گاه‌شمار تاریخ خورشیدی"
338
 
339
+ #: ../includes/widget/widget_calendar.php:39
340
  msgid "Title:"
341
  msgstr "عنوان:"
342
 
343
+ #: ../includes/widget/widget_calendar.php:48
344
+ msgid "Theme color:"
345
+ msgstr ""
346
+
347
+ #: ../includes/widget/widget_calendar.php:53
348
+ msgid "Light Mode"
349
+ msgstr "حالت روشن"
350
+
351
+ #: ../includes/widget/widget_calendar.php:56
352
+ msgid "Dark Mode"
353
+ msgstr "حالت تاریک"
354
+
355
  #: ../languages/common-strings.php:2
356
  msgid "WP-Parsidate"
357
  msgstr "بسته وردپرس پارسی"
358
 
359
  #: ../languages/common-strings.php:3
360
  msgid ""
361
+ "Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: "
362
+ "posts, comments, pages, archives, search, categories, permalinks and all admin "
363
+ "sections and TinyMce editor, lists, quick editor. This package has Jalali "
364
+ "archive widget."
365
  msgstr ""
366
+ "بسته‌ی پارسی سازی وردپرس، اضافه‌کردن پشتیبانی کامل راست‌به‌چپ و تاریخ خورشیدی برای "
367
+ "وردپرس. این افزونه از نوشته‌ها، دیدگاه‌ها، برگه‌ها، بایگانی‌ها، جستجو‌ها و "
368
+ "دسته‌بندی‌ها و پیوندهای یکتا پشتیبانی می‌کند و تمام قسمت‌های مدیریت و ویرایشگر را "
369
+ "پارسی می‌کند. این افزونه هم‌چنین یک بزارک بایگانی شمسی نیز دارد."
 
370
 
371
  #: ../languages/common-strings.php:4
372
  msgid "WP-Parsi Team"
373
  msgstr "تیم وردپرس پارسی"
374
 
375
+ #: ../wp-parsidate.php:196
376
  msgid "settings"
377
  msgstr "تنظیمات"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wp-parsi.com/support/
4
  Tags: shamsi, wp-parsi, wpparsi, persian, parsi, farsi, jalali, date, calendar, i18n, l10n, iran, iranian, parsidate, rtl, gutenberg, acf,woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 5.8.2
7
- Stable tag: 4.0.0
8
 
9
  Persian date support for WordPress
10
 
@@ -47,6 +47,12 @@ List of some features:
47
 
48
  == Changelog ==
49
 
 
 
 
 
 
 
50
  = 4.0.0 =
51
  * This release contains huge bug fix:
52
  - Conflict with jetpack
4
  Tags: shamsi, wp-parsi, wpparsi, persian, parsi, farsi, jalali, date, calendar, i18n, l10n, iran, iranian, parsidate, rtl, gutenberg, acf,woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 5.8.2
7
+ Stable tag: 4.0.1
8
 
9
  Persian date support for WordPress
10
 
47
 
48
  == Changelog ==
49
 
50
+ = 4.0.1 =
51
+ * Fix showing English number in admin and frontend
52
+ * Add setting for Vazir font
53
+ * Fix showing zero for time in output
54
+
55
+
56
  = 4.0.0 =
57
  * This release contains huge bug fix:
58
  - Conflict with jetpack
wp-parsidate.php CHANGED
@@ -3,7 +3,7 @@ defined( 'ABSPATH' ) || exit( 'No direct script access allowed' );
3
 
4
  /**
5
  * Plugin Name: WP-Parsidate
6
- * Version: 4.0.0
7
  * Plugin URI: https://wp-parsi.com/support/
8
  * Description: Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: posts, comments, pages, archives, search, categories, permalinks and all admin sections and TinyMce editor, lists, quick editor. This package has Jalali archive widget.
9
  * Author: WP-Parsi Team
@@ -223,11 +223,15 @@ final class WP_Parsidate {
223
  return;
224
  }
225
 
226
- $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || wpp_is_active( 'dev_mode' ) ? '' : '.min';
 
 
227
 
228
- wp_enqueue_style( 'wpp-vazir-font', WP_PARSI_URL . "assets/css/vazir-font$suffix.css", null, WP_PARSI_VER, 'all' );
229
 
230
- add_action( 'admin_head', array( $this, 'wpp_preload_vazir_fonts' ) );
 
 
231
  }
232
 
233
  /**
3
 
4
  /**
5
  * Plugin Name: WP-Parsidate
6
+ * Version: 4.0.1
7
  * Plugin URI: https://wp-parsi.com/support/
8
  * Description: Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: posts, comments, pages, archives, search, categories, permalinks and all admin sections and TinyMce editor, lists, quick editor. This package has Jalali archive widget.
9
  * Author: WP-Parsi Team
223
  return;
224
  }
225
 
226
+ if( wpp_is_active( 'enable_fonts' ) ){
227
+
228
+ $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || wpp_is_active( 'dev_mode' ) ? '' : '.min';
229
 
230
+ wp_enqueue_style( 'wpp-vazir-font', WP_PARSI_URL . "assets/css/vazir-font$suffix.css", null, WP_PARSI_VER, 'all' );
231
 
232
+ add_action( 'admin_head', array( $this, 'wpp_preload_vazir_fonts' ) );
233
+
234
+ }
235
  }
236
 
237
  /**