Skip to content

Commit

Permalink
v1.2.2 Разные языки
Browse files Browse the repository at this point in the history
  • Loading branch information
AiratHalitov committed Jan 9, 2018
1 parent aa99fcf commit c93d630
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog ##

### 1.2.2 ###
* Теперь работает поддержка разных языков (пока русский и английский)

### 1.2.1 ###
* Добавил автоматические обновления через GitHub Updater
* Поправил changelog.md
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Contributors: [Airat Halitov](https://github.com/AiratHalitov)
* Requires at least: 3.8
* Tested up to: 4.9.1
* Stable tag: 1.2.1
* Stable tag: 1.2.2
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand All @@ -28,6 +28,9 @@

## Changelog ##

### 1.2.2 ###
* Теперь работает поддержка разных языков (пока русский и английский)

### 1.2.1 ###
* Добавил автоматические обновления через GitHub Updater
* Поправил changelog.md
Expand Down
14 changes: 7 additions & 7 deletions ad-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Ad Generator / Text Randomizer
* Author: Airat Halitov
* Author URI: https://airat.biz
* Version: 1.2.1
* Version: 1.2.2
* Text Domain: ad-generator
* Domain Path: /languages/
* GitHub Plugin URI: airathalitov/ad-generator
Expand All @@ -16,7 +16,7 @@
* @author Airat Halitov
* @license GPLv3
* @link https://github.com/AiratHalitov/ad-generator
* @version 1.2.1
* @version 1.2.2
*/

// Exit if accessed directly
Expand All @@ -29,12 +29,12 @@ class ad_generator_shortcode {
static $mydomain = 'ad-generator';

static function init () {
load_plugin_textdomain( self::$mydomain, false, basename( dirname( __FILE__ ) ) . '/languages/' );

add_shortcode('ad_generator', array(__CLASS__, 'ad_generator_func'));

//add_action('init', array(__CLASS__, 'register_script'));
//add_action('wp_footer', array(__CLASS__, 'print_script'));
add_action('plugins_loaded', array(__CLASS__, 'ad_generator_textdomain'));
}

static function ad_generator_textdomain () {
load_plugin_textdomain( self::$mydomain, false, basename( dirname( __FILE__ ) ) . '/languages/' );
}

static function ad_generator_func( $atts ) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"type": "package",
"package": {
"name": "airathalitov/ad-generator",
"version": "1.2.1",
"version": "1.2.2",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: Airat Halitov
Requires at least: 3.8
Tested up to: 4.9.1
Stable tag: 1.2.1
Stable tag: 1.2.2
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand All @@ -28,6 +28,9 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html

== Changelog ==

= 1.2.2 =
* Теперь работает поддержка разных языков (пока русский и английский)

= 1.2.1 =
* Добавил автоматические обновления через GitHub Updater
* Поправил changelog.md
Expand Down

0 comments on commit c93d630

Please sign in to comment.