theme-compatibility
4 years ago
tinymce_translate.php
4 years ago
translate-text.php
3 years ago
tutor-general-functions.php
3 years ago
tutor-template-functions.php
3 years ago
tutor-template-hook.php
4 years ago
translate-text.php
127 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Translate text |
| 4 | * |
| 5 | * @package Tutor\Includes |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 2.1.7 |
| 9 | */ |
| 10 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | exit; |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Get translate text array |
| 17 | * |
| 18 | * @since 2.1.7 |
| 19 | * |
| 20 | * @return array |
| 21 | */ |
| 22 | function tutor_get_translate_text() { |
| 23 | return array( |
| 24 | 'all' => array( |
| 25 | 'text' => __( 'All', 'tutor' ), |
| 26 | ), |
| 27 | 'read' => array( |
| 28 | 'text' => __( 'Read', 'tutor' ), |
| 29 | ), |
| 30 | 'unread' => array( |
| 31 | 'text' => __( 'Unread', 'tutor' ), |
| 32 | ), |
| 33 | 'important' => array( |
| 34 | 'text' => __( 'Important', 'tutor' ), |
| 35 | ), |
| 36 | 'archived' => array( |
| 37 | 'text' => __( 'Archived', 'tutor' ), |
| 38 | ), |
| 39 | 'pending' => array( |
| 40 | 'badge' => 'warning', |
| 41 | 'text' => __( 'Pending', 'tutor' ), |
| 42 | ), |
| 43 | 'pass' => array( |
| 44 | 'badge' => 'success', |
| 45 | 'text' => __( 'Pass', 'tutor' ), |
| 46 | ), |
| 47 | 'correct' => array( |
| 48 | 'badge' => 'success', |
| 49 | 'text' => __( 'Correct', 'tutor' ), |
| 50 | ), |
| 51 | 'fail' => array( |
| 52 | 'badge' => 'danger', |
| 53 | 'text' => __( 'Fail', 'tutor' ), |
| 54 | ), |
| 55 | 'wrong' => array( |
| 56 | 'badge' => 'danger', |
| 57 | 'text' => __( 'Wrong', 'tutor' ), |
| 58 | ), |
| 59 | 'approved' => array( |
| 60 | 'badge' => 'success', |
| 61 | 'text' => __( 'Approved', 'tutor' ), |
| 62 | ), |
| 63 | 'rejected' => array( |
| 64 | 'badge' => 'danger', |
| 65 | 'text' => __( 'Rejected', 'tutor' ), |
| 66 | ), |
| 67 | 'completed' => array( |
| 68 | 'badge' => 'success', |
| 69 | 'text' => __( 'Completed', 'tutor' ), |
| 70 | ), |
| 71 | 'processing' => array( |
| 72 | 'badge' => 'warning', |
| 73 | 'text' => __( 'Processing', 'tutor' ), |
| 74 | ), |
| 75 | 'cancelled' => array( |
| 76 | 'badge' => 'danger', |
| 77 | 'text' => __( 'Cancelled', 'tutor' ), |
| 78 | ), |
| 79 | 'canceled' => array( |
| 80 | 'badge' => 'danger', |
| 81 | 'text' => __( 'Cancelled', 'tutor' ), |
| 82 | ), |
| 83 | 'blocked' => array( |
| 84 | 'badge' => 'danger', |
| 85 | 'text' => __( 'Blocked', 'tutor' ), |
| 86 | ), |
| 87 | 'cancel' => array( |
| 88 | 'badge' => 'danger', |
| 89 | 'text' => __( 'Cancelled', 'tutor' ), |
| 90 | ), |
| 91 | 'on-hold' => array( |
| 92 | 'badge' => 'warning', |
| 93 | 'text' => __( 'On Hold', 'tutor' ), |
| 94 | ), |
| 95 | 'onhold' => array( |
| 96 | 'badge' => 'warning', |
| 97 | 'text' => __( 'On Hold', 'tutor' ), |
| 98 | ), |
| 99 | 'wc-on-hold' => array( |
| 100 | 'badge' => 'warning', |
| 101 | 'text' => __( 'On Hold', 'tutor' ), |
| 102 | ), |
| 103 | 'publish' => array( |
| 104 | 'badge' => 'success', |
| 105 | 'text' => __( 'Publish', 'tutor' ), |
| 106 | ), |
| 107 | 'trash' => array( |
| 108 | 'badge' => 'danger', |
| 109 | 'text' => __( 'Trash', 'tutor' ), |
| 110 | ), |
| 111 | 'draft' => array( |
| 112 | 'badge' => 'warning', |
| 113 | 'text' => __( 'Draft', 'tutor' ), |
| 114 | ), |
| 115 | 'private' => array( |
| 116 | 'badge' => 'warning', |
| 117 | 'text' => __( 'Private', 'tutor' ), |
| 118 | ), |
| 119 | 'true' => array( |
| 120 | 'text' => _x( 'True', 'true/false question options', 'tutor' ), |
| 121 | ), |
| 122 | 'false' => array( |
| 123 | 'text' => _x( 'False', 'true/false question options', 'tutor' ), |
| 124 | ), |
| 125 | ); |
| 126 | } |
| 127 |