Polylang - Version 1.2.2

Version Description

Polylang 1.2 introduces major internal changes. More than ever, make a database backup before upgrading! If you are using a version older than 0.8, please ugrade to 0.9.8 before ugrading to 1.2

=

Download this release

Release Info

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

Code changes from version 1.2.1 to 1.2.2

admin/admin-filters-term.php CHANGED
@@ -354,7 +354,7 @@ class PLL_Admin_Filters_Term {
354
 
355
  // the language filter selection has just changed
356
  // test $screen->base to avoid interference between the language filter and the post language selection and the category parent dropdown list
357
- elseif (!empty($_GET['lang']) && !in_array($screen->base, array('post', 'edit-tags'))) {
358
  if ($_GET['lang'] != 'all')
359
  $lang = $this->model->get_language($_GET['lang']);
360
  elseif ($screen->base == 'edit-tags' && isset($args['class']))
@@ -363,7 +363,7 @@ class PLL_Admin_Filters_Term {
363
 
364
  // again the language filter
365
  elseif (($lg = get_user_meta(get_current_user_id(), 'pll_filter_content', true)) &&
366
- $screen->base != 'post' && !($screen->base == 'edit-tags' && isset($args['class']))) // don't apply to post edit and the category parent dropdown list
367
  $lang = $this->model->get_language($lg);
368
 
369
  elseif (isset($_GET['post']))
354
 
355
  // the language filter selection has just changed
356
  // test $screen->base to avoid interference between the language filter and the post language selection and the category parent dropdown list
357
+ elseif (!empty($_GET['lang']) && !(isset($screen) && in_array($screen->base, array('post', 'edit-tags')))) {
358
  if ($_GET['lang'] != 'all')
359
  $lang = $this->model->get_language($_GET['lang']);
360
  elseif ($screen->base == 'edit-tags' && isset($args['class']))
363
 
364
  // again the language filter
365
  elseif (($lg = get_user_meta(get_current_user_id(), 'pll_filter_content', true)) &&
366
+ (isset($screen) && $screen->base != 'post' && !($screen->base == 'edit-tags' && isset($args['class'])))) // don't apply to post edit and the category parent dropdown list
367
  $lang = $this->model->get_language($lg);
368
 
369
  elseif (isset($_GET['post']))
admin/admin.php CHANGED
@@ -75,7 +75,7 @@ class PLL_Admin extends PLL_Base {
75
 
76
  // setup filters for admin pages
77
  if (!PLL_SETTINGS)
78
- add_action('init', array(&$this, 'add_filters'));
79
  }
80
 
81
  /*
75
 
76
  // setup filters for admin pages
77
  if (!PLL_SETTINGS)
78
+ add_action('wp_loaded', array(&$this, 'add_filters'));
79
  }
80
 
81
  /*
frontend/choose-lang.php CHANGED
@@ -27,7 +27,7 @@ abstract class PLL_Choose_Lang {
27
  $this->page_for_posts = get_option('page_for_posts');
28
 
29
  if (PLL_AJAX_ON_FRONT || false === stripos($_SERVER['SCRIPT_NAME'], 'index.php'))
30
- $this->set_language(empty($_REQUEST['lang']) ? $this->get_preferred_language() : $model->get_language($_REQUEST['lang']));
31
 
32
  add_action('pre_comment_on_post', array(&$this, 'pre_comment_on_post')); // sets the language of comment
33
  add_filter('parse_query', array(&$this, 'parse_main_query'), 2); // sets the language in special cases
@@ -51,8 +51,10 @@ abstract class PLL_Choose_Lang {
51
 
52
  // set a cookie to remember the language. check headers have not been sent to avoid ugly error
53
  // possibility to set PLL_COOKIE to false will disable cookie although it will break some functionalities
54
- if (!headers_sent() && PLL_COOKIE !== false && (!isset($_COOKIE[PLL_COOKIE]) || $_COOKIE[PLL_COOKIE] != $curlang->slug))
55
- setcookie(PLL_COOKIE, $curlang->slug, time() + 31536000 /* 1 year */, COOKIEPATH, $this->domain);
 
 
56
 
57
  $GLOBALS['text_direction'] = $curlang->is_rtl ? 'rtl' : 'ltr';
58
  do_action('pll_language_defined', $curlang->slug, $curlang);
27
  $this->page_for_posts = get_option('page_for_posts');
28
 
29
  if (PLL_AJAX_ON_FRONT || false === stripos($_SERVER['SCRIPT_NAME'], 'index.php'))
30
+ $this->set_language(empty($_REQUEST['lang']) ? $this->get_preferred_language() : $this->model->get_language($_REQUEST['lang']));
31
 
32
  add_action('pre_comment_on_post', array(&$this, 'pre_comment_on_post')); // sets the language of comment
33
  add_filter('parse_query', array(&$this, 'parse_main_query'), 2); // sets the language in special cases
51
 
52
  // set a cookie to remember the language. check headers have not been sent to avoid ugly error
53
  // possibility to set PLL_COOKIE to false will disable cookie although it will break some functionalities
54
+ if (!headers_sent() && PLL_COOKIE !== false && (!isset($_COOKIE[PLL_COOKIE]) || $_COOKIE[PLL_COOKIE] != $curlang->slug)) {
55
+ $cookie_domain = 2 == $this->options['force_lang'] ? $this->domain : COOKIE_DOMAIN;
56
+ setcookie(PLL_COOKIE, $curlang->slug, time() + 31536000 /* 1 year */, COOKIEPATH, $cookie_domain);
57
+ }
58
 
59
  $GLOBALS['text_direction'] = $curlang->is_rtl ? 'rtl' : 'ltr';
60
  do_action('pll_language_defined', $curlang->slug, $curlang);
frontend/frontend-nav-menu.php CHANGED
@@ -152,16 +152,18 @@ class PLL_Frontend_Nav_Menu {
152
  $customized = json_decode($_POST['customized']);
153
  $curlang = pll_current_language();
154
 
155
- foreach ($customized as $key => $c) {
156
- if (false !== strpos($key, 'nav_menu_locations[')) {
157
- $loc = substr(trim($key, ']'), 19);
158
- if (($pos = strpos($loc, '___')) && substr($loc, $pos+3) == $curlang) {
159
- $loc = 'nav_menu_locations[' . substr($loc, 0, $pos) . ']';
160
- $customized->$loc = $c;
 
 
161
  }
162
  }
163
- }
164
 
165
- $_POST['customized'] = json_encode($customized);
 
166
  }
167
  }
152
  $customized = json_decode($_POST['customized']);
153
  $curlang = pll_current_language();
154
 
155
+ if (is_array($customized)) {
156
+ foreach ($customized as $key => $c) {
157
+ if (false !== strpos($key, 'nav_menu_locations[')) {
158
+ $loc = substr(trim($key, ']'), 19);
159
+ if (($pos = strpos($loc, '___')) && substr($loc, $pos+3) == $curlang) {
160
+ $loc = 'nav_menu_locations[' . substr($loc, 0, $pos) . ']';
161
+ $customized->$loc = $c;
162
+ }
163
  }
164
  }
 
165
 
166
+ $_POST['customized'] = json_encode($customized);
167
+ }
168
  }
169
  }
include/mo.php CHANGED
@@ -54,8 +54,11 @@ class PLL_MO extends MO {
54
  $lang_id = is_object($lang) ? $lang->term_id : $lang;
55
  $post = get_page_by_title('polylang_mo_' . $lang_id, OBJECT, 'polylang_mo');
56
  if (!empty($post)) {
57
- foreach (unserialize($post->post_content) as $msg)
58
- $this->add_entry($this->make_entry($msg[0], $msg[1]));
 
 
 
59
  }
60
- }
61
  }
54
  $lang_id = is_object($lang) ? $lang->term_id : $lang;
55
  $post = get_page_by_title('polylang_mo_' . $lang_id, OBJECT, 'polylang_mo');
56
  if (!empty($post)) {
57
+ $strings = unserialize($post->post_content);
58
+ if (is_array($strings)) {
59
+ foreach ($strings as $msg)
60
+ $this->add_entry($this->make_entry($msg[0], $msg[1]));
61
+ }
62
  }
63
+ }
64
  }
include/plugins-compat.php CHANGED
@@ -29,9 +29,6 @@ class PLL_Plugins_Compat {
29
  // Custom field template
30
  add_action('add_meta_boxes', array(&$this, 'cft_copy'), 10, 2);
31
 
32
- // Jetpack infinite scroll
33
- add_filter('pre_get_posts', array(&$this, 'jetpack_infinite_scroll'));
34
-
35
  // Aqua Resizer
36
  add_filter('pll_home_url_black_list', create_function('$arr', "return array_merge(\$arr, array(array('function' => 'aq_resize')));"));
37
  }
@@ -107,20 +104,4 @@ class PLL_Plugins_Compat {
107
  if (isset($custom_field_template, $_REQUEST['from_post'], $_REQUEST['new_lang']) && !empty($post))
108
  $_REQUEST['post'] = $post->ID;
109
  }
110
-
111
- /*
112
- * Jetpack infinite scroll
113
- * Currently it is not possible to set the language in ajax url so let's use our cookie
114
- *
115
- * @since 1.1.1
116
- *
117
- * @param object $query WP_Query instance
118
- */
119
- public function jetpack_infinite_scroll($query) {
120
- if (isset($_GET['infinity'], $_GET['page'])) {
121
- $query->set('lang', $GLOBALS['polylang']->choose_lang->get_preferred_language()->slug);
122
- if (empty($qv['post_type']) && !$query->is_search)
123
- $query->set('post_type', 'post');
124
- }
125
- }
126
  }
29
  // Custom field template
30
  add_action('add_meta_boxes', array(&$this, 'cft_copy'), 10, 2);
31
 
 
 
 
32
  // Aqua Resizer
33
  add_filter('pll_home_url_black_list', create_function('$arr', "return array_merge(\$arr, array(array('function' => 'aq_resize')));"));
34
  }
104
  if (isset($custom_field_template, $_REQUEST['from_post'], $_REQUEST['new_lang']) && !empty($post))
105
  $_REQUEST['post'] = $post->ID;
106
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  }
include/switcher.php CHANGED
@@ -51,7 +51,7 @@ class PLL_Switcher {
51
  $slug = $language->slug;
52
  $classes = array('lang-item', 'lang-item-' . esc_attr($id), 'lang-item-' . esc_attr($slug));
53
 
54
- if (pll_current_language() == $slug) {
55
  if ($hide_current)
56
  continue; // hide current language
57
  else
@@ -61,7 +61,7 @@ class PLL_Switcher {
61
  $url = $post_id !== null && ($tr_id = $links->model->get_post($post_id, $language)) ? get_permalink($tr_id) :
62
  ($post_id === null && !$force_home ? $links->get_translation_url($language) : null);
63
 
64
- if (empty($url))
65
  $classes[] = 'no-translation';
66
 
67
  $url = apply_filters('pll_the_language_link', $url, $slug, $language->locale);
51
  $slug = $language->slug;
52
  $classes = array('lang-item', 'lang-item-' . esc_attr($id), 'lang-item-' . esc_attr($slug));
53
 
54
+ if ($current_lang = pll_current_language() == $slug) {
55
  if ($hide_current)
56
  continue; // hide current language
57
  else
61
  $url = $post_id !== null && ($tr_id = $links->model->get_post($post_id, $language)) ? get_permalink($tr_id) :
62
  ($post_id === null && !$force_home ? $links->get_translation_url($language) : null);
63
 
64
+ if ($no_translation = empty($url))
65
  $classes[] = 'no-translation';
66
 
67
  $url = apply_filters('pll_the_language_link', $url, $slug, $language->locale);
include/upgrade.php CHANGED
@@ -117,6 +117,9 @@ class PLL_Upgrade {
117
  $this->options['sync'] = empty($this->options['sync']) ? array() : array_keys(PLL_Settings::list_metas_to_sync());
118
 
119
  add_action('wp_loaded', array(&$this, 'wp_loaded_upgrade_1_0')); // once post types and taxonomies are set
 
 
 
120
  }
121
 
122
  /*
@@ -326,9 +329,11 @@ class PLL_Upgrade {
326
  * @since 1.2.1
327
  */
328
  protected function upgrade_1_2_1() {
329
- add_action('wp_loaded', array(&$this, 'wp_loaded_upgrade_1_2_1')); // once wp-rewrite is available
330
 
331
- if (did_action('wp_loaded'))
 
 
332
  $this->wp_loaded_upgrade_1_2_1();
333
  }
334
 
117
  $this->options['sync'] = empty($this->options['sync']) ? array() : array_keys(PLL_Settings::list_metas_to_sync());
118
 
119
  add_action('wp_loaded', array(&$this, 'wp_loaded_upgrade_1_0')); // once post types and taxonomies are set
120
+
121
+ if (did_action('wp_loaded'))
122
+ $this->wp_loaded_upgrade_1_0();
123
  }
124
 
125
  /*
329
  * @since 1.2.1
330
  */
331
  protected function upgrade_1_2_1() {
332
+ $action = is_admin() ? 'admin_init' : 'wp_loaded'; // admin_init for wp-ecommerce
333
 
334
+ add_action($action, array(&$this, 'wp_loaded_upgrade_1_2_1')); // once wp-rewrite is available
335
+
336
+ if (did_action($action))
337
  $this->wp_loaded_upgrade_1_2_1();
338
  }
339
 
include/wpml-compat.php CHANGED
@@ -9,10 +9,10 @@
9
  * @since 0.9.5
10
  */
11
  function pll_define_wpml_constants() {
12
- $code = is_admin() ? get_user_meta(get_current_user_id(), 'pll_filter_content', true) : pll_current_language();
13
 
14
  if(!defined('ICL_LANGUAGE_CODE'))
15
- define('ICL_LANGUAGE_CODE', is_admin() && empty($code) ? 'all' : $code);
16
 
17
  if(!defined('ICL_LANGUAGE_NAME'))
18
  define('ICL_LANGUAGE_NAME', empty($code) ? '' : $GLOBALS['polylang']->model->get_language($code)->name);
9
  * @since 0.9.5
10
  */
11
  function pll_define_wpml_constants() {
12
+ $code = PLL_ADMIN ? get_user_meta(get_current_user_id(), 'pll_filter_content', true) : pll_current_language();
13
 
14
  if(!defined('ICL_LANGUAGE_CODE'))
15
+ define('ICL_LANGUAGE_CODE', PLL_ADMIN && empty($code) ? 'all' : $code);
16
 
17
  if(!defined('ICL_LANGUAGE_NAME'))
18
  define('ICL_LANGUAGE_NAME', empty($code) ? '' : $GLOBALS['polylang']->model->get_language($code)->name);
languages/polylang-pl_PL.mo CHANGED
Binary file
languages/polylang-pl_PL.po CHANGED
@@ -2,608 +2,681 @@ msgid ""
2
  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: \n"
8
  "Language-Team: \n"
9
- "Language: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_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
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
  # @ polylang
21
- #: admin/view-about.php:3
22
  #, php-format
23
- msgid "Polylang is provided with an extensive %sdocumentation%s (in English only). It includes information on how to set up your multilingual site and use it on a daily basis, a FAQ, as well as a documentation for programmers to adapt their plugins and themes."
24
- msgstr ""
25
-
26
- # @ polylang
27
- #: admin/view-about.php:9
28
- #, php-format
29
- msgid "You will also find useful information in the %ssupport forum%s. However don't forget to make a search before posting a new topic."
30
- msgstr ""
31
-
32
- # @ polylang
33
- #: admin/view-about.php:16
34
- #, php-format
35
- msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
36
- msgstr ""
37
-
38
- # @ polylang
39
- #: admin/view-about.php:22
40
- #, php-format
41
- msgid "If you wonder how you can help the project, just %sread this%s."
42
- msgstr ""
43
-
44
- # @ polylang
45
- #: admin/view-about.php:27
46
- msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
47
- msgstr ""
48
-
49
- # @ polylang
50
- #: admin/admin-filters-post.php:76
51
- #: admin/admin.php:83
52
- #: admin/admin.php:187
53
- #: admin/settings.php:42
54
- #: admin/settings.php:57
55
- #: include/model.php:490
56
- msgid "Languages"
57
- msgstr "Języki"
58
-
59
- # @ polylang
60
- #: include/switcher.php:22
61
- msgid "Displays language names"
62
- msgstr "Wyświetla nazwy języków"
63
-
64
- # @ polylang
65
- #: include/switcher.php:23
66
- msgid "Displays flags"
67
- msgstr "Wyświetla flagi"
68
-
69
- # @ polylang
70
- #: include/switcher.php:24
71
- msgid "Forces link to front page"
72
- msgstr "Wymusza link do strony głównej"
73
-
74
- # @ polylang
75
- #: include/switcher.php:25
76
- msgid "Hides the current language"
77
- msgstr "Ukrywa aktualny język"
78
-
79
- # @ polylang
80
- #: include/switcher.php:29
81
- msgid "Displays as dropdown"
82
- msgstr "Wyświetla się jako menu rozwijane"
83
-
84
- # @ polylang
85
- #: admin/admin.php:188
86
- msgid "Filters content by language"
87
- msgstr ""
88
-
89
- # @ polylang
90
- #: admin/admin.php:183
91
- msgid "Show all languages"
92
- msgstr "Pokaż wszystkie języki"
93
 
94
  # @ polylang
95
- #: admin/admin-filters-columns.php:126
96
- #: admin/admin-filters-columns.php:215
97
  msgid "Add new translation"
98
  msgstr "Dodaj nowe tłumaczenie"
99
 
 
 
 
 
100
  # @ polylang
101
- #: admin/admin-filters-columns.php:163
102
- #: admin/admin-filters-media.php:58
103
- #: admin/admin-filters-post.php:109
104
- #: admin/admin-filters-term.php:72
105
- #: admin/admin-filters-term.php:106
106
- #: admin/view-translations-media.php:7
107
- #: admin/view-translations-media.php:45
108
- #: admin/view-translations-post.php:8
109
- #: admin/view-translations-term.php:15
110
- #: include/model.php:491
111
  msgid "Language"
112
  msgstr "Język"
113
 
114
  # @ polylang
115
- #: admin/admin-filters-media.php:73
116
- #: admin/admin-filters-media.php:112
117
- #: admin/table-string.php:111
118
- #: admin/view-translations-media.php:42
119
- #: admin/view-translations-term.php:6
120
- #: admin/view-translations-term.php:11
121
  msgid "Translations"
122
  msgstr "Tłumaczenia"
123
 
124
  # @ polylang
125
- #: admin/admin-filters-term.php:74
126
- #: admin/admin-filters-term.php:108
 
 
 
 
 
127
  msgid "Sets the language"
128
  msgstr "Ustawia język"
129
 
 
 
 
 
 
130
  # @ polylang
131
- #: admin/admin-filters.php:60
132
  msgid "The widget is displayed for:"
133
  msgstr "Widget wyświetlany jest dla:"
134
 
135
  # @ polylang
136
- #: admin/admin-filters.php:63
137
- #: include/model.php:492
138
  msgid "All languages"
139
  msgstr "Wszystkie języki"
140
 
141
  # @ polylang
142
- #: admin/admin-filters.php:120
143
  msgid "Admin language"
144
  msgstr "Język administratora"
145
 
146
- #: admin/admin-filters.php:123
147
  msgid "Wordpress default"
148
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
 
150
  # @ default
151
  # @ polylang
152
- #: admin/admin.php:123
153
- #: admin/settings.php:62
154
  msgid "Settings"
155
  msgstr "Ustawienia"
156
 
157
  # @ polylang
158
- #: admin/admin-filters.php:151
159
- msgid "Upgrading language files…"
160
- msgstr "Uaktualnianie pliku językowego…"
161
 
162
  # @ polylang
163
- #: admin/settings.php:38
 
 
 
 
 
164
  msgid "About Polylang"
165
- msgstr ""
166
 
167
  # @ polylang
168
- #: admin/settings.php:46
169
  msgid "Strings translations"
170
  msgstr "Tłumaczenia ciągów tekstowych"
171
 
172
  # @ polylang
173
- #: admin/settings.php:61
174
  msgid "Strings translation"
175
- msgstr "Tłumaczenie ciągów tekstowych"
 
 
 
 
176
 
177
  # @ polylang
178
- #: admin/settings.php:74
179
- msgid "Enter a valid WorPress locale"
180
- msgstr "Wpisz prawidłową lokalizację WordPress"
181
 
182
  # @ polylang
183
- #: admin/settings.php:76
184
  msgid "The language code must be unique"
185
  msgstr "Kod języka musi być unikalny"
186
 
187
  # @ polylang
188
- #: admin/settings.php:77
189
  msgid "The language must have a name"
190
  msgstr "Język musi mieć nazwę"
191
 
192
  # @ polylang
193
- #: admin/settings.php:78
194
- msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
195
- msgstr "Język został dodany, ale plik językowy WordPress nie został załadowany. Proszę zainstalować go manualnie."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
 
197
  # @ polylang
198
- #: admin/settings.php:305
199
  msgid "Widget title"
200
  msgstr "Nazwa widgeta"
201
 
202
- # @ polylang
203
- #: admin/settings.php:323
204
  msgid "Taxonomies"
205
- msgstr ""
206
 
207
- # @ polylang
208
- #: admin/settings.php:324
209
  msgid "Custom fields"
210
- msgstr ""
211
 
212
- # @ polylang
213
- #: admin/settings.php:325
214
  msgid "Comment status"
215
- msgstr ""
216
 
217
- # @ polylang
218
- #: admin/settings.php:326
219
  msgid "Ping status"
220
- msgstr ""
221
 
222
- # @ polylang
223
- #: admin/settings.php:327
224
  msgid "Sticky posts"
225
- msgstr ""
226
 
227
- # @ polylang
228
- #: admin/settings.php:328
229
  msgid "Published date"
230
- msgstr ""
231
 
232
- # @ polylang
233
- #: admin/settings.php:329
234
  msgid "Post format"
235
- msgstr ""
236
 
237
  # @ default
238
- #: admin/settings.php:330
239
  msgid "Page parent"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  msgstr ""
 
 
 
 
241
 
242
  # @ polylang
243
- #: admin/settings.php:331
244
- msgid "Page template"
 
 
 
245
  msgstr ""
 
 
246
 
247
  # @ polylang
248
- #: admin/settings.php:332
249
- msgid "Page order"
 
 
 
250
  msgstr ""
 
 
251
 
252
  # @ polylang
253
- #: admin/settings.php:333
254
- msgid "Featured image"
 
 
 
 
 
 
 
 
 
 
255
  msgstr ""
 
 
256
 
257
  # @ polylang
258
- #: admin/view-languages.php:42
259
  msgid "Edit language"
260
  msgstr "Edytuj język"
261
 
262
  # @ polylang
263
- #: admin/view-languages.php:42
264
- #: admin/view-languages.php:117
265
  msgid "Add new language"
266
  msgstr "Dodaj nowy język"
267
 
268
  # @ polylang
269
- #: admin/view-languages.php:58
270
  msgid "Choose a language"
271
  msgstr "Wybierz język"
272
 
273
  # @ polylang
274
- #: admin/view-languages.php:72
275
  msgid "You can choose a language in the list or directly edit it below."
276
  msgstr "Możesz wybrać język z listy lub edytować go bezpośrednio poniżej"
277
 
278
  # @ polylang
279
- #: admin/table-languages.php:74
280
- #: admin/view-languages.php:76
281
- msgid "Full name"
282
- msgstr "Pełna nazwa"
283
-
284
- # @ polylang
285
- #: admin/view-languages.php:78
286
  msgid "The name is how it is displayed on your site (for example: English)."
287
  msgstr "Nazwa, tak jak będzie wyświetlana na stronie (np. English)"
288
 
289
  # @ polylang
290
- #: admin/table-languages.php:75
291
- #: admin/view-languages.php:82
292
- msgid "Locale"
293
- msgstr "Lokalizacja"
294
-
295
- # @ polylang
296
- #: admin/view-languages.php:87
297
- msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
298
- msgstr "Lokalizacja WordPress dla języka (np. en_US). Dla tego języka będziesz musiał zainstalować plik .mo."
299
 
300
  # @ polylang
301
- #: admin/view-languages.php:91
302
  msgid "Language code"
303
  msgstr "Kod języka"
304
 
305
  # @ polylang
306
- #: admin/view-languages.php:93
307
  msgid "2-letters ISO 639-1 language code (for example: en)"
308
  msgstr "2-literowy kod języka w ISO 639-1 (np. en)"
309
 
310
  # @ polylang
311
- #: admin/view-languages.php:97
312
  msgid "Text direction"
313
  msgstr "Kierunek zapisu języka"
314
 
315
  # @ polylang
316
- #: admin/view-languages.php:101
317
  msgid "left to right"
318
  msgstr "od lewej do prawej"
319
 
320
  # @ polylang
321
- #: admin/view-languages.php:106
322
  msgid "right to left"
323
  msgstr "od prawej do lewej"
324
 
325
  # @ polylang
326
- #: admin/view-languages.php:108
327
  msgid "Choose the text direction for the language"
328
  msgstr "Wybierz kierunek zapisu języka"
329
 
330
  # @ polylang
331
- #: admin/table-languages.php:77
332
- #: admin/view-languages.php:112
333
- msgid "Order"
334
- msgstr "Kolejność"
335
-
336
- # @ polylang
337
- #: admin/view-languages.php:114
338
  msgid "Position of the language in the language switcher"
339
  msgstr "Pozycja języka w przełączniku języka"
340
 
341
- # @ polylang
342
- #: admin/admin-nav-menu.php:51
343
- #: admin/admin-nav-menu.php:79
344
- #: admin/admin-nav-menu.php:82
345
- #: admin/admin-nav-menu.php:113
346
- #: admin/admin-nav-menu.php:170
347
- #: include/upgrade.php:175
348
- msgid "Language switcher"
349
- msgstr "Przełącznik języka"
350
 
351
  # @ polylang
352
- #: admin/view-languages.php:143
353
  msgid "Search translations"
354
- msgstr ""
355
 
356
  # @ polylang
357
- #: admin/view-languages.php:146
358
  msgid "Clean strings translation database"
 
 
 
 
 
 
359
  msgstr ""
 
 
360
 
361
  # @ polylang
362
- #: admin/view-languages.php:164
363
  msgid "Default language"
364
  msgstr "Domyślny język"
365
 
366
  # @ polylang
367
- #: admin/view-languages.php:179
368
- msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
369
- msgstr "Istnieją wpisy, strony, kategorie i tagi bez określonego języka. Czy chcesz ustawić dla nich domyślny język?"
 
 
 
 
370
 
371
  # @ polylang
372
- #: admin/view-languages.php:187
373
  msgid "Detect browser language"
374
  msgstr "Wykryj język przeglądarki"
375
 
376
  # @ polylang
377
- #: admin/view-languages.php:193
378
- msgid "When the front page is visited, set the language according to the browser preference"
379
- msgstr "Przy wejściu na stronę domową, ustaw język zgodnie z ustawieniami przeglądarki"
 
 
 
 
380
 
381
  # @ polylang
382
- #: admin/view-languages.php:200
383
  msgid "URL modifications"
384
  msgstr "Modyfikacje URL"
385
 
386
  # @ polylang
387
- #: admin/view-languages.php:206
388
- msgid "The language is set from content. Posts, pages, categories and tags urls are not modified."
 
 
389
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
390
 
391
  # @ polylang
392
- #: admin/view-languages.php:253
393
  msgid "Remove /language/ in pretty permalinks. Example:"
394
  msgstr "Usuń /language/ z przyjaznych permalinków. Np.:"
395
 
396
  # @ polylang
397
- #: admin/view-languages.php:262
398
  msgid "Keep /language/ in pretty permalinks. Example:"
399
  msgstr "Zachowaj /language/ w przyjaznych permalinkach. Np.:"
400
 
401
  # @ polylang
402
- #: admin/view-languages.php:271
403
  msgid "Hide URL language information for default language"
404
  msgstr "Ukryj informację o języku w URL dla domyślnego języka"
405
 
406
- #: admin/view-languages.php:281
407
  #, php-format
408
- msgid "When using static front page, redirect the language page (example: %s) to the front page in the right language"
 
 
409
  msgstr ""
 
 
410
 
411
- # @ polylang
412
- #: admin/view-languages.php:290
413
  msgid "Media"
414
- msgstr ""
415
 
416
- # @ polylang
417
- #: admin/view-languages.php:296
418
  msgid "Activate languages and translations for media"
419
- msgstr ""
420
 
421
- #: admin/view-languages.php:303
422
- msgid "Synchronization"
423
- msgstr ""
424
-
425
- # @ polylang
426
- #: admin/view-languages.php:320
427
  msgid "Custom post types"
428
- msgstr ""
429
 
430
- # @ polylang
431
- #: admin/view-languages.php:333
432
  msgid "Activate languages and translations for custom post types."
433
- msgstr ""
434
 
435
- # @ polylang
436
- #: admin/view-languages.php:340
437
  msgid "Custom taxonomies"
438
- msgstr ""
439
 
440
- # @ polylang
441
- #: admin/view-languages.php:353
442
  msgid "Activate languages and translations for custom taxonomies."
443
- msgstr ""
444
-
445
- # @ polylang
446
- #: admin/table-languages.php:54
447
- #: admin/view-translations-media.php:24
448
- #: admin/view-translations-media.php:62
449
- #: admin/view-translations-post.php:10
450
- #: admin/view-translations-post.php:33
451
- #: admin/view-translations-term.php:18
452
- #: admin/view-translations-term.php:80
453
- msgid "Edit"
454
- msgstr "Edytuj"
455
 
456
- # @ polylang
457
- #: admin/table-languages.php:60
458
- #: admin/table-string.php:167
459
- msgid "Delete"
460
- msgstr "Usuń"
461
-
462
- # @ polylang
463
- #: admin/table-languages.php:76
464
- msgid "Code"
465
- msgstr "Kod"
466
-
467
- # @ polylang
468
- #: admin/table-languages.php:78
469
- msgid "Flag"
470
- msgstr "Flaga"
471
-
472
- # @ polylang
473
- #: admin/table-languages.php:79
474
- msgid "Posts"
475
- msgstr "Wpisy"
476
-
477
- # @ polylang
478
- #: admin/table-string.php:109
479
- msgid "Name"
480
- msgstr "Nazwa"
481
 
482
- # @ polylang
483
- #: admin/table-string.php:110
484
- msgid "String"
485
- msgstr "Ciąg tekstowy"
 
 
 
 
 
486
 
487
  # @ polylang
488
- #: admin/view-translations-media.php:8
489
- #: admin/view-translations-media.php:46
490
- #: admin/view-translations-term.php:16
491
  msgid "Translation"
492
  msgstr "Tłumaczenie"
493
 
494
  # @ polylang
495
- #: admin/view-translations-media.php:33
496
- #: admin/view-translations-media.php:70
497
- #: admin/view-translations-post.php:38
498
- #: admin/view-translations-term.php:60
499
  msgid "Add new"
500
  msgstr "Dodaj nowy"
501
 
502
  # @ polylang
503
- #: admin/view-translations-post.php:5
504
  msgid "ID of pages in other languages:"
505
  msgstr "ID stron w innych językach"
506
 
507
  # @ polylang
508
- #: admin/view-translations-post.php:5
509
  msgid "ID of posts in other languages:"
510
  msgstr "ID wpisów w innych językach"
511
 
512
  # @ polylang
513
- #: admin/view-translations-post.php:9
514
  msgid "Page ID"
515
  msgstr "ID strony"
516
 
517
  # @ polylang
518
- #: admin/view-translations-post.php:9
519
  msgid "Post ID"
520
  msgstr "ID wpisu"
521
 
522
  # @ polylang
523
- #: admin/view-translations-term.php:48
524
  msgid "No untranslated term"
525
  msgstr "Brak nieprzetłumaczonego terminu"
526
 
527
- # @ polylang
528
- #: include/widget-languages.php:16
529
- msgid "Language Switcher"
530
- msgstr "Przełącznik języka"
531
 
532
- # @ polylang
533
- #: include/widget-languages.php:16
534
- msgid "Displays a language switcher"
535
- msgstr "Wyświetla przełącznik języka"
536
-
537
- # @ polylang
538
- #: include/widget-languages.php:100
539
- msgid "Title:"
540
- msgstr "Tytuł:"
541
-
542
- # @ polylang
543
- #. translators: plugin header field 'Description'
544
- #: polylang.php:0
545
- msgid "Adds multilingual capability to WordPress"
546
  msgstr ""
 
 
547
 
548
  # @ polylang
549
- #: polylang.php:157
550
- #, php-format
551
- msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
552
- msgstr "Używasz WordPress %s. Polylang wymaga przynajmniej WordPress %s."
553
 
554
  # @ polylang
555
- #: include/upgrade.php:75
556
- msgid "Polylang has been deactivated because you upgraded from a too old version."
557
- msgstr ""
558
 
559
  # @ polylang
560
- #: include/upgrade.php:77
561
- #, php-format
562
- msgid "Please upgrade first to %s before ugrading to %s."
563
- msgstr ""
564
 
565
  # @ polylang
566
- #: admin/table-string.php:108
567
- msgid "Group"
568
- msgstr ""
569
 
570
  # @ polylang
571
- #: admin/table-string.php:186
572
- msgid "View all groups"
573
- msgstr ""
574
 
575
- # @ polylang
576
- #: admin/table-languages.php:59
577
- msgid "You are about to permanently delete this language. Are you sure?"
578
  msgstr ""
 
579
 
580
- # @ polylang
581
- #: admin/view-languages.php:147
582
- msgid "Use this to remove unused strings from database, for example after a plugin has been uninstalled."
583
- msgstr ""
584
 
585
- # @ polylang
586
- #: admin/view-languages.php:214
587
- msgid "The language is set from the directory name in pretty permalinks. Example:"
588
- msgstr ""
 
 
589
 
590
- # @ polylang
591
- #: admin/view-languages.php:223
592
- msgid "The language is set from the subdomain name in pretty permalinks. Example:"
593
- msgstr ""
 
594
 
595
  # @ polylang
596
- #: admin/view-languages.php:314
597
- msgid "The synchronization options allow to maintain exact same values (or translations in the case of taxonomies and page parent) of meta content between the translations of a post or page."
598
- msgstr ""
599
 
600
  # @ polylang
601
- #: admin/settings.php:75
602
- msgid "The language code contains invalid characters"
603
- msgstr ""
604
 
605
  # @ polylang
606
- #: admin/view-languages.php:232
607
- msgid "The language is set from different domains:"
608
- msgstr ""
609
-
2
  msgstr ""
3
  "Project-Id-Version: polylang\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-11-11 18:33+0100\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\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; plural=n != 1;\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
+ "X-Generator: Poedit 1.5.7\n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
 
21
  # @ polylang
22
+ #: ../polylang.php:159
23
  #, php-format
24
+ msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
25
+ msgstr "Używasz WordPress %s. Polylang wymaga przynajmniej WordPress %s."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  # @ polylang
28
+ #: ../admin/admin-filters-columns.php:126
29
+ #: ../admin/admin-filters-columns.php:215
30
  msgid "Add new translation"
31
  msgstr "Dodaj nowe tłumaczenie"
32
 
33
+ #: ../admin/admin-filters-columns.php:149
34
+ msgid "&mdash; No Change &mdash;"
35
+ msgstr "&mdash; Bez zmian &mdash;"
36
+
37
  # @ polylang
38
+ #: ../admin/admin-filters-columns.php:163 ../admin/admin-filters-media.php:57
39
+ #: ../admin/admin-filters-post.php:114 ../admin/admin-filters-term.php:72
40
+ #: ../admin/admin-filters-term.php:106 ../admin/view-translations-media.php:7
41
+ #: ../admin/view-translations-media.php:45
42
+ #: ../admin/view-translations-post.php:8
43
+ #: ../admin/view-translations-term.php:15 ../include/model.php:498
 
 
 
 
44
  msgid "Language"
45
  msgstr "Język"
46
 
47
  # @ polylang
48
+ #: ../admin/admin-filters-media.php:72 ../admin/admin-filters-media.php:111
49
+ #: ../admin/table-string.php:111 ../admin/view-translations-media.php:42
50
+ #: ../admin/view-translations-term.php:6
51
+ #: ../admin/view-translations-term.php:11
 
 
52
  msgid "Translations"
53
  msgstr "Tłumaczenia"
54
 
55
  # @ polylang
56
+ #: ../admin/admin-filters-post.php:81 ../admin/admin.php:87
57
+ #: ../admin/settings.php:42 ../admin/settings.php:57 ../include/model.php:497
58
+ msgid "Languages"
59
+ msgstr "Języki"
60
+
61
+ # @ polylang
62
+ #: ../admin/admin-filters-term.php:74 ../admin/admin-filters-term.php:108
63
  msgid "Sets the language"
64
  msgstr "Ustawia język"
65
 
66
+ # @ default
67
+ #: ../admin/admin-filters-term.php:277
68
+ msgid "None"
69
+ msgstr "Żaden"
70
+
71
  # @ polylang
72
+ #: ../admin/admin-filters.php:60
73
  msgid "The widget is displayed for:"
74
  msgstr "Widget wyświetlany jest dla:"
75
 
76
  # @ polylang
77
+ #: ../admin/admin-filters.php:63 ../include/model.php:499
 
78
  msgid "All languages"
79
  msgstr "Wszystkie języki"
80
 
81
  # @ polylang
82
+ #: ../admin/admin-filters.php:120
83
  msgid "Admin language"
84
  msgstr "Język administratora"
85
 
86
+ #: ../admin/admin-filters.php:123
87
  msgid "Wordpress default"
88
+ msgstr "Domyślny"
89
+
90
+ # @ polylang
91
+ #: ../admin/admin-filters.php:151
92
+ msgid "Upgrading language files&#8230;"
93
+ msgstr "Uaktualnianie pliku językowego&#8230;"
94
+
95
+ #: ../admin/admin-model.php:81
96
+ msgid "Uncategorized"
97
+ msgstr "Bez kategorii"
98
+
99
+ # @ polylang
100
+ #: ../admin/admin-nav-menu.php:50 ../admin/admin-nav-menu.php:88
101
+ #: ../admin/admin-nav-menu.php:91 ../admin/admin-nav-menu.php:122
102
+ #: ../admin/admin-nav-menu.php:179 ../include/upgrade.php:175
103
+ msgid "Language switcher"
104
+ msgstr "Przełącznik języka"
105
 
106
  # @ default
107
  # @ polylang
108
+ #: ../admin/admin.php:127 ../admin/settings.php:62
 
109
  msgid "Settings"
110
  msgstr "Ustawienia"
111
 
112
  # @ polylang
113
+ #: ../admin/admin.php:186
114
+ msgid "Show all languages"
115
+ msgstr "Pokaż wszystkie języki"
116
 
117
  # @ polylang
118
+ #: ../admin/admin.php:199
119
+ msgid "Filters content by language"
120
+ msgstr "Filtrowanie treści wg języka"
121
+
122
+ # @ polylang
123
+ #: ../admin/settings.php:38
124
  msgid "About Polylang"
125
+ msgstr "O Polylang"
126
 
127
  # @ polylang
128
+ #: ../admin/settings.php:46
129
  msgid "Strings translations"
130
  msgstr "Tłumaczenia ciągów tekstowych"
131
 
132
  # @ polylang
133
+ #: ../admin/settings.php:61
134
  msgid "Strings translation"
135
+ msgstr "Tłumaczenie fraz"
136
+
137
+ #: ../admin/settings.php:74
138
+ msgid "Enter a valid WordPress locale"
139
+ msgstr "Proszę podać prawidłowy kod lokalizacji"
140
 
141
  # @ polylang
142
+ #: ../admin/settings.php:75
143
+ msgid "The language code contains invalid characters"
144
+ msgstr "Kod języka musi się zawiera nieprawidłowe znaki"
145
 
146
  # @ polylang
147
+ #: ../admin/settings.php:76
148
  msgid "The language code must be unique"
149
  msgstr "Kod języka musi być unikalny"
150
 
151
  # @ polylang
152
+ #: ../admin/settings.php:77
153
  msgid "The language must have a name"
154
  msgstr "Język musi mieć nazwę"
155
 
156
  # @ polylang
157
+ #: ../admin/settings.php:78
158
+ msgid ""
159
+ "The language was created, but the WordPress language file was not "
160
+ "downloaded. Please install it manually."
161
+ msgstr ""
162
+ "Język został dodany, ale plik językowy WordPress nie został załadowany. "
163
+ "Proszę zainstalować go manualnie."
164
+
165
+ # @ default
166
+ #: ../admin/settings.php:286
167
+ msgid "Site Title"
168
+ msgstr "Tytuł witryny"
169
+
170
+ # @ default
171
+ #: ../admin/settings.php:287
172
+ msgid "Tagline"
173
+ msgstr "Lista tagów"
174
+
175
+ #: ../admin/settings.php:288
176
+ msgid "Date Format"
177
+ msgstr "Format daty"
178
+
179
+ #: ../admin/settings.php:289
180
+ msgid "Time Format"
181
+ msgstr "Format czasu"
182
 
183
  # @ polylang
184
+ #: ../admin/settings.php:308
185
  msgid "Widget title"
186
  msgstr "Nazwa widgeta"
187
 
188
+ #: ../admin/settings.php:326
 
189
  msgid "Taxonomies"
190
+ msgstr "Taksonomie"
191
 
192
+ #: ../admin/settings.php:327
 
193
  msgid "Custom fields"
194
+ msgstr "Własne pola"
195
 
196
+ #: ../admin/settings.php:328
 
197
  msgid "Comment status"
198
+ msgstr "Status komentarza"
199
 
200
+ #: ../admin/settings.php:329
 
201
  msgid "Ping status"
202
+ msgstr "Status ping"
203
 
204
+ #: ../admin/settings.php:330
 
205
  msgid "Sticky posts"
206
+ msgstr "Przyklejone wpisy"
207
 
208
+ #: ../admin/settings.php:331
 
209
  msgid "Published date"
210
+ msgstr "Data publikacji"
211
 
212
+ #: ../admin/settings.php:332
 
213
  msgid "Post format"
214
+ msgstr "Format wpisu"
215
 
216
  # @ default
217
+ #: ../admin/settings.php:333
218
  msgid "Page parent"
219
+ msgstr "Rodzic strony"
220
+
221
+ #: ../admin/settings.php:334
222
+ msgid "Page template"
223
+ msgstr "Szablon strony"
224
+
225
+ # @ polylang
226
+ #: ../admin/settings.php:335
227
+ msgid "Page order"
228
+ msgstr "Kolejność stron"
229
+
230
+ #: ../admin/settings.php:336
231
+ msgid "Featured image"
232
+ msgstr "Zdjęcie główne"
233
+
234
+ # @ polylang
235
+ #: ../admin/table-languages.php:54 ../admin/view-translations-media.php:24
236
+ #: ../admin/view-translations-media.php:62
237
+ #: ../admin/view-translations-post.php:10
238
+ #: ../admin/view-translations-post.php:33
239
+ #: ../admin/view-translations-term.php:18
240
+ #: ../admin/view-translations-term.php:80
241
+ msgid "Edit"
242
+ msgstr "Edytuj"
243
+
244
+ #: ../admin/table-languages.php:59
245
+ msgid "You are about to permanently delete this language. Are you sure?"
246
+ msgstr "Zamierzasz całkowicie usunąć ten język. Czy jesteś pewny?"
247
+
248
+ # @ polylang
249
+ #: ../admin/table-languages.php:60 ../admin/table-string.php:167
250
+ msgid "Delete"
251
+ msgstr "Usuń"
252
+
253
+ # @ polylang
254
+ #: ../admin/table-languages.php:74 ../admin/view-languages.php:76
255
+ msgid "Full name"
256
+ msgstr "Pełna nazwa"
257
+
258
+ # @ polylang
259
+ #: ../admin/table-languages.php:75 ../admin/view-languages.php:82
260
+ msgid "Locale"
261
+ msgstr "Lokalizacja"
262
+
263
+ # @ polylang
264
+ #: ../admin/table-languages.php:76
265
+ msgid "Code"
266
+ msgstr "Kod"
267
+
268
+ # @ polylang
269
+ #: ../admin/table-languages.php:77 ../admin/view-languages.php:112
270
+ msgid "Order"
271
+ msgstr "Kolejność"
272
+
273
+ # @ polylang
274
+ #: ../admin/table-languages.php:78
275
+ msgid "Flag"
276
+ msgstr "Flaga"
277
+
278
+ # @ polylang
279
+ #: ../admin/table-languages.php:79
280
+ msgid "Posts"
281
+ msgstr "Wpisy"
282
+
283
+ #: ../admin/table-string.php:108
284
+ msgid "Group"
285
+ msgstr "Grupa"
286
+
287
+ # @ polylang
288
+ #: ../admin/table-string.php:109
289
+ msgid "Name"
290
+ msgstr "Nazwa"
291
+
292
+ # @ polylang
293
+ #: ../admin/table-string.php:110
294
+ msgid "String"
295
+ msgstr "Ciąg tekstowy"
296
+
297
+ #: ../admin/table-string.php:186
298
+ msgid "View all groups"
299
+ msgstr "Zobacz wszystkie grupy"
300
+
301
+ #: ../admin/table-string.php:199
302
+ msgid "Filter"
303
+ msgstr "Filtruj"
304
+
305
+ # @ polylang
306
+ #: ../admin/view-about.php:3
307
+ #, php-format
308
+ msgid ""
309
+ "Polylang is provided with an extensive %sdocumentation%s (in English only). "
310
+ "It includes information on how to set up your multilingual site and use it "
311
+ "on a daily basis, a FAQ, as well as a documentation for programmers to adapt "
312
+ "their plugins and themes."
313
  msgstr ""
314
+ "Polulang jest dostarczany z obszerną %sdokumentacją%s (tylko w języku "
315
+ "angielskim), która zawiera informacje jak skonfigurować stronę wielojęzyczną "
316
+ "i korzystać z niej w codziennej pracy, dział FAQ, oraz dokumentację dla "
317
+ "programistów o tym jak adaptować wtyczki i motywy."
318
 
319
  # @ polylang
320
+ #: ../admin/view-about.php:9
321
+ #, php-format
322
+ msgid ""
323
+ "You will also find useful information in the %ssupport forum%s. However "
324
+ "don't forget to make a search before posting a new topic."
325
  msgstr ""
326
+ "Przydatne informacje znajdziesz w %sforum pomocy%s. Ale nie zapomnij go "
327
+ "przeszukać, zanim dodasz nowy temat."
328
 
329
  # @ polylang
330
+ #: ../admin/view-about.php:16
331
+ #, php-format
332
+ msgid ""
333
+ "Polylang is free of charge and is released under the same license as "
334
+ "WordPress, the %sGPL%s."
335
  msgstr ""
336
+ "Polylang jest bezpłatne i opublikowane na takiej samej licencji jak "
337
+ "WordPress, czyli %sGPL%s."
338
 
339
  # @ polylang
340
+ #: ../admin/view-about.php:22
341
+ #, php-format
342
+ msgid "If you wonder how you can help the project, just %sread this%s."
343
+ msgstr ""
344
+ "Jeśli zastanawiasz się jak mógłbyś pomóc w tym projekcie, po prostu "
345
+ "%sprzeczytaj to%s."
346
+
347
+ # @ polylang
348
+ #: ../admin/view-about.php:27
349
+ msgid ""
350
+ "Finally if you like this plugin or if it helps your business, donations to "
351
+ "the author are greatly appreciated."
352
  msgstr ""
353
+ "Wreszcie, jeśli lubisz tę wtyczkę i pomaga Ci ona w prowadzeniu biznesu, "
354
+ "wsparcie dla jej autora będzie mile widziane."
355
 
356
  # @ polylang
357
+ #: ../admin/view-languages.php:42
358
  msgid "Edit language"
359
  msgstr "Edytuj język"
360
 
361
  # @ polylang
362
+ #: ../admin/view-languages.php:42 ../admin/view-languages.php:117
 
363
  msgid "Add new language"
364
  msgstr "Dodaj nowy język"
365
 
366
  # @ polylang
367
+ #: ../admin/view-languages.php:58
368
  msgid "Choose a language"
369
  msgstr "Wybierz język"
370
 
371
  # @ polylang
372
+ #: ../admin/view-languages.php:72
373
  msgid "You can choose a language in the list or directly edit it below."
374
  msgstr "Możesz wybrać język z listy lub edytować go bezpośrednio poniżej"
375
 
376
  # @ polylang
377
+ #: ../admin/view-languages.php:78
 
 
 
 
 
 
378
  msgid "The name is how it is displayed on your site (for example: English)."
379
  msgstr "Nazwa, tak jak będzie wyświetlana na stronie (np. English)"
380
 
381
  # @ polylang
382
+ #: ../admin/view-languages.php:87
383
+ msgid ""
384
+ "Wordpress Locale for the language (for example: en_US). You will need to "
385
+ "install the .mo file for this language."
386
+ msgstr ""
387
+ "Lokalizacja WordPress dla języka (np. en_US). Dla tego języka będziesz "
388
+ "musiał zainstalować plik .mo."
 
 
389
 
390
  # @ polylang
391
+ #: ../admin/view-languages.php:91
392
  msgid "Language code"
393
  msgstr "Kod języka"
394
 
395
  # @ polylang
396
+ #: ../admin/view-languages.php:93
397
  msgid "2-letters ISO 639-1 language code (for example: en)"
398
  msgstr "2-literowy kod języka w ISO 639-1 (np. en)"
399
 
400
  # @ polylang
401
+ #: ../admin/view-languages.php:97
402
  msgid "Text direction"
403
  msgstr "Kierunek zapisu języka"
404
 
405
  # @ polylang
406
+ #: ../admin/view-languages.php:101
407
  msgid "left to right"
408
  msgstr "od lewej do prawej"
409
 
410
  # @ polylang
411
+ #: ../admin/view-languages.php:106
412
  msgid "right to left"
413
  msgstr "od prawej do lewej"
414
 
415
  # @ polylang
416
+ #: ../admin/view-languages.php:108
417
  msgid "Choose the text direction for the language"
418
  msgstr "Wybierz kierunek zapisu języka"
419
 
420
  # @ polylang
421
+ #: ../admin/view-languages.php:114
 
 
 
 
 
 
422
  msgid "Position of the language in the language switcher"
423
  msgstr "Pozycja języka w przełączniku języka"
424
 
425
+ # @ default
426
+ #: ../admin/view-languages.php:117
427
+ msgid "Update"
428
+ msgstr "Aktualizacja"
 
 
 
 
 
429
 
430
  # @ polylang
431
+ #: ../admin/view-languages.php:143
432
  msgid "Search translations"
433
+ msgstr "Szukaj tłumaczeń"
434
 
435
  # @ polylang
436
+ #: ../admin/view-languages.php:146
437
  msgid "Clean strings translation database"
438
+ msgstr "Wyczyść tłumaczenia fraz z bazy"
439
+
440
+ #: ../admin/view-languages.php:147
441
+ msgid ""
442
+ "Use this to remove unused strings from database, for example after a plugin "
443
+ "has been uninstalled."
444
  msgstr ""
445
+ "Użyj tego aby usunąć nieużwyane frazy z bazy danych, np. po tym jak "
446
+ "odinstalowałeś wtyczkę."
447
 
448
  # @ polylang
449
+ #: ../admin/view-languages.php:164
450
  msgid "Default language"
451
  msgstr "Domyślny język"
452
 
453
  # @ polylang
454
+ #: ../admin/view-languages.php:179
455
+ msgid ""
456
+ "There are posts, pages, categories or tags without language set. Do you want "
457
+ "to set them all to default language ?"
458
+ msgstr ""
459
+ "Istnieją wpisy, strony, kategorie i tagi bez określonego języka. Czy chcesz "
460
+ "ustawić dla nich domyślny język?"
461
 
462
  # @ polylang
463
+ #: ../admin/view-languages.php:187
464
  msgid "Detect browser language"
465
  msgstr "Wykryj język przeglądarki"
466
 
467
  # @ polylang
468
+ #: ../admin/view-languages.php:193
469
+ msgid ""
470
+ "When the front page is visited, set the language according to the browser "
471
+ "preference"
472
+ msgstr ""
473
+ "Przy wejściu na stronę domową, ustaw język zgodnie z ustawieniami "
474
+ "przeglądarki"
475
 
476
  # @ polylang
477
+ #: ../admin/view-languages.php:200
478
  msgid "URL modifications"
479
  msgstr "Modyfikacje URL"
480
 
481
  # @ polylang
482
+ #: ../admin/view-languages.php:206
483
+ msgid ""
484
+ "The language is set from content. Posts, pages, categories and tags urls are "
485
+ "not modified."
486
  msgstr ""
487
+ "Język jest ustawiany w treści. Adresy URL wpisów, stron, kategorii i tagów "
488
+ "nie mogą być modyfikowane."
489
+
490
+ # @ polylang
491
+ #: ../admin/view-languages.php:214
492
+ msgid ""
493
+ "The language is set from the directory name in pretty permalinks. Example:"
494
+ msgstr "Język jest ustawiany z nazwy folderu w przyjaznych odnośnikach. Np.:"
495
+
496
+ # @ polylang
497
+ #: ../admin/view-languages.php:223
498
+ msgid ""
499
+ "The language is set from the subdomain name in pretty permalinks. Example:"
500
+ msgstr "Język jest ustawiany z nazwy subdomeny w przyjaznych odnośnikach. Np.:"
501
+
502
+ #: ../admin/view-languages.php:232
503
+ msgid "The language is set from different domains:"
504
+ msgstr "Język jest ustawiany z różnych domen:"
505
 
506
  # @ polylang
507
+ #: ../admin/view-languages.php:253
508
  msgid "Remove /language/ in pretty permalinks. Example:"
509
  msgstr "Usuń /language/ z przyjaznych permalinków. Np.:"
510
 
511
  # @ polylang
512
+ #: ../admin/view-languages.php:262
513
  msgid "Keep /language/ in pretty permalinks. Example:"
514
  msgstr "Zachowaj /language/ w przyjaznych permalinkach. Np.:"
515
 
516
  # @ polylang
517
+ #: ../admin/view-languages.php:271
518
  msgid "Hide URL language information for default language"
519
  msgstr "Ukryj informację o języku w URL dla domyślnego języka"
520
 
521
+ #: ../admin/view-languages.php:281
522
  #, php-format
523
+ msgid ""
524
+ "When using static front page, redirect the language page (example: %s) to "
525
+ "the front page in the right language"
526
  msgstr ""
527
+ "Gdy używasz statycznej strony głównej, przekieruj stronę języka (na "
528
+ "przykład: %s) na stronę główną w odpowiedniej wersji językowej"
529
 
530
+ #: ../admin/view-languages.php:290
 
531
  msgid "Media"
532
+ msgstr "Media"
533
 
534
+ #: ../admin/view-languages.php:296
 
535
  msgid "Activate languages and translations for media"
536
+ msgstr "Aktywuj języki i tłumaczenia dla mediów."
537
 
538
+ #: ../admin/view-languages.php:304
 
 
 
 
 
539
  msgid "Custom post types"
540
+ msgstr "Własne typy wpisów"
541
 
542
+ #: ../admin/view-languages.php:317
 
543
  msgid "Activate languages and translations for custom post types."
544
+ msgstr "Aktywuj języki i tłumaczenia dla własnych typów wpisów."
545
 
546
+ #: ../admin/view-languages.php:324
 
547
  msgid "Custom taxonomies"
548
+ msgstr "Własne taksonomie"
549
 
550
+ #: ../admin/view-languages.php:337
 
551
  msgid "Activate languages and translations for custom taxonomies."
552
+ msgstr "Aktywuj języki i tłumaczenia dla własnych taksonomii."
 
 
 
 
 
 
 
 
 
 
 
553
 
554
+ #: ../admin/view-languages.php:343
555
+ msgid "Synchronization"
556
+ msgstr "Synchronizacja"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
557
 
558
+ #: ../admin/view-languages.php:354
559
+ msgid ""
560
+ "The synchronization options allow to maintain exact same values (or "
561
+ "translations in the case of taxonomies and page parent) of meta content "
562
+ "between the translations of a post or page."
563
+ msgstr ""
564
+ "Ustawienia synchronizacji pozwalają zachować dokładnie takie same wartości "
565
+ "(lub tłumaczenia w przypadku taksonomii i rodziców stron) meta danych "
566
+ "pomiędzy tłumaczeniami stron i wpisów."
567
 
568
  # @ polylang
569
+ #: ../admin/view-translations-media.php:8
570
+ #: ../admin/view-translations-media.php:46
571
+ #: ../admin/view-translations-term.php:16
572
  msgid "Translation"
573
  msgstr "Tłumaczenie"
574
 
575
  # @ polylang
576
+ #: ../admin/view-translations-media.php:33
577
+ #: ../admin/view-translations-media.php:70
578
+ #: ../admin/view-translations-post.php:38
579
+ #: ../admin/view-translations-term.php:60
580
  msgid "Add new"
581
  msgstr "Dodaj nowy"
582
 
583
  # @ polylang
584
+ #: ../admin/view-translations-post.php:5
585
  msgid "ID of pages in other languages:"
586
  msgstr "ID stron w innych językach"
587
 
588
  # @ polylang
589
+ #: ../admin/view-translations-post.php:5
590
  msgid "ID of posts in other languages:"
591
  msgstr "ID wpisów w innych językach"
592
 
593
  # @ polylang
594
+ #: ../admin/view-translations-post.php:9
595
  msgid "Page ID"
596
  msgstr "ID strony"
597
 
598
  # @ polylang
599
+ #: ../admin/view-translations-post.php:9
600
  msgid "Post ID"
601
  msgstr "ID wpisu"
602
 
603
  # @ polylang
604
+ #: ../admin/view-translations-term.php:48
605
  msgid "No untranslated term"
606
  msgstr "Brak nieprzetłumaczonego terminu"
607
 
608
+ #: ../frontend/frontend-filters-search.php:84
609
+ msgid "Search"
610
+ msgstr "Szukaj"
 
611
 
612
+ #: ../include/plugins-compat.php:63
613
+ msgid ""
614
+ "Import <strong>posts, pages, comments, custom fields, categories, and tags</"
615
+ "strong> from a WordPress export file."
 
 
 
 
 
 
 
 
 
 
616
  msgstr ""
617
+ "Importuj <strong>wpisy, strony, komentarze, własne pola, kategorie i tagi</"
618
+ "strong> z wyeksportowanego pliku WordPressa."
619
 
620
  # @ polylang
621
+ #: ../include/switcher.php:22
622
+ msgid "Displays language names"
623
+ msgstr "Wyświetla nazwy języków"
 
624
 
625
  # @ polylang
626
+ #: ../include/switcher.php:23
627
+ msgid "Displays flags"
628
+ msgstr "Wyświetla flagi"
629
 
630
  # @ polylang
631
+ #: ../include/switcher.php:24
632
+ msgid "Forces link to front page"
633
+ msgstr "Wymusza link do strony głównej"
 
634
 
635
  # @ polylang
636
+ #: ../include/switcher.php:25
637
+ msgid "Hides the current language"
638
+ msgstr "Ukrywa aktualny język"
639
 
640
  # @ polylang
641
+ #: ../include/switcher.php:29
642
+ msgid "Displays as dropdown"
643
+ msgstr "Wyświetla się jako menu rozwijane"
644
 
645
+ #: ../include/upgrade.php:75
646
+ msgid ""
647
+ "Polylang has been deactivated because you upgraded from a too old version."
648
  msgstr ""
649
+ "Polylang został wyłączony ponieważ aktualizowałeś go ze zbyt starej wersji."
650
 
651
+ #: ../include/upgrade.php:77
652
+ #, php-format
653
+ msgid "Please upgrade first to %s before ugrading to %s."
654
+ msgstr "Najpierw zaktualizuj do %s zanim wykonasz aktualizację do %s."
655
 
656
+ # @ default
657
+ #: ../include/widget-calendar.php:123
658
+ #, php-format
659
+ msgctxt "calendar caption"
660
+ msgid "%1$s %2$s"
661
+ msgstr "%1$s %2$s"
662
 
663
+ # @ default
664
+ #: ../include/widget-calendar.php:149 ../include/widget-calendar.php:157
665
+ #, php-format
666
+ msgid "View posts for %1$s %2$s"
667
+ msgstr "Zobacz wpisy dla %1$s %2$s"
668
 
669
  # @ polylang
670
+ #: ../include/widget-languages.php:16
671
+ msgid "Language Switcher"
672
+ msgstr "Przełącznik języka"
673
 
674
  # @ polylang
675
+ #: ../include/widget-languages.php:16
676
+ msgid "Displays a language switcher"
677
+ msgstr "Wyświetla przełącznik języka"
678
 
679
  # @ polylang
680
+ #: ../include/widget-languages.php:100
681
+ msgid "Title:"
682
+ msgstr "Tytuł:"
 
polylang.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
- Version: 1.2.1
6
  Author: Frédéric Demarle
7
  Description: Adds multilingual capability to WordPress
8
  Text Domain: polylang
@@ -29,7 +29,7 @@ Domain Path: /languages
29
  *
30
  */
31
 
32
- define('POLYLANG_VERSION', '1.2.1');
33
  define('PLL_MIN_WP_VERSION', '3.1');
34
 
35
  define('POLYLANG_BASENAME', plugin_basename(__FILE__)); // plugin name as known by WP
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
+ Version: 1.2.2
6
  Author: Frédéric Demarle
7
  Description: Adds multilingual capability to WordPress
8
  Text Domain: polylang
29
  *
30
  */
31
 
32
+ define('POLYLANG_VERSION', '1.2.2');
33
  define('PLL_MIN_WP_VERSION', '3.1');
34
 
35
  define('POLYLANG_BASENAME', plugin_basename(__FILE__)); // plugin name as known by WP
readme.txt CHANGED
@@ -4,14 +4,14 @@ 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.1
6
  Tested up to: 3.7.1
7
- Stable tag: 1.2.1
8
  License: GPLv2 or later
9
 
10
  Polylang adds multilingual content management support to WordPress.
11
 
12
  == Description ==
13
 
14
- Polylang 1.2 introduces major internal changes. More than ever, make a database backup before upgrading.
15
 
16
  = Features =
17
 
@@ -26,7 +26,7 @@ Polylang allows you to create a bilingual or multilingual WordPress site. You wr
26
 
27
  = Translators =
28
 
29
- The plugin admin interface is currently available in 30 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), 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/), 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), Catalan by [Núria Martínez Berenguer](http://nuriamb.capa.webfactional.com), Ukrainian by [cmd soft](http://www.cmd-soft.com/), 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/)
30
 
31
 
32
  = Do you like Polylang? =
@@ -63,16 +63,29 @@ See http://polylang.wordpress.com/documentation/contribute/
63
 
64
  == Upgrade Notice ==
65
 
66
- = 1.2.1 =
67
  Polylang 1.2 introduces major internal changes. More than ever, make a database backup before upgrading! If you are using a version older than 0.8, please ugrade to 0.9.8 before ugrading to 1.2
68
 
69
  == Changelog ==
70
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  = 1.2.1 (2013-11-11) =
72
 
73
  * Update badly encoded Latvian translation
74
  * Suppress one query in PLL_WPML_Config when not in multisite
75
  * Bug correction: strings translations are not correctly upgraded
 
76
 
77
  = 1.2 (2013-11-10) =
78
 
@@ -95,7 +108,7 @@ This version does include important changes in database. More than ever, make a
95
  * Synchronization is now disabled by default (due to too much conflicts / questions on the forum)
96
  * Include rel="alternate" hreflang="x" selflink per google recommendation
97
  * Improve inline documentation
98
- * Bug correction: Wrong datatype for second argument in polylang/include/auto-translate.php (introduced in 1.1.6)
99
  * Bug correction: same id is used for all language items in menu
100
  * Bug correction: wpml-config.xml file not loaded for sitewide active plugins on network installations
101
  * Bug correction: page parent dropdown list (in page attributes metabox) not correctly displayed when switching from a language with empty list
4
  Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
5
  Requires at least: 3.1
6
  Tested up to: 3.7.1
7
+ Stable tag: 1.2.2
8
  License: GPLv2 or later
9
 
10
  Polylang adds multilingual content management support to WordPress.
11
 
12
  == Description ==
13
 
14
+ Polylang 1.2 introduces major internal changes. More than ever, make a database backup if you ugrade from 1.1.6 or older.
15
 
16
  = Features =
17
 
26
 
27
  = Translators =
28
 
29
+ The plugin admin interface is currently available in 30 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) and [Bartosz](http://www.dfactory.eu/), 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/), 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), 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/), 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/)
30
 
31
 
32
  = Do you like Polylang? =
63
 
64
  == Upgrade Notice ==
65
 
66
+ = 1.2.2 =
67
  Polylang 1.2 introduces major internal changes. More than ever, make a database backup before upgrading! If you are using a version older than 0.8, please ugrade to 0.9.8 before ugrading to 1.2
68
 
69
  == Changelog ==
70
 
71
+ = 1.2.2 (2013-11-14) =
72
+
73
+ * Updated Polish translation thanks to [Bartosz](http://www.dfactory.eu/)
74
+ * delay strings translations upgrade from 'wp_loaded' to 'admin_init' to avoid fatal error when wp-ecommerce is active
75
+ * Remove Jetpack infinite scroll compatibility code as it seems useless with new Polylang 1.2 code structure
76
+ * Bug correction: fatal error when doing ajax on frontend
77
+ * Bug correction: ICL_LANGUAGE_CODE incorrectly defined when doing ajax on frontend
78
+ * Bug correction: ['current_lang'] and ['no-translation'] indexes disappeared from pll_the_languages raw output
79
+ * Bug correction: invalid argument supplied for foreach() in /polylang/include/mo.php on line 57
80
+ * Bug correction: cookie may not correctly set
81
+ * Bug correction: languages columns may not be displayed in custom post types and custom taxonomies tables
82
+
83
  = 1.2.1 (2013-11-11) =
84
 
85
  * Update badly encoded Latvian translation
86
  * Suppress one query in PLL_WPML_Config when not in multisite
87
  * Bug correction: strings translations are not correctly upgraded
88
+ * Bug correction: nav menus locations are not correctly upgraded for non default language
89
 
90
  = 1.2 (2013-11-10) =
91
 
108
  * Synchronization is now disabled by default (due to too much conflicts / questions on the forum)
109
  * Include rel="alternate" hreflang="x" selflink per google recommendation
110
  * Improve inline documentation
111
+ * Bug correction: wrong datatype for second argument in polylang/include/auto-translate.php (introduced in 1.1.6)
112
  * Bug correction: same id is used for all language items in menu
113
  * Bug correction: wpml-config.xml file not loaded for sitewide active plugins on network installations
114
  * Bug correction: page parent dropdown list (in page attributes metabox) not correctly displayed when switching from a language with empty list
uninstall.php CHANGED
@@ -102,11 +102,16 @@ class PLL_Uninstall {
102
  $tt_ids[] = (int) $term->term_taxonomy_id;
103
  }
104
 
105
- $term_ids = array_unique($term_ids);
 
 
 
 
106
 
107
- $wpdb->query("DELETE FROM $wpdb->terms WHERE term_id IN (" . implode(',', $term_ids) . ")");
108
- $wpdb->query("DELETE FROM $wpdb->term_taxonomy WHERE term_id IN (" . implode(',', $term_ids) . ")");
109
- $wpdb->query("DELETE FROM $wpdb->term_relationships WHERE term_taxonomy_id IN (" . implode(',', $tt_ids) . ")");
 
110
 
111
  // delete options
112
  delete_option('polylang');
102
  $tt_ids[] = (int) $term->term_taxonomy_id;
103
  }
104
 
105
+ if (!empty($term_ids)) {
106
+ $term_ids = array_unique($term_ids);
107
+ $wpdb->query("DELETE FROM $wpdb->terms WHERE term_id IN (" . implode(',', $term_ids) . ")");
108
+ $wpdb->query("DELETE FROM $wpdb->term_taxonomy WHERE term_id IN (" . implode(',', $term_ids) . ")");
109
+ }
110
 
111
+ if (!empty($tt_ids)) {
112
+ $tt_ids = array_unique($tt_ids);
113
+ $wpdb->query("DELETE FROM $wpdb->term_relationships WHERE term_taxonomy_id IN (" . implode(',', $tt_ids) . ")");
114
+ }
115
 
116
  // delete options
117
  delete_option('polylang');