droip
1 week ago
kirki
1 week ago
theme-compatibility
2 days ago
country.php
2 days ago
ecommerce-functions.php
2 days ago
tinymce_translate.php
2 days ago
translate-text.php
2 days ago
tutor-general-functions.php
2 days ago
tutor-template-functions.php
2 days ago
tutor-template-hook.php
4 years ago
translate-text.php
304 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 | defined( 'ABSPATH' ) || exit; |
| 12 | |
| 13 | /** |
| 14 | * Get translate text array |
| 15 | * |
| 16 | * @since 2.1.7 |
| 17 | * |
| 18 | * @return array |
| 19 | */ |
| 20 | function tutor_get_translate_text() { |
| 21 | return array( |
| 22 | 'all' => array( |
| 23 | 'text' => __( 'All', 'tutor' ), |
| 24 | ), |
| 25 | 'read' => array( |
| 26 | 'text' => __( 'Read', 'tutor' ), |
| 27 | ), |
| 28 | 'unread' => array( |
| 29 | 'text' => __( 'Unread', 'tutor' ), |
| 30 | ), |
| 31 | 'important' => array( |
| 32 | 'text' => __( 'Important', 'tutor' ), |
| 33 | ), |
| 34 | 'archived' => array( |
| 35 | 'text' => __( 'Archived', 'tutor' ), |
| 36 | ), |
| 37 | 'pending' => array( |
| 38 | 'badge' => 'warning', |
| 39 | 'text' => __( 'Pending', 'tutor' ), |
| 40 | ), |
| 41 | 'pass' => array( |
| 42 | 'badge' => 'success', |
| 43 | 'text' => __( 'Pass', 'tutor' ), |
| 44 | ), |
| 45 | 'passed' => array( |
| 46 | 'badge' => 'success', |
| 47 | 'text' => __( 'Passed', 'tutor' ), |
| 48 | ), |
| 49 | 'correct' => array( |
| 50 | 'badge' => 'success', |
| 51 | 'text' => __( 'Correct', 'tutor' ), |
| 52 | ), |
| 53 | 'fail' => array( |
| 54 | 'badge' => 'danger', |
| 55 | 'text' => __( 'Fail', 'tutor' ), |
| 56 | ), |
| 57 | 'failed' => array( |
| 58 | 'badge' => 'danger', |
| 59 | 'text' => __( 'Failed', 'tutor' ), |
| 60 | ), |
| 61 | 'wrong' => array( |
| 62 | 'badge' => 'danger', |
| 63 | 'text' => __( 'Wrong', 'tutor' ), |
| 64 | ), |
| 65 | 'approved' => array( |
| 66 | 'badge' => 'success', |
| 67 | 'text' => __( 'Approved', 'tutor' ), |
| 68 | ), |
| 69 | 'rejected' => array( |
| 70 | 'badge' => 'danger', |
| 71 | 'text' => __( 'Rejected', 'tutor' ), |
| 72 | ), |
| 73 | 'completed' => array( |
| 74 | 'badge' => 'success', |
| 75 | 'text' => __( 'Completed', 'tutor' ), |
| 76 | ), |
| 77 | 'incomplete' => array( |
| 78 | 'badge' => 'default', |
| 79 | 'text' => __( 'Incomplete', 'tutor' ), |
| 80 | ), |
| 81 | 'processing' => array( |
| 82 | 'badge' => 'warning', |
| 83 | 'text' => __( 'Processing', 'tutor' ), |
| 84 | ), |
| 85 | 'scheduled' => array( |
| 86 | 'badge' => 'warning', |
| 87 | 'text' => __( 'Scheduled', 'tutor' ), |
| 88 | ), |
| 89 | 'cancelled' => array( |
| 90 | 'badge' => 'danger', |
| 91 | 'text' => __( 'Cancelled', 'tutor' ), |
| 92 | ), |
| 93 | 'canceled' => array( |
| 94 | 'badge' => 'danger', |
| 95 | 'text' => __( 'Cancelled', 'tutor' ), |
| 96 | ), |
| 97 | 'expired' => array( |
| 98 | 'badge' => 'danger', |
| 99 | 'text' => __( 'Expired', 'tutor' ), |
| 100 | ), |
| 101 | 'blocked' => array( |
| 102 | 'badge' => 'danger', |
| 103 | 'text' => __( 'Blocked', 'tutor' ), |
| 104 | ), |
| 105 | 'cancel' => array( |
| 106 | 'badge' => 'danger', |
| 107 | 'text' => __( 'Cancelled', 'tutor' ), |
| 108 | ), |
| 109 | 'hold' => array( |
| 110 | 'badge' => 'warning', |
| 111 | 'text' => __( 'On Hold', 'tutor' ), |
| 112 | ), |
| 113 | 'trial' => array( |
| 114 | 'badge' => 'warning', |
| 115 | 'text' => __( 'Trial', 'tutor' ), |
| 116 | ), |
| 117 | 'on-hold' => array( |
| 118 | 'badge' => 'warning', |
| 119 | 'text' => __( 'On Hold', 'tutor' ), |
| 120 | ), |
| 121 | 'onhold' => array( |
| 122 | 'badge' => 'warning', |
| 123 | 'text' => __( 'On Hold', 'tutor' ), |
| 124 | ), |
| 125 | 'wc-on-hold' => array( |
| 126 | 'badge' => 'warning', |
| 127 | 'text' => __( 'On Hold', 'tutor' ), |
| 128 | ), |
| 129 | 'partially-refunded' => array( |
| 130 | 'badge' => 'default', |
| 131 | 'text' => __( 'Partially Refunded', 'tutor' ), |
| 132 | ), |
| 133 | 'refunded' => array( |
| 134 | 'badge' => 'danger', |
| 135 | 'text' => __( 'Refunded', 'tutor' ), |
| 136 | ), |
| 137 | 'unpaid' => array( |
| 138 | 'badge' => 'warning', |
| 139 | 'text' => __( 'Unpaid', 'tutor' ), |
| 140 | ), |
| 141 | 'paid' => array( |
| 142 | 'badge' => 'success', |
| 143 | 'text' => __( 'Paid', 'tutor' ), |
| 144 | ), |
| 145 | 'partially-paid' => array( |
| 146 | 'badge' => 'success', |
| 147 | 'text' => __( 'Partially Paid', 'tutor' ), |
| 148 | ), |
| 149 | 'trash' => array( |
| 150 | 'badge' => 'danger', |
| 151 | 'text' => __( 'Trash', 'tutor' ), |
| 152 | ), |
| 153 | 'draft' => array( |
| 154 | 'badge' => 'warning', |
| 155 | 'text' => __( 'Draft', 'tutor' ), |
| 156 | ), |
| 157 | 'private' => array( |
| 158 | 'badge' => 'warning', |
| 159 | 'text' => __( 'Private', 'tutor' ), |
| 160 | ), |
| 161 | 'active' => array( |
| 162 | 'badge' => 'success', |
| 163 | 'text' => __( 'Active', 'tutor' ), |
| 164 | ), |
| 165 | 'inactive' => array( |
| 166 | 'badge' => 'default', |
| 167 | 'text' => __( 'Inactive', 'tutor' ), |
| 168 | ), |
| 169 | 'true' => array( |
| 170 | 'text' => _x( 'True', 'true/false question options', 'tutor' ), |
| 171 | ), |
| 172 | 'false' => array( |
| 173 | 'text' => _x( 'False', 'true/false question options', 'tutor' ), |
| 174 | ), |
| 175 | 'days' => array( |
| 176 | 'text' => __( 'Days', 'tutor' ), |
| 177 | ), |
| 178 | 'day' => array( |
| 179 | 'text' => __( 'Day', 'tutor' ), |
| 180 | ), |
| 181 | 'hours' => array( |
| 182 | 'text' => __( 'Hours', 'tutor' ), |
| 183 | ), |
| 184 | 'hour' => array( |
| 185 | 'text' => __( 'Hour', 'tutor' ), |
| 186 | ), |
| 187 | 'minutes' => array( |
| 188 | 'text' => __( 'Minutes', 'tutor' ), |
| 189 | ), |
| 190 | 'minute' => array( |
| 191 | 'text' => __( 'Minute', 'tutor' ), |
| 192 | ), |
| 193 | 'seconds' => array( |
| 194 | 'text' => __( 'Seconds', 'tutor' ), |
| 195 | ), |
| 196 | 'second' => array( |
| 197 | 'text' => __( 'Second', 'tutor' ), |
| 198 | ), |
| 199 | 'exclusive' => array( |
| 200 | 'text' => __( 'Exclusive', 'tutor' ), |
| 201 | ), |
| 202 | 'inclusive' => array( |
| 203 | 'text' => __( 'Inclusive', 'tutor' ), |
| 204 | ), |
| 205 | |
| 206 | // Translate able week name. |
| 207 | 'monday' => array( |
| 208 | 'text' => _x( 'Monday', 'Week name', 'tutor' ), |
| 209 | ), |
| 210 | 'tuesday' => array( |
| 211 | 'text' => _x( 'Tuesday', 'Week name', 'tutor' ), |
| 212 | ), |
| 213 | 'wednesday' => array( |
| 214 | 'text' => _x( 'Wednesday', 'Week name', 'tutor' ), |
| 215 | ), |
| 216 | 'thursday' => array( |
| 217 | 'text' => _x( 'Thursday', 'Week name', 'tutor' ), |
| 218 | ), |
| 219 | 'friday' => array( |
| 220 | 'text' => _x( 'Friday', 'Week name', 'tutor' ), |
| 221 | ), |
| 222 | 'saturday' => array( |
| 223 | 'text' => _x( 'Saturday', 'Week name', 'tutor' ), |
| 224 | ), |
| 225 | 'sunday' => array( |
| 226 | 'text' => _x( 'Sunday', 'Week name', 'tutor' ), |
| 227 | ), |
| 228 | |
| 229 | // Translate able month name. |
| 230 | 'january' => array( |
| 231 | 'text' => _x( 'January', 'Month name', 'tutor' ), |
| 232 | ), |
| 233 | 'february' => array( |
| 234 | 'text' => _x( 'February', 'Month name', 'tutor' ), |
| 235 | ), |
| 236 | 'march' => array( |
| 237 | 'text' => _x( 'March', 'Month name', 'tutor' ), |
| 238 | ), |
| 239 | 'april' => array( |
| 240 | 'text' => _x( 'April', 'Month name', 'tutor' ), |
| 241 | ), |
| 242 | 'may' => array( |
| 243 | 'text' => _x( 'May', 'Month name', 'tutor' ), |
| 244 | ), |
| 245 | 'june' => array( |
| 246 | 'text' => _x( 'June', 'Month name', 'tutor' ), |
| 247 | ), |
| 248 | 'july' => array( |
| 249 | 'text' => _x( 'July', 'Month name', 'tutor' ), |
| 250 | ), |
| 251 | 'august' => array( |
| 252 | 'text' => _x( 'August', 'Month name', 'tutor' ), |
| 253 | ), |
| 254 | 'september' => array( |
| 255 | 'text' => _x( 'September', 'Month name', 'tutor' ), |
| 256 | ), |
| 257 | 'october' => array( |
| 258 | 'text' => _x( 'October', 'Month name', 'tutor' ), |
| 259 | ), |
| 260 | 'november' => array( |
| 261 | 'text' => _x( 'November', 'Month name', 'tutor' ), |
| 262 | ), |
| 263 | 'december' => array( |
| 264 | 'text' => _x( 'December', 'Month name', 'tutor' ), |
| 265 | ), |
| 266 | 'jan' => array( |
| 267 | 'text' => _x( 'January', 'Month name', 'tutor' ), |
| 268 | ), |
| 269 | 'feb' => array( |
| 270 | 'text' => _x( 'February', 'Month name', 'tutor' ), |
| 271 | ), |
| 272 | 'mar' => array( |
| 273 | 'text' => _x( 'March', 'Month name', 'tutor' ), |
| 274 | ), |
| 275 | 'apr' => array( |
| 276 | 'text' => _x( 'April', 'Month name', 'tutor' ), |
| 277 | ), |
| 278 | 'may' => array( |
| 279 | 'text' => _x( 'May', 'Month name', 'tutor' ), |
| 280 | ), |
| 281 | 'jun' => array( |
| 282 | 'text' => _x( 'June', 'Month name', 'tutor' ), |
| 283 | ), |
| 284 | 'jul' => array( |
| 285 | 'text' => _x( 'July', 'Month name', 'tutor' ), |
| 286 | ), |
| 287 | 'aug' => array( |
| 288 | 'text' => _x( 'August', 'Month name', 'tutor' ), |
| 289 | ), |
| 290 | 'sep' => array( |
| 291 | 'text' => _x( 'September', 'Month name', 'tutor' ), |
| 292 | ), |
| 293 | 'oct' => array( |
| 294 | 'text' => _x( 'October', 'Month name', 'tutor' ), |
| 295 | ), |
| 296 | 'nov' => array( |
| 297 | 'text' => _x( 'November', 'Month name', 'tutor' ), |
| 298 | ), |
| 299 | 'dec' => array( |
| 300 | 'text' => _x( 'December', 'Month name', 'tutor' ), |
| 301 | ), |
| 302 | ); |
| 303 | } |
| 304 |