Saphali Woocommerce Russian - Version 1.5.9

Version Description

  • WC 2.5.2 WC.
Download this release

Release Info

Developer Saphali
Plugin Icon wp plugin Saphali Woocommerce Russian
Version 1.5.9
Comparing to
See all releases

Code changes from version 1.5.8 to 1.5.9

languages/saphali-woocommerce-lite-ru_RU.mo CHANGED
Binary file
languages/saphali-woocommerce-lite-ru_RU.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: WooCommerce theme v1.0.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2015-04-27 08:46+0700\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -13,10 +13,10 @@ msgstr ""
13
  "X-Poedit-SourceCharset: utf-8\n"
14
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
15
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
16
- "X-Poedit-Basepath: ../\n"
17
  "X-Textdomain-Support: yes\n"
18
  "Language: ru\n"
19
- "X-Generator: Poedit 1.7.5\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
 
22
  # @ woocommerce
@@ -38,11 +38,6 @@ msgstr "Произвольное поле"
38
  msgid "Russian ruble"
39
  msgstr "Российский рубль"
40
 
41
- # @ woocommerce
42
- #: functions.php:40
43
- msgid "Russian ruble (P)"
44
- msgstr "Российский рубль (P)"
45
-
46
  # @ woocommerce
47
  #: functions.php:40
48
  msgid "Belarusian ruble"
3
  "Project-Id-Version: WooCommerce theme v1.0.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2016-02-05 22:39+0300\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
13
  "X-Poedit-SourceCharset: utf-8\n"
14
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
15
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
16
+ "X-Poedit-Basepath: ..\n"
17
  "X-Textdomain-Support: yes\n"
18
  "Language: ru\n"
19
+ "X-Generator: Poedit 1.8.7\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
 
22
  # @ woocommerce
38
  msgid "Russian ruble"
39
  msgstr "Российский рубль"
40
 
 
 
 
 
 
41
  # @ woocommerce
42
  #: functions.php:40
43
  msgid "Belarusian ruble"
readme.txt CHANGED
@@ -5,8 +5,8 @@ Plugin URI: http://saphali.com/saphali-woocommerce-plugin-wordpress
5
  Donate link: https://www.liqpay.com/en/checkout/step1/i8373911028
6
  Tags: woocommerce, woo commerce russian, russian ruble, ukrainian hryvnia, mod, manadger filds checkout
7
  Requires at least: WP 3.3 or higher & WooCommerce 1.6.6 or higher
8
- Tested up to: 4.4
9
- Stable tag: 1.5.8
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -63,6 +63,9 @@ QIWI, Приват24, LiqPay, WebMoney, Яндекс.Деньги, Интерк
63
 
64
  == Changelog ==
65
 
 
 
 
66
  = 1.5.8 =
67
  * Fix в WC 2.4.x.
68
 
5
  Donate link: https://www.liqpay.com/en/checkout/step1/i8373911028
6
  Tags: woocommerce, woo commerce russian, russian ruble, ukrainian hryvnia, mod, manadger filds checkout
7
  Requires at least: WP 3.3 or higher & WooCommerce 1.6.6 or higher
8
+ Tested up to: 4.4.2
9
+ Stable tag: 1.5.9
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
63
 
64
  == Changelog ==
65
 
66
+ = 1.5.9 =
67
+ * Для WC 2.5.2 используется знак рубля предусмотренный в самом WC.
68
+
69
  = 1.5.8 =
70
  * Fix в WC 2.4.x.
71
 
saphali-woocommerce-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Saphali Woocommerce Russian
4
  Plugin URI: http://saphali.com/saphali-woocommerce-plugin-wordpress
5
  Description: Saphali Woocommerce Russian - это бесплатный вордпресс плагин, который добавляет набор дополнений к интернет-магазину на Woocommerce.
6
- Version: 1.5.8
7
  Author: Saphali
8
  Author URI: http://saphali.com/
9
  Text Domain: saphali-woocommerce-lite
@@ -33,7 +33,7 @@ Domain Path: /languages
33
  ------------------------------------------------------------ */
34
  // Подключение валюты и локализации
35
  define('SAPHALI_PLUGIN_DIR_URL',plugin_dir_url(__FILE__));
36
- define('SAPHALI_LITE_VERSION', '1.5.8' );
37
  define('SAPHALI_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));
38
  class saphali_lite {
39
  var $email_order_id;
@@ -50,8 +50,8 @@ Domain Path: /languages
50
  add_action( 'woocommerce_view_order', array( $this, 'order_pickup_location' ), 20 );
51
 
52
  add_action( 'woocommerce_after_template_part', array( $this, 'email_pickup_location' ), 10, 3 );
53
-
54
- add_action( 'woocommerce_admin_order_totals_after_shipping', array( $this, 'woocommerce_admin_order_totals_after_shipping' ), 1 );
55
  add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'store_order_id' ), 1 );
56
  add_action( 'woocommerce_order_status_pending_to_completed_notification', array( $this, 'store_order_id' ), 1 );
57
  add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'store_order_id' ), 1 );
@@ -228,7 +228,8 @@ Domain Path: /languages
228
  function add_inr_currency( $currencies ) {
229
  $currencies['UAH'] = __( 'Ukrainian hryvnia', 'saphali-woocommerce-lite' );
230
  $currencies['RUR'] = __( 'Russian ruble', 'saphali-woocommerce-lite' );
231
- $currencies['RUB'] = __( 'Russian ruble (P)', 'saphali-woocommerce-lite' );
 
232
  $currencies['BYR'] = __( 'Belarusian ruble', 'saphali-woocommerce-lite' );
233
  $currencies['AMD'] = __( 'Armenian dram (Դրամ)', 'saphali-woocommerce-lite' );
234
  $currencies['KGS'] = __( 'Киргизский сом', 'saphali-woocommerce-lite' );
@@ -241,6 +242,7 @@ Domain Path: /languages
241
  if(empty($currency))
242
  $currency = get_option( 'woocommerce_currency' );
243
  if(isset($currency)) {
 
244
  switch( $currency ) {
245
  case 'UAH': $symbol = 'грн.'; break;
246
  case 'RUB': $symbol = '<span class=rur >&#x440;<span>&#x443;&#x431;.</span></span>'; break;
@@ -252,6 +254,17 @@ Domain Path: /languages
252
  case 'UZS': $symbol = '&#x441;&#x45E;&#x43C;'; break;
253
  case 'LTL': $symbol = 'lt.'; break;
254
  }
 
 
 
 
 
 
 
 
 
 
 
255
  }
256
  return $symbol;
257
  }
@@ -1310,7 +1323,7 @@ if ( ! function_exists( 'woocommerce_lang_s_l' ) ) {
1310
 
1311
  add_action("wp_head", '_print_script_columns', 10, 1);
1312
  function _print_script_columns() {
1313
- if(apply_filters( 'woocommerce_currency', get_option('woocommerce_currency') ) != 'RUB') return;
1314
  ?>
1315
  <style type="text/css">
1316
  @font-face { font-family: "Rubl Sign"; src: url(<?php echo SAPHALI_PLUGIN_DIR_URL; ?>ruble.eot); }
3
  Plugin Name: Saphali Woocommerce Russian
4
  Plugin URI: http://saphali.com/saphali-woocommerce-plugin-wordpress
5
  Description: Saphali Woocommerce Russian - это бесплатный вордпресс плагин, который добавляет набор дополнений к интернет-магазину на Woocommerce.
6
+ Version: 1.5.9
7
  Author: Saphali
8
  Author URI: http://saphali.com/
9
  Text Domain: saphali-woocommerce-lite
33
  ------------------------------------------------------------ */
34
  // Подключение валюты и локализации
35
  define('SAPHALI_PLUGIN_DIR_URL',plugin_dir_url(__FILE__));
36
+ define('SAPHALI_LITE_VERSION', '1.5.9' );
37
  define('SAPHALI_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));
38
  class saphali_lite {
39
  var $email_order_id;
50
  add_action( 'woocommerce_view_order', array( $this, 'order_pickup_location' ), 20 );
51
 
52
  add_action( 'woocommerce_after_template_part', array( $this, 'email_pickup_location' ), 10, 3 );
53
+
54
+ // add_action( 'woocommerce_admin_order_totals_after_shipping', array( $this, 'woocommerce_admin_order_totals_after_shipping' ), 1 );
55
  add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'store_order_id' ), 1 );
56
  add_action( 'woocommerce_order_status_pending_to_completed_notification', array( $this, 'store_order_id' ), 1 );
57
  add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'store_order_id' ), 1 );
228
  function add_inr_currency( $currencies ) {
229
  $currencies['UAH'] = __( 'Ukrainian hryvnia', 'saphali-woocommerce-lite' );
230
  $currencies['RUR'] = __( 'Russian ruble', 'saphali-woocommerce-lite' );
231
+ if( version_compare( WOOCOMMERCE_VERSION, '2.5.2', '<' ) )
232
+ $currencies['RUB'] = __( 'Russian ruble', 'saphali-woocommerce-lite' );
233
  $currencies['BYR'] = __( 'Belarusian ruble', 'saphali-woocommerce-lite' );
234
  $currencies['AMD'] = __( 'Armenian dram (Դրամ)', 'saphali-woocommerce-lite' );
235
  $currencies['KGS'] = __( 'Киргизский сом', 'saphali-woocommerce-lite' );
242
  if(empty($currency))
243
  $currency = get_option( 'woocommerce_currency' );
244
  if(isset($currency)) {
245
+ if( version_compare( WOOCOMMERCE_VERSION, '2.5.2', '<' ) )
246
  switch( $currency ) {
247
  case 'UAH': $symbol = '&#x433;&#x440;&#x43D;.'; break;
248
  case 'RUB': $symbol = '<span class=rur >&#x440;<span>&#x443;&#x431;.</span></span>'; break;
254
  case 'UZS': $symbol = '&#x441;&#x45E;&#x43C;'; break;
255
  case 'LTL': $symbol = 'lt.'; break;
256
  }
257
+ else
258
+ switch( $currency ) {
259
+ case 'UAH': $symbol = '&#x433;&#x440;&#x43D;.'; break;
260
+ case 'RUR': $symbol = '&#x440;&#x443;&#x431;.'; break;
261
+ case 'BYR': $symbol = '&#x440;&#x443;&#x431;.'; break;
262
+ case 'AMD': $symbol = '&#x534;'; break;
263
+ case 'KGS': $symbol = 'сом'; break;
264
+ case 'KZT': $symbol = '&#x20B8;'; break;
265
+ case 'UZS': $symbol = '&#x441;&#x45E;&#x43C;'; break;
266
+ case 'LTL': $symbol = 'lt.'; break;
267
+ }
268
  }
269
  return $symbol;
270
  }
1323
 
1324
  add_action("wp_head", '_print_script_columns', 10, 1);
1325
  function _print_script_columns() {
1326
+ if(apply_filters( 'woocommerce_currency', get_option('woocommerce_currency') ) != 'RUB' || !version_compare( WOOCOMMERCE_VERSION, '2.5.2', '<' ) ) return;
1327
  ?>
1328
  <style type="text/css">
1329
  @font-face { font-family: "Rubl Sign"; src: url(<?php echo SAPHALI_PLUGIN_DIR_URL; ?>ruble.eot); }