User Role Editor - Version 3.5

Version Description

  • 19.02.2012
  • User Role Editor could be available now for single site administrators (Administrator role) under multi-site environment. You should define URE_ENABLE_SIMPLE_ADMIN_FOR_MULTISITE constant in your blog wp-config.php file for that. Insert this line "define('URE_ENABLE_SIMPLE_ADMIN_FOR_MULTISITE', 1);" there, if you decide to give single site admin such opportunity.
  • One of "User Role Editor" users with 1100+ sites in the multi-site network reported that URE doesn't update roles for all sites, but stalls somewhere in the middle. Other network update method is realized as alternative. Due to my tests it works approximately 30 times faster. If you met the same problem, try it. It will be great if you share your experience with me. In order select alternative method of all sites update add this line to you blog wp-config.php file "define('URE_MULTISITE_DIRECT_UPDATE', 1);". But be careful. It's recommended to make 1st try on the backup copy, not on a live site.
  • Persian translation is updated. Thanks to Parsa.
Download this release

Release Info

Developer shinephp
Plugin Icon 128x128 User Role Editor
Version 3.5
Comparing to
See all releases

Code changes from version 3.4 to 3.5

images/parsa.png ADDED
Binary file
lang/ure-fa_IR.mo CHANGED
Binary file
lang/ure-fa_IR.po CHANGED
@@ -2,10 +2,10 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: User Role Editor\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-12-10 19:14+0700\n"
6
  "PO-Revision-Date: \n"
7
- "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
- "Language-Team: Hady Ghahramanizady <hady1364@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -14,180 +14,353 @@ msgstr ""
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-Basepath: .\n"
 
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
- #: ../ure-role-edit.php:27
20
- #, fuzzy
21
- msgid "None"
22
- msgstr "یاری رسانی"
23
 
24
- #: ../ure-role-edit.php:92
25
- #, fuzzy
26
- msgid " Name can not be empty!"
27
- msgstr "نام نقش نمی تواند خالی باشد"
28
 
29
- #: ../ure-role-edit.php:96
30
- #, fuzzy
31
- msgid " Name must contain latin characters and digits only!"
32
- msgstr "نام نقش باید فقط شامل کاراکترهای لاتین و اعداد باشد"
33
 
34
- #: ../ure-role-edit.php:101
35
- #: ../ure-role-edit.php:284
36
- msgid "Delete Role"
37
- msgstr "حذف نقش"
38
 
39
- #: ../ure-role-edit.php:103
40
- msgid "Change Default Role"
41
- msgstr "تغییر نقش پیش فرض"
42
 
43
- #: ../ure-role-edit.php:105
44
- msgid "Restore Roles from backup copy. Be careful, backup was created when you started URE 1st time. All changes you made after that will be lost"
45
- msgstr ""
 
46
 
47
- #: ../ure-role-edit.php:107
48
- msgid "Warning! Be careful - removing critical capability could crash some plugin or other custom code"
49
- msgstr ""
50
 
51
- #: ../ure-role-edit.php:109
52
- msgid "Please confirm to continue"
53
- msgstr "برای ادامه دادن تأیید کنید"
 
 
 
 
 
54
 
55
- #: ../ure-role-edit.php:146
56
  #, php-format
57
- msgid "Role \"%s\" update: please confirm to continue"
58
- msgstr "برای تأیید کلیک کنید \"%s\" بروز رسانی نقش "
59
 
60
- #: ../ure-role-edit.php:154
61
- msgid "Select Role and change its capabilities list"
62
- msgstr "نقشی را انتخاب کنید و دسترسیهایش را درلیست زیر تغییر دهید"
63
 
64
- #: ../ure-role-edit.php:156
65
- msgid "Select Role:"
66
- msgstr "انتخاب نقش:"
 
67
 
68
- #: ../ure-role-edit.php:166
69
- #: ../ure-user-edit.php:86
70
- msgid "Show capabilities in human readable form"
71
- msgstr "نمایش دسترسیها به فرم قابل درک"
72
 
73
- #: ../ure-role-edit.php:175
74
- #: ../ure-user-edit.php:95
75
- msgid "Show deprecated capabilities"
76
- msgstr ""
77
 
78
- #: ../ure-role-edit.php:179
79
- msgid "If checked, then apply action to ALL sites of this Network"
80
- msgstr ""
81
 
82
- #: ../ure-role-edit.php:189
83
- msgid "Apply to All Sites"
84
- msgstr ""
85
 
86
- #: ../ure-role-edit.php:247
87
- #: ../ure-user-edit.php:156
88
- msgid "Update"
89
- msgstr "بروزرسانی"
90
 
91
- #: ../ure-role-edit.php:247
92
- #: ../ure-user-edit.php:156
93
- msgid "Save Changes"
94
- msgstr "ذخیرۀ تغییرات"
95
 
96
- #: ../ure-role-edit.php:248
97
- #: ../ure-user-edit.php:157
98
- msgid "Cancel"
99
- msgstr "لغو"
100
 
101
- #: ../ure-role-edit.php:248
102
- #: ../ure-user-edit.php:157
103
- msgid "Cancel not saved changes"
104
- msgstr "لغو تغییرات اعمال نشده"
105
 
106
- #: ../ure-role-edit.php:251
107
- msgid "Reset"
108
- msgstr "تنظیم مجدد"
109
 
110
- #: ../ure-role-edit.php:251
111
- msgid "Restore Roles from backup copy"
112
- msgstr "بازیابی نقش ها از نسخۀ پشتیبان"
113
 
114
- #: ../ure-role-edit.php:261
115
- msgid "Add New Role"
116
- msgstr "اضافه کردن نقش جدید"
117
 
118
- #: ../ure-role-edit.php:263
119
- msgid "Name: "
120
- msgstr ""
121
 
122
- #: ../ure-role-edit.php:267
123
- msgid "Make copy of: "
124
- msgstr ""
125
 
126
- #: ../ure-role-edit.php:270
127
- #: ../ure-role-edit.php:299
128
- msgid "Add"
129
- msgstr "اضافه"
130
 
131
- #: ../ure-role-edit.php:270
132
- msgid "Add New User Role"
133
- msgstr "اضافه کردن نقش کاربری جدید"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
 
135
- #: ../ure-role-edit.php:274
136
- msgid "Default Role for New User"
137
- msgstr "نقش پیش فرض برای کاربر جدید"
138
 
139
- #: ../ure-role-edit.php:279
140
- msgid "Change"
141
- msgstr "تغییر"
142
 
143
- #: ../ure-role-edit.php:279
144
- msgid "Set as Default User Role"
145
- msgstr "تنظیم به عنوان نقش پیش فرض کاربر"
146
 
147
- #: ../ure-role-edit.php:289
148
- msgid "Delete"
149
- msgstr "حذف"
150
 
151
- #: ../ure-role-edit.php:289
152
- msgid "Delete User Role"
153
- msgstr "حذف نقش کاربری"
154
 
155
- #: ../ure-role-edit.php:294
156
- #: ../ure-role-edit.php:299
157
- #, fuzzy
158
- msgid "Add New Capability"
159
- msgstr "اضافه کردن نقش جدید"
160
 
161
- #: ../ure-role-edit.php:304
162
- msgid "Remove Capability"
163
- msgstr ""
164
 
165
- #: ../ure-role-edit.php:309
166
  #, fuzzy
167
- msgid "Remove"
168
- msgstr "حذف کاربران"
169
-
170
- #: ../ure-role-edit.php:309
171
- msgid "Remove User Capability"
172
- msgstr ""
173
 
174
- #: ../ure-user-edit.php:67
175
  #, fuzzy, php-format
176
- msgid "User \"%s\" update: please confirm to continue"
177
- msgstr "برای تأیید کلیک کنید \"%s\" بروز رسانی نقش "
178
 
179
- #: ../ure-user-edit.php:74
180
- msgid "Change capabilities for user"
181
- msgstr ""
 
182
 
183
- #: ../ure-user-edit.php:77
184
- #, fuzzy
185
- msgid "Role:"
186
- msgstr "نقش"
187
 
188
- #: ../ure-user-edit.php:99
189
- msgid "Add capabilities to this user:"
190
- msgstr ""
 
 
 
 
 
191
 
192
  #: ../ure-options.php:59
193
  #, fuzzy
@@ -196,7 +369,7 @@ msgstr "دسترسیهای نقش از اطلاعات پشتیبان بازیا
196
 
197
  #: ../ure-options.php:125
198
  msgid "Error: "
199
- msgstr ""
200
 
201
  #: ../ure-options.php:125
202
  #: ../ure-options.php:143
@@ -205,7 +378,7 @@ msgstr "نقش"
205
 
206
  #: ../ure-options.php:125
207
  msgid "does not exist"
208
- msgstr ""
209
 
210
  #: ../ure-options.php:143
211
  msgid "is updated successfully"
@@ -213,7 +386,7 @@ msgstr "با موفقیت بروزرسانی شد"
213
 
214
  #: ../ure-options.php:152
215
  msgid "User"
216
- msgstr ""
217
 
218
  #: ../ure-options.php:152
219
  #, fuzzy
@@ -267,7 +440,7 @@ msgstr "برای ترجمه به زبان هلندی"
267
 
268
  #: ../ure-options.php:216
269
  msgid "For the help with Finnish translation"
270
- msgstr ""
271
 
272
  #: ../ure-options.php:217
273
  msgid "For the help with French translation"
@@ -305,407 +478,238 @@ msgid "For the help with Spanish translation"
305
  msgstr "برای ترجمه به زبان اسپانیایی"
306
 
307
  #: ../ure-options.php:228
308
- msgid "For the help with Swedish translation"
309
- msgstr ""
 
310
 
311
  #: ../ure-options.php:229
 
 
 
312
  #: ../ure-options.php:230
313
  #: ../ure-options.php:231
 
314
  msgid "For the help with Turkish translation"
315
- msgstr ""
316
 
317
- #: ../ure-options.php:233
318
  msgid "For the code to hide administrator role"
319
  msgstr "برای کد مخفی کنندۀ نقش مدیر"
320
 
321
- #: ../ure-options.php:234
322
- msgid "For the code enhancement suggestion"
323
- msgstr ""
324
-
325
- #: ../ure-options.php:236
326
- msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
327
- msgstr "میخوایین اسم و لینک سایتتون رو اینجا ببینید؟ در ترجمه و ایده دهی کمک کنید"
328
-
329
- #: ../user-role-editor.php:35
330
- msgid "User Role Editor requires WordPress 3.0 or newer."
331
- msgstr "ویرایشگر دسترسی کاربر به وردپرس 3.0 یا جدیدتر احتیاج دارد"
332
-
333
- #: ../user-role-editor.php:35
334
- #: ../user-role-editor.php:40
335
- msgid "Please update!"
336
- msgstr "! لطفا بروزرسانی شود"
337
-
338
- #: ../user-role-editor.php:40
339
- #, fuzzy
340
- msgid "User Role Editor requires PHP 5.0 or newer."
341
- msgstr "ویرایشگر دسترسی کاربر به وردپرس 3.0 یا جدیدتر احتیاج دارد"
342
-
343
- #: ../user-role-editor.php:65
344
- msgid "Only"
345
- msgstr ""
346
-
347
- #: ../user-role-editor.php:65
348
- msgid "is allowed to use"
349
- msgstr ""
350
-
351
- #: ../user-role-editor.php:71
352
- #: ../user-role-editor.php:233
353
- msgid "User Role Editor"
354
- msgstr "ویرایش دسترسیهای کاربر"
355
-
356
- #: ../user-role-editor.php:209
357
- msgid "Settings"
358
- msgstr "تنظیمات"
359
-
360
- #: ../user-role-editor.php:258
361
- msgid "Capabilities"
362
- msgstr ""
363
-
364
- #: ../ure-lib.php:45
365
- msgid "Error is occur. Please check the log file."
366
- msgstr "اشکالی رخ داده، لطفاً لاگ عملیات را ببینید"
367
-
368
- #: ../ure-lib.php:153
369
- msgid "Database operation error. Check log file."
370
- msgstr "مشکل با دیتابیس. لطفاً لاگ عملیات را ببینید"
371
-
372
- #: ../ure-lib.php:186
373
- msgid "No backup data. It is created automatically before the first role data update."
374
- msgstr "اطلاعات پشتیبانی وجود ندارد. این پشتیبان به طور خودکار قبل از اولین بروزرسانی نقش ایجاد می شود"
375
-
376
- #: ../ure-lib.php:224
377
- msgid "Backup record is created for the current role capabilities"
378
- msgstr "اطلاعات پشتیبان برای تنظیمات نقش فعلی ذخیره شد"
379
-
380
- #: ../ure-lib.php:300
381
- msgid "Error: Role name must contain latin characters and digits only!"
382
- msgstr "مشکل: نام نقش باید فقط شامل کاراکترهای لاتین و اعداد باشد"
383
-
384
- #: ../ure-lib.php:307
385
- #, fuzzy, php-format
386
- msgid "Role %s exists already"
387
- msgstr "نقش %s با موفقیت ساخته شد"
388
-
389
- #: ../ure-lib.php:320
390
- msgid "Error is encountered during new role create operation"
391
- msgstr "در زمان ساخت نقش جدید مشکلی بوجود آمد"
392
-
393
- #: ../ure-lib.php:322
394
- #, php-format
395
- msgid "Role %s is created successfully"
396
- msgstr "نقش %s با موفقیت ساخته شد"
397
-
398
- #: ../ure-lib.php:406
399
- msgid "Error encountered during role delete operation"
400
- msgstr "اشکال در پاک کردن نقش"
401
-
402
- #: ../ure-lib.php:408
403
- #, php-format
404
- msgid "Role %s is deleted successfully"
405
- msgstr "نقش %s با موفقیت پاک شد "
406
-
407
- #: ../ure-lib.php:426
408
- msgid "Error encountered during default role change operation"
409
- msgstr "اشکال در عملیات تغییر نقش پیش فرض"
410
-
411
- #: ../ure-lib.php:432
412
- #, php-format
413
- msgid "Default role for new users is set to %s successfully"
414
- msgstr "نقش پیش فرض برای کاربران %s با موفقیت تنظیم شد "
415
-
416
- #: ../ure-lib.php:460
417
- msgid "Editor"
418
- msgstr "ویرایشگر"
419
-
420
- #: ../ure-lib.php:461
421
- msgid "Author"
422
- msgstr "نویسنده"
423
-
424
- #: ../ure-lib.php:462
425
- msgid "Contributor"
426
- msgstr "مشارکت کننده"
427
-
428
- #: ../ure-lib.php:463
429
- msgid "Subscriber"
430
- msgstr "مشترک"
431
-
432
- #: ../ure-lib.php:465
433
- msgid "Switch themes"
434
- msgstr "تغییر پوسته"
435
-
436
- #: ../ure-lib.php:466
437
- msgid "Edit themes"
438
- msgstr "ویرایش پوسته"
439
-
440
- #: ../ure-lib.php:467
441
- msgid "Activate plugins"
442
- msgstr "فعال سازی افزونه"
443
-
444
- #: ../ure-lib.php:468
445
- msgid "Edit plugins"
446
- msgstr "ویرایش افزونه"
447
-
448
- #: ../ure-lib.php:469
449
- msgid "Edit users"
450
- msgstr "ویرایش کاربران"
451
-
452
- #: ../ure-lib.php:470
453
- msgid "Edit files"
454
- msgstr "ویرایش فایلها"
455
-
456
- #: ../ure-lib.php:471
457
- msgid "Manage options"
458
- msgstr "مدیریت تنظیمات"
459
-
460
- #: ../ure-lib.php:472
461
- msgid "Moderate comments"
462
- msgstr "مدیریت نظرات"
463
-
464
- #: ../ure-lib.php:473
465
- msgid "Manage categories"
466
- msgstr "مدیریت دسته ها"
467
-
468
- #: ../ure-lib.php:474
469
- msgid "Manage links"
470
- msgstr "مدیریت لینکها"
471
-
472
- #: ../ure-lib.php:475
473
- msgid "Upload files"
474
- msgstr "آپلود فایل"
475
-
476
- #: ../ure-lib.php:476
477
- msgid "Import"
478
- msgstr "درون ریزی"
479
-
480
- #: ../ure-lib.php:477
481
- msgid "Unfiltered html"
482
- msgstr "بدون فیلتر html "
483
-
484
- #: ../ure-lib.php:478
485
- msgid "Edit posts"
486
- msgstr "ویرایش پستها"
487
-
488
- #: ../ure-lib.php:479
489
- msgid "Edit others posts"
490
- msgstr "ویرایش نوشته های دیگران"
491
-
492
- #: ../ure-lib.php:480
493
- msgid "Edit published posts"
494
- msgstr "ویرایش پستهای دیگران"
495
-
496
- #: ../ure-lib.php:481
497
- msgid "Publish posts"
498
- msgstr "انتشار نوشته"
499
-
500
- #: ../ure-lib.php:482
501
- msgid "Edit pages"
502
- msgstr "ویرایش برگه"
503
-
504
- #: ../ure-lib.php:483
505
- msgid "Read"
506
- msgstr "خواندن"
507
-
508
- #: ../ure-lib.php:484
509
- msgid "Level 10"
510
- msgstr "سطح 10"
511
-
512
- #: ../ure-lib.php:485
513
- msgid "Level 9"
514
- msgstr "سطح 9"
515
-
516
- #: ../ure-lib.php:486
517
- msgid "Level 8"
518
- msgstr "سطح 8"
519
 
520
- #: ../ure-lib.php:487
521
- msgid "Level 7"
522
- msgstr "سطح 7"
523
 
524
- #: ../ure-lib.php:488
525
- msgid "Level 6"
526
- msgstr "سطح 6"
 
527
 
528
- #: ../ure-lib.php:489
529
- msgid "Level 5"
530
- msgstr "سطح 5"
 
531
 
532
- #: ../ure-lib.php:490
533
- msgid "Level 4"
534
- msgstr "سطح 4"
 
535
 
536
- #: ../ure-lib.php:491
537
- msgid "Level 3"
538
- msgstr "سطح 3"
 
539
 
540
- #: ../ure-lib.php:492
541
- msgid "Level 2"
542
- msgstr "سطح 2"
543
 
544
- #: ../ure-lib.php:493
545
- msgid "Level 1"
546
- msgstr "سطح 1"
547
 
548
- #: ../ure-lib.php:494
549
- msgid "Level 0"
550
- msgstr "سطح 0"
551
 
552
- #: ../ure-lib.php:495
553
- msgid "Edit others pages"
554
- msgstr "ویرایش برگه های دیگران"
555
 
556
- #: ../ure-lib.php:496
557
- msgid "Edit published pages"
558
- msgstr "ویرایش برگه های منتشر شده"
 
559
 
560
- #: ../ure-lib.php:497
561
- msgid "Publish pages"
562
- msgstr "انتشار برگه"
563
 
564
- #: ../ure-lib.php:498
565
- msgid "Delete pages"
566
- msgstr "حذف برگه"
567
 
568
- #: ../ure-lib.php:499
569
- msgid "Delete others pages"
570
- msgstr "حذف برگه های دیگران"
 
571
 
572
- #: ../ure-lib.php:500
573
- msgid "Delete published pages"
574
- msgstr "حذف برگه های منتشر شده"
 
575
 
576
- #: ../ure-lib.php:501
577
- msgid "Delete posts"
578
- msgstr "حذف نوشته ها"
579
 
580
- #: ../ure-lib.php:502
581
- msgid "Delete others posts"
582
- msgstr "حذف نوشته های دیگران"
583
 
584
- #: ../ure-lib.php:503
585
- msgid "Delete published posts"
586
- msgstr "حذف نوشته های منتشر شده"
 
587
 
588
- #: ../ure-lib.php:504
589
- msgid "Delete private posts"
590
- msgstr "حذف نوشته های خصوصی"
 
591
 
592
- #: ../ure-lib.php:505
593
- msgid "Edit private posts"
594
- msgstr "ویرایش نوشته های خصوصی"
 
595
 
596
- #: ../ure-lib.php:506
597
- msgid "Read private posts"
598
- msgstr "خواندن نوشته های خصوصی"
 
599
 
600
- #: ../ure-lib.php:507
601
- msgid "Delete private pages"
602
- msgstr "حذف برگه های خصوصی"
603
 
604
- #: ../ure-lib.php:508
605
- msgid "Edit private pages"
606
- msgstr "ویرایش برگه های خصوصی"
607
 
608
- #: ../ure-lib.php:509
609
- msgid "Read private pages"
610
- msgstr "خواندن برگه های خصوصی"
611
 
612
- #: ../ure-lib.php:510
613
- msgid "Delete users"
614
- msgstr "حذف کاربران"
615
 
616
- #: ../ure-lib.php:511
617
- msgid "Create users"
618
- msgstr "ایجاد کاربر"
619
 
620
- #: ../ure-lib.php:512
621
- msgid "Unfiltered upload"
622
- msgstr "آپلود بدون محدودیت"
 
623
 
624
- #: ../ure-lib.php:513
625
- msgid "Edit dashboard"
626
- msgstr "ویرایش پیش خوان"
627
 
628
- #: ../ure-lib.php:514
629
- msgid "Update plugins"
630
- msgstr "بروز رسانی افزونه ها"
631
 
632
- #: ../ure-lib.php:515
633
- msgid "Delete plugins"
634
- msgstr "حذف افزونه ها"
635
 
636
- #: ../ure-lib.php:516
637
- msgid "Install plugins"
638
- msgstr "نصب افزونه ها"
639
 
640
- #: ../ure-lib.php:517
641
- msgid "Update themes"
642
- msgstr "بروز رسانی پوسته ها"
643
 
644
- #: ../ure-lib.php:518
645
- msgid "Install themes"
646
- msgstr "نصب پوسته"
647
 
648
- #: ../ure-lib.php:519
649
- msgid "Update core"
650
- msgstr "بروزرسانی وردپرس"
 
651
 
652
- #: ../ure-lib.php:520
653
- msgid "List users"
654
- msgstr "لیست کاربران"
655
 
656
- #: ../ure-lib.php:521
657
- msgid "Remove users"
 
658
  msgstr "حذف کاربران"
659
 
660
- #: ../ure-lib.php:522
661
- msgid "Add users"
662
- msgstr "افزودن کاربر"
663
 
664
- #: ../ure-lib.php:523
665
- msgid "Promote users"
666
- msgstr "ترفیع کاربران"
 
667
 
668
- #: ../ure-lib.php:524
669
- msgid "Edit theme options"
670
- msgstr "ویرایش تنظیمات پوشته"
671
 
672
- #: ../ure-lib.php:525
673
- msgid "Delete themes"
674
- msgstr "حذف پوسته ها"
 
675
 
676
- #: ../ure-lib.php:526
677
- msgid "Export"
678
- msgstr "برون ریزی"
 
 
 
 
 
 
 
 
 
679
 
680
- #: ../ure-lib.php:609
681
  #, fuzzy
682
- msgid "Error: Capability name must contain latin characters and digits only!"
683
- msgstr "مشکل: نام نقش باید فقط شامل کاراکترهای لاتین و اعداد باشد"
684
 
685
- #: ../ure-lib.php:621
686
- #, fuzzy, php-format
687
- msgid "Capability %s is added successfully"
688
- msgstr "نقش %s با موفقیت ساخته شد"
689
 
690
- #: ../ure-lib.php:623
691
- #, php-format
692
- msgid "Capability %s exists already"
693
- msgstr ""
694
 
695
- #: ../ure-lib.php:772
696
- #, php-format
697
- msgid "Error! You do not have permission to delete this capability: %s!"
698
- msgstr ""
699
 
700
- #: ../ure-lib.php:794
701
- #, fuzzy, php-format
702
- msgid "Capability %s is removed successfully"
703
- msgstr "نقش %s با موفقیت ساخته شد"
704
 
705
- #: ../ure-lib.php:825
706
- msgid "Help"
707
- msgstr ""
708
 
709
  #~ msgid "Roles list reading error is encountered"
710
  #~ msgstr "اشکال در خواندن لیست دسترسیهای نقش"
711
-
2
  msgstr ""
3
  "Project-Id-Version: User Role Editor\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-07 03:46+0330\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Parsa <i@parsa.ws>\n"
8
+ "Language-Team: Parsa <i@parsa.ws>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-Basepath: .\n"
17
+ "Plural-Forms: www.parsa.ws\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
+ #: ../ure-lib.php:45
21
+ msgid "Error is occur. Please check the log file."
22
+ msgstr "اشکالی رخ داده، لطفاً لاگ عملیات را ببینید"
 
23
 
24
+ #: ../ure-lib.php:155
25
+ msgid "Database operation error. Check log file."
26
+ msgstr "مشکل با دیتابیس. لطفاً لاگ عملیات را ببینید"
 
27
 
28
+ #: ../ure-lib.php:188
29
+ msgid "No backup data. It is created automatically before the first role data update."
30
+ msgstr "اطلاعات پشتیبانی وجود ندارد. این پشتیبان به طور خودکار قبل از اولین بروزرسانی نقش ایجاد می شود"
 
31
 
32
+ #: ../ure-lib.php:226
33
+ msgid "Backup record is created for the current role capabilities"
34
+ msgstr "اطلاعات پشتیبان برای تنظیمات نقش فعلی ذخیره شد"
 
35
 
36
+ #: ../ure-lib.php:303
37
+ msgid "Error: Role name must contain latin characters and digits only!"
38
+ msgstr "مشکل: نام نقش باید فقط شامل کاراکترهای لاتین و اعداد باشد"
39
 
40
+ #: ../ure-lib.php:310
41
+ #, php-format
42
+ msgid "Role %s exists already"
43
+ msgstr "نقش %s وجود دارد"
44
 
45
+ #: ../ure-lib.php:323
46
+ msgid "Error is encountered during new role create operation"
47
+ msgstr "در زمان ساخت نقش جدید مشکلی بوجود آمد"
48
 
49
+ #: ../ure-lib.php:325
50
+ #, php-format
51
+ msgid "Role %s is created successfully"
52
+ msgstr "نقش %s با موفقیت ساخته شد"
53
+
54
+ #: ../ure-lib.php:409
55
+ msgid "Error encountered during role delete operation"
56
+ msgstr "اشکال در پاک کردن نقش"
57
 
58
+ #: ../ure-lib.php:411
59
  #, php-format
60
+ msgid "Role %s is deleted successfully"
61
+ msgstr "نقش %s با موفقیت پاک شد "
62
 
63
+ #: ../ure-lib.php:429
64
+ msgid "Error encountered during default role change operation"
65
+ msgstr "اشکال در عملیات تغییر نقش پیش فرض"
66
 
67
+ #: ../ure-lib.php:435
68
+ #, php-format
69
+ msgid "Default role for new users is set to %s successfully"
70
+ msgstr "نقش پیش فرض برای کاربران %s با موفقیت تنظیم شد "
71
 
72
+ #: ../ure-lib.php:463
73
+ msgid "Editor"
74
+ msgstr "ویرایشگر"
 
75
 
76
+ #: ../ure-lib.php:464
77
+ msgid "Author"
78
+ msgstr "نویسنده"
 
79
 
80
+ #: ../ure-lib.php:465
81
+ msgid "Contributor"
82
+ msgstr "مشارکت کننده"
83
 
84
+ #: ../ure-lib.php:466
85
+ msgid "Subscriber"
86
+ msgstr "مشترک"
87
 
88
+ #: ../ure-lib.php:468
89
+ msgid "Switch themes"
90
+ msgstr "تغییر پوسته"
 
91
 
92
+ #: ../ure-lib.php:469
93
+ msgid "Edit themes"
94
+ msgstr "ویرایش پوسته"
 
95
 
96
+ #: ../ure-lib.php:470
97
+ msgid "Activate plugins"
98
+ msgstr "فعال سازی افزونه"
 
99
 
100
+ #: ../ure-lib.php:471
101
+ msgid "Edit plugins"
102
+ msgstr "ویرایش افزونه"
 
103
 
104
+ #: ../ure-lib.php:472
105
+ msgid "Edit users"
106
+ msgstr "ویرایش کاربران"
107
 
108
+ #: ../ure-lib.php:473
109
+ msgid "Edit files"
110
+ msgstr "ویرایش فایلها"
111
 
112
+ #: ../ure-lib.php:474
113
+ msgid "Manage options"
114
+ msgstr "مدیریت تنظیمات"
115
 
116
+ #: ../ure-lib.php:475
117
+ msgid "Moderate comments"
118
+ msgstr "مدیریت نظرات"
119
 
120
+ #: ../ure-lib.php:476
121
+ msgid "Manage categories"
122
+ msgstr "مدیریت دسته ها"
123
 
124
+ #: ../ure-lib.php:477
125
+ msgid "Manage links"
126
+ msgstr "مدیریت لینکها"
 
127
 
128
+ #: ../ure-lib.php:478
129
+ msgid "Upload files"
130
+ msgstr "آپلود فایل"
131
+
132
+ #: ../ure-lib.php:479
133
+ msgid "Import"
134
+ msgstr "درون ریزی"
135
+
136
+ #: ../ure-lib.php:480
137
+ msgid "Unfiltered html"
138
+ msgstr "بدون فیلتر html "
139
+
140
+ #: ../ure-lib.php:481
141
+ msgid "Edit posts"
142
+ msgstr "ویرایش پستها"
143
+
144
+ #: ../ure-lib.php:482
145
+ msgid "Edit others posts"
146
+ msgstr "ویرایش نوشته های دیگران"
147
+
148
+ #: ../ure-lib.php:483
149
+ msgid "Edit published posts"
150
+ msgstr "ویرایش پستهای دیگران"
151
+
152
+ #: ../ure-lib.php:484
153
+ msgid "Publish posts"
154
+ msgstr "انتشار نوشته"
155
+
156
+ #: ../ure-lib.php:485
157
+ msgid "Edit pages"
158
+ msgstr "ویرایش برگه"
159
+
160
+ #: ../ure-lib.php:486
161
+ msgid "Read"
162
+ msgstr "خواندن"
163
+
164
+ #: ../ure-lib.php:487
165
+ msgid "Level 10"
166
+ msgstr "سطح 10"
167
+
168
+ #: ../ure-lib.php:488
169
+ msgid "Level 9"
170
+ msgstr "سطح 9"
171
+
172
+ #: ../ure-lib.php:489
173
+ msgid "Level 8"
174
+ msgstr "سطح 8"
175
+
176
+ #: ../ure-lib.php:490
177
+ msgid "Level 7"
178
+ msgstr "سطح 7"
179
+
180
+ #: ../ure-lib.php:491
181
+ msgid "Level 6"
182
+ msgstr "سطح 6"
183
+
184
+ #: ../ure-lib.php:492
185
+ msgid "Level 5"
186
+ msgstr "سطح 5"
187
+
188
+ #: ../ure-lib.php:493
189
+ msgid "Level 4"
190
+ msgstr "سطح 4"
191
+
192
+ #: ../ure-lib.php:494
193
+ msgid "Level 3"
194
+ msgstr "سطح 3"
195
+
196
+ #: ../ure-lib.php:495
197
+ msgid "Level 2"
198
+ msgstr "سطح 2"
199
+
200
+ #: ../ure-lib.php:496
201
+ msgid "Level 1"
202
+ msgstr "سطح 1"
203
+
204
+ #: ../ure-lib.php:497
205
+ msgid "Level 0"
206
+ msgstr "سطح 0"
207
+
208
+ #: ../ure-lib.php:498
209
+ msgid "Edit others pages"
210
+ msgstr "ویرایش برگه های دیگران"
211
+
212
+ #: ../ure-lib.php:499
213
+ msgid "Edit published pages"
214
+ msgstr "ویرایش برگه های منتشر شده"
215
+
216
+ #: ../ure-lib.php:500
217
+ msgid "Publish pages"
218
+ msgstr "انتشار برگه"
219
+
220
+ #: ../ure-lib.php:501
221
+ msgid "Delete pages"
222
+ msgstr "حذف برگه"
223
+
224
+ #: ../ure-lib.php:502
225
+ msgid "Delete others pages"
226
+ msgstr "حذف برگه های دیگران"
227
+
228
+ #: ../ure-lib.php:503
229
+ msgid "Delete published pages"
230
+ msgstr "حذف برگه های منتشر شده"
231
+
232
+ #: ../ure-lib.php:504
233
+ msgid "Delete posts"
234
+ msgstr "حذف نوشته ها"
235
+
236
+ #: ../ure-lib.php:505
237
+ msgid "Delete others posts"
238
+ msgstr "حذف نوشته های دیگران"
239
+
240
+ #: ../ure-lib.php:506
241
+ msgid "Delete published posts"
242
+ msgstr "حذف نوشته های منتشر شده"
243
+
244
+ #: ../ure-lib.php:507
245
+ msgid "Delete private posts"
246
+ msgstr "حذف نوشته های خصوصی"
247
+
248
+ #: ../ure-lib.php:508
249
+ msgid "Edit private posts"
250
+ msgstr "ویرایش نوشته های خصوصی"
251
+
252
+ #: ../ure-lib.php:509
253
+ msgid "Read private posts"
254
+ msgstr "خواندن نوشته های خصوصی"
255
+
256
+ #: ../ure-lib.php:510
257
+ msgid "Delete private pages"
258
+ msgstr "حذف برگه های خصوصی"
259
+
260
+ #: ../ure-lib.php:511
261
+ msgid "Edit private pages"
262
+ msgstr "ویرایش برگه های خصوصی"
263
+
264
+ #: ../ure-lib.php:512
265
+ msgid "Read private pages"
266
+ msgstr "خواندن برگه های خصوصی"
267
+
268
+ #: ../ure-lib.php:513
269
+ msgid "Delete users"
270
+ msgstr "حذف کاربران"
271
+
272
+ #: ../ure-lib.php:514
273
+ msgid "Create users"
274
+ msgstr "ایجاد کاربر"
275
+
276
+ #: ../ure-lib.php:515
277
+ msgid "Unfiltered upload"
278
+ msgstr "آپلود بدون محدودیت"
279
+
280
+ #: ../ure-lib.php:516
281
+ msgid "Edit dashboard"
282
+ msgstr "ویرایش پیش خوان"
283
+
284
+ #: ../ure-lib.php:517
285
+ msgid "Update plugins"
286
+ msgstr "بروز رسانی افزونه ها"
287
+
288
+ #: ../ure-lib.php:518
289
+ msgid "Delete plugins"
290
+ msgstr "حذف افزونه ها"
291
+
292
+ #: ../ure-lib.php:519
293
+ msgid "Install plugins"
294
+ msgstr "نصب افزونه ها"
295
+
296
+ #: ../ure-lib.php:520
297
+ msgid "Update themes"
298
+ msgstr "بروز رسانی پوسته ها"
299
+
300
+ #: ../ure-lib.php:521
301
+ msgid "Install themes"
302
+ msgstr "نصب پوسته"
303
+
304
+ #: ../ure-lib.php:522
305
+ msgid "Update core"
306
+ msgstr "بروزرسانی وردپرس"
307
 
308
+ #: ../ure-lib.php:523
309
+ msgid "List users"
310
+ msgstr "لیست کاربران"
311
 
312
+ #: ../ure-lib.php:524
313
+ msgid "Remove users"
314
+ msgstr "حذف کاربران"
315
 
316
+ #: ../ure-lib.php:525
317
+ msgid "Add users"
318
+ msgstr "افزودن کاربر"
319
 
320
+ #: ../ure-lib.php:526
321
+ msgid "Promote users"
322
+ msgstr "ترفیع کاربران"
323
 
324
+ #: ../ure-lib.php:527
325
+ msgid "Edit theme options"
326
+ msgstr "ویرایش تنظیمات پوشته"
327
 
328
+ #: ../ure-lib.php:528
329
+ msgid "Delete themes"
330
+ msgstr "حذف پوسته ها"
 
 
331
 
332
+ #: ../ure-lib.php:529
333
+ msgid "Export"
334
+ msgstr "برون ریزی"
335
 
336
+ #: ../ure-lib.php:612
337
  #, fuzzy
338
+ msgid "Error: Capability name must contain latin characters and digits only!"
339
+ msgstr "مشکل: نام نقش باید فقط شامل کاراکترهای لاتین و اعداد باشد"
 
 
 
 
340
 
341
+ #: ../ure-lib.php:624
342
  #, fuzzy, php-format
343
+ msgid "Capability %s is added successfully"
344
+ msgstr "نقش %s با موفقیت ساخته شد"
345
 
346
+ #: ../ure-lib.php:626
347
+ #, php-format
348
+ msgid "Capability %s exists already"
349
+ msgstr "قابلیت %s در حال حاضر وجود دارد"
350
 
351
+ #: ../ure-lib.php:775
352
+ #, php-format
353
+ msgid "Error! You do not have permission to delete this capability: %s!"
354
+ msgstr "خطا! شما مجوز حذف این قابلیت را ندارید: %s!"
355
 
356
+ #: ../ure-lib.php:797
357
+ #, fuzzy, php-format
358
+ msgid "Capability %s is removed successfully"
359
+ msgstr "نقش %s با موفقیت ساخته شد"
360
+
361
+ #: ../ure-lib.php:832
362
+ msgid "Help"
363
+ msgstr "راهنما"
364
 
365
  #: ../ure-options.php:59
366
  #, fuzzy
369
 
370
  #: ../ure-options.php:125
371
  msgid "Error: "
372
+ msgstr "خطا:"
373
 
374
  #: ../ure-options.php:125
375
  #: ../ure-options.php:143
378
 
379
  #: ../ure-options.php:125
380
  msgid "does not exist"
381
+ msgstr "پیدا نشد"
382
 
383
  #: ../ure-options.php:143
384
  msgid "is updated successfully"
386
 
387
  #: ../ure-options.php:152
388
  msgid "User"
389
+ msgstr "کاربر"
390
 
391
  #: ../ure-options.php:152
392
  #, fuzzy
440
 
441
  #: ../ure-options.php:216
442
  msgid "For the help with Finnish translation"
443
+ msgstr "برای ترجمه به زبان فنلاندی"
444
 
445
  #: ../ure-options.php:217
446
  msgid "For the help with French translation"
478
  msgstr "برای ترجمه به زبان اسپانیایی"
479
 
480
  #: ../ure-options.php:228
481
+ #, fuzzy
482
+ msgid "For the updated Swedish translation"
483
+ msgstr "برای ترجمه به زبان سوئدی"
484
 
485
  #: ../ure-options.php:229
486
+ msgid "For the help with Swedish translation"
487
+ msgstr "برای ترجمه به زبان سوئدی"
488
+
489
  #: ../ure-options.php:230
490
  #: ../ure-options.php:231
491
+ #: ../ure-options.php:232
492
  msgid "For the help with Turkish translation"
493
+ msgstr "برای ترجمه به زبان ترکی"
494
 
495
+ #: ../ure-options.php:234
496
  msgid "For the code to hide administrator role"
497
  msgstr "برای کد مخفی کنندۀ نقش مدیر"
498
 
499
+ #: ../ure-options.php:235
500
+ msgid "For the code enhancement suggestion"
501
+ msgstr "برای کد افزایش پیشنهاد"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
 
503
+ #: ../ure-options.php:237
504
+ msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
505
+ msgstr "میخوایین اسم و لینک سایتتون رو اینجا ببینید؟ در ترجمه و ایده دهی کمک کنید"
506
 
507
+ #: ../ure-role-edit.php:29
508
+ #, fuzzy
509
+ msgid "None"
510
+ msgstr "یاری رسانی"
511
 
512
+ #: ../ure-role-edit.php:94
513
+ #, fuzzy
514
+ msgid " Name can not be empty!"
515
+ msgstr "نام نقش نمی تواند خالی باشد"
516
 
517
+ #: ../ure-role-edit.php:98
518
+ #, fuzzy
519
+ msgid " Name must contain latin characters and digits only!"
520
+ msgstr "نام نقش باید فقط شامل کاراکترهای لاتین و اعداد باشد"
521
 
522
+ #: ../ure-role-edit.php:103
523
+ #: ../ure-role-edit.php:288
524
+ msgid "Delete Role"
525
+ msgstr "حذف نقش"
526
 
527
+ #: ../ure-role-edit.php:105
528
+ msgid "Change Default Role"
529
+ msgstr "تغییر نقش پیش فرض"
530
 
531
+ #: ../ure-role-edit.php:107
532
+ msgid "Restore Roles from backup copy. Be careful, backup was created when you started URE 1st time. All changes you made after that will be lost"
533
+ msgstr "بازگردانی نقشها از بک‌آپ. با دقت، بک‌آپ هنگام اولین اجرای افزونه ایجاد میشود و تمام تغییرات به حالت اول برگردانده خواهد شد."
534
 
535
+ #: ../ure-role-edit.php:109
536
+ msgid "Warning! Be careful - removing critical capability could crash some plugin or other custom code"
537
+ msgstr "هشدار! با دقت - حذف قابلیتهای بحرانی باعث از کار افتادن افزونه‌ها و دیگر حالتها خواهد شد"
538
 
539
+ #: ../ure-role-edit.php:111
540
+ msgid "Please confirm to continue"
541
+ msgstr "برای ادامه دادن تأیید کنید"
542
 
543
+ #: ../ure-role-edit.php:148
544
+ #, php-format
545
+ msgid "Role \"%s\" update: please confirm to continue"
546
+ msgstr "برای تأیید کلیک کنید \"%s\" بروز رسانی نقش "
547
 
548
+ #: ../ure-role-edit.php:156
549
+ msgid "Select Role and change its capabilities list"
550
+ msgstr "نقشی را انتخاب کنید و دسترسیهایش را درلیست زیر تغییر دهید"
551
 
552
+ #: ../ure-role-edit.php:158
553
+ msgid "Select Role:"
554
+ msgstr "انتخاب نقش:"
555
 
556
+ #: ../ure-role-edit.php:168
557
+ #: ../ure-user-edit.php:86
558
+ msgid "Show capabilities in human readable form"
559
+ msgstr "نمایش دسترسیها به فرم قابل درک"
560
 
561
+ #: ../ure-role-edit.php:177
562
+ #: ../ure-user-edit.php:95
563
+ msgid "Show deprecated capabilities"
564
+ msgstr "نمایش قابلیت های بیهوده"
565
 
566
+ #: ../ure-role-edit.php:181
567
+ msgid "If checked, then apply action to ALL sites of this Network"
568
+ msgstr "در صورت انتخاب، و سپس اعمال به همه سایت های این شبکه اعمال می شود"
569
 
570
+ #: ../ure-role-edit.php:191
571
+ msgid "Apply to All Sites"
572
+ msgstr "اعمال به تمام سایتها"
573
 
574
+ #: ../ure-role-edit.php:251
575
+ #: ../ure-user-edit.php:158
576
+ msgid "Update"
577
+ msgstr "بروزرسانی"
578
 
579
+ #: ../ure-role-edit.php:251
580
+ #: ../ure-user-edit.php:158
581
+ msgid "Save Changes"
582
+ msgstr "ذخیرۀ تغییرات"
583
 
584
+ #: ../ure-role-edit.php:252
585
+ #: ../ure-user-edit.php:159
586
+ msgid "Cancel"
587
+ msgstr "لغو"
588
 
589
+ #: ../ure-role-edit.php:252
590
+ #: ../ure-user-edit.php:159
591
+ msgid "Cancel not saved changes"
592
+ msgstr "لغو تغییرات اعمال نشده"
593
 
594
+ #: ../ure-role-edit.php:255
595
+ msgid "Reset"
596
+ msgstr "تنظیم مجدد"
597
 
598
+ #: ../ure-role-edit.php:255
599
+ msgid "Restore Roles from backup copy"
600
+ msgstr "بازیابی نقش ها از نسخۀ پشتیبان"
601
 
602
+ #: ../ure-role-edit.php:265
603
+ msgid "Add New Role"
604
+ msgstr "اضافه کردن نقش جدید"
605
 
606
+ #: ../ure-role-edit.php:267
607
+ msgid "Name: "
608
+ msgstr "نام:"
609
 
610
+ #: ../ure-role-edit.php:271
611
+ msgid "Make copy of: "
612
+ msgstr "ساخت کپی از:"
613
 
614
+ #: ../ure-role-edit.php:274
615
+ #: ../ure-role-edit.php:303
616
+ msgid "Add"
617
+ msgstr "اضافه"
618
 
619
+ #: ../ure-role-edit.php:274
620
+ msgid "Add New User Role"
621
+ msgstr "اضافه کردن نقش کاربری جدید"
622
 
623
+ #: ../ure-role-edit.php:278
624
+ msgid "Default Role for New User"
625
+ msgstr "نقش پیش فرض برای کاربر جدید"
626
 
627
+ #: ../ure-role-edit.php:283
628
+ msgid "Change"
629
+ msgstr "تغییر"
630
 
631
+ #: ../ure-role-edit.php:283
632
+ msgid "Set as Default User Role"
633
+ msgstr "تنظیم به عنوان نقش پیش فرض کاربر"
634
 
635
+ #: ../ure-role-edit.php:293
636
+ msgid "Delete"
637
+ msgstr "حذف"
638
 
639
+ #: ../ure-role-edit.php:293
640
+ msgid "Delete User Role"
641
+ msgstr "حذف نقش کاربری"
642
 
643
+ #: ../ure-role-edit.php:298
644
+ #: ../ure-role-edit.php:303
645
+ msgid "Add New Capability"
646
+ msgstr "اضافه کردن نقش جدید"
647
 
648
+ #: ../ure-role-edit.php:308
649
+ msgid "Remove Capability"
650
+ msgstr "حذف قابلیت"
651
 
652
+ #: ../ure-role-edit.php:313
653
+ #, fuzzy
654
+ msgid "Remove"
655
  msgstr "حذف کاربران"
656
 
657
+ #: ../ure-role-edit.php:313
658
+ msgid "Remove User Capability"
659
+ msgstr "حذف قابلیت کاربر"
660
 
661
+ #: ../ure-user-edit.php:67
662
+ #, fuzzy, php-format
663
+ msgid "User \"%s\" update: please confirm to continue"
664
+ msgstr "برای تأیید کلیک کنید \"%s\" بروز رسانی نقش "
665
 
666
+ #: ../ure-user-edit.php:74
667
+ msgid "Change capabilities for user"
668
+ msgstr "تغییر قابلیتهای برای کاربر"
669
 
670
+ #: ../ure-user-edit.php:77
671
+ #, fuzzy
672
+ msgid "Role:"
673
+ msgstr "نقش"
674
 
675
+ #: ../ure-user-edit.php:99
676
+ msgid "Add capabilities to this user:"
677
+ msgstr "افزودن قابلیت برای این کاربر:"
678
+
679
+ #: ../user-role-editor.php:35
680
+ msgid "User Role Editor requires WordPress 3.0 or newer."
681
+ msgstr "ویرایشگر دسترسی کاربر به وردپرس 3.0 یا جدیدتر احتیاج دارد"
682
+
683
+ #: ../user-role-editor.php:35
684
+ #: ../user-role-editor.php:40
685
+ msgid "Please update!"
686
+ msgstr "! لطفا بروزرسانی شود"
687
 
688
+ #: ../user-role-editor.php:40
689
  #, fuzzy
690
+ msgid "User Role Editor requires PHP 5.0 or newer."
691
+ msgstr "ویرایشگر دسترسی کاربر به وردپرس 3.0 یا جدیدتر احتیاج دارد"
692
 
693
+ #: ../user-role-editor.php:65
694
+ msgid "Only"
695
+ msgstr "فقط"
 
696
 
697
+ #: ../user-role-editor.php:65
698
+ msgid "is allowed to use"
699
+ msgstr "مجاز به استفاده از"
 
700
 
701
+ #: ../user-role-editor.php:71
702
+ #: ../user-role-editor.php:233
703
+ msgid "User Role Editor"
704
+ msgstr "ویرایش دسترسیهای کاربر"
705
 
706
+ #: ../user-role-editor.php:209
707
+ msgid "Settings"
708
+ msgstr "تنظیمات"
 
709
 
710
+ #: ../user-role-editor.php:258
711
+ msgid "Capabilities"
712
+ msgstr "توانمندی‌ها"
713
 
714
  #~ msgid "Roles list reading error is encountered"
715
  #~ msgstr "اشکال در خواندن لیست دسترسیهای نقش"
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladi
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
- Stable tag: 3.4
8
 
9
  User Role Editor WordPress plugin makes the role capabilities changing easy. You can change any standard WordPress user role (except administrator).
10
 
@@ -53,6 +53,7 @@ To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/
53
  * [FullThrottle](http://fullthrottledevelopment.com/how-to-hide-the-adminstrator-on-the-wordpress-users-screen) - For the code to hide administrator role at admin backend.
54
 
55
  = Translations =
 
56
  * Russian: [Vladimir Garagulya](http://shinephp.com)
57
  * Spanish: [Dario Ferrer](http://www.darioferrer.com)
58
  * Swedish: [Christer Dahlbacka](www.startlinks.eu), [Andréas Lundgren](http://adevade.com/)
@@ -70,7 +71,6 @@ To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/
70
  * Dutch: [Rémi Bruggeman](http://www.remisan.be) - needs update
71
  * German: [Peter](http://www.red-socks-reinbek.de) - needs update
72
  * Hungarian: [István](http://www.blacksnail.hu) - needs update
73
- * Persian: [Good Life](http://good-life.ir) - needs update
74
  * Polish: [TagSite](http://www.tagsite.eu) - needs update
75
 
76
  Dear plugin User!
@@ -80,6 +80,12 @@ Share with me new ideas about plugin further development and link to your site w
80
 
81
 
82
  == Changelog ==
 
 
 
 
 
 
83
  = 3.4 =
84
  * 21.01.2012
85
  * You can see/edit "Administrator" role now. Insert this line of code "define('URE_SHOW_ADMIN_ROLE', 1);" into your wp-config.php file and login with administrator account for that.
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
+ Stable tag: 3.5
8
 
9
  User Role Editor WordPress plugin makes the role capabilities changing easy. You can change any standard WordPress user role (except administrator).
10
 
53
  * [FullThrottle](http://fullthrottledevelopment.com/how-to-hide-the-adminstrator-on-the-wordpress-users-screen) - For the code to hide administrator role at admin backend.
54
 
55
  = Translations =
56
+ * Persian: [Parsa](http://parsa.ws), [Good Life](http://good-life.ir)
57
  * Russian: [Vladimir Garagulya](http://shinephp.com)
58
  * Spanish: [Dario Ferrer](http://www.darioferrer.com)
59
  * Swedish: [Christer Dahlbacka](www.startlinks.eu), [Andréas Lundgren](http://adevade.com/)
71
  * Dutch: [Rémi Bruggeman](http://www.remisan.be) - needs update
72
  * German: [Peter](http://www.red-socks-reinbek.de) - needs update
73
  * Hungarian: [István](http://www.blacksnail.hu) - needs update
 
74
  * Polish: [TagSite](http://www.tagsite.eu) - needs update
75
 
76
  Dear plugin User!
80
 
81
 
82
  == Changelog ==
83
+ = 3.5 =
84
+ * 19.02.2012
85
+ * User Role Editor could be available now for single site administrators (Administrator role) under multi-site environment. You should define URE_ENABLE_SIMPLE_ADMIN_FOR_MULTISITE constant in your blog wp-config.php file for that. Insert this line "define('URE_ENABLE_SIMPLE_ADMIN_FOR_MULTISITE', 1);" there, if you decide to give single site admin such opportunity.
86
+ * One of "User Role Editor" users with 1100+ sites in the multi-site network reported that URE doesn't update roles for all sites, but stalls somewhere in the middle. Other network update method is realized as alternative. Due to my tests it works approximately 30 times faster. If you met the same problem, try it. It will be great if you share your experience with me. In order select alternative method of all sites update add this line to you blog wp-config.php file "define('URE_MULTISITE_DIRECT_UPDATE', 1);". But be careful. It's recommended to make 1st try on the backup copy, not on a live site.
87
+ * Persian translation is updated. Thanks to [Parsa](http://parsa.ws).
88
+
89
  = 3.4 =
90
  * 21.01.2012
91
  * You can see/edit "Administrator" role now. Insert this line of code "define('URE_SHOW_ADMIN_ROLE', 1);" into your wp-config.php file and login with administrator account for that.
ure-lib.php CHANGED
@@ -257,32 +257,74 @@ function ure_saveRolesToDb() {
257
  // end of saveRolesToDb()
258
 
259
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  function ure_updateRoles() {
261
  global $wpdb, $ure_apply_to_all, $ure_roles, $ure_toldAboutBackup;
262
-
263
  $ure_toldAboutBackup = false;
264
- if (is_multisite() && $ure_apply_to_all) { // update Role for the all blogs/sites in the network
 
 
 
 
 
265
  $old_blog = $wpdb->blogid;
266
  // Get all blog ids
267
  $blogIds = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs"));
268
- foreach ($blogIds as $blog_id) {
269
- switch_to_blog($blog_id);
270
- $ure_roles = ure_getUserRoles();
271
- if (!$ure_roles) {
272
- return false;
273
- }
274
- if (!ure_saveRolesToDb()) {
275
- return false;
 
 
 
 
276
  }
 
 
 
 
 
 
 
277
  }
278
- switch_to_blog($old_blog);
279
- $ure_roles = ure_getUserRoles();
280
  } else {
281
  if (!ure_saveRolesToDb()) {
282
  return false;
283
  }
284
  }
285
-
286
  return true;
287
  }
288
  // end of ure_updateRoles()
@@ -813,19 +855,31 @@ function capabilityHelpLink($capability) {
813
  switch ($capability) {
814
  case 'activate_plugins':
815
  $url = 'http://www.shinephp.com/activate_plugins-wordpress-capability/';
816
- $post_name = 'activate_plugins WordPress user capability';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
817
  break;
818
  case 'edit_dashboard':
819
  $url = 'http://www.shinephp.com/edit_dashboard-wordpress-capability/';
820
- $post_name = 'edit_dashboard WordPress user capability';
821
  break;
822
  case 'moderate_comments':
823
  $url = 'http://www.shinephp.com/moderate_comments-wordpress-user-capability/';
824
- $post_name = 'moderate_comments WordPress user capability';
825
  break;
826
  default:
827
  $url = '';
828
- $post_name = '';
829
  }
830
  // end of switch
831
  if (!empty($url)) {
257
  // end of saveRolesToDb()
258
 
259
 
260
+ function ure_direct_site_roles_update($blogIds) {
261
+ global $wpdb, $table_prefix, $ure_roles, $ure_capabilitiesToSave, $ure_currentRole, $ure_currentRoleName;
262
+
263
+ if (!isset($ure_roles[$ure_currentRole])) {
264
+ $ure_roles[$ure_currentRole]['name'] = $ure_currentRoleName;
265
+ }
266
+ $ure_roles[$ure_currentRole]['capabilities'] = $ure_capabilitiesToSave;
267
+ $serialized_roles = serialize($ure_roles);
268
+ foreach ($blogIds as $blog_id) {
269
+ $prefix = $wpdb->get_blog_prefix($blog_id);
270
+ $options_table_name = $prefix.'options';
271
+ $option_name = $prefix.'user_roles';
272
+ $query = "update $options_table_name
273
+ set option_value='$serialized_roles'
274
+ where option_name='$option_name'
275
+ limit 1";
276
+ $record = $wpdb->query($query);
277
+ if ($wpdb->last_error) {
278
+ ure_logEvent($wpdb->last_error, true);
279
+ return false;
280
+ }
281
+ }
282
+
283
+ }
284
+ // end of ure_direct_site_roles_update()
285
+
286
+
287
  function ure_updateRoles() {
288
  global $wpdb, $ure_apply_to_all, $ure_roles, $ure_toldAboutBackup;
289
+
290
  $ure_toldAboutBackup = false;
291
+ if (is_multisite() && is_super_admin() && $ure_apply_to_all) { // update Role for the all blogs/sites in the network (permitted to superadmin only)
292
+
293
+ if (defined('WP_DEBUG') && WP_DEBUG==1) {
294
+ $time_shot = microtime();
295
+ }
296
+
297
  $old_blog = $wpdb->blogid;
298
  // Get all blog ids
299
  $blogIds = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs"));
300
+ if (defined('URE_MULTISITE_DIRECT_UPDATE') && URE_MULTISITE_DIRECT_UPDATE == 1) {
301
+ ure_direct_site_roles_update($blogIds);
302
+ } else {
303
+ foreach ($blogIds as $blog_id) {
304
+ switch_to_blog($blog_id);
305
+ $ure_roles = ure_getUserRoles();
306
+ if (!$ure_roles) {
307
+ return false;
308
+ }
309
+ if (!ure_saveRolesToDb()) {
310
+ return false;
311
+ }
312
  }
313
+ switch_to_blog($old_blog);
314
+ $ure_roles = ure_getUserRoles();
315
+
316
+ }
317
+
318
+ if (defined('WP_DEBUG') && WP_DEBUG==1) {
319
+ echo '<div class="updated fade below-h2">Roles updated for '.(microtime()-$time_shot).' milliseconds</div>';
320
  }
321
+
 
322
  } else {
323
  if (!ure_saveRolesToDb()) {
324
  return false;
325
  }
326
  }
327
+
328
  return true;
329
  }
330
  // end of ure_updateRoles()
855
  switch ($capability) {
856
  case 'activate_plugins':
857
  $url = 'http://www.shinephp.com/activate_plugins-wordpress-capability/';
858
+ break;
859
+ case 'add_users':
860
+ $url = 'http://www.shinephp.com/add_users-wordpress-user-capability/';
861
+ break;
862
+ case 'create_users':
863
+ $url = 'http://www.shinephp.com/create_users-wordpress-user-capability/';
864
+ break;
865
+ case 'delete_others_pages':
866
+ case 'delete_others_posts':
867
+ case 'delete_pages':
868
+ case 'delete_posts':
869
+ case 'delete_private_pages':
870
+ case 'delete_private_posts':
871
+ case 'delete_published_pages':
872
+ case 'delete_published_posts':
873
+ $url = 'http://www.shinephp.com/delete-posts-and-pages-wordpress-user-capabilities-set/';
874
  break;
875
  case 'edit_dashboard':
876
  $url = 'http://www.shinephp.com/edit_dashboard-wordpress-capability/';
 
877
  break;
878
  case 'moderate_comments':
879
  $url = 'http://www.shinephp.com/moderate_comments-wordpress-user-capability/';
 
880
  break;
881
  default:
882
  $url = '';
 
883
  }
884
  // end of switch
885
  if (!empty($url)) {
ure-options.php CHANGED
@@ -203,8 +203,17 @@ ure_showMessage($mess);
203
  value="-----BEGIN PKCS7-----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-----END PKCS7-----">
204
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
205
  <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
206
- </form>
207
  </div>
 
 
 
 
 
 
 
 
 
208
  <?php ure_displayBoxEnd();?>
209
  <div id="ure_greetings" style="visibility: hidden;">
210
  <?php ure_displayBoxStart(__('Greetings:','ure')); ?>
@@ -222,6 +231,7 @@ ure_showMessage($mess);
222
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/alessandro.png'; ?>);" target="_blank" title="<?php _e("For the help with Italian translation",'pgc');?>" href="http://technodin.org">Alessandro Mariani</a>
223
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/tristano.png'; ?>);" target="_blank" title="<?php _e("For the help with Italian translation",'pgc');?>" href="http://www.zenfactor.org ">Tristano Ajmone</a>
224
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/technologjp.png'; ?>)" target="_blank" title="<?php _e("For the help with Japanese translation", 'ure'); ?>" href="http://technolog.jp">Technolog.jp</a>
 
225
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/good-life.png'; ?>)" target="_blank" title="<?php _e("For the help with Persian translation", 'ure'); ?>" href="http://good-life.ir">Good Life</a>
226
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/tagsite.png'; ?>)" target="_blank" title="<?php _e("For the help with Polish translation", 'ure'); ?>" href="http://www.tagsite.eu">TagSite</a>
227
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/dario.png'; ?>)" target="_blank" title="<?php _e("For the help with Spanish translation", 'ure'); ?>" href="http://www.darioferrer.com">Dario Ferrer</a>
203
  value="-----BEGIN PKCS7-----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-----END PKCS7-----">
204
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
205
  <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
206
+ </form>
207
  </div>
208
+ <hr />
209
+ <h3>Recently donated</h3>
210
+ <ul>
211
+ <li><a href="http://thenineshub.com/" title="To The Nines Web Agency" target="new">To The Nines Web Agency</a></li>
212
+ <li><a href="http://helpkyria.com" title="http://helpkyria.com" target="new">Miami</a></li>
213
+ <li>quintain</li>
214
+ <li><a href="http://www.primothemes.com" title="primothemes.com" target="new">PriMoThemes.com / WebSharks, Inc.</a></li>
215
+ <li><a href="http://www.eastwoodzhao.com" title="www.eastwoodzhao.com" target="new">Eastwood</a></li>
216
+ </ul>
217
  <?php ure_displayBoxEnd();?>
218
  <div id="ure_greetings" style="visibility: hidden;">
219
  <?php ure_displayBoxStart(__('Greetings:','ure')); ?>
231
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/alessandro.png'; ?>);" target="_blank" title="<?php _e("For the help with Italian translation",'pgc');?>" href="http://technodin.org">Alessandro Mariani</a>
232
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/tristano.png'; ?>);" target="_blank" title="<?php _e("For the help with Italian translation",'pgc');?>" href="http://www.zenfactor.org ">Tristano Ajmone</a>
233
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/technologjp.png'; ?>)" target="_blank" title="<?php _e("For the help with Japanese translation", 'ure'); ?>" href="http://technolog.jp">Technolog.jp</a>
234
+ <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/parsa.png'; ?>)" target="_blank" title="<?php _e("For the help with Persian translation", 'ure'); ?>" href="http://parsa.ws">Parsa</a>
235
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/good-life.png'; ?>)" target="_blank" title="<?php _e("For the help with Persian translation", 'ure'); ?>" href="http://good-life.ir">Good Life</a>
236
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/tagsite.png'; ?>)" target="_blank" title="<?php _e("For the help with Polish translation", 'ure'); ?>" href="http://www.tagsite.eu">TagSite</a>
237
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/dario.png'; ?>)" target="_blank" title="<?php _e("For the help with Spanish translation", 'ure'); ?>" href="http://www.darioferrer.com">Dario Ferrer</a>
ure-role-edit.php CHANGED
@@ -177,7 +177,7 @@ if (is_multisite()) {
177
  <label for="ure_show_deprecated_caps"><?php _e('Show deprecated capabilities', 'ure'); ?></label>
178
  </div>
179
  <?php
180
- if (is_multisite()) {
181
  $hint = __('If checked, then apply action to ALL sites of this Network');
182
  if ($ure_apply_to_all) {
183
  $checked = 'checked="checked"';
177
  <label for="ure_show_deprecated_caps"><?php _e('Show deprecated capabilities', 'ure'); ?></label>
178
  </div>
179
  <?php
180
+ if (is_multisite() && is_super_admin()) {
181
  $hint = __('If checked, then apply action to ALL sites of this Network');
182
  if ($ure_apply_to_all) {
183
  $checked = 'checked="checked"';
user-role-editor.log ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+
2
+ 19-02-2012 08:57:10
3
+ WordPress version: 3.3.1, PHP version: 5.3.2-1ubuntu4.14, MySQL version: 5.1.41-3ubuntu12.10
4
+ Table 'wp31.wp_2_2_options' doesn't exist
user-role-editor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: User Role Editor
4
  Plugin URI: http://www.shinephp.com/user-role-editor-wordpress-plugin/
5
  Description: It allows you to change/add/delete any WordPress user role (except administrator) capabilities list with a few clicks.
6
- Version: 3.4
7
  Author: Vladimir Garagulya
8
  Author URI: http://www.shinephp.com
9
  Text Domain: ure
@@ -228,7 +228,11 @@ function ure_settings_menu() {
228
  if (!is_multisite()) {
229
  $keyCapability = 'edit_users';
230
  } else {
231
- $keyCapability = 'manage_network_users';
 
 
 
 
232
  }
233
  $ure_page = add_submenu_page('users.php', __('User Role Editor'), __('User Role Editor'), $keyCapability, basename(__FILE__), 'ure_optionsPage');
234
  add_action("admin_print_styles-$ure_page", 'ure_adminCssAction');
@@ -294,7 +298,23 @@ if (function_exists('is_multisite') && is_multisite()) {
294
 
295
  if (is_admin()) {
296
  // activation action
297
- register_activation_hook(__FILE__, "ure_install");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298
  add_action('admin_init', 'ure_init');
299
  // add a Settings link in the installed plugins page
300
  add_filter('plugin_action_links', 'ure_plugin_action_links', 10, 2);
3
  Plugin Name: User Role Editor
4
  Plugin URI: http://www.shinephp.com/user-role-editor-wordpress-plugin/
5
  Description: It allows you to change/add/delete any WordPress user role (except administrator) capabilities list with a few clicks.
6
+ Version: 3.5
7
  Author: Vladimir Garagulya
8
  Author URI: http://www.shinephp.com
9
  Text Domain: ure
228
  if (!is_multisite()) {
229
  $keyCapability = 'edit_users';
230
  } else {
231
+ if (defined('URE_ENABLE_SIMPLE_ADMIN_FOR_MULTISITE') && URE_ENABLE_SIMPLE_ADMIN_FOR_MULTISITE==1) {
232
+ $keyCapability = 'add_users';
233
+ } else {
234
+ $keyCapability = 'manage_network_users';
235
+ }
236
  }
237
  $ure_page = add_submenu_page('users.php', __('User Role Editor'), __('User Role Editor'), $keyCapability, basename(__FILE__), 'ure_optionsPage');
238
  add_action("admin_print_styles-$ure_page", 'ure_adminCssAction');
298
 
299
  if (is_admin()) {
300
  // activation action
301
+ if ( is_multisite() ) {
302
+ global $current_user;
303
+ if (empty($current_user) && function_exists('get_currentuserinfo')) {
304
+ get_currentuserinfo();
305
+ }
306
+ if (!empty($current_user)) {
307
+ $super_admins = get_super_admins();
308
+ $allow_activation = is_array( $super_admins ) && in_array( $current_user->user_login, $super_admins );
309
+ } else {
310
+ $allow_activation = false;
311
+ }
312
+ } else {
313
+ $allow_activation = true;
314
+ }
315
+ if ($allow_activation) {
316
+ register_activation_hook(__FILE__, "ure_install");
317
+ }
318
  add_action('admin_init', 'ure_init');
319
  // add a Settings link in the installed plugins page
320
  add_filter('plugin_action_links', 'ure_plugin_action_links', 10, 2);