Changeset 676040
- Timestamp:
- 03/04/2013 01:26:37 PM (13 years ago)
- Location:
- leyka/trunk
- Files:
-
- 4 edited
-
includes/admin-modifications.php (modified) (2 diffs)
-
includes/install.php (modified) (1 diff)
-
languages/leyka-ru_RU.mo (modified) (previous)
-
languages/leyka-ru_RU.po (modified) (22 diffs)
Legend:
- Unmodified
- Added
- Removed
-
leyka/trunk/includes/admin-modifications.php
r675591 r676040 1038 1038 '{payment_method} - '.__('The method of payment used for this donation', 'leyka').'<br/>'. 1039 1039 '{sitename} - '.__('Your site name', 'edd'); 1040 $settings['purchase_receipt']['std'] = __('Hello, {name}!<br /><br /> 1041 You have chosed to make the following donations:<br /> 1042 {download_list}<br /> 1043 which totally cost {price}, by the {payment_method} gateway. 1044 <br /><br /> 1045 Sincerely thank you, 1046 {sitename}, {date}', 'leyka'); 1040 $settings['purchase_receipt']['std'] = __('Hello, {name}!<br /><br />You have chosed to make the following donations:<br />{download_list}<br />which totally cost {price}, by the {payment_method} gateway.<br /><br />Sincerely thank you, {sitename}, {date}', 'leyka'); 1047 1041 $settings['admin_notice_emails']['name'] = __("Donations manager's emails", 'leyka'); 1042 $settings['admin_notice_emails']['std'] = get_bloginfo('admin_email'); 1048 1043 1049 1044 array_push( … … 1361 1356 add_filter('edd_checkout_button_purchase', 'leyka_donate_submit_button'); 1362 1357 1363 /** Process donor info placeholders in donor email notification text. */1364 function leyka_donor_donation_notification($email_body, $donation_id, $donation_data){1365 global $edd_options;1366 1367 $default_email_body = __('Hello, {name}!<br /><br />1368 You have chosed to make the following donations:<br />1369 {download_list}<br />1370 which totally cost {price}, by the {payment_method} gateway.1371 <br /><br />1372 Sincerely thank you,1373 {sitename}, {date}', 'leyka');1374 1375 $email = isset($edd_options['purchase_receipt']) ? $edd_options['purchase_receipt'] : $default_email_body;1376 1377 return edd_email_template_tags($email, $donation_data, $donation_id);1378 }1379 add_filter('edd_purchase_receipt', 'leyka_donor_donation_notification', 10, 3);1380 1381 1358 /** Process admin placeholders in admin email notification text. */ 1382 1359 function leyka_admin_donation_notification($admin_message, $payment_id, $payment_data){ -
leyka/trunk/includes/install.php
r675591 r676040 12 12 function leyka_activation() 13 13 { 14 /** Set localization: */ 15 // Set filter for plugin's languages directory 16 $plugin_lang_dir = dirname(LEYKA_PLUGIN_INNER_SHORT_NAME).'/languages/'; 17 $plugin_lang_dir = apply_filters('leyka_languages_directory', $plugin_lang_dir); 18 19 // Traditional WordPress plugin locale filter 20 $locale = apply_filters('plugin_locale', get_locale(), 'leyka'); 21 $mofile = sprintf('%1$s-%2$s.mo', 'leyka', $locale); 22 23 // Setup paths to current locale file 24 $mofile_local = $plugin_lang_dir.$mofile; 25 $mofile_global = WP_LANG_DIR.'/leyka/'.$mofile; 26 27 if(file_exists($mofile_global)) { 28 // Look in global /wp-content/languages/edd folder 29 load_textdomain('leyka', $mofile_global); 30 } elseif(file_exists(WP_PLUGIN_DIR.'/'.$mofile_local)) { 31 // Look in local /wp-content/plugins/easy-digital-donates/languages/ folder 32 load_textdomain('leyka', WP_PLUGIN_DIR.'/'.$mofile_local); 33 } else { 34 // Load the default language files 35 load_plugin_textdomain('leyka', false, $plugin_lang_dir); 36 } 37 /** Localization ended */ 38 14 39 // Check if original EDD exists: 15 40 if( !file_exists(WP_PLUGIN_DIR.'/easy-digital-downloads/easy-digital-downloads.php') ) { // Base EDD is not found, fatal 16 41 echo __('<div id="message" class="error"><strong>Original EDD plugin is not found.</strong> Please, try to download and activate it before activating Leyka.</div>', 'leyka'); 17 // exit;18 42 } 43 44 global $edd_options; 45 46 /** Set default Email settings. */ 47 // Direct settings manipulation: 48 $emails_options = get_option('edd_settings_emails'); 49 50 if(empty($emails_options['purchase_receipt'])) 51 $emails_options['purchase_receipt'] = __('Hello, {name}!<br /><br />You have chosed to make the following donations:<br />{download_list}<br />which totally cost {price}, by the {payment_method} gateway.<br /><br />Sincerely thank you, {sitename}, {date}', 'leyka'); 52 53 if(empty($emails_options['purchase_subject'])) 54 $emails_options['purchase_subject'] = __('Thank you for your donation!', 'leyka'); 55 56 if(empty($emails_options['from_name'])) { 57 $from_name = get_bloginfo('name'); 58 if( !$from_name ) 59 $from_name = trim(str_replace(array('http://', 'https://'), array('', ''), get_bloginfo('wpurl')), '/'); 60 $emails_options['from_name'] = $from_name; 61 } 62 63 if(empty($emails_options['from_email'])) 64 $emails_options['from_email'] = get_bloginfo('admin_email'); 65 66 if(empty($emails_options['admin_notice_emails'])) 67 $emails_options['admin_notice_emails'] = get_bloginfo('admin_email'); 68 69 if(empty($emails_options['admin_notifications_subject'])) 70 $emails_options['admin_notifications_subject'] = __('New donation came', 'leyka'); 71 72 if(empty($emails_options['admin_donates_email_text'])) 73 $emails_options['admin_donates_email_text'] = __('Hello!<br /><br />Recently, there has been a new donation on a {sitename}:<br />{download_list}<br />which totally cost {price}, by the {payment_method} gateway.<br /><br />Donate ID: {donate_id}, donation hashcode: {receipt_id} | {edit_url}<br /><br />{sitename}, {date}', 'leyka'); 74 75 update_option('edd_settings_emails', $emails_options); 76 // Direct settings manipulation END 77 78 19 79 // elseif( !is_plugin_active('easy-digital-downloads/easy-digital-downloads.php') ) { 20 80 // activate_plugin(WP_PLUGIN_DIR.'/easy-digital-downloads/easy-digital-downloads.php'); -
leyka/trunk/languages/leyka-ru_RU.po
r675591 r676040 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: \n" 6 "PO-Revision-Date: 2013-03-0 2 10:24:47+0000\n"6 "PO-Revision-Date: 2013-03-04 09:58:54+0000\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: \n" … … 259 259 #: includes/admin/class-payments-table.php:70 260 260 #: includes/admin-modifications.php:994 261 #: includes/admin-modifications.php:12 13261 #: includes/admin-modifications.php:1207 262 262 #@ edd 263 263 #@ default … … 266 266 267 267 #: includes/admin-modifications.php:995 268 #: includes/admin-modifications.php:12 12268 #: includes/admin-modifications.php:1206 269 269 #@ default 270 270 msgid "Draft" … … 272 272 273 273 #: includes/admin-modifications.php:996 274 #: includes/admin-modifications.php:12 10274 #: includes/admin-modifications.php:1204 275 275 #@ default 276 276 msgid "Publish" … … 303 303 304 304 #: includes/admin-modifications.php:1032 305 #: includes/admin-modifications.php:10 61305 #: includes/admin-modifications.php:1055 306 306 #@ leyka 307 307 msgid "Enter the email that is sent to donations managers after completing a purchase. HTML is accepted. Available template tags:" … … 309 309 310 310 #: includes/admin-modifications.php:1033 311 #: includes/admin-modifications.php:10 62311 #: includes/admin-modifications.php:1056 312 312 #@ leyka 313 313 msgid "A list of donates given" … … 320 320 321 321 #: includes/admin-modifications.php:1035 322 #: includes/admin-modifications.php:10 63322 #: includes/admin-modifications.php:1057 323 323 #@ leyka 324 324 msgid "The date of the donation" … … 326 326 327 327 #: includes/admin-modifications.php:1036 328 #: includes/admin-modifications.php:10 64328 #: includes/admin-modifications.php:1058 329 329 #@ leyka 330 330 msgid "The total amount of the donation" … … 332 332 333 333 #: includes/admin-modifications.php:1037 334 #: includes/admin-modifications.php:10 65334 #: includes/admin-modifications.php:1059 335 335 #@ leyka 336 336 msgid "The unique ID number for this donation" … … 338 338 339 339 #: includes/admin-modifications.php:1038 340 #: includes/admin-modifications.php:106 8340 #: includes/admin-modifications.php:1062 341 341 #@ leyka 342 342 msgid "The method of payment used for this donation" … … 344 344 345 345 #: includes/admin-modifications.php:1039 346 #: includes/admin-modifications.php:106 9346 #: includes/admin-modifications.php:1063 347 347 #@ edd 348 348 msgid "Your site name" 349 349 msgstr "Название вашего сайта" 350 350 351 #: includes/admin-modifications.php:1040 352 #@ leyka 353 msgid "" 354 "Hello, {name}!<br /><br />\n" 355 " You have chosed to make the following donations:<br />\n" 356 " {download_list}<br />\n" 357 " which totally cost {price}, by the {payment_method} gateway.\n" 358 " <br /><br />\n" 359 " Sincerely thank you,\n" 360 " {sitename}, {date}" 361 msgstr "Здравствуйте, {name}!<br /><br />Вы желаете сделать следующие пожертвования:<br /> {download_list}<br />на сумму {price}, с помощью платёжной системы {payment_method}.<br /><br /> Спасибо за ваше неравнодушие,<br />{sitename}, {date}" 362 363 #: includes/admin-modifications.php:1047 351 #: includes/admin-modifications.php:1041 364 352 #@ leyka 365 353 msgid "Donations manager's emails" 366 354 msgstr "E-mail менеджеров пожертвований" 367 355 368 #: includes/admin-modifications.php:10 53356 #: includes/admin-modifications.php:1047 369 357 #@ leyka 370 358 msgid "Donations manager's notification subject" 371 359 msgstr "Тема уведомления для менеджеров пожертвований" 372 360 373 #: includes/admin-modifications.php:10 54361 #: includes/admin-modifications.php:1048 374 362 #@ leyka 375 363 msgid "Enter the donations manager's notification email subject" 376 364 msgstr "Введите тему письма-уведомления о новом пожертвовании для менеджеров пожертвований" 377 365 378 #: includes/admin-modifications.php:10 60366 #: includes/admin-modifications.php:1054 379 367 #@ leyka 380 368 msgid "Donations manager's notification template" 381 369 msgstr "Шаблон письма-уведомления о новом пожертвовании для менеджеров пожертвований" 382 370 383 #: includes/admin-modifications.php:106 6371 #: includes/admin-modifications.php:1060 384 372 #@ leyka 385 373 msgid "The ID number for donation's purpose item" 386 374 msgstr "Уникальный номер (ID) цели пожертвования." 387 375 388 #: includes/admin-modifications.php:106 7376 #: includes/admin-modifications.php:1061 389 377 #@ leyka 390 378 msgid "The URL of the admin page where donation status can be changed" 391 379 msgstr "URL страницы админ. панели сайта, на которой можно изменить статус пожертвования" 392 380 393 #: includes/admin-modifications.php:11 70381 #: includes/admin-modifications.php:1164 394 382 #@ default 395 383 msgid "Title" 396 384 msgstr "Наименование" 397 385 398 #: includes/admin-modifications.php:11 71399 #: includes/admin-modifications.php:121 7386 #: includes/admin-modifications.php:1165 387 #: includes/admin-modifications.php:1211 400 388 #: includes/user-recalls-columns.php:18 401 389 #@ leyka … … 403 391 msgstr "Текст отзыва" 404 392 405 #: includes/admin-modifications.php:11 72393 #: includes/admin-modifications.php:1166 406 394 #@ leyka 407 395 msgid "Recall author (donor)" 408 396 msgstr "Автор отзыва (донор)" 409 397 410 #: includes/admin-modifications.php:11 73398 #: includes/admin-modifications.php:1167 411 399 #@ leyka 412 400 msgid "Gateway" … … 416 404 #: includes/admin/class-payments-table.php:84 417 405 #: includes/admin-modifications.php:437 418 #: includes/admin-modifications.php:11 74406 #: includes/admin-modifications.php:1168 419 407 #: includes/user-recalls-columns.php:19 420 408 #@ edd … … 424 412 msgstr "Дата" 425 413 426 #: includes/admin-modifications.php:119 7414 #: includes/admin-modifications.php:1191 427 415 #@ default 428 416 msgid "Quick Edit" 429 417 msgstr "Быстрое Редактирование" 430 418 431 #: includes/admin-modifications.php:119 8419 #: includes/admin-modifications.php:1192 432 420 #@ default 433 421 msgid "Move this item to the Trash" 434 422 msgstr "Переместить этот элемент в мусорную корзину" 435 423 436 #: includes/admin-modifications.php:119 8437 #: includes/admin-modifications.php:12 11424 #: includes/admin-modifications.php:1192 425 #: includes/admin-modifications.php:1205 438 426 #@ default 439 427 msgid "Trash" 440 428 msgstr "Мусорная корзина" 441 429 442 #: includes/admin-modifications.php:1 204430 #: includes/admin-modifications.php:1198 443 431 #@ leyka 444 432 msgid "Edit user recall #" … … 446 434 447 435 #: includes/admin/class-payments-table.php:86 448 #: includes/admin-modifications.php:120 8436 #: includes/admin-modifications.php:1202 449 437 #@ edd 450 438 #@ default … … 452 440 msgstr "Статус" 453 441 454 #: includes/admin-modifications.php:12 22442 #: includes/admin-modifications.php:1216 455 443 #@ default 456 444 msgid "Cancel" 457 445 msgstr "Отмена" 458 446 459 #: includes/admin-modifications.php:12 62447 #: includes/admin-modifications.php:1256 460 448 #@ leyka 461 449 msgid "Permissions denied!" 462 450 msgstr "В доступе отказано!" 463 451 464 #: includes/admin-modifications.php:13 78452 #: includes/admin-modifications.php:1383 465 453 #@ leyka 466 454 msgid "Activate the donation" 467 455 msgstr "Активировать пожертвование" 468 456 469 #: includes/admin-modifications.php:139 0457 #: includes/admin-modifications.php:1395 470 458 #@ leyka 471 459 msgid "New donation payment" 472 460 msgstr "Новый платеж по пожертвованию" 473 461 474 #: includes/admin-modifications.php:14 16462 #: includes/admin-modifications.php:1421 475 463 #@ leyka 476 464 msgid "Error while editing the recall! Please try again later or e-mail the support team to fix it." 477 465 msgstr "Ошибка при редактировании отзыва. Пожалуйста, попробуйте ещё раз. Если ошибка повторится, обратитесь в службу поддержки сайта." 478 466 479 #: includes/admin-modifications.php:14 17467 #: includes/admin-modifications.php:1422 480 468 #@ leyka 481 469 msgid "PENDING" 482 470 msgstr "В ОЖИДАНИИ" 483 471 484 #: includes/admin-modifications.php:14 18472 #: includes/admin-modifications.php:1423 485 473 #@ leyka 486 474 msgid "COMPLETE" … … 559 547 msgstr "Введите ваши комментарии, если нужно" 560 548 561 #: includes/admin-modifications.php:11 51562 #: includes/frontend-modifications.php:34 6549 #: includes/admin-modifications.php:1145 550 #: includes/frontend-modifications.php:349 563 551 #, php-format 564 552 #@ leyka … … 567 555 msgstr "Страница оплаты пожертвований не указана. Перейдите в раздел <a href=\"%s\">настроек модуля пожертвований</a>, чтобы указать её." 568 556 569 #: includes/admin-modifications.php:1356 570 #: includes/frontend-modifications.php:353 557 #: includes/frontend-modifications.php:356 571 558 #@ edd 572 559 msgid "Purchase" 573 560 msgstr "Приобрести" 574 561 575 #: includes/frontend-modifications.php:3 79562 #: includes/frontend-modifications.php:382 576 563 #@ leyka 577 564 msgid "Make a donation with this sum" 578 565 msgstr "Пожертвовать данную сумму" 579 566 580 #: includes/frontend-modifications.php:38 0567 #: includes/frontend-modifications.php:383 581 568 #@ edd 582 569 msgid "Checkout" 583 570 msgstr "На кассу" 584 571 585 #: includes/frontend-modifications.php:38 4572 #: includes/frontend-modifications.php:387 586 573 #@ edd 587 574 msgid "Item successfully added to your cart." 588 575 msgstr "Продукт был успешно добавлен в корзину." 589 576 590 #: includes/frontend-modifications.php:40 5577 #: includes/frontend-modifications.php:408 591 578 #@ leyka 592 579 msgid "The required parameters are not set" 593 580 msgstr "Не указаны необходимые параметры" 594 581 595 #: includes/frontend-modifications.php:47 3582 #: includes/frontend-modifications.php:476 596 583 #@ leyka 597 584 msgid "Any sum" 598 585 msgstr "Любая сумма" 599 586 600 #: includes/frontend-modifications.php:48 1587 #: includes/frontend-modifications.php:484 601 588 #@ leyka 602 589 msgid "Insert the sum of your donation" 603 590 msgstr "Укажите размер вашего пожертвования" 604 591 605 #: includes/frontend-modifications.php:48 5592 #: includes/frontend-modifications.php:488 606 593 #@ edd 607 594 msgid "Add to cart" 608 595 msgstr "Добавить в корзину" 609 596 610 #: includes/frontend-modifications.php:51 2597 #: includes/frontend-modifications.php:515 611 598 #@ leyka 612 599 msgid "Sorry, the donation amount is incorrect" 613 600 msgstr "Указанный размер пожертвования некорректен" 614 601 615 #: includes/frontend-modifications.php:51 3602 #: includes/frontend-modifications.php:516 616 603 #@ leyka 617 604 msgid "Sorry, you must agree to the donation terms first" … … 1241 1228 msgstr "" 1242 1229 1243 #: includes/frontend-modifications.php:3 081230 #: includes/frontend-modifications.php:311 1244 1231 #@ leyka 1245 1232 msgid "Sorry, the amount of your donation is 0 somehow." … … 1271 1258 msgstr "Пожертвования" 1272 1259 1273 #: includes/admin-modifications.php:105 61260 #: includes/admin-modifications.php:1050 1274 1261 #@ leyka 1275 1262 msgid "New donation came" 1276 1263 msgstr "Сделано новое пожертвование" 1277 1264 1278 #: includes/admin-modifications.php:10 911265 #: includes/admin-modifications.php:1085 1279 1266 #@ leyka 1280 1267 msgid "Redirect to the checkout after adding the donation to the cart." 1281 1268 msgstr "Перенаправлять на страницу оплаты при каждом добавлении пожертвования в корзину." 1282 1269 1283 #: includes/admin-modifications.php:10 921270 #: includes/admin-modifications.php:1086 1284 1271 #@ leyka 1285 1272 msgid "Show agreement to the terms checkbox. It will have to be checked to make a donation." 1286 1273 msgstr "Выводить поле согласия с условиями публичной оферты. Если это поле не отмечено, пожертвование не будет разрешено." 1287 1274 1288 #: includes/admin-modifications.php:10 931275 #: includes/admin-modifications.php:1087 1289 1276 #@ leyka 1290 1277 msgid "I agree to the terms of donation making service." 1291 1278 msgstr "Я согласен с условиями сервиса пожертвований" 1292 1279 1293 #: includes/admin-modifications.php:11 201280 #: includes/admin-modifications.php:1114 1294 1281 #@ leyka 1295 1282 msgid "A text on a button to complete a donation" 1296 1283 msgstr "Текст для кнопки выполнения пожертвования" 1297 1284 1298 #: includes/admin-modifications.php:11 211285 #: includes/admin-modifications.php:1115 1299 1286 #@ leyka 1300 1287 msgid "A text on a button to complete a donation." 1301 1288 msgstr "Текст для кнопки выполнения пожертвования на странице оплаты." 1302 1289 1303 #: includes/admin-modifications.php:11 241290 #: includes/admin-modifications.php:1118 1304 1291 #@ leyka 1305 1292 msgid "A text on \"add to cart\" button" 1306 1293 msgstr "Текст для кнопки добавления в корзину" 1307 1294 1308 #: includes/admin-modifications.php:11 251295 #: includes/admin-modifications.php:1119 1309 1296 #@ leyka 1310 1297 msgid "Add donation to cart" 1311 1298 msgstr "Добавить в корзину" 1312 1299 1313 #: includes/admin-modifications.php:10 711300 #: includes/admin-modifications.php:1065 1314 1301 #@ leyka 1315 1302 msgid "Hello!<br /><br />Recently, there has been a new donation on a {sitename}:<br />{download_list}<br />which totally cost {price}, by the {payment_method} gateway.<br /><br />Donate ID: {donate_id}, donation hashcode: {receipt_id} | {edit_url}<br /><br />{sitename}, {date}" … … 1327 1314 msgstr "для совершения пожертвования должна быть включена хотя бы одна платёжная система." 1328 1315 1329 #: includes/admin-modifications.php:113 61316 #: includes/admin-modifications.php:1130 1330 1317 #@ leyka 1331 1318 msgid "The donations has been deleted." 1332 1319 msgstr "Пожертвования удалены." 1333 1320 1334 #: includes/admin-modifications.php:11 401321 #: includes/admin-modifications.php:1134 1335 1322 #@ leyka 1336 1323 msgid "The donation notice has been resent." 1337 1324 msgstr "Уведомление о пожертвовании отправлено." 1338 1325 1339 #: includes/admin-modifications.php:11 441326 #: includes/admin-modifications.php:1138 1340 1327 #, php-format 1341 1328 #@ leyka … … 1373 1360 msgstr "Спасибо за ваше пожертвование!" 1374 1361 1375 #: includes/admin-modifications.php:11 221362 #: includes/admin-modifications.php:1116 1376 1363 #@ leyka 1377 1364 msgid "Make the donations" 1378 1365 msgstr "Пожертвовать" 1379 1366 1380 #: includes/admin-modifications.php:135 91367 #: includes/admin-modifications.php:1351 1381 1368 #@ leyka 1382 1369 msgid "Make the donation" 1383 1370 msgstr "Пожертвовать" 1384 1371 1372 #: includes/admin-modifications.php:1040 1373 #: includes/admin-modifications.php:1361 1374 #@ leyka 1375 msgid "Hello, {name}!<br /><br />You have chosed to make the following donations:<br />{download_list}<br />which totally cost {price}, by the {payment_method} gateway.<br /><br />Sincerely thank you, {sitename}, {date}" 1376 msgstr "Здравствуйте, {name}!<br /><br />Вы желаете сделать следующие пожертвования:<br /> {download_list}<br />на сумму {price}, с помощью платёжной системы {payment_method}.<br /><br /> Спасибо за ваше неравнодушие,<br />{sitename}, {date}" 1377
Note: See TracChangeset
for help on using the changeset viewer.