Polylang - Version 1.1.3

Version Description

(2013-07-21) =

  • Add Venetian language contributed by Michele Brunelli
  • Bug correction: wrong rewrite rules for non translated custom post type archives
  • Bug correction: 'post_id' parameter of pll_the_languages does not work
  • Bug correction: warning in wp_nav_menu_objects with Artisteer generated themes
  • Bug correction: warning when used together with theme my login plugin
  • Bug correction: language slug is modified and translations are lost when creating a nav menu with the same name as a language
Download this release

Release Info

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

Code changes from version 1.1.2 to 1.1.3

flags/vec.png ADDED
Binary file
include/core.php CHANGED
@@ -204,8 +204,10 @@ class Polylang_Core extends Polylang_base {
204
  if (is_404() || current_filter() == 'login_init' || (is_attachment() && !$this->options['media_support']))
205
  return $this->get_preferred_language();
206
 
207
- if ($var = get_query_var('lang'))
208
- $lang = $this->get_language(reset(explode(',',$var))); // choose the first queried language
 
 
209
 
210
  // Ajax thanks to g100g
211
  elseif ($this->is_ajax_on_front)
@@ -344,6 +346,10 @@ class Polylang_Core extends Polylang_base {
344
  // as done by xili_language: load text domains and reinitialize wp_locale with the action 'wp'
345
  // as done by qtranslate: define the locale with the action 'plugins_loaded', but in this case, the language must be specified in the url.
346
  function load_textdomains() {
 
 
 
 
347
  // our override_load_textdomain filter has done its job. let's remove it before calling load_textdomain
348
  remove_filter('override_load_textdomain', array(&$this, 'mofile'));
349
  remove_filter('gettext', array(&$this, 'gettext'), 10, 3);
@@ -984,7 +990,7 @@ class Polylang_Core extends Polylang_base {
984
  continue;
985
 
986
  $url = $post_id !== null && ($tr_id = $this->get_post($post_id, $language)) ? get_permalink($tr_id) :
987
- $post_id === null && !$force_home ? $this->get_translation_url($language) : null;
988
 
989
  $no_translation = empty($url); // keep this for future
990
  $url = apply_filters('pll_the_language_link', $url, $slug, $language->description);
204
  if (is_404() || current_filter() == 'login_init' || (is_attachment() && !$this->options['media_support']))
205
  return $this->get_preferred_language();
206
 
207
+ if ($var = get_query_var('lang')) {
208
+ $lang = explode(',',$var);
209
+ $lang = $this->get_language(reset($lang)); // choose the first queried language
210
+ }
211
 
212
  // Ajax thanks to g100g
213
  elseif ($this->is_ajax_on_front)
346
  // as done by xili_language: load text domains and reinitialize wp_locale with the action 'wp'
347
  // as done by qtranslate: define the locale with the action 'plugins_loaded', but in this case, the language must be specified in the url.
348
  function load_textdomains() {
349
+ // prevents calling the function 2 times (occurs with theme my login plugin)
350
+ if (empty($this->list_textdomains))
351
+ return;
352
+
353
  // our override_load_textdomain filter has done its job. let's remove it before calling load_textdomain
354
  remove_filter('override_load_textdomain', array(&$this, 'mofile'));
355
  remove_filter('gettext', array(&$this, 'gettext'), 10, 3);
990
  continue;
991
 
992
  $url = $post_id !== null && ($tr_id = $this->get_post($post_id, $language)) ? get_permalink($tr_id) :
993
+ ($post_id === null && !$force_home ? $this->get_translation_url($language) : null);
994
 
995
  $no_translation = empty($url); // keep this for future
996
  $url = apply_filters('pll_the_language_link', $url, $slug, $language->description);
include/languages.php CHANGED
@@ -76,6 +76,7 @@ $languages = array(
76
  array('uk', 'uk', 'Українська'),
77
  array('ur', 'ur', 'اردو', 'rtl'),
78
  array('uz', 'uz_UZ', 'Oʻzbek'),
 
79
  array('vi', 'vi', 'Tiếng Việt'),
80
  array('zh', 'zh_CN', '中文'),
81
  array('zh', 'zh_HK', '香港'),
76
  array('uk', 'uk', 'Українська'),
77
  array('ur', 'ur', 'اردو', 'rtl'),
78
  array('uz', 'uz_UZ', 'Oʻzbek'),
79
+ array('vec', 'vec', 'Vèneto'),
80
  array('vi', 'vi', 'Tiếng Việt'),
81
  array('zh', 'zh_CN', '中文'),
82
  array('zh', 'zh_HK', '香港'),
include/nav-menu.php CHANGED
@@ -7,6 +7,9 @@ class Polylang_Nav_Menu {
7
 
8
  // remove the customize menu section as it is unusable with Polylang
9
  add_action('customize_register', array(&$this, 'customize_register'), 20); // since WP 3.4
 
 
 
10
  }
11
  else {
12
  // split the language switcher menu item in several language menu items
@@ -183,6 +186,18 @@ class Polylang_Nav_Menu {
183
  $GLOBALS['wp_customize']->remove_section('nav'); // since WP 3.4
184
  }
185
 
 
 
 
 
 
 
 
 
 
 
 
 
186
 
187
  // split the one item of backend in several items on frontend
188
  // take care to menu_order as it is used later in wp_nav_menu
@@ -230,11 +245,11 @@ class Polylang_Nav_Menu {
230
  $r_ids = $k_ids = array();
231
 
232
  foreach ($items as $item) {
233
- if (in_array('current-lang', $item->classes)) {
234
  $item->classes = array_diff($item->classes, array('current-menu-item'));
235
  $r_ids = array_merge($r_ids, $this->get_ancestors($item)); // remove the classes for these ancestors
236
  }
237
- elseif (in_array('current-menu-item', $item->classes))
238
  $k_ids = array_merge($k_ids, $this->get_ancestors($item)); // keep the classes for these ancestors
239
  }
240
 
7
 
8
  // remove the customize menu section as it is unusable with Polylang
9
  add_action('customize_register', array(&$this, 'customize_register'), 20); // since WP 3.4
10
+
11
+ // protection against #24802
12
+ add_filter('pre_insert_term', array(&$this, 'pre_insert_term'), 10, 2);
13
  }
14
  else {
15
  // split the language switcher menu item in several language menu items
186
  $GLOBALS['wp_customize']->remove_section('nav'); // since WP 3.4
187
  }
188
 
189
+ // FIXME prevents sharing a menu term with a language term by renaming the nav menu before its creation
190
+ // to avoid http://core.trac.wordpress.org/ticket/24802
191
+ // and http://wordpress.org/support/topic/all-connection-between-elements-lost
192
+ function pre_insert_term($name, $taxonomy) {
193
+ if ('nav_menu' == $taxonomy) {
194
+ global $polylang;
195
+ foreach ($polylang->get_languages_list() as $language)
196
+ if ($name == $language->name)
197
+ $name = $name . '-menu';
198
+ }
199
+ return $name;
200
+ }
201
 
202
  // split the one item of backend in several items on frontend
203
  // take care to menu_order as it is used later in wp_nav_menu
245
  $r_ids = $k_ids = array();
246
 
247
  foreach ($items as $item) {
248
+ if (is_array($item->classes) && in_array('current-lang', $item->classes)) {
249
  $item->classes = array_diff($item->classes, array('current-menu-item'));
250
  $r_ids = array_merge($r_ids, $this->get_ancestors($item)); // remove the classes for these ancestors
251
  }
252
+ elseif (is_array($item->classes) && in_array('current-menu-item', $item->classes))
253
  $k_ids = array_merge($k_ids, $this->get_ancestors($item)); // keep the classes for these ancestors
254
  }
255
 
languages/polylang-vec.mo ADDED
Binary file
languages/polylang-vec.po ADDED
@@ -0,0 +1,619 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Polylang v1.1dev10\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2013-06-24 23:40+0100\n"
7
+ "Last-Translator: \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.5\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ # @ polylang
22
+ #: include/about.php:3
23
+ #, php-format
24
+ msgid ""
25
+ "Polylang is provided with an extensive %sdocumentation%s (in English only). "
26
+ "It includes information on how to set up your multilingual site and use it "
27
+ "on a daily basis, a FAQ, as well as a documentation for programmers to adapt "
28
+ "their plugins and themes."
29
+ msgstr ""
30
+ "Polylang el vien dà fora co na %sdocumentaçion%s conpleta (sol che in "
31
+ "Ingléxe). El contien anca informaçion su come métar sù un sito multiléngue e "
32
+ "su come dopararlo tuti i di, na pàxena de FAQ (domande frecuenti) e na "
33
+ "documentaçion par programaturi parché i posa adatar i so plugin e i so tèmi."
34
+
35
+ # @ polylang
36
+ #: include/about.php:9
37
+ #, php-format
38
+ msgid ""
39
+ "You will also find useful information in the %ssupport forum%s. However "
40
+ "don't forget to make a search before posting a new topic."
41
+ msgstr ""
42
+ "Te cati anca informaçion ùtiłi nel %sfòrum de suporto%s. Parò no stà "
43
+ "desmentegarte de far na riçérca prima de postar n'argoménto nóvo."
44
+
45
+ # @ polylang
46
+ #: include/about.php:16
47
+ #, php-format
48
+ msgid ""
49
+ "Polylang is free of charge and is released under the same license as "
50
+ "WordPress, the %sGPL%s."
51
+ msgstr ""
52
+ "Polylang el xe a gràtis e 'l vien dà fora sóto ła stésa łicença de "
53
+ "WordPress, ła %sGPL%s."
54
+
55
+ # @ polylang
56
+ #: include/about.php:22
57
+ #, php-format
58
+ msgid "If you wonder how you can help the project, just %sread this%s."
59
+ msgstr ""
60
+ "Se te si drio domandarte come che te pol jutarne, basta che te %slezi cuà%s."
61
+
62
+ # @ polylang
63
+ #: include/about.php:27
64
+ msgid ""
65
+ "Finally if you like this plugin or if it helps your business, donations to "
66
+ "the author are greatly appreciated."
67
+ msgstr ""
68
+ "In ùltima, se te piaxe sto plugin chì o se sto cuà el te juta a guadagnar, "
69
+ "te pol far vołentiera na donaçion a l'autor."
70
+
71
+ # @ polylang
72
+ #: include/admin-base.php:55 include/admin-base.php:190
73
+ #: include/admin-filters.php:243 include/admin.php:23 include/admin.php:301
74
+ #: include/list-table.php:13 polylang.php:339
75
+ msgid "Languages"
76
+ msgstr "Łéngue"
77
+
78
+ # @ polylang
79
+ #: include/admin-base.php:153
80
+ msgid "Displays language names"
81
+ msgstr "El fa védar i nomi de łe łéngue"
82
+
83
+ # @ polylang
84
+ #: include/admin-base.php:154
85
+ msgid "Displays flags"
86
+ msgstr "El fa védar łe bandiere"
87
+
88
+ # @ polylang
89
+ #: include/admin-base.php:155
90
+ msgid "Forces link to front page"
91
+ msgstr "El força łe łigadure in prima pàxena"
92
+
93
+ # @ polylang
94
+ #: include/admin-base.php:156
95
+ msgid "Hides the current language"
96
+ msgstr "El scónde ła łéngua ativa"
97
+
98
+ # @ polylang
99
+ #: include/admin-base.php:160
100
+ msgid "Displays as dropdown"
101
+ msgstr "El vixuałixa come menù a cascada"
102
+
103
+ # @ polylang
104
+ #: include/admin-base.php:191
105
+ msgid "Filters content by language"
106
+ msgstr "El filtra el contegnùo par łéngua"
107
+
108
+ # @ polylang
109
+ #: include/admin-base.php:186
110
+ msgid "Show all languages"
111
+ msgstr "Fa védar tute łe łéngue"
112
+
113
+ # @ polylang
114
+ #: include/admin-filters.php:181 include/admin-filters.php:877
115
+ msgid "Add new translation"
116
+ msgstr "Zónta na traduçion nóva"
117
+
118
+ # @ polylang
119
+ #: include/admin-filters.php:209 include/admin-filters.php:267
120
+ #: include/admin-filters.php:601 include/admin-filters.php:817
121
+ #: include/admin-filters.php:835 include/list-table.php:12
122
+ #: include/media-translations.php:5 include/media-translations.php:43
123
+ #: include/post-translations.php:8 include/term-translations.php:15
124
+ #: polylang.php:340
125
+ msgid "Language"
126
+ msgstr "Łéngua"
127
+
128
+ # @ polylang
129
+ #: include/admin-filters.php:616 include/admin-filters.php:651
130
+ #: include/list-table.php:127 include/media-translations.php:40
131
+ #: include/term-translations.php:6 include/term-translations.php:11
132
+ msgid "Translations"
133
+ msgstr "Traduçion"
134
+
135
+ # @ polylang
136
+ #: include/admin-filters.php:819 include/admin-filters.php:838
137
+ msgid "Sets the language"
138
+ msgstr "L'inposta ła łéngua"
139
+
140
+ # @ polylang
141
+ #: include/admin-filters.php:1053
142
+ msgid "The widget is displayed for:"
143
+ msgstr "Ła widget ła vien vixuałixà par:"
144
+
145
+ # @ polylang
146
+ #: include/admin-filters.php:1057 polylang.php:341
147
+ msgid "All languages"
148
+ msgstr "Tute łe łéngue"
149
+
150
+ # @ polylang
151
+ #: include/admin-filters.php:1080
152
+ msgid "Admin language"
153
+ msgstr "Łéngua de l'aministrador"
154
+
155
+ # @ polylang
156
+ #: include/admin-filters.php:1085
157
+ msgid "Wordpress default"
158
+ msgstr "Stàndard de Wordpress"
159
+
160
+ # @ polylang
161
+ #: include/admin-filters.php:1114 include/admin.php:306
162
+ msgid "Settings"
163
+ msgstr "Inpostaçion"
164
+
165
+ # @ polylang
166
+ #: include/admin-filters.php:1120
167
+ msgid "Upgrading language files…"
168
+ msgstr "Agiornaménto del file de łéngua"
169
+
170
+ # @ polylang
171
+ #: include/admin.php:22
172
+ msgid "About Polylang"
173
+ msgstr "Informaçion su Polylang"
174
+
175
+ # @ polylang
176
+ #: include/admin.php:27 include/list-table.php:82
177
+ msgid "Strings translations"
178
+ msgstr "Traduçion de stringhe"
179
+
180
+ # @ polylang
181
+ #: include/admin.php:305 include/list-table.php:81
182
+ msgid "Strings translation"
183
+ msgstr "Traduçion de stringhe"
184
+
185
+ # @ polylang
186
+ #: include/admin.php:345
187
+ msgid "Enter a valid WorPress locale"
188
+ msgstr "Miti rento na inpostaçion locałe de WordPress vàłida"
189
+
190
+ # @ polylang
191
+ #: include/admin.php:346
192
+ msgid "The language code must be 2 characters long"
193
+ msgstr "El còdexe de łéngua el ga da èser łóngo 2 (du) caràtari"
194
+
195
+ # @ polylang
196
+ #: include/admin.php:328
197
+ msgid "The language code must be unique"
198
+ msgstr "Bexon che'l còdexe łéngua el sia ùnico"
199
+
200
+ # @ polylang
201
+ #: include/admin.php:329
202
+ msgid "The language must have a name"
203
+ msgstr "Ła łéngua ła ga da aver un nome"
204
+
205
+ # @ polylang
206
+ #: include/admin.php:330
207
+ msgid ""
208
+ "The language was created, but the WordPress language file was not "
209
+ "downloaded. Please install it manually."
210
+ msgstr ""
211
+ "Ła łéngua ła xe stà creà, ma el file de łéngua de WordPress no l'è mìa stà "
212
+ "tirà zo. Par favor, metìło sù a man."
213
+
214
+ # @ polylang
215
+ #: include/admin.php:449
216
+ msgid "Widget title"
217
+ msgstr "Tìtoło de ła widget"
218
+
219
+ # @ polylang
220
+ #: include/base.php:368
221
+ msgid "Taxonomies"
222
+ msgstr "Tasonomie"
223
+
224
+ # @ polylang
225
+ #: include/base.php:369
226
+ msgid "Custom fields"
227
+ msgstr "Canpi personałixai"
228
+
229
+ # @ polylang
230
+ #: include/base.php:370
231
+ msgid "Comment status"
232
+ msgstr "Stato del coménto"
233
+
234
+ # @ polylang
235
+ #: include/base.php:371
236
+ msgid "Ping status"
237
+ msgstr "Stato de ping"
238
+
239
+ # @ polylang
240
+ #: include/base.php:372
241
+ msgid "Sticky posts"
242
+ msgstr "Artìcoło evidençià"
243
+
244
+ # @ polylang
245
+ #: include/base.php:373
246
+ msgid "Published date"
247
+ msgstr "Data de publicaçion"
248
+
249
+ # @ polylang
250
+ #: include/base.php:374
251
+ msgid "Post format"
252
+ msgstr "Formato artìcoło"
253
+
254
+ # @ polylang
255
+ #: include/base.php:375
256
+ msgid "Page parent"
257
+ msgstr "Mare de ła pàxena"
258
+
259
+ # @ polylang
260
+ #: include/base.php:376
261
+ msgid "Page template"
262
+ msgstr "Modeło de pàxena"
263
+
264
+ # @ polylang
265
+ #: include/base.php:377
266
+ msgid "Page order"
267
+ msgstr "Órdene de pàxena"
268
+
269
+ # @ polylang
270
+ #: include/base.php:378
271
+ msgid "Featured image"
272
+ msgstr "Imàxene in evidença"
273
+
274
+ # @ polylang
275
+ #: include/languages-form.php:42
276
+ msgid "Edit language"
277
+ msgstr "Cànbia łéngua"
278
+
279
+ # @ polylang
280
+ #: include/languages-form.php:42 include/languages-form.php:123
281
+ msgid "Add new language"
282
+ msgstr "Zónta na łéngua nóva"
283
+
284
+ # @ polylang
285
+ #: include/languages-form.php:64
286
+ msgid "Choose a language"
287
+ msgstr "Seji na łéngua"
288
+
289
+ # @ polylang
290
+ #: include/languages-form.php:78
291
+ msgid "You can choose a language in the list or directly edit it below."
292
+ msgstr "Te pol sèjer na łéngua da ła lista o modificarla diretamente chì sóto."
293
+
294
+ # @ polylang
295
+ #: include/languages-form.php:82 include/list-table.php:34
296
+ msgid "Full name"
297
+ msgstr "Nome intiero"
298
+
299
+ # @ polylang
300
+ #: include/languages-form.php:84
301
+ msgid "The name is how it is displayed on your site (for example: English)."
302
+ msgstr ""
303
+ "El nome l'è come che 'l vien mostrà 'ntel to sito (par exenpio: Ingléxe)"
304
+
305
+ # @ polylang
306
+ #: include/languages-form.php:88 include/list-table.php:35
307
+ msgid "Locale"
308
+ msgstr "Inpostaçion locałi"
309
+
310
+ # @ polylang
311
+ #: include/languages-form.php:93
312
+ msgid ""
313
+ "Wordpress Locale for the language (for example: en_US). You will need to "
314
+ "install the .mo file for this language."
315
+ msgstr ""
316
+ "Inpostaçion locałi par ła łéngua (par exenpio: en_US). Par sta łéngua cuà "
317
+ "bexon métar sú el file .mo."
318
+
319
+ # @ polylang
320
+ #: include/languages-form.php:97
321
+ msgid "Language code"
322
+ msgstr "Còdexe łéngua"
323
+
324
+ # @ polylang
325
+ #: include/languages-form.php:99
326
+ msgid "2-letters ISO 639-1 language code (for example: en)"
327
+ msgstr "Còdexe de łéngua ISO 639-1 a 2 (do) łétare (par exenpio: en)"
328
+
329
+ # @ polylang
330
+ #: include/languages-form.php:103
331
+ msgid "Text direction"
332
+ msgstr "Direçion testo"
333
+
334
+ # @ polylang
335
+ #: include/languages-form.php:107
336
+ msgid "left to right"
337
+ msgstr "sinistra-destra"
338
+
339
+ # @ polylang
340
+ #: include/languages-form.php:112
341
+ msgid "right to left"
342
+ msgstr "destra-sinistra"
343
+
344
+ # @ polylang
345
+ #: include/languages-form.php:114
346
+ msgid "Choose the text direction for the language"
347
+ msgstr "Seji n'altra direçion de testo par ła łéngua"
348
+
349
+ # @ polylang
350
+ #: include/languages-form.php:118 include/list-table.php:37
351
+ msgid "Order"
352
+ msgstr "Órdene"
353
+
354
+ # @ polylang
355
+ #: include/languages-form.php:120
356
+ msgid "Position of the language in the language switcher"
357
+ msgstr "Poxiçion de ła łéngua 'ntel sełetor de łéngua"
358
+
359
+ # @ polylang
360
+ #: include/nav-menu.php:28 include/nav-menu.php:51 include/nav-menu.php:54
361
+ #: include/nav-menu.php:82 include/nav-menu.php:106 polylang.php:302
362
+ msgid "Language switcher"
363
+ msgstr "Sełetor łéngua"
364
+
365
+ # @ polylang
366
+ #: include/languages-form.php:148
367
+ msgid "Search translations"
368
+ msgstr "Çerca traduçion"
369
+
370
+ # @ polylang
371
+ #: include/languages-form.php:151
372
+ msgid "Clean strings translation database"
373
+ msgstr "Néta fora el database de traduçion stringhe"
374
+
375
+ # @ polylang
376
+ #: include/languages-form.php:167
377
+ msgid "Default language"
378
+ msgstr "Łéngua de baxe"
379
+
380
+ # @ polylang
381
+ #: include/languages-form.php:179
382
+ msgid ""
383
+ "There are posts, pages, categories or tags without language set. Do you want "
384
+ "to set them all to default language ?"
385
+ msgstr ""
386
+ "Ghe xe artìcołi, pàxene, categorie o tag sensa łèngua inpostà. Vuto "
387
+ "inpostarle tute a ła łéngua baxe?"
388
+
389
+ # @ polylang
390
+ #: include/languages-form.php:187
391
+ msgid "Detect browser language"
392
+ msgstr "Cata fora ła łéngua del navigador"
393
+
394
+ # @ polylang
395
+ #: include/languages-form.php:193
396
+ msgid ""
397
+ "When the front page is visited, set the language according to the browser "
398
+ "preference"
399
+ msgstr ""
400
+ "Cuando che vien vixità ła prima pàxena, inposta ła łéngua conforme łe "
401
+ "preferençe del navigador."
402
+
403
+ # @ polylang
404
+ #: include/languages-form.php:200
405
+ msgid "URL modifications"
406
+ msgstr "Canbiaminti de URL"
407
+
408
+ # @ polylang
409
+ #: include/languages-form.php:206
410
+ msgid ""
411
+ "The language is set from content. Posts, pages, categories and tags urls are "
412
+ "not modified."
413
+ msgstr ""
414
+ "Ła łéngua l'è inposta drio el contegnuo. I URL de artìcołi, pàxene, "
415
+ "categorie e tag no i vien mìa canbiai."
416
+
417
+ # @ polylang
418
+ #: include/languages-form.php:214
419
+ msgid ""
420
+ "The language code, for example /en/, is added to all urls when using pretty "
421
+ "permalinks."
422
+ msgstr ""
423
+ "El còdexe łéngua, par exènpio /en/, el vien zontà a tuti i url cuando che se "
424
+ "dòpara i permalink descritivi."
425
+
426
+ # @ polylang
427
+ #: include/languages-form.php:223
428
+ msgid "Remove /language/ in pretty permalinks. Example:"
429
+ msgstr "Tira via /language/ dai permalink descritivi. Exènpio:"
430
+
431
+ # @ polylang
432
+ #: include/languages-form.php:232
433
+ msgid "Keep /language/ in pretty permalinks. Example:"
434
+ msgstr "Mantien /language/ 'ntei permalink descritivi. Exènpio:"
435
+
436
+ # @ polylang
437
+ #: include/languages-form.php:241
438
+ msgid "Hide URL language information for default language"
439
+ msgstr "Scundi l'informaçion lenguìstica de l'URL par ła łéngua baxe"
440
+
441
+ # @ polylang
442
+ #: include/languages-form.php:251
443
+ #, php-format
444
+ msgid ""
445
+ "When using static front page, redirect the language page (example: %s) to "
446
+ "the front page in the right language"
447
+ msgstr ""
448
+ "Cuando che se dopra na prima pàxena stàtica, direçióna ła pàxena de łéngua "
449
+ "(exènpio: %s) a ła prima pàxena de ła łéngua justa"
450
+
451
+ # @ polylang
452
+ #: include/languages-form.php:260
453
+ msgid "Media"
454
+ msgstr "Mèdia"
455
+
456
+ # @ polylang
457
+ #: include/languages-form.php:266
458
+ msgid "Activate languages and translations for media"
459
+ msgstr "Ativa łéngue e traduçion par i mèdia"
460
+
461
+ # @ polylang
462
+ #: include/languages-form.php:273
463
+ msgid "Synchronization"
464
+ msgstr "Sincronixaçion"
465
+
466
+ # @ polylang
467
+ #: include/languages-form.php:287
468
+ msgid "Custom post types"
469
+ msgstr "Tipi artìcoło personałixai"
470
+
471
+ # @ polylang
472
+ #: include/languages-form.php:300
473
+ msgid "Activate languages and translations for custom post types."
474
+ msgstr "Ativa łéngue e traduçion par tipi artìcoło personałixai"
475
+
476
+ # @ polylang
477
+ #: include/languages-form.php:307
478
+ msgid "Custom taxonomies"
479
+ msgstr "Tasonomie personałixae"
480
+
481
+ # @ polylang
482
+ #: include/languages-form.php:320
483
+ msgid "Activate languages and translations for custom taxonomies."
484
+ msgstr "Ativa łéngue e traduçion par tasonomie personałixae"
485
+
486
+ # @ polylang
487
+ #: include/list-table.php:26 include/media-translations.php:22
488
+ #: include/media-translations.php:60 include/post-translations.php:10
489
+ #: include/post-translations.php:33 include/term-translations.php:18
490
+ #: include/term-translations.php:80
491
+ msgid "Edit"
492
+ msgstr "Modìfica"
493
+
494
+ # @ polylang
495
+ #: include/list-table.php:27 include/list-table.php:162
496
+ msgid "Delete"
497
+ msgstr "Scançeła"
498
+
499
+ # @ polylang
500
+ #: include/list-table.php:36
501
+ msgid "Code"
502
+ msgstr "Còdexe"
503
+
504
+ # @ polylang
505
+ #: include/list-table.php:38
506
+ msgid "Flag"
507
+ msgstr "Bandiera"
508
+
509
+ # @ polylang
510
+ #: include/list-table.php:39
511
+ msgid "Posts"
512
+ msgstr "Artìcoło"
513
+
514
+ # @ polylang
515
+ #: include/list-table.php:125
516
+ msgid "Name"
517
+ msgstr "Nome"
518
+
519
+ # @ polylang
520
+ #: include/list-table.php:126
521
+ msgid "String"
522
+ msgstr "Stringa"
523
+
524
+ # @ polylang
525
+ #: include/media-translations.php:6 include/media-translations.php:44
526
+ #: include/term-translations.php:16
527
+ msgid "Translation"
528
+ msgstr "Traduçion"
529
+
530
+ # @ polylang
531
+ #: include/media-translations.php:31 include/media-translations.php:68
532
+ #: include/post-translations.php:38 include/term-translations.php:60
533
+ msgid "Add new"
534
+ msgstr "Zónta nóvo"
535
+
536
+ # @ polylang
537
+ #: include/post-translations.php:5
538
+ msgid "ID of pages in other languages:"
539
+ msgstr "ID de pàxene in altre łéngue:"
540
+
541
+ # @ polylang
542
+ #: include/post-translations.php:5
543
+ msgid "ID of posts in other languages:"
544
+ msgstr "ID de artìcołi in altre łéngue:"
545
+
546
+ # @ polylang
547
+ #: include/post-translations.php:9
548
+ msgid "Page ID"
549
+ msgstr "ID pàxena"
550
+
551
+ # @ polylang
552
+ #: include/post-translations.php:9
553
+ msgid "Post ID"
554
+ msgstr "ID artìcoło"
555
+
556
+ # @ polylang
557
+ #: include/term-translations.php:48
558
+ msgid "No untranslated term"
559
+ msgstr "Nesuna paroła sensa traduçion"
560
+
561
+ # @ polylang
562
+ #: include/widget.php:6
563
+ msgid "Language Switcher"
564
+ msgstr "Sełetor de łéngua"
565
+
566
+ # @ polylang
567
+ #: include/widget.php:6
568
+ msgid "Displays a language switcher"
569
+ msgstr "El fa védar un sełetor de łéngua"
570
+
571
+ # @ polylang
572
+ #: include/widget.php:69
573
+ msgid "Title:"
574
+ msgstr "Tìtoło:"
575
+
576
+ # @ polylang
577
+ #. translators: plugin header field 'Description'
578
+ #: polylang.php:0
579
+ msgid "Adds multilingual capability to WordPress"
580
+ msgstr "El zónta łe funçion multiłéngua a WordPress"
581
+
582
+ # @ polylang
583
+ #: polylang.php:133
584
+ #, php-format
585
+ msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
586
+ msgstr ""
587
+ "Te si drio doparar WordPress %s. Polylang el ga bixogno almanco de WordPress "
588
+ "%s."
589
+
590
+ # @ polylang
591
+ #: polylang.php:174
592
+ msgid "For some reasons, Polylang could not create a table in your database."
593
+ msgstr ""
594
+ "Par calche motivo, Polylang no 'l xe mìa stà bon de crear na tabeła 'ntel to "
595
+ "database"
596
+
597
+ # @ polylang
598
+ #: polylang.php:235
599
+ msgid ""
600
+ "Polylang has been deactivated because you upgraded from a too old version."
601
+ msgstr ""
602
+ "Polylang el xe stà dexativà parché te ghè fato n'agiornaménto da na version "
603
+ "masa vècia."
604
+
605
+ # @ polylang
606
+ #: polylang.php:237
607
+ #, php-format
608
+ msgid "Please upgrade first to %s before ugrading to %s."
609
+ msgstr "Par favor, agiórna prima a %s, vanti de agiornar a %s."
610
+
611
+ # @ polylang
612
+ #: include/list-table.php:124
613
+ msgid "Group"
614
+ msgstr "Grupo"
615
+
616
+ # @ polylang
617
+ #: include/list-table.php:173
618
+ msgid "View all groups"
619
+ msgstr "Vidi tuti i grupi"
polylang.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
- Version: 1.1.2
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.1.2');
33
  define('PLL_MIN_WP_VERSION', '3.1');
34
 
35
  define('POLYLANG_DIR', dirname(__FILE__)); // our directory
@@ -404,6 +404,10 @@ class Polylang extends Polylang_Base {
404
  if (isset($languages))
405
  $slug = $wp_rewrite->root . ($this->options['rewrite'] ? '' : 'language/') . '('.implode('|', $languages).')/';
406
 
 
 
 
 
407
  foreach ($rules as $key => $rule) {
408
  // we don't need the lang parameter for post types and taxonomies
409
  // moreover adding it would create issues for pages and taxonomies
@@ -423,7 +427,7 @@ class Polylang extends Polylang_Base {
423
  }
424
 
425
  // rewrite rules filtered by language
426
- elseif ($always_rewrite || (strpos($rule, 'post_type=') && !strpos($rule, 'name=')) || ($filter != 'rewrite_rules_array' && $this->options['force_lang'])) {
427
  if (isset($slug))
428
  $newrules[$slug.str_replace($wp_rewrite->root, '', $key)] = str_replace(
429
  array('[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '[1]', '?'),
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
+ Version: 1.1.3
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.1.3');
33
  define('PLL_MIN_WP_VERSION', '3.1');
34
 
35
  define('POLYLANG_DIR', dirname(__FILE__)); // our directory
404
  if (isset($languages))
405
  $slug = $wp_rewrite->root . ($this->options['rewrite'] ? '' : 'language/') . '('.implode('|', $languages).')/';
406
 
407
+ // for custom post type archives
408
+ $cpts = array_intersect($this->post_types, get_post_types(array('_builtin' => false)));
409
+ $cpts = $cpts ? '#post_type=('.implode('|', $cpts).')#' : '';
410
+
411
  foreach ($rules as $key => $rule) {
412
  // we don't need the lang parameter for post types and taxonomies
413
  // moreover adding it would create issues for pages and taxonomies
427
  }
428
 
429
  // rewrite rules filtered by language
430
+ elseif ($always_rewrite || ($cpts && preg_match($cpts, $rule) && !strpos($rule, 'name=')) || ($filter != 'rewrite_rules_array' && $this->options['force_lang'])) {
431
  if (isset($slug))
432
  $newrules[$slug.str_replace($wp_rewrite->root, '', $key)] = str_replace(
433
  array('[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '[1]', '?'),
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: multilingual, bilingual, translate, translation, language, multilanguage, i18n, international, l10n, localization
5
  Requires at least: 3.1
6
  Tested up to: 3.6
7
- Stable tag: 1.1.2
8
  License: GPLv2 or later
9
 
10
  Polylang adds multilingual content management support to WordPress.
@@ -24,7 +24,7 @@ Polylang allows you to create a bilingual or multilingual WordPress site. You wr
24
 
25
  = Translators =
26
 
27
- The plugin admin interface is currently available in 26 languages: English, French, German contributed by [Christian Ries](http://www.singbyfoot.lu), Russian contributed by [yoyurec](http://yoyurec.in.ua) and unostar, Greek contributed by [theodotos](http://www.ubuntucy.org), Dutch contributed by [AlbertGn](http://wordpress.org/support/profile/albertgn), Hebrew contributed by [ArielK](http://www.arielk.net), Polish contributed by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl), Latvian contributed by [@AndyDeGroo](http://twitter.com/AndyDeGroo), Italian contributed by [Luca Barbetti](http://wordpress.org/support/profile/lucabarbetti), Danish contributed by [Compute](http://wordpress.org/support/profile/compute), Spanish contributed by Curro, Portuguese contributed by [Vitor Carvalho](http://vcarvalho.com/), Lithuanian contributed by [Naglis Jonaitis](http://najo.lt/), Turkish contributed by [darchws](http://darch.ws/), Finnish contributed by [Jani Alha](http://www.wysiwyg.fi), Bulgarian contributed by [pavelsof](http://wordpress.org/support/profile/pavelsof), Belarusian contributed by [Alexander Markevitch](http://fourfeathers.by/), Afrikaans contributed by [Kobus Joubert](http://translate3d.com/), Hungarian contributed by Csaba Erdei, Norwegian contributed by [Tom Boersma](http://www.oransje.com/), Slovak contributed by [Branco (WebHostingGeeks.com)](http://webhostinggeeks.com/user-reviews/), Swedish contributed by [matsii](http://wordpress.org/support/profile/matsii), Catalan contributed by [Núria Martínez Berenguer](http://nuriamb.capa.webfactional.com), Ukrainian contributed by [cmd soft](http://www.cmd-soft.com/), Estonian contributed by [Ahto Naris](http://profiles.wordpress.org/ahtonaris/)
28
 
29
 
30
  Other [contributions](http://polylang.wordpress.com/documentation/contribute/) are welcome !
@@ -92,6 +92,15 @@ If you are using a version older than 0.8, please ugrade to 0.9.8 before ugradin
92
 
93
  == Changelog ==
94
 
 
 
 
 
 
 
 
 
 
95
  = 1.1.2 (2013-06-18) =
96
 
97
  * Posts and terms now inherit parent's language if created outside the standard WordPress ui
4
  Tags: multilingual, bilingual, translate, translation, language, multilanguage, i18n, international, l10n, localization
5
  Requires at least: 3.1
6
  Tested up to: 3.6
7
+ Stable tag: 1.1.3
8
  License: GPLv2 or later
9
 
10
  Polylang adds multilingual content management support to WordPress.
24
 
25
  = Translators =
26
 
27
+ The plugin admin interface is currently available in 27 languages: English, French, German contributed by [Christian Ries](http://www.singbyfoot.lu), Russian contributed by [yoyurec](http://yoyurec.in.ua) and unostar, Greek contributed by [theodotos](http://www.ubuntucy.org), Dutch contributed by [AlbertGn](http://wordpress.org/support/profile/albertgn), Hebrew contributed by [ArielK](http://www.arielk.net), Polish contributed by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl), Latvian contributed by [@AndyDeGroo](http://twitter.com/AndyDeGroo), Italian contributed by [Luca Barbetti](http://wordpress.org/support/profile/lucabarbetti), Danish contributed by [Compute](http://wordpress.org/support/profile/compute), Spanish contributed by Curro, Portuguese contributed by [Vitor Carvalho](http://vcarvalho.com/), Lithuanian contributed by [Naglis Jonaitis](http://najo.lt/), Turkish contributed by [darchws](http://darch.ws/), Finnish contributed by [Jani Alha](http://www.wysiwyg.fi), Bulgarian contributed by [pavelsof](http://wordpress.org/support/profile/pavelsof), Belarusian contributed by [Alexander Markevitch](http://fourfeathers.by/), Afrikaans contributed by [Kobus Joubert](http://translate3d.com/), Hungarian contributed by Csaba Erdei, Norwegian contributed by [Tom Boersma](http://www.oransje.com/), Slovak contributed by [Branco (WebHostingGeeks.com)](http://webhostinggeeks.com/user-reviews/), Swedish contributed by [matsii](http://wordpress.org/support/profile/matsii), Catalan contributed by [Núria Martínez Berenguer](http://nuriamb.capa.webfactional.com), Ukrainian contributed by [cmd soft](http://www.cmd-soft.com/), Estonian contributed by [Ahto Naris](http://profiles.wordpress.org/ahtonaris/), Venetian contributed by Michele Brunelli
28
 
29
 
30
  Other [contributions](http://polylang.wordpress.com/documentation/contribute/) are welcome !
92
 
93
  == Changelog ==
94
 
95
+ = 1.1.3 (2013-07-21) =
96
+
97
+ * Add Venetian language contributed by Michele Brunelli
98
+ * Bug correction: wrong rewrite rules for non translated custom post type archives
99
+ * Bug correction: 'post_id' parameter of pll_the_languages does not work
100
+ * Bug correction: warning in wp_nav_menu_objects with Artisteer generated themes
101
+ * Bug correction: warning when used together with theme my login plugin
102
+ * Bug correction: language slug is modified and translations are lost when creating a nav menu with the same name as a language
103
+
104
  = 1.1.2 (2013-06-18) =
105
 
106
  * Posts and terms now inherit parent's language if created outside the standard WordPress ui