Polylang - Version 1.7.4

Version Description

(2015-05-03) =

  • fix: translated taxonomies and post types from wpml-config.xml are not filtered on frontend (introduced in 1.7.2)
  • fix: WPML strings translations not always loaded (introduced in 1.7)
  • fix: $.ajaxPrefilter() may not work as expected props ScreenfeedFr
  • fix: can't hide the language code for the default language when using subdomains
  • fix: incorrect static front page url when hiding the default language information
  • fix: an untranslated posts page may display posts in all languages
  • fix: javascript error when changing the language of a hierarchical post type from the languages metabox in WP 4.2
  • fix: subdomains urls are malformed when the main site uses www.
  • fix: suggest tags are not filtered in quick edit
  • fix: parent page dropdown list not filtered in quick edit
Download this release

Release Info

Developer Chouby
Plugin Icon 128x128 Polylang
Version 1.7.4
Comparing to
See all releases

Code changes from version 1.7.3 to 1.7.4

admin/admin-filters-post.php CHANGED
@@ -45,12 +45,15 @@ class PLL_Admin_Filters_Post extends PLL_Admin_Filters_Post_Base {
45
  /*
46
  * outputs a javascript list of terms ordered by language and hierarchical taxonomies
47
  * to filter the category checklist per post language in quick edit
 
 
48
  *
49
  * @since 1.7
50
  */
51
  public function admin_enqueue_scripts() {
52
  $screen = get_current_screen();
53
 
 
54
  if ('edit' == $screen->base && $taxonomies = get_object_taxonomies($screen->post_type, 'object')) {
55
  // get translated hierarchical taxonomies
56
  foreach ($taxonomies as $taxonomy) {
@@ -72,6 +75,21 @@ class PLL_Admin_Filters_Post extends PLL_Admin_Filters_Post_Base {
72
  }
73
  }
74
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  }
76
 
77
  /*
@@ -210,11 +228,21 @@ class PLL_Admin_Filters_Post extends PLL_Admin_Filters_Post_Base {
210
 
211
  // parent dropdown list (only for hierarchical post types)
212
  if (in_array($post_type, get_post_types(array('hierarchical' => true)))) {
213
- require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
214
- ob_start();
215
- page_attributes_meta_box(get_post($post_ID));
216
- $x->Add(array('what' => 'pages', 'data' => ob_get_contents()));
217
- ob_end_clean();
 
 
 
 
 
 
 
 
 
 
218
  }
219
 
220
  // flag
45
  /*
46
  * outputs a javascript list of terms ordered by language and hierarchical taxonomies
47
  * to filter the category checklist per post language in quick edit
48
+ * outputs a javascript list of pages ordered by language
49
+ * to filter the parent dropdown per post language in quick edit
50
  *
51
  * @since 1.7
52
  */
53
  public function admin_enqueue_scripts() {
54
  $screen = get_current_screen();
55
 
56
+ //hierarchical taxonomies
57
  if ('edit' == $screen->base && $taxonomies = get_object_taxonomies($screen->post_type, 'object')) {
58
  // get translated hierarchical taxonomies
59
  foreach ($taxonomies as $taxonomy) {
75
  }
76
  }
77
  }
78
+
79
+ // hierarchical post types
80
+ if ('edit' == $screen->base && is_post_type_hierarchical($screen->post_type)) {
81
+ $pages = get_pages();
82
+
83
+ foreach($pages as $page) {
84
+ if ($lang = $this->model->get_post_language($page->ID))
85
+ $page_languages[$lang->slug][] = $page->ID;
86
+ }
87
+
88
+ // send all these data to javascript
89
+ if (!empty($page_languages)) {
90
+ wp_localize_script('pll_post', 'pll_page_languages', $page_languages);
91
+ }
92
+ }
93
  }
94
 
95
  /*
228
 
229
  // parent dropdown list (only for hierarchical post types)
230
  if (in_array($post_type, get_post_types(array('hierarchical' => true)))) {
231
+ $post = get_post($post_ID);
232
+
233
+ // args and filter from 'page_attributes_meta_box' in wp-admin/includes/meta-boxes.php of WP 4.2.1
234
+ $dropdown_args = array(
235
+ 'post_type' => $post->post_type,
236
+ 'exclude_tree' => $post->ID,
237
+ 'selected' => $post->post_parent,
238
+ 'name' => 'parent_id',
239
+ 'show_option_none' => __('(no parent)'),
240
+ 'sort_column' => 'menu_order, post_title',
241
+ 'echo' => 0,
242
+ );
243
+ $dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post ); // since WP 3.3
244
+
245
+ $x->Add(array('what' => 'pages', 'data' => wp_dropdown_pages( $dropdown_args )));
246
  }
247
 
248
  // flag
admin/admin-model.php CHANGED
@@ -44,12 +44,12 @@ class PLL_Admin_Model extends PLL_Model {
44
  // don't want shared terms so use a different slug
45
  wp_insert_term($args['name'], 'term_language', array('slug' => 'pll_' . $args['slug']));
46
 
 
 
47
  // init a mo_id for this language
48
  $mo = new PLL_MO();
49
  $mo->export_to_db($this->get_language($args['slug']));
50
 
51
- $this->clean_languages_cache(); // udpate the languages list now !
52
-
53
  if (!isset($this->options['default_lang'])) {
54
  // if this is the first language created, set it as default language
55
  $this->options['default_lang'] = $args['slug'];
44
  // don't want shared terms so use a different slug
45
  wp_insert_term($args['name'], 'term_language', array('slug' => 'pll_' . $args['slug']));
46
 
47
+ $this->clean_languages_cache(); // udpate the languages list now !
48
+
49
  // init a mo_id for this language
50
  $mo = new PLL_MO();
51
  $mo->export_to_db($this->get_language($args['slug']));
52
 
 
 
53
  if (!isset($this->options['default_lang'])) {
54
  // if this is the first language created, set it as default language
55
  $this->options['default_lang'] = $args['slug'];
admin/admin.php CHANGED
@@ -128,6 +128,8 @@ class PLL_Admin extends PLL_Base {
128
 
129
  /*
130
  * sets pll_ajax_backend on all backend ajax request
 
 
131
  *
132
  * @since 1.4
133
  */
@@ -147,11 +149,11 @@ class PLL_Admin extends PLL_Base {
147
  if (typeof jQuery != 'undefined') {
148
  (function($){
149
  $.ajaxPrefilter(function (options, originalOptions, jqXHR) {
150
- if (typeof options.data == 'string') {
151
- options.data = '<?php echo $str;?>'+options.data;
152
  }
153
  else {
154
- options.data = $.extend(options.data, {<?php echo $arr;?>});
155
  }
156
  });
157
  })(jQuery)
128
 
129
  /*
130
  * sets pll_ajax_backend on all backend ajax request
131
+ * takes care to situations where the ajax request has no options.data thanks to ScreenfeedFr
132
+ * see: https://wordpress.org/support/topic/ajaxprefilter-may-not-work-as-expected
133
  *
134
  * @since 1.4
135
  */
149
  if (typeof jQuery != 'undefined') {
150
  (function($){
151
  $.ajaxPrefilter(function (options, originalOptions, jqXHR) {
152
+ if ( typeof options.data === 'undefined' ) {
153
+ options.data = options.type === "get" ? '<?php echo $str;?>' : {<?php echo $arr;?>};
154
  }
155
  else {
156
+ options.data = typeof options.data === "string" ? '<?php echo $str;?>'+options.data : $.extend(options.data, {<?php echo $arr;?>});
157
  }
158
  });
159
  })(jQuery)
include/language.php CHANGED
@@ -155,7 +155,7 @@ class PLL_Language {
155
  $options = get_option('polylang');
156
 
157
  // a static page is used as front page
158
- if (!$options['redirect_lang'] && 'page' == get_option('show_on_front') && ($page_on_front = get_option('page_on_front')) && $id = pll_get_post($page_on_front, $this))
159
  $this->home_url = _get_page_link($id); // /!\ don't use get_page_link to avoid infinite loop
160
 
161
  else
155
  $options = get_option('polylang');
156
 
157
  // a static page is used as front page
158
+ if (!($options['hide_default'] && $this->slug == $options['default_lang']) && !$options['redirect_lang'] && 'page' == get_option('show_on_front') && ($page_on_front = get_option('page_on_front')) && $id = pll_get_post($page_on_front, $this))
159
  $this->home_url = _get_page_link($id); // /!\ don't use get_page_link to avoid infinite loop
160
 
161
  else
include/links-subdomain.php CHANGED
@@ -8,6 +8,12 @@
8
  * @since 1.2
9
  */
10
  class PLL_Links_Subdomain extends PLL_Links_Permalinks {
 
 
 
 
 
 
11
 
12
  /*
13
  * adds the language code in url
@@ -21,7 +27,7 @@ class PLL_Links_Subdomain extends PLL_Links_Permalinks {
21
  */
22
  public function add_language_to_link($url, $lang) {
23
  if (!empty($lang))
24
- $url = $this->options['default_lang'] == $lang->slug && $this->options['hide_default'] ? $url : str_replace('://', '://'.$lang->slug.'.', $url);
25
  return $url;
26
  }
27
 
@@ -40,7 +46,7 @@ class PLL_Links_Subdomain extends PLL_Links_Permalinks {
40
  $languages[] = $language->slug;
41
 
42
  if (!empty($languages))
43
- $url = preg_replace('#:\/\/' . '('.implode('|', $languages).')\.#', '://' , $url);
44
 
45
  return $url;
46
  }
@@ -68,7 +74,7 @@ class PLL_Links_Subdomain extends PLL_Links_Permalinks {
68
  * @return string
69
  */
70
  public function home_url($lang) {
71
- return $this->add_language_to_link($this->home, $lang);
72
  }
73
 
74
  /*
8
  * @since 1.2
9
  */
10
  class PLL_Links_Subdomain extends PLL_Links_Permalinks {
11
+ protected $www;
12
+
13
+ public function __construct(&$model) {
14
+ parent::__construct($model);
15
+ $this->www = false === strpos($this->home, '://www.') ? '://' : '://www.';
16
+ }
17
 
18
  /*
19
  * adds the language code in url
27
  */
28
  public function add_language_to_link($url, $lang) {
29
  if (!empty($lang))
30
+ $url = $this->options['default_lang'] == $lang->slug && $this->options['hide_default'] ? $url : str_replace($this->www, '://'.$lang->slug.'.', $url);
31
  return $url;
32
  }
33
 
46
  $languages[] = $language->slug;
47
 
48
  if (!empty($languages))
49
+ $url = preg_replace('#:\/\/' . '('.implode('|', $languages).')\.#', $this->www, $url);
50
 
51
  return $url;
52
  }
74
  * @return string
75
  */
76
  public function home_url($lang) {
77
+ return $this->options['hide_default'] && $lang->slug == $this->options['default_lang'] ? $this->home : $this->add_language_to_link($this->home, $lang);
78
  }
79
 
80
  /*
include/model.php CHANGED
@@ -395,8 +395,13 @@ class PLL_Model {
395
  $translations = $type && ($term = $this->get_object_term($id, $type . '_translations')) && !empty($term) ? unserialize($term->description) : array();
396
 
397
  // make sure we return only translations (thus we allow plugins to store other informations in the array)
398
- return array_intersect_key($translations, array_flip($this->get_languages_list(array('fields' => 'slug'))));
399
- }
 
 
 
 
 
400
 
401
  /*
402
  * store the post language in the database
@@ -592,6 +597,8 @@ class PLL_Model {
592
 
593
  /*
594
  * returns post types that need to be translated
 
 
595
  *
596
  * @since 1.2
597
  *
@@ -599,11 +606,10 @@ class PLL_Model {
599
  * @return array post type names for which Polylang manages languages and translations
600
  */
601
  public function get_translated_post_types($filter = true) {
602
- static $post_types = null;
 
603
 
604
- // the post types list is cached for better better performance
605
- // wait for 'after_setup_theme' to apply the cache to allow themes adding the filter in functions.php
606
- if (null === $post_types || !did_action('after_setup_theme')) {
607
  $post_types = array('post' => 'post', 'page' => 'page');
608
 
609
  if (!empty($this->options['media_support']))
@@ -654,9 +660,10 @@ class PLL_Model {
654
  * @return array array of registered taxonomy names for which Polylang manages languages and translations
655
  */
656
  public function get_translated_taxonomies($filter = true) {
657
- static $taxonomies = null;
 
658
 
659
- if (null === $taxonomies || !did_action('after_setup_theme')) {
660
  $taxonomies = array('category' => 'category', 'post_tag' => 'post_tag');
661
 
662
  if (is_array($this->options['taxonomies']))
395
  $translations = $type && ($term = $this->get_object_term($id, $type . '_translations')) && !empty($term) ? unserialize($term->description) : array();
396
 
397
  // make sure we return only translations (thus we allow plugins to store other informations in the array)
398
+ $translations = array_intersect_key($translations, array_flip($this->get_languages_list(array('fields' => 'slug'))));
399
+
400
+ // make sure to return at least the passed post or term in its translation array
401
+ if (empty($translations) && $lang = call_user_func(array(&$this, 'get_'.$type.'_language'), $id))
402
+ $translations = array($lang->slug => $id);
403
+
404
+ return $translations; }
405
 
406
  /*
407
  * store the post language in the database
597
 
598
  /*
599
  * returns post types that need to be translated
600
+ * the post types list is cached for better better performance
601
+ * wait for 'after_setup_theme' to apply the cache to allow themes adding the filter in functions.php
602
  *
603
  * @since 1.2
604
  *
606
  * @return array post type names for which Polylang manages languages and translations
607
  */
608
  public function get_translated_post_types($filter = true) {
609
+ if (did_action('after_setup_theme'))
610
+ static $post_types = null;
611
 
612
+ if (empty($post_types)) {
 
 
613
  $post_types = array('post' => 'post', 'page' => 'page');
614
 
615
  if (!empty($this->options['media_support']))
660
  * @return array array of registered taxonomy names for which Polylang manages languages and translations
661
  */
662
  public function get_translated_taxonomies($filter = true) {
663
+ if (did_action('after_setup_theme'))
664
+ static $taxonomies = null;
665
 
666
+ if (empty($taxonomies)) {
667
  $taxonomies = array('category' => 'category', 'post_tag' => 'post_tag');
668
 
669
  if (is_array($this->options['taxonomies']))
install/upgrade.php CHANGED
@@ -88,7 +88,7 @@ class PLL_Upgrade {
88
  * @since 1.2
89
  */
90
  public function _upgrade() {
91
- foreach (array('0.9', '1.0', '1.1', '1.2', '1.2.1', '1.2.3', '1.3', '1.4', '1.4.1', '1.4.4', '1.5', '1.6', '1.7.2') as $version)
92
  if (version_compare($this->options['version'], $version, '<'))
93
  call_user_func(array(&$this, 'upgrade_' . str_replace('.', '_', $version)));
94
 
@@ -499,12 +499,12 @@ class PLL_Upgrade {
499
  }
500
 
501
  /*
502
- * upgrades if the previous version is < 1.7.2
503
  *
504
- * @since 1.7.2
505
  */
506
- protected function upgrade_1_7_2() {
507
- delete_transient('pll_languages_list'); // deletes language cache (due to flag properties added in 1.7 and page on front removed in 1.7.2)
508
  flush_rewrite_rules(); // flush rewrite rules due to custom taxonomy rewrite rule bug fix
509
  }
510
  }
88
  * @since 1.2
89
  */
90
  public function _upgrade() {
91
+ foreach (array('0.9', '1.0', '1.1', '1.2', '1.2.1', '1.2.3', '1.3', '1.4', '1.4.1', '1.4.4', '1.5', '1.6', '1.7.4') as $version)
92
  if (version_compare($this->options['version'], $version, '<'))
93
  call_user_func(array(&$this, 'upgrade_' . str_replace('.', '_', $version)));
94
 
499
  }
500
 
501
  /*
502
+ * upgrades if the previous version is < 1.7.4
503
  *
504
+ * @since 1.7.4
505
  */
506
+ protected function upgrade_1_7_4() {
507
+ delete_transient('pll_languages_list'); // deletes language cache (due to flag properties added in 1.7, page on front removed in 1.7.2, home url fixes in 1.7.4)
508
  flush_rewrite_rules(); // flush rewrite rules due to custom taxonomy rewrite rule bug fix
509
  }
510
  }
js/post.js CHANGED
@@ -1,8 +1,17 @@
 
 
 
 
 
 
 
 
 
1
 
2
- // overrides tagBox but mainly copy paste of WP code
3
  (function($){
4
  // overrides function to add the language
5
- tagBox.get = function(id, a) {
6
  var tax = id.substr(id.indexOf('-')+1);
7
 
8
  // add the language in the $_POST variable
@@ -23,76 +32,13 @@
23
  });
24
 
25
  // add an if else condition to allow modifying the tags outputed when switching the language
26
- if (a == 1)
27
- $('#'+id).after(r);
28
- else {
29
- v = $('.the-tagcloud').css('display');
30
  $('.the-tagcloud').replaceWith(r);
31
  $('.the-tagcloud').css('display', v);
32
  }
33
- });
34
- },
35
-
36
- // creates the function to be reused
37
- tagBox.suggest = function() {
38
- ajaxtag = $('div.ajaxtag');
39
- // add the unbind function to allow calling the function when the language is modified
40
- $('input.newtag', ajaxtag).unbind().blur(function() {
41
- if ( this.value == '' )
42
- $(this).parent().siblings('.taghint').css('visibility', '');
43
- }).focus(function(){
44
- $(this).parent().siblings('.taghint').css('visibility', 'hidden');
45
- }).keyup(function(e){
46
- if ( 13 == e.which ) {
47
- tagBox.flushTags( $(this).closest('.tagsdiv') );
48
- return false;
49
- }
50
- }).keypress(function(e){
51
- if ( 13 == e.which ) {
52
- e.preventDefault();
53
- return false;
54
  }
55
- }).each(function(){
56
- // add the language in the $_GET variable
57
- var lang = $('#post_lang_choice').val();
58
- var tax = $(this).closest('div.tagsdiv').attr('id');
59
- $(this).suggest( ajaxurl + '?action=ajax-tag-search&lang=' + lang + '&tax=' + tax, { delay: 500, minchars: 2, multiple: true, multipleSep: "," } );
60
- });
61
- }
62
-
63
- // overrides function to add language (in tagBox.suggest)
64
- tagBox.init = function() {
65
- var t = this, ajaxtag = $('div.ajaxtag');
66
-
67
- $('.tagsdiv').each( function() {
68
- tagBox.quickClicks(this);
69
- });
70
-
71
- $('input.tagadd', ajaxtag).click(function(){
72
- t.flushTags( $(this).closest('.tagsdiv') );
73
- });
74
-
75
- $('div.taghint', ajaxtag).click(function(){
76
- $(this).css('visibility', 'hidden').parent().siblings('.newtag').focus();
77
- });
78
-
79
- tagBox.suggest();
80
-
81
- // save tags on post save/publish
82
- $('#post').submit(function(){
83
- $('div.tagsdiv').each( function() {
84
- tagBox.flushTags(this, false, 1);
85
- });
86
- });
87
-
88
- // tag cloud
89
- $('a.tagcloud-link').click(function(){
90
- tagBox.get( $(this).attr('id'), 1 );
91
- $(this).unbind().click(function(){
92
- $(this).siblings('.the-tagcloud').toggle();
93
- return false;
94
- });
95
- return false;
96
  });
97
  }
98
  })(jQuery);
@@ -112,12 +58,13 @@
112
  var lang = $('#lang_' + post_id).html();
113
  select.val(lang); // populates the dropdown
114
 
115
- // initial filter for category checklist
116
- filter_terms(lang);
117
 
118
- // modify category checklist on language change
119
  select.change( function() {
120
  filter_terms($(this).val());
 
121
  });
122
  }
123
  }
@@ -135,6 +82,18 @@
135
  });
136
  }
137
  }
 
 
 
 
 
 
 
 
 
 
 
 
138
  });
139
  })(jQuery);
140
 
@@ -223,7 +182,7 @@ jQuery(document).ready(function($) {
223
  $('#' + tax + '-lang').val($('#post_lang_choice').val()); // hidden field
224
  break;
225
  case 'pages': // parent dropdown list for pages
226
- $('#pageparentdiv > .inside').html(this.data);
227
  break;
228
  case 'flag': // flag in front of the select dropdown
229
  $('.pll-select-flag').html(this.data);
@@ -236,11 +195,8 @@ jQuery(document).ready(function($) {
236
  // modifies the language in the tag cloud
237
  $('.tagcloud-link').each(function() {
238
  var id = $(this).attr('id');
239
- tagBox.get(id, 0);
240
  });
241
-
242
- // modifies the language in the tags suggestion input
243
- tagBox.suggest();
244
  });
245
  });
246
 
1
+ // tag suggest
2
+ // valid for both tag metabox and quick edit
3
+ (function($){
4
+ $.ajaxPrefilter(function (options, originalOptions, jqXHR) {
5
+ if(-1 !== options.url.indexOf('action=ajax-tag-search') && ((lang = $('#post_lang_choice').val()) || (lang = $(':input[name="inline_lang_choice"]').val()))) {
6
+ options.data = 'lang='+lang+'&'+options.data;
7
+ }
8
+ });
9
+ })(jQuery);
10
 
11
+ // overrides tagBox.get
12
  (function($){
13
  // overrides function to add the language
14
+ tagBox.get = function(id) {
15
  var tax = id.substr(id.indexOf('-')+1);
16
 
17
  // add the language in the $_POST variable
32
  });
33
 
34
  // add an if else condition to allow modifying the tags outputed when switching the language
35
+ if (v = $('.the-tagcloud').css('display')) {
 
 
 
36
  $('.the-tagcloud').replaceWith(r);
37
  $('.the-tagcloud').css('display', v);
38
  }
39
+ else {
40
+ $('#'+id).after(r);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  });
43
  }
44
  })(jQuery);
58
  var lang = $('#lang_' + post_id).html();
59
  select.val(lang); // populates the dropdown
60
 
61
+ filter_terms(lang); // initial filter for category checklist
62
+ filter_pages(lang); // initial filter for parent dropdown
63
 
64
+ // modify category checklist an parent dropdown on language change
65
  select.change( function() {
66
  filter_terms($(this).val());
67
+ filter_pages($(this).val());
68
  });
69
  }
70
  }
82
  });
83
  }
84
  }
85
+
86
+ // filter parent page dropdown list
87
+ function filter_pages(lang) {
88
+ if ("undefined" != typeof(pll_page_languages)) {
89
+ $.each(pll_page_languages, function(lg, pages) {
90
+ $.each(pages, function(i) {
91
+ v = $('#post_parent option[value="' + pll_page_languages[lg][i] + '"]');
92
+ lang == lg ? v.show() : v.hide();
93
+ });
94
+ });
95
+ }
96
+ }
97
  });
98
  })(jQuery);
99
 
182
  $('#' + tax + '-lang').val($('#post_lang_choice').val()); // hidden field
183
  break;
184
  case 'pages': // parent dropdown list for pages
185
+ $('#parent_id').html(this.data);
186
  break;
187
  case 'flag': // flag in front of the select dropdown
188
  $('.pll-select-flag').html(this.data);
195
  // modifies the language in the tag cloud
196
  $('.tagcloud-link').each(function() {
197
  var id = $(this).attr('id');
198
+ tagBox.get(id);
199
  });
 
 
 
200
  });
201
  });
202
 
js/post.min.js CHANGED
@@ -1 +1 @@
1
- (function(a){tagBox.get=function(e,b){var c=e.substr(e.indexOf("-")+1);var d={action:"get-tagcloud",lang:a("#post_lang_choice").val(),tax:c};a.post(ajaxurl,d,function(g,f){if(0==g||"success"!=f){g=wpAjax.broken}g=a('<p id="tagcloud-'+c+'" class="the-tagcloud">'+g+"</p>");a("a",g).click(function(){tagBox.flushTags(a(this).closest(".inside").children(".tagsdiv"),this);return false});if(b==1){a("#"+e).after(g)}else{v=a(".the-tagcloud").css("display");a(".the-tagcloud").replaceWith(g);a(".the-tagcloud").css("display",v)}})},tagBox.suggest=function(){ajaxtag=a("div.ajaxtag");a("input.newtag",ajaxtag).unbind().blur(function(){if(this.value==""){a(this).parent().siblings(".taghint").css("visibility","")}}).focus(function(){a(this).parent().siblings(".taghint").css("visibility","hidden")}).keyup(function(b){if(13==b.which){tagBox.flushTags(a(this).closest(".tagsdiv"));return false}}).keypress(function(b){if(13==b.which){b.preventDefault();return false}}).each(function(){var c=a("#post_lang_choice").val();var b=a(this).closest("div.tagsdiv").attr("id");a(this).suggest(ajaxurl+"?action=ajax-tag-search&lang="+c+"&tax="+b,{delay:500,minchars:2,multiple:true,multipleSep:","})})};tagBox.init=function(){var b=this,c=a("div.ajaxtag");a(".tagsdiv").each(function(){tagBox.quickClicks(this)});a("input.tagadd",c).click(function(){b.flushTags(a(this).closest(".tagsdiv"))});a("div.taghint",c).click(function(){a(this).css("visibility","hidden").parent().siblings(".newtag").focus()});tagBox.suggest();a("#post").submit(function(){a("div.tagsdiv").each(function(){tagBox.flushTags(this,false,1)})});a("a.tagcloud-link").click(function(){tagBox.get(a(this).attr("id"),1);a(this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false})}})(jQuery);(function(a){a(document).bind("DOMNodeInserted",function(g){var d=a(g.target);if("inline-edit"==d.attr("id")){var c=d.prev().attr("id").replace("post-","");if(c>0){var b=d.find(':input[name="inline_lang_choice"]');var h=a("#lang_"+c).html();b.val(h);f(h);b.change(function(){f(a(this).val())})}}function f(e){if("undefined"!=typeof(pll_term_languages)){a.each(pll_term_languages,function(i,j){a.each(j,function(k,l){a.each(l,function(m){id="#"+k+"-"+pll_term_languages[i][k][m];e==i?a(id).show():a(id).hide()})})})}}})})(jQuery);(function(a){a(document).ajaxSuccess(function(d,f,c){function b(h){var g=new Array;a(".translation_"+h).each(function(){g.push(a(this).parent().parent().attr("id").substring(5))});var i={action:"pll_update_post_rows",post_id:h,translations:g.join(","),post_type:a("input[name='post_type']").val(),screen:a("input[name='screen']").val(),_pll_nonce:a("input[name='_inline_edit']").val()};a.post(ajaxurl,i,function(j){var k=wpAjax.parseAjaxResponse(j,"ajax-response");a.each(k.responses,function(){if("row"==this.what){a("#post-"+this.supplemental.post_id).replaceWith(this.data)}})})}var e=wpAjax.unserialize(c.data);if("undefined"!=typeof(e.action)&&"inline-save"==e.action){b(e.post_ID)}})})(jQuery);jQuery(document).ready(function(c){var b=new Array();c(".categorydiv").each(function(){var f=c(this).attr("id"),e,d;e=f.split("-");e.shift();d=e.join("-");b.push(d);c("#"+d+"-add-submit").before(c("<input />").attr("type","hidden").attr("id",d+"-lang").attr("name","term_lang_choice").attr("value",c("#post_lang_choice").val()))});c("#post_lang_choice").change(function(){var d={action:"post_lang_choice",lang:c(this).val(),taxonomies:b,post_id:c("#post_ID").val(),_pll_nonce:c("#_pll_nonce").val()};c.post(ajaxurl,d,function(e){var f=wpAjax.parseAjaxResponse(e,"ajax-response");c.each(f.responses,function(){switch(this.what){case"translations":c("#post-translations").html(this.data);a();break;case"taxonomy":var g=this.data;c("#"+g+"checklist").html(this.supplemental.all);c("#"+g+"checklist-pop").html(this.supplemental.populars);c("#new"+g+"_parent").replaceWith(this.supplemental.dropdown);c("#"+g+"-lang").val(c("#post_lang_choice").val());break;case"pages":c("#pageparentdiv > .inside").html(this.data);break;case"flag":c(".pll-select-flag").html(this.data);break;default:break}});c(".tagcloud-link").each(function(){var g=c(this).attr("id");tagBox.get(g,0)});tagBox.suggest()})});c(".media_lang_choice").change(function(){var d={action:"media_lang_choice",lang:c(this).val(),post_id:c(this).attr("name"),_pll_nonce:c("#_pll_nonce").val()};c.post(ajaxurl,d,function(e){var f=wpAjax.parseAjaxResponse(e,"ajax-response");c.each(f.responses,function(){switch(this.what){case"translations":c(".translations").html(this.data);c(".compat-field-translations").html(this.data);break;case"flag":c(".pll-select-flag").html(this.data);break;default:break}})})});function a(){c(".tr_lang").each(function(){var d=c(this).attr("id").substring(8);var e=c(this).parent().siblings(".pll-edit-column");c(this).autocomplete({minLength:0,source:ajaxurl+"?action=pll_posts_not_translated&post_language="+c("#post_lang_choice").val()+"&translation_language="+d+"&post_type="+c("#post_type").val()+"&_pll_nonce="+c("#_pll_nonce").val(),select:function(f,g){c("#htr_lang_"+d).val(g.item.id);e.html(g.item.link)}});c(this).blur(function(){if(!c(this).val()){c("#htr_lang_"+d).val(0);e.html(e.siblings(".hidden").children().clone())}})})}a()});
1
+ (function(a){a.ajaxPrefilter(function(b,d,c){if(-1!==b.url.indexOf("action=ajax-tag-search")&&((lang=a("#post_lang_choice").val())||(lang=a(':input[name="inline_lang_choice"]').val()))){b.data="lang="+lang+"&"+b.data}})})(jQuery);(function(a){tagBox.get=function(d){var b=d.substr(d.indexOf("-")+1);var c={action:"get-tagcloud",lang:a("#post_lang_choice").val(),tax:b};a.post(ajaxurl,c,function(f,e){if(0==f||"success"!=e){f=wpAjax.broken}f=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+f+"</p>");a("a",f).click(function(){tagBox.flushTags(a(this).closest(".inside").children(".tagsdiv"),this);return false});if(v=a(".the-tagcloud").css("display")){a(".the-tagcloud").replaceWith(f);a(".the-tagcloud").css("display",v)}else{a("#"+d).after(f)}})}})(jQuery);(function(a){a(document).bind("DOMNodeInserted",function(h){var f=a(h.target);if("inline-edit"==f.attr("id")){var d=f.prev().attr("id").replace("post-","");if(d>0){var b=f.find(':input[name="inline_lang_choice"]');var i=a("#lang_"+d).html();b.val(i);g(i);c(i);b.change(function(){g(a(this).val());c(a(this).val())})}}function g(e){if("undefined"!=typeof(pll_term_languages)){a.each(pll_term_languages,function(j,k){a.each(k,function(l,m){a.each(m,function(n){id="#"+l+"-"+pll_term_languages[j][l][n];e==j?a(id).show():a(id).hide()})})})}}function c(e){if("undefined"!=typeof(pll_page_languages)){a.each(pll_page_languages,function(k,j){a.each(j,function(l){v=a('#post_parent option[value="'+pll_page_languages[k][l]+'"]');e==k?v.show():v.hide()})})}}})})(jQuery);(function(a){a(document).ajaxSuccess(function(d,f,c){function b(h){var g=new Array;a(".translation_"+h).each(function(){g.push(a(this).parent().parent().attr("id").substring(5))});var i={action:"pll_update_post_rows",post_id:h,translations:g.join(","),post_type:a("input[name='post_type']").val(),screen:a("input[name='screen']").val(),_pll_nonce:a("input[name='_inline_edit']").val()};a.post(ajaxurl,i,function(j){var k=wpAjax.parseAjaxResponse(j,"ajax-response");a.each(k.responses,function(){if("row"==this.what){a("#post-"+this.supplemental.post_id).replaceWith(this.data)}})})}var e=wpAjax.unserialize(c.data);if("undefined"!=typeof(e.action)&&"inline-save"==e.action){b(e.post_ID)}})})(jQuery);jQuery(document).ready(function(c){var b=new Array();c(".categorydiv").each(function(){var f=c(this).attr("id"),e,d;e=f.split("-");e.shift();d=e.join("-");b.push(d);c("#"+d+"-add-submit").before(c("<input />").attr("type","hidden").attr("id",d+"-lang").attr("name","term_lang_choice").attr("value",c("#post_lang_choice").val()))});c("#post_lang_choice").change(function(){var d={action:"post_lang_choice",lang:c(this).val(),taxonomies:b,post_id:c("#post_ID").val(),_pll_nonce:c("#_pll_nonce").val()};c.post(ajaxurl,d,function(e){var f=wpAjax.parseAjaxResponse(e,"ajax-response");c.each(f.responses,function(){switch(this.what){case"translations":c("#post-translations").html(this.data);a();break;case"taxonomy":var g=this.data;c("#"+g+"checklist").html(this.supplemental.all);c("#"+g+"checklist-pop").html(this.supplemental.populars);c("#new"+g+"_parent").replaceWith(this.supplemental.dropdown);c("#"+g+"-lang").val(c("#post_lang_choice").val());break;case"pages":c("#parent_id").html(this.data);break;case"flag":c(".pll-select-flag").html(this.data);break;default:break}});c(".tagcloud-link").each(function(){var g=c(this).attr("id");tagBox.get(g)})})});c(".media_lang_choice").change(function(){var d={action:"media_lang_choice",lang:c(this).val(),post_id:c(this).attr("name"),_pll_nonce:c("#_pll_nonce").val()};c.post(ajaxurl,d,function(e){var f=wpAjax.parseAjaxResponse(e,"ajax-response");c.each(f.responses,function(){switch(this.what){case"translations":c(".translations").html(this.data);c(".compat-field-translations").html(this.data);break;case"flag":c(".pll-select-flag").html(this.data);break;default:break}})})});function a(){c(".tr_lang").each(function(){var d=c(this).attr("id").substring(8);var e=c(this).parent().siblings(".pll-edit-column");c(this).autocomplete({minLength:0,source:ajaxurl+"?action=pll_posts_not_translated&post_language="+c("#post_lang_choice").val()+"&translation_language="+d+"&post_type="+c("#post_type").val()+"&_pll_nonce="+c("#_pll_nonce").val(),select:function(f,g){c("#htr_lang_"+d).val(g.item.id);e.html(g.item.link)}});c(this).blur(function(){if(!c(this).val()){c("#htr_lang_"+d).val(0);e.html(e.siblings(".hidden").children().clone())}})})}a()});
languages/polylang-de_DE.mo CHANGED
Binary file
languages/polylang-de_DE.po CHANGED
@@ -518,7 +518,7 @@ msgstr ""
518
  #, php-format
519
  msgid "Please upgrade first to %s before ugrading to %s."
520
  msgstr ""
521
- "Bitte aktualisieren Sie zuerst nach % s bevor Sie nach % s aktualisieren."
522
 
523
  # @ polylang
524
  #: admin/table-string.php:109
518
  #, php-format
519
  msgid "Please upgrade first to %s before ugrading to %s."
520
  msgstr ""
521
+ "Bitte aktualisieren Sie zuerst nach %s bevor Sie nach %s aktualisieren."
522
 
523
  # @ polylang
524
  #: admin/table-string.php:109
languages/polylang-sk_SK.mo CHANGED
Binary file
languages/polylang-sk_SK.po CHANGED
@@ -3,17 +3,16 @@ msgstr ""
3
  "Project-Id-Version: polylang\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: \n"
7
- "Last-Translator: Branco <brradenovich@gmail.com>\n"
8
- "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "Plural-Forms: nplurals=2: nplural=n>1;\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "X-Poedit-KeywordsList: _e;__;_x\n"
15
  "X-Poedit-Basepath: .\n"
16
- "X-Generator: Poedit 1.5.4\n"
17
  "Language: sk_SK\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
  "X-Poedit-SearchPath-1: ../include\n"
@@ -26,10 +25,10 @@ msgid ""
26
  "on a daily basis, a FAQ, as well as a documentation for programmers to adapt "
27
  "their plugins and themes."
28
  msgstr ""
29
- "Polylang je vybavený rozsiahlymi % sdocumentation % s (iba v angličtine). "
30
- "Obsahuje informácie o tom, ako nastaviť svoje viacjazyčné stránky a použiť "
31
- "ho na dennej báze, FAQ, ako aj dokumentáciu pre programátorov prispôsobiť "
32
- "ich pluginy a motívy."
33
 
34
  #: admin/view-about.php:9
35
  #, php-format
@@ -37,8 +36,8 @@ msgid ""
37
  "You will also find useful information in the %ssupport forum%s. However "
38
  "don't forget to make a search before posting a new topic."
39
  msgstr ""
40
- "Nájdete tu aj užitočné informácie vo fóre % ssupport % s. Avšak nezabudnite "
41
- "urobiť vyhľadávanie pred zaúčtovaním novú tému."
42
 
43
  #: admin/view-about.php:16
44
  #, php-format
@@ -46,22 +45,22 @@ msgid ""
46
  "Polylang is free of charge and is released under the same license as "
47
  "WordPress, the %sGPL%s."
48
  msgstr ""
49
- "Polylang je zadarmo a je uvoľnená pod rovnakou licenciou ako WordPress, "
50
- "% sGPL % s."
51
 
52
  #: admin/view-about.php:22
53
  #, php-format
54
  msgid "If you wonder how you can help the project, just %sread this%s."
55
  msgstr ""
56
- "Ak by vás zaujímalo, ako môžete pomôcť projektu, len % sread tejto % s."
57
 
58
  #: admin/view-about.php:27
59
  msgid ""
60
  "Finally if you like this plugin or if it helps your business, donations to "
61
  "the author are greatly appreciated."
62
  msgstr ""
63
- "Nakoniec Ak máte radi tento plugin, alebo ak to pomôže vašej firme, autorovi "
64
- "dary veľmi ocenil."
65
 
66
  #: admin/admin-filters-post.php:115 admin/admin.php:90 admin/settings.php:70
67
  #: admin/settings.php:97 include/model.php:561
@@ -70,19 +69,19 @@ msgstr "Jazyky"
70
 
71
  #: include/switcher.php:22
72
  msgid "Displays language names"
73
- msgstr "Zobrazí názvy jazyk"
74
 
75
  #: include/switcher.php:23
76
  msgid "Displays flags"
77
- msgstr "Vlajkami displeja"
78
 
79
  #: include/switcher.php:24
80
  msgid "Forces link to front page"
81
- msgstr "Forces odkaz na prednej strane"
82
 
83
  #: include/switcher.php:25
84
  msgid "Hides the current language"
85
- msgstr "Skryje aktuálny jazyk"
86
 
87
  #: include/switcher.php:30
88
  msgid "Displays as dropdown"
@@ -126,11 +125,11 @@ msgstr "Všetky jazyky"
126
 
127
  #: admin/admin-filters.php:123
128
  msgid "Admin language"
129
- msgstr "Admin jazyk"
130
 
131
  #: admin/admin-filters.php:126
132
  msgid "Wordpress default"
133
- msgstr "Predvolené WordPress"
134
 
135
  #: admin/admin.php:167 admin/settings.php:102
136
  msgid "Settings"
@@ -138,11 +137,11 @@ msgstr "Nastavenia"
138
 
139
  #: admin/admin-filters.php:160 admin/admin-filters.php:169
140
  msgid "Upgrading language files&#8230;"
141
- msgstr "Modernizácia jazykové súbory &amp;#8230;"
142
 
143
  #: admin/settings.php:62
144
  msgid "About Polylang"
145
- msgstr "O Polylang"
146
 
147
  #: admin/settings.php:78
148
  msgid "Strings translations"
@@ -154,7 +153,7 @@ msgstr "Preklad reťazcov"
154
 
155
  #: admin/admin-model.php:244
156
  msgid "Enter a valid WordPress locale"
157
- msgstr "Zadajte platný WordPress locale"
158
 
159
  #: admin/admin-model.php:252
160
  msgid "The language code must be unique"
@@ -169,65 +168,65 @@ msgid ""
169
  "The language was created, but the WordPress language file was not "
170
  "downloaded. Please install it manually."
171
  msgstr ""
172
- "Jazyk bol vytvorený, ale WordPress jazykový súbor sa neprevzal. Prosím ho "
173
- "nainštalovať manuálne."
174
 
175
  #: admin/admin-strings.php:59
176
  msgid "Widget title"
177
- msgstr "Widget titul"
178
 
179
  # @ polylang
180
  #: admin/settings.php:319
181
  msgid "Taxonomies"
182
- msgstr ""
183
 
184
  # @ polylang
185
  #: admin/settings.php:320
186
  msgid "Custom fields"
187
- msgstr ""
188
 
189
  # @ polylang
190
  #: admin/settings.php:321
191
  msgid "Comment status"
192
- msgstr ""
193
 
194
  # @ polylang
195
  #: admin/settings.php:322
196
  msgid "Ping status"
197
- msgstr ""
198
 
199
  # @ polylang
200
  #: admin/settings.php:323
201
  msgid "Sticky posts"
202
- msgstr ""
203
 
204
  # @ polylang
205
  #: admin/settings.php:324
206
  msgid "Published date"
207
- msgstr ""
208
 
209
  # @ polylang
210
  #: admin/settings.php:325
211
  msgid "Post format"
212
- msgstr ""
213
 
214
  #: admin/settings.php:326
215
  msgid "Page parent"
216
- msgstr ""
217
 
218
  # @ polylang
219
  #: admin/settings.php:327
220
  msgid "Page template"
221
- msgstr ""
222
 
223
  #: admin/settings.php:328
224
  msgid "Page order"
225
- msgstr ""
226
 
227
  # @ polylang
228
  #: admin/settings.php:329
229
  msgid "Featured image"
230
- msgstr ""
231
 
232
  #: admin/view-tab-lang.php:21
233
  msgid "Edit language"
@@ -244,7 +243,7 @@ msgstr "Vyberte jazyk"
244
  #: admin/view-tab-lang.php:51
245
  msgid "You can choose a language in the list or directly edit it below."
246
  msgstr ""
247
- "Môžete si zvoliť ľubovoľný jazyk v zozname alebo priamo upraviť nižšie."
248
 
249
  #: admin/table-languages.php:74 admin/view-tab-lang.php:55
250
  msgid "Full name"
@@ -252,19 +251,19 @@ msgstr "Celé meno"
252
 
253
  #: admin/view-tab-lang.php:57
254
  msgid "The name is how it is displayed on your site (for example: English)."
255
- msgstr "Meno je, ako je zobrazené na vašich stránkach (napríklad: angličtina)."
256
 
257
  #: admin/table-languages.php:75 admin/view-tab-lang.php:61
258
  msgid "Locale"
259
- msgstr "Locale"
260
 
261
  #: admin/view-tab-lang.php:66
262
  msgid ""
263
  "Wordpress Locale for the language (for example: en_US). You will need to "
264
  "install the .mo file for this language."
265
  msgstr ""
266
- "WordPress Locale jazyka (napríklad: en_US). Budete musieť nainštalovať .mo "
267
- "súbor pre tento jazyk."
268
 
269
  #: admin/view-tab-lang.php:70
270
  msgid "Language code"
@@ -288,11 +287,11 @@ msgstr "Výber smeru textu pre jazyk"
288
 
289
  #: admin/table-languages.php:77 admin/view-tab-lang.php:91
290
  msgid "Order"
291
- msgstr "Objednávky"
292
 
293
  #: admin/view-tab-lang.php:93
294
  msgid "Position of the language in the language switcher"
295
- msgstr "Pozícii jazyka v prepínač jazykov"
296
 
297
  #: admin/admin-nav-menu.php:54 admin/admin-nav-menu.php:92
298
  #: admin/admin-nav-menu.php:95 admin/admin-nav-menu.php:126
@@ -302,11 +301,11 @@ msgstr "Prepínač jazykov"
302
 
303
  #: admin/view-tab-strings.php:8
304
  msgid "Search translations"
305
- msgstr ""
306
 
307
  #: admin/view-tab-strings.php:11
308
  msgid "Clean strings translation database"
309
- msgstr "Čisté struny preklad databázy"
310
 
311
  #: admin/view-tab-settings.php:14
312
  msgid "Default language"
@@ -317,8 +316,8 @@ msgid ""
317
  "There are posts, pages, categories or tags without language set. Do you want "
318
  "to set them all to default language ?"
319
  msgstr ""
320
- "Tam príspevky, stránky, kategórie alebo značky bez jazyk nastaviť. Chcete "
321
- "nastaviť všetky predvolené jazyk?"
322
 
323
  #: admin/view-tab-settings.php:149
324
  msgid "Detect browser language"
@@ -329,25 +328,25 @@ msgid ""
329
  "When the front page is visited, set the language according to the browser "
330
  "preference"
331
  msgstr ""
332
- "Keď je navštívil prednej strane, nastaviť jazyk podľa prehliadača preferencie"
333
 
334
  #: admin/view-tab-settings.php:37
335
  msgid "URL modifications"
336
- msgstr "URL úpravy"
337
 
338
  #: admin/view-tab-settings.php:93
339
  msgid "Hide URL language information for default language"
340
- msgstr "Skryť URL jazyk informácie pre predvolený jazyk"
341
 
342
  # @ polylang
343
  #: admin/view-tab-settings.php:162
344
  msgid "Media"
345
- msgstr ""
346
 
347
  # @ polylang
348
  #: admin/view-tab-settings.php:168
349
  msgid "Activate languages and translations for media"
350
- msgstr ""
351
 
352
  #: admin/view-tab-settings.php:215
353
  msgid "Synchronization"
@@ -356,22 +355,22 @@ msgstr "Synchronizácia"
356
  # @ polylang
357
  #: admin/view-tab-settings.php:176
358
  msgid "Custom post types"
359
- msgstr ""
360
 
361
  # @ polylang
362
  #: admin/view-tab-settings.php:189
363
  msgid "Activate languages and translations for custom post types."
364
- msgstr ""
365
 
366
  # @ polylang
367
  #: admin/view-tab-settings.php:196
368
  msgid "Custom taxonomies"
369
- msgstr ""
370
 
371
  # @ polylang
372
  #: admin/view-tab-settings.php:209
373
  msgid "Activate languages and translations for custom taxonomies."
374
- msgstr ""
375
 
376
  #: admin/admin-filters-post.php:433 admin/admin-filters-term.php:642
377
  #: admin/table-languages.php:54 admin/view-translations-media.php:21
@@ -396,7 +395,7 @@ msgstr "Príspevky"
396
 
397
  #: admin/table-string.php:110
398
  msgid "Name"
399
- msgstr "meno"
400
 
401
  #: admin/table-string.php:111
402
  msgid "String"
@@ -417,45 +416,46 @@ msgstr "Zobrazí prepínač jazykov"
417
 
418
  #: include/widget-languages.php:75
419
  msgid "Title:"
420
- msgstr "Názov:"
421
 
422
  # @ polylang
423
  #. translators: plugin header field 'Description'
424
  #: polylang.php:0
425
  msgid "Adds multilingual capability to WordPress"
426
- msgstr ""
427
 
428
  #: install/install.php:24
429
  #, php-format
430
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
431
- msgstr "Používate WordPress % s. Polylang vyžaduje minimálne WordPress % s."
432
 
433
  # @ polylang
434
  #: install/upgrade.php:76
435
  msgid ""
436
  "Polylang has been deactivated because you upgraded from a too old version."
437
  msgstr ""
 
438
 
439
  # @ polylang
440
  #: install/upgrade.php:78
441
  #, php-format
442
  msgid "Please upgrade first to %s before ugrading to %s."
443
- msgstr ""
444
 
445
  # @ polylang
446
  #: admin/table-string.php:109
447
  msgid "Group"
448
- msgstr ""
449
 
450
  # @ polylang
451
  #: admin/table-string.php:187
452
  msgid "View all groups"
453
- msgstr ""
454
 
455
  # @ polylang
456
  #: admin/table-languages.php:59
457
  msgid "You are about to permanently delete this language. Are you sure?"
458
- msgstr ""
459
 
460
  # @ polylang
461
  #: admin/view-tab-strings.php:12
@@ -463,6 +463,8 @@ msgid ""
463
  "Use this to remove unused strings from database, for example after a plugin "
464
  "has been uninstalled."
465
  msgstr ""
 
 
466
 
467
  # @ polylang
468
  #: admin/view-tab-settings.php:226
@@ -471,45 +473,48 @@ msgid ""
471
  "translations in the case of taxonomies and page parent) of meta content "
472
  "between the translations of a post or page."
473
  msgstr ""
 
 
 
474
 
475
  #: admin/admin-model.php:248
476
  msgid "The language code contains invalid characters"
477
- msgstr ""
478
 
479
  #: admin/view-tab-settings.php:43
480
  msgid "The language is set from content"
481
- msgstr ""
482
 
483
  #: admin/view-tab-settings.php:46
484
  msgid "Posts, pages, categories and tags urls are not modified."
485
- msgstr ""
486
 
487
  #: admin/view-tab-settings.php:51
488
  msgid "The language is set from the directory name in pretty permalinks"
489
- msgstr ""
490
 
491
  # @ polylang
492
  #: admin/view-tab-settings.php:54 admin/view-tab-settings.php:63
493
  #: admin/view-tab-settings.php:110 admin/view-tab-settings.php:119
494
  msgid "Example:"
495
- msgstr ""
496
 
497
  #: admin/view-tab-settings.php:60
498
  msgid "The language is set from the subdomain name in pretty permalinks"
499
- msgstr ""
500
 
501
  # @ polylang
502
  #: admin/view-tab-settings.php:69
503
  msgid "The language is set from different domains"
504
- msgstr ""
505
 
506
  #: admin/view-tab-settings.php:107
507
  msgid "Remove /language/ in pretty permalinks"
508
- msgstr ""
509
 
510
  #: admin/view-tab-settings.php:116
511
  msgid "Keep /language/ in pretty permalinks"
512
- msgstr ""
513
 
514
  # @ polylang
515
  #: admin/view-tab-settings.php:131
@@ -517,62 +522,64 @@ msgid ""
517
  "The front page url contains the language code instead of the page name or "
518
  "page id"
519
  msgstr ""
 
 
520
 
521
  # @ polylang
522
  #: admin/view-tab-settings.php:139
523
  #, php-format
524
  msgid "Example: %s instead of %s"
525
- msgstr ""
526
 
527
  #: admin/admin-model.php:38
528
  msgid "Impossible to add the language."
529
- msgstr ""
530
 
531
  # @ polylang
532
  #: admin/admin-model.php:66
533
  msgid "Language added."
534
- msgstr ""
535
 
536
  # @ polylang
537
  #: admin/admin-model.php:146
538
  msgid "Language deleted."
539
- msgstr ""
540
 
541
  # @ polylang
542
  #: admin/admin-model.php:227
543
  msgid "Language updated."
544
- msgstr ""
545
 
546
  # @ polylang
547
  #: admin/settings.php:239
548
  msgid "Translations updated."
549
- msgstr ""
550
 
551
  #: admin/view-tab-lang.php:72
552
  msgid "Language code - preferably 2-letters ISO 639-1 (for example: en)"
553
- msgstr ""
554
 
555
  # @ polylang
556
  #: admin/admin-filters.php:203
557
  msgid "The chosen static front page must be translated in all languages."
558
- msgstr ""
559
 
560
  #: admin/admin-strings.php:60
561
  msgid "Widget text"
562
- msgstr ""
563
 
564
  # @ polylang
565
  #: admin/settings.php:52
566
  msgid "Recommended plugins"
567
- msgstr ""
568
 
569
  #: admin/view-tab-settings.php:51
570
  msgid "The language is set from the code in the URL"
571
- msgstr ""
572
 
573
  #: include/switcher.php:26
574
  msgid "Hides languages with no translation"
575
- msgstr ""
576
 
577
  #~ msgid "2-letters ISO 639-1 language code (for example: en)"
578
  #~ msgstr "2-listy kód ISO 639-1 jazyk (napríklad: en)"
@@ -597,7 +604,7 @@ msgstr ""
597
  #~ "the front page in the right language"
598
  #~ msgstr ""
599
  #~ "Pri použití statické predná strana, presmerovať stránku jazyka (príklad: "
600
- #~ "% s) na prednej strane v správneho jazyka"
601
 
602
  #~ msgid ""
603
  #~ "For some reasons, Polylang could not create a table in your database."
@@ -612,7 +619,7 @@ msgstr ""
612
  #~ msgid ""
613
  #~ "Please go to the %slanguages page%s to set theme locations and languages"
614
  #~ msgstr ""
615
- #~ "Prosím, choďte na slanguages % stránku %s nastaviť tému lokality a jazyky"
616
 
617
  #~ msgid "Menus"
618
  #~ msgstr "Menu"
3
  "Project-Id-Version: polylang\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2015-04-12 16:19+0200\n"
7
+ "Last-Translator: Maros Kucera <maros.kucera@hotmail.com>\n"
8
+ "Language-Team: Slovak <>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "X-Poedit-KeywordsList: _e;__;_x\n"
15
  "X-Poedit-Basepath: .\n"
 
16
  "Language: sk_SK\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
  "X-Poedit-SearchPath-1: ../include\n"
25
  "on a daily basis, a FAQ, as well as a documentation for programmers to adapt "
26
  "their plugins and themes."
27
  msgstr ""
28
+ "Polylang je vybavený rozsiahlou %sdokumentáciou%s (iba v angličtine). "
29
+ "Obsahuje informácie o tom, ako nastaviť svoje viacjazyčné stránky a používať "
30
+ "ho na dennej báze, FAQ, ako aj dokumentáciu pre programátorov na "
31
+ "prispôsobenie svojich modulov a tém."
32
 
33
  #: admin/view-about.php:9
34
  #, php-format
36
  "You will also find useful information in the %ssupport forum%s. However "
37
  "don't forget to make a search before posting a new topic."
38
  msgstr ""
39
+ "Užitočné informácie môžete nájsť aj na %sfóre podpory%s. Pred vytvorením "
40
+ "novej otázky však nezabudnite skúsiť svoj problém vyhľadať."
41
 
42
  #: admin/view-about.php:16
43
  #, php-format
45
  "Polylang is free of charge and is released under the same license as "
46
  "WordPress, the %sGPL%s."
47
  msgstr ""
48
+ "Polylang je zadarmo a je uvoľnený pod rovnakou licenciou ako WordPress, "
49
+ "%sGPL%s."
50
 
51
  #: admin/view-about.php:22
52
  #, php-format
53
  msgid "If you wonder how you can help the project, just %sread this%s."
54
  msgstr ""
55
+ "Ak by vás zaujímalo, ako môžete pomôcť projektu, %sprečítajte si toto %s."
56
 
57
  #: admin/view-about.php:27
58
  msgid ""
59
  "Finally if you like this plugin or if it helps your business, donations to "
60
  "the author are greatly appreciated."
61
  msgstr ""
62
+ "Na záver, ak máte radi tento plugin alebo pomáha vašej firme, autor veľmi "
63
+ "ocení všetky dary."
64
 
65
  #: admin/admin-filters-post.php:115 admin/admin.php:90 admin/settings.php:70
66
  #: admin/settings.php:97 include/model.php:561
69
 
70
  #: include/switcher.php:22
71
  msgid "Displays language names"
72
+ msgstr "Zobrazí názvy jazykov"
73
 
74
  #: include/switcher.php:23
75
  msgid "Displays flags"
76
+ msgstr "Zobrazí vlajky"
77
 
78
  #: include/switcher.php:24
79
  msgid "Forces link to front page"
80
+ msgstr "Vynúti odkaz na úvodnú stránku"
81
 
82
  #: include/switcher.php:25
83
  msgid "Hides the current language"
84
+ msgstr "Skryje aktuálne používaný jazyk"
85
 
86
  #: include/switcher.php:30
87
  msgid "Displays as dropdown"
125
 
126
  #: admin/admin-filters.php:123
127
  msgid "Admin language"
128
+ msgstr "Jazyk administračného rozhrania"
129
 
130
  #: admin/admin-filters.php:126
131
  msgid "Wordpress default"
132
+ msgstr "Predvolené vo WordPresse"
133
 
134
  #: admin/admin.php:167 admin/settings.php:102
135
  msgid "Settings"
137
 
138
  #: admin/admin-filters.php:160 admin/admin-filters.php:169
139
  msgid "Upgrading language files&#8230;"
140
+ msgstr "Aktualizácia jazykových súborov &amp;#8230;"
141
 
142
  #: admin/settings.php:62
143
  msgid "About Polylang"
144
+ msgstr "O Polylangu"
145
 
146
  #: admin/settings.php:78
147
  msgid "Strings translations"
153
 
154
  #: admin/admin-model.php:244
155
  msgid "Enter a valid WordPress locale"
156
+ msgstr "Zadajte platný WordPress locale reťazec"
157
 
158
  #: admin/admin-model.php:252
159
  msgid "The language code must be unique"
168
  "The language was created, but the WordPress language file was not "
169
  "downloaded. Please install it manually."
170
  msgstr ""
171
+ "Jazyk bol vytvorený, ale WordPress jazykový súbor sa neprevzal. Prosím "
172
+ "nainštalujte ho manuálne."
173
 
174
  #: admin/admin-strings.php:59
175
  msgid "Widget title"
176
+ msgstr "Titulok widgetu"
177
 
178
  # @ polylang
179
  #: admin/settings.php:319
180
  msgid "Taxonomies"
181
+ msgstr "Taxonómie"
182
 
183
  # @ polylang
184
  #: admin/settings.php:320
185
  msgid "Custom fields"
186
+ msgstr "Vlastné polia"
187
 
188
  # @ polylang
189
  #: admin/settings.php:321
190
  msgid "Comment status"
191
+ msgstr "Stav komentára"
192
 
193
  # @ polylang
194
  #: admin/settings.php:322
195
  msgid "Ping status"
196
+ msgstr "Stav pingu"
197
 
198
  # @ polylang
199
  #: admin/settings.php:323
200
  msgid "Sticky posts"
201
+ msgstr "Pripnuté články"
202
 
203
  # @ polylang
204
  #: admin/settings.php:324
205
  msgid "Published date"
206
+ msgstr "Dátum publikácie"
207
 
208
  # @ polylang
209
  #: admin/settings.php:325
210
  msgid "Post format"
211
+ msgstr "Formát článku"
212
 
213
  #: admin/settings.php:326
214
  msgid "Page parent"
215
+ msgstr "Rodič stránky"
216
 
217
  # @ polylang
218
  #: admin/settings.php:327
219
  msgid "Page template"
220
+ msgstr "Šablóna stránky"
221
 
222
  #: admin/settings.php:328
223
  msgid "Page order"
224
+ msgstr "Poradie stránky"
225
 
226
  # @ polylang
227
  #: admin/settings.php:329
228
  msgid "Featured image"
229
+ msgstr "Vybraný obrázok"
230
 
231
  #: admin/view-tab-lang.php:21
232
  msgid "Edit language"
243
  #: admin/view-tab-lang.php:51
244
  msgid "You can choose a language in the list or directly edit it below."
245
  msgstr ""
246
+ "Môžete si zvoliť ľubovoľný jazyk zo zoznamu alebo ho priamo upraviť nižšie."
247
 
248
  #: admin/table-languages.php:74 admin/view-tab-lang.php:55
249
  msgid "Full name"
251
 
252
  #: admin/view-tab-lang.php:57
253
  msgid "The name is how it is displayed on your site (for example: English)."
254
+ msgstr "Meno je zobrazené na vašich stránkach (napríklad: angličtina)."
255
 
256
  #: admin/table-languages.php:75 admin/view-tab-lang.php:61
257
  msgid "Locale"
258
+ msgstr "Locale reťazec"
259
 
260
  #: admin/view-tab-lang.php:66
261
  msgid ""
262
  "Wordpress Locale for the language (for example: en_US). You will need to "
263
  "install the .mo file for this language."
264
  msgstr ""
265
+ "WordPress Locale reťazec jazyka (napríklad: en_US). Budete musieť "
266
+ "nainštalovať .mo súbor pre tento jazyk."
267
 
268
  #: admin/view-tab-lang.php:70
269
  msgid "Language code"
287
 
288
  #: admin/table-languages.php:77 admin/view-tab-lang.php:91
289
  msgid "Order"
290
+ msgstr "Poradie"
291
 
292
  #: admin/view-tab-lang.php:93
293
  msgid "Position of the language in the language switcher"
294
+ msgstr "Poradie jazyka v prepínači jazykov"
295
 
296
  #: admin/admin-nav-menu.php:54 admin/admin-nav-menu.php:92
297
  #: admin/admin-nav-menu.php:95 admin/admin-nav-menu.php:126
301
 
302
  #: admin/view-tab-strings.php:8
303
  msgid "Search translations"
304
+ msgstr "Preklady vyhľadávania"
305
 
306
  #: admin/view-tab-strings.php:11
307
  msgid "Clean strings translation database"
308
+ msgstr "Vyčistiť databázu reťazcov prekladu"
309
 
310
  #: admin/view-tab-settings.php:14
311
  msgid "Default language"
316
  "There are posts, pages, categories or tags without language set. Do you want "
317
  "to set them all to default language ?"
318
  msgstr ""
319
+ "Existujú príspevky, stránky, kategórie alebo značky bez nastaveného jazyka. "
320
+ "Chcete ich jazyk nastaviť na predvolený?"
321
 
322
  #: admin/view-tab-settings.php:149
323
  msgid "Detect browser language"
328
  "When the front page is visited, set the language according to the browser "
329
  "preference"
330
  msgstr ""
331
+ "Pri navštívení úvodnej stránky nastaví jazyk podľa preferencie prehliadača"
332
 
333
  #: admin/view-tab-settings.php:37
334
  msgid "URL modifications"
335
+ msgstr "Úpravy URL"
336
 
337
  #: admin/view-tab-settings.php:93
338
  msgid "Hide URL language information for default language"
339
+ msgstr "Skryť informáciu o jazyku v URL pre predvolený jazyk"
340
 
341
  # @ polylang
342
  #: admin/view-tab-settings.php:162
343
  msgid "Media"
344
+ msgstr "Médiá"
345
 
346
  # @ polylang
347
  #: admin/view-tab-settings.php:168
348
  msgid "Activate languages and translations for media"
349
+ msgstr "Zapnúť jazyky a preklady pre médiá"
350
 
351
  #: admin/view-tab-settings.php:215
352
  msgid "Synchronization"
355
  # @ polylang
356
  #: admin/view-tab-settings.php:176
357
  msgid "Custom post types"
358
+ msgstr "Vlastné typy obsahu"
359
 
360
  # @ polylang
361
  #: admin/view-tab-settings.php:189
362
  msgid "Activate languages and translations for custom post types."
363
+ msgstr "Zapnúť jazyky a preklady pre vlastné typy obsahu."
364
 
365
  # @ polylang
366
  #: admin/view-tab-settings.php:196
367
  msgid "Custom taxonomies"
368
+ msgstr "Vlastné taxonómie"
369
 
370
  # @ polylang
371
  #: admin/view-tab-settings.php:209
372
  msgid "Activate languages and translations for custom taxonomies."
373
+ msgstr "Zapnúť jazyky a preklady pre vlastné taxonómie."
374
 
375
  #: admin/admin-filters-post.php:433 admin/admin-filters-term.php:642
376
  #: admin/table-languages.php:54 admin/view-translations-media.php:21
395
 
396
  #: admin/table-string.php:110
397
  msgid "Name"
398
+ msgstr "Meno"
399
 
400
  #: admin/table-string.php:111
401
  msgid "String"
416
 
417
  #: include/widget-languages.php:75
418
  msgid "Title:"
419
+ msgstr "Titulok:"
420
 
421
  # @ polylang
422
  #. translators: plugin header field 'Description'
423
  #: polylang.php:0
424
  msgid "Adds multilingual capability to WordPress"
425
+ msgstr "Pridá viacjazyčnosť do WordPressu"
426
 
427
  #: install/install.php:24
428
  #, php-format
429
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
430
+ msgstr "Používate WordPress %s. Polylang vyžaduje aspoň WordPress %s."
431
 
432
  # @ polylang
433
  #: install/upgrade.php:76
434
  msgid ""
435
  "Polylang has been deactivated because you upgraded from a too old version."
436
  msgstr ""
437
+ "Polylang bol deactivvovaný, pretože ste aktualizovali z príliš starej verzie."
438
 
439
  # @ polylang
440
  #: install/upgrade.php:78
441
  #, php-format
442
  msgid "Please upgrade first to %s before ugrading to %s."
443
+ msgstr "Najprv prosím aktualizujte na %s, až potom na %s."
444
 
445
  # @ polylang
446
  #: admin/table-string.php:109
447
  msgid "Group"
448
+ msgstr "Skupina"
449
 
450
  # @ polylang
451
  #: admin/table-string.php:187
452
  msgid "View all groups"
453
+ msgstr "Zobraziť všetky skupiny"
454
 
455
  # @ polylang
456
  #: admin/table-languages.php:59
457
  msgid "You are about to permanently delete this language. Are you sure?"
458
+ msgstr "Chystáte sa navždy odstrániť tento jazyk. Naozaj chcete pokračovať?"
459
 
460
  # @ polylang
461
  #: admin/view-tab-strings.php:12
463
  "Use this to remove unused strings from database, for example after a plugin "
464
  "has been uninstalled."
465
  msgstr ""
466
+ "Túto voľbu použite na vymazanie nepoužívaných reťazcov z databázy, napríklad "
467
+ "po odinštalovaní modulu."
468
 
469
  # @ polylang
470
  #: admin/view-tab-settings.php:226
473
  "translations in the case of taxonomies and page parent) of meta content "
474
  "between the translations of a post or page."
475
  msgstr ""
476
+ "Možnosti synchronizácie umožňujú zachovať presne rovnaké hodnoty (alebo "
477
+ "preklady v prípade taxonómií a rodičov stránky) meta údajov vo všetkých "
478
+ "prekladoch článku alebo stránky."
479
 
480
  #: admin/admin-model.php:248
481
  msgid "The language code contains invalid characters"
482
+ msgstr "Kód jazyka obsahuje neplatné znaky"
483
 
484
  #: admin/view-tab-settings.php:43
485
  msgid "The language is set from content"
486
+ msgstr "Jazyk sa nastaví v závislosti od obsahu"
487
 
488
  #: admin/view-tab-settings.php:46
489
  msgid "Posts, pages, categories and tags urls are not modified."
490
+ msgstr "URL článkov, stránok, kategórií a značiek sa nemenia."
491
 
492
  #: admin/view-tab-settings.php:51
493
  msgid "The language is set from the directory name in pretty permalinks"
494
+ msgstr "Jazyk sa nastaví v závislosti od mena priečinka v trvalom odkaze"
495
 
496
  # @ polylang
497
  #: admin/view-tab-settings.php:54 admin/view-tab-settings.php:63
498
  #: admin/view-tab-settings.php:110 admin/view-tab-settings.php:119
499
  msgid "Example:"
500
+ msgstr "Príklad:"
501
 
502
  #: admin/view-tab-settings.php:60
503
  msgid "The language is set from the subdomain name in pretty permalinks"
504
+ msgstr "Jazyk sa nastaví v závislosti od subdomény v trvalom odkaze"
505
 
506
  # @ polylang
507
  #: admin/view-tab-settings.php:69
508
  msgid "The language is set from different domains"
509
+ msgstr "Jazyk sa nastaví v závislosti od domény"
510
 
511
  #: admin/view-tab-settings.php:107
512
  msgid "Remove /language/ in pretty permalinks"
513
+ msgstr "Odstrániť /language/ z trvalých odkazov"
514
 
515
  #: admin/view-tab-settings.php:116
516
  msgid "Keep /language/ in pretty permalinks"
517
+ msgstr "Ponechať /language/ v trvalých odkazoch"
518
 
519
  # @ polylang
520
  #: admin/view-tab-settings.php:131
522
  "The front page url contains the language code instead of the page name or "
523
  "page id"
524
  msgstr ""
525
+ "URL úvodnej stránky obsahuje kód jazyka namiesto mena stránky alebo ID "
526
+ "stránky"
527
 
528
  # @ polylang
529
  #: admin/view-tab-settings.php:139
530
  #, php-format
531
  msgid "Example: %s instead of %s"
532
+ msgstr "Príklad: %s namiesto %s"
533
 
534
  #: admin/admin-model.php:38
535
  msgid "Impossible to add the language."
536
+ msgstr "Nie je možné pridať jazyk."
537
 
538
  # @ polylang
539
  #: admin/admin-model.php:66
540
  msgid "Language added."
541
+ msgstr "Jazyk bol pridaný."
542
 
543
  # @ polylang
544
  #: admin/admin-model.php:146
545
  msgid "Language deleted."
546
+ msgstr "Jazyk bol odstránený."
547
 
548
  # @ polylang
549
  #: admin/admin-model.php:227
550
  msgid "Language updated."
551
+ msgstr "Jazyk bol aktualizovaný."
552
 
553
  # @ polylang
554
  #: admin/settings.php:239
555
  msgid "Translations updated."
556
+ msgstr "Preklady boli aktualizované."
557
 
558
  #: admin/view-tab-lang.php:72
559
  msgid "Language code - preferably 2-letters ISO 639-1 (for example: en)"
560
+ msgstr "Kód jazyka - najlepšie 2-písmenový ISO 639-1 kód (napríklad: sk)"
561
 
562
  # @ polylang
563
  #: admin/admin-filters.php:203
564
  msgid "The chosen static front page must be translated in all languages."
565
+ msgstr "Zvolená úvodná stránka musí byť preložená vo všetkých jazykoch."
566
 
567
  #: admin/admin-strings.php:60
568
  msgid "Widget text"
569
+ msgstr "Text widgetu"
570
 
571
  # @ polylang
572
  #: admin/settings.php:52
573
  msgid "Recommended plugins"
574
+ msgstr "Odporúčané moduly"
575
 
576
  #: admin/view-tab-settings.php:51
577
  msgid "The language is set from the code in the URL"
578
+ msgstr "Jazyk sa nastaví v závislosti od kódu v URL"
579
 
580
  #: include/switcher.php:26
581
  msgid "Hides languages with no translation"
582
+ msgstr "Skryje jazyky bez prekladov"
583
 
584
  #~ msgid "2-letters ISO 639-1 language code (for example: en)"
585
  #~ msgstr "2-listy kód ISO 639-1 jazyk (napríklad: en)"
604
  #~ "the front page in the right language"
605
  #~ msgstr ""
606
  #~ "Pri použití statické predná strana, presmerovať stránku jazyka (príklad: "
607
+ #~ "%s) na prednej strane v správneho jazyka"
608
 
609
  #~ msgid ""
610
  #~ "For some reasons, Polylang could not create a table in your database."
619
  #~ msgid ""
620
  #~ "Please go to the %slanguages page%s to set theme locations and languages"
621
  #~ msgstr ""
622
+ #~ "Prosím, choďte na slanguages %stránku %s nastaviť tému lokality a jazyky"
623
 
624
  #~ msgid "Menus"
625
  #~ msgstr "Menu"
polylang.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
- Version: 1.7.3
6
  Author: Frédéric Demarle
7
  Description: Adds multilingual capability to WordPress
8
  Text Domain: polylang
@@ -33,7 +33,7 @@ Domain Path: /languages
33
  if (!function_exists('add_action'))
34
  exit();
35
 
36
- define('POLYLANG_VERSION', '1.7.3');
37
  define('PLL_MIN_WP_VERSION', '3.8');
38
 
39
  define('POLYLANG_BASENAME', plugin_basename(__FILE__)); // plugin name as known by WP
@@ -88,7 +88,7 @@ class Polylang {
88
 
89
  // WPML API
90
  if (!defined('PLL_WPML_COMPAT') || PLL_WPML_COMPAT)
91
- require_once (PLL_INC.'/wpml-compat.php');
92
 
93
  // extra code for compatibility with some plugins
94
  if (!defined('PLL_PLUGINS_COMPAT') || PLL_PLUGINS_COMPAT)
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
+ Version: 1.7.4
6
  Author: Frédéric Demarle
7
  Description: Adds multilingual capability to WordPress
8
  Text Domain: polylang
33
  if (!function_exists('add_action'))
34
  exit();
35
 
36
+ define('POLYLANG_VERSION', '1.7.4');
37
  define('PLL_MIN_WP_VERSION', '3.8');
38
 
39
  define('POLYLANG_BASENAME', plugin_basename(__FILE__)); // plugin name as known by WP
88
 
89
  // WPML API
90
  if (!defined('PLL_WPML_COMPAT') || PLL_WPML_COMPAT)
91
+ PLL_WPML_Compat::instance();
92
 
93
  // extra code for compatibility with some plugins
94
  if (!defined('PLL_PLUGINS_COMPAT') || PLL_PLUGINS_COMPAT)
readme.txt CHANGED
@@ -4,10 +4,10 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
- Stable tag: 1.7.3
8
  License: GPLv2 or later
9
 
10
- Polylang adds multilingual content management support to WordPress.
11
 
12
  == Description ==
13
 
@@ -25,7 +25,7 @@ Polylang allows you to create a bilingual or multilingual WordPress site. You wr
25
 
26
  = Translators =
27
 
28
- The plugin admin interface is currently available in 37 languages: English, French, German by [Christian Ries](http://www.singbyfoot.lu), Russian by [yoyurec](http://yoyurec.in.ua) and unostar, Greek by [theodotos](http://www.ubuntucy.org), Dutch by [AlbertGn](http://wordpress.org/support/profile/albertgn), Hebrew by [ArielK](http://www.arielk.net), Polish by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl), [Bartosz](http://www.dfactory.eu/) and Sebastian Janus, Latvian by [@AndyDeGroo](http://twitter.com/AndyDeGroo), Italian by [Luca Barbetti](http://wordpress.org/support/profile/lucabarbetti), Danish by [Compute](http://wordpress.org/support/profile/compute), Spanish by Curro, Portuguese by [Vitor Carvalho](http://vcarvalho.com/), Lithuanian by [Naglis Jonaitis](http://najo.lt/), Turkish by [darchws](http://darch.ws/) and [Abdullah Pazarbasi](http://www.abdullahpazarbasi.com/), Finnish by [Jani Alha](http://www.wysiwyg.fi), Bulgarian by [pavelsof](http://wordpress.org/support/profile/pavelsof), Belarusian by [Alexander Markevitch](http://fourfeathers.by/), Afrikaans by [Kobus Joubert](http://translate3d.com/), Hungarian by Csaba Erdei, Norwegian by [Tom Boersma](http://www.oransje.com/), Slovak by [Branco (WebHostingGeeks.com)](http://webhostinggeeks.com/user-reviews/), Swedish by [matsii](http://wordpress.org/support/profile/matsii) and [Jon Täng](http://jontang.se), Catalan by [Núria Martínez Berenguer](http://www.linkedin.com/profile/view?id=127867004&trk=nav_responsive_tab_profile&locale=en_US), Ukrainian by [cmd soft](http://www.cmd-soft.com/), [http://getvoip.com/](http://getvoip.com/) and [Andrii Ryzhkov](https://github.com/andriiryzhkov), Estonian by [Ahto Naris](http://profiles.wordpress.org/ahtonaris/), Venetian by Michele Brunelli, simplified Chinese by [Changmeng Hu](http://www.wpdaxue.com), Indonesian by [ajoull](http://www.ajoull.com/), Arabic by [Anas Sulaiman](http://ahs.pw/), Traditional Chinese by [香腸](http://sofree.cc/), Czech by [Přemysl Karbula](http://www.premyslkarbula.cz), Serbian by Sinisa, Myanmar by Sithu Thwin, Croatian by Bajro, Brazilian Portuguese by [Henrique Vianna](http://henriquevianna.com/), Georgian by [Tours in Georgia](http://www.georgia-tours.eu/)
29
 
30
  = Credits =
31
 
@@ -67,6 +67,19 @@ See http://polylang.wordpress.com/documentation/contribute/
67
 
68
  == Changelog ==
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  = 1.7.3 (2015-04-11) =
71
 
72
  * the transient 'pll_languages_list' now stores an array of arrays instead of an array of PLL_Language objects
4
  Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
+ Stable tag: 1.7.4
8
  License: GPLv2 or later
9
 
10
+ Making WordPress multilingual
11
 
12
  == Description ==
13
 
25
 
26
  = Translators =
27
 
28
+ The plugin admin interface is currently available in 37 languages: English, French, German by [Christian Ries](http://www.singbyfoot.lu), Russian by [yoyurec](http://yoyurec.in.ua) and unostar, Greek by [theodotos](http://www.ubuntucy.org), Dutch by [AlbertGn](http://wordpress.org/support/profile/albertgn), Hebrew by [ArielK](http://www.arielk.net), Polish by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl), [Bartosz](http://www.dfactory.eu/) and Sebastian Janus, Latvian by [@AndyDeGroo](http://twitter.com/AndyDeGroo), Italian by [Luca Barbetti](http://wordpress.org/support/profile/lucabarbetti), Danish by [Compute](http://wordpress.org/support/profile/compute), Spanish by Curro, Portuguese by [Vitor Carvalho](http://vcarvalho.com/), Lithuanian by [Naglis Jonaitis](http://najo.lt/), Turkish by [darchws](http://darch.ws/) and [Abdullah Pazarbasi](http://www.abdullahpazarbasi.com/), Finnish by [Jani Alha](http://www.wysiwyg.fi), Bulgarian by [pavelsof](http://wordpress.org/support/profile/pavelsof), Belarusian by [Alexander Markevitch](http://fourfeathers.by/), Afrikaans by [Kobus Joubert](http://translate3d.com/), Hungarian by Csaba Erdei, Norwegian by [Tom Boersma](http://www.oransje.com/), Slovak by [Branco (WebHostingGeeks.com)](http://webhostinggeeks.com/user-reviews/) and [Maros Kucera](https://maroskucera.com), Swedish by [matsii](http://wordpress.org/support/profile/matsii) and [Jon Täng](http://jontang.se), Catalan by [Núria Martínez Berenguer](http://www.linkedin.com/profile/view?id=127867004&trk=nav_responsive_tab_profile&locale=en_US), Ukrainian by [cmd soft](http://www.cmd-soft.com/), [http://getvoip.com/](http://getvoip.com/) and [Andrii Ryzhkov](https://github.com/andriiryzhkov), Estonian by [Ahto Naris](http://profiles.wordpress.org/ahtonaris/), Venetian by Michele Brunelli, simplified Chinese by [Changmeng Hu](http://www.wpdaxue.com), Indonesian by [ajoull](http://www.ajoull.com/), Arabic by [Anas Sulaiman](http://ahs.pw/), Traditional Chinese by [香腸](http://sofree.cc/), Czech by [Přemysl Karbula](http://www.premyslkarbula.cz), Serbian by Sinisa, Myanmar by Sithu Thwin, Croatian by Bajro, Brazilian Portuguese by [Henrique Vianna](http://henriquevianna.com/), Georgian by [Tours in Georgia](http://www.georgia-tours.eu/)
29
 
30
  = Credits =
31
 
67
 
68
  == Changelog ==
69
 
70
+ = 1.7.4 (2015-05-03) =
71
+
72
+ * fix: translated taxonomies and post types from wpml-config.xml are not filtered on frontend (introduced in 1.7.2)
73
+ * fix: WPML strings translations not always loaded (introduced in 1.7)
74
+ * fix: $.ajaxPrefilter() may not work as expected [props ScreenfeedFr](https://wordpress.org/support/topic/ajaxprefilter-may-not-work-as-expected)
75
+ * fix: can't hide the language code for the default language when using subdomains
76
+ * fix: incorrect static front page url when hiding the default language information
77
+ * fix: an untranslated posts page may display posts in all languages
78
+ * fix: javascript error when changing the language of a hierarchical post type from the languages metabox in WP 4.2
79
+ * fix: subdomains urls are malformed when the main site uses www.
80
+ * fix: suggest tags are not filtered in quick edit
81
+ * fix: parent page dropdown list not filtered in quick edit
82
+
83
  = 1.7.3 (2015-04-11) =
84
 
85
  * the transient 'pll_languages_list' now stores an array of arrays instead of an array of PLL_Language objects