Polylang - Version 1.2.1

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.1
Comparing to
See all releases

Code changes from version 1.2 to 1.2.1

include/upgrade.php CHANGED
@@ -87,7 +87,7 @@ class PLL_Upgrade {
87
  * @since 1.2
88
  */
89
  protected function _upgrade() {
90
- foreach (array('0.9', '1.0', '1.1', '1.2') as $version)
91
  if (version_compare($this->options['version'], $version, '<'))
92
  call_user_func(array(&$this, 'upgrade_' . str_replace('.', '_', $version)));
93
 
@@ -197,16 +197,6 @@ class PLL_Upgrade {
197
  protected function upgrade_1_2() {
198
  $this->options['domains'] = array(); // option added in 1.2
199
 
200
- // it was a bad idea to pollute WP option with our custom nav menu locations
201
- $menus = get_theme_mod('nav_menu_locations');
202
- if (is_array($menus)) {
203
- foreach ($menus as $loc => $menu)
204
- if (strpos($loc, '#'))
205
- unset($menus[$loc]);
206
-
207
- set_theme_mod('nav_menu_locations', $menus);
208
- }
209
-
210
  // need to register the taxonomies
211
  foreach (array('language', 'term_language', 'post_translations', 'term_translations') as $taxonomy)
212
  register_taxonomy($taxonomy, null , array('label' => false, 'public' => false, 'query_var' => false, 'rewrite' => false));
@@ -252,6 +242,9 @@ class PLL_Upgrade {
252
  // get all translated objects
253
  $objects = $wpdb->get_col("SELECT DISTINCT meta_value FROM {$wpdb->$table} WHERE meta_key = '_translations'");
254
 
 
 
 
255
  foreach ($objects as $obj) {
256
  $term = uniqid('pll_'); // the term name
257
  $terms[] = $wpdb->prepare('("%1$s", "%1$s")', $term);
@@ -295,16 +288,65 @@ class PLL_Upgrade {
295
  // insert term_relationships
296
  if (!empty($trs))
297
  $wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id) VALUES " . implode(',', $trs));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298
 
299
- // strings translations
300
- foreach($languages as $lang) {
301
- if ($strings = get_option('polylang_mo'.$lang->term_id)) {
302
- $mo = new PLL_MO();
303
- foreach ($strings as $msg)
304
- $mo->add_entry($mo->make_entry($msg[0], $msg[1]));
305
- $mo->export_to_db($lang);
306
  }
307
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
308
  }
309
  }
310
 
87
  * @since 1.2
88
  */
89
  protected function _upgrade() {
90
+ foreach (array('0.9', '1.0', '1.1', '1.2', '1.2.1') as $version)
91
  if (version_compare($this->options['version'], $version, '<'))
92
  call_user_func(array(&$this, 'upgrade_' . str_replace('.', '_', $version)));
93
 
197
  protected function upgrade_1_2() {
198
  $this->options['domains'] = array(); // option added in 1.2
199
 
 
 
 
 
 
 
 
 
 
 
200
  // need to register the taxonomies
201
  foreach (array('language', 'term_language', 'post_translations', 'term_translations') as $taxonomy)
202
  register_taxonomy($taxonomy, null , array('label' => false, 'public' => false, 'query_var' => false, 'rewrite' => false));
242
  // get all translated objects
243
  $objects = $wpdb->get_col("SELECT DISTINCT meta_value FROM {$wpdb->$table} WHERE meta_key = '_translations'");
244
 
245
+ if (empty($objects))
246
+ continue;
247
+
248
  foreach ($objects as $obj) {
249
  $term = uniqid('pll_'); // the term name
250
  $terms[] = $wpdb->prepare('("%1$s", "%1$s")', $term);
288
  // insert term_relationships
289
  if (!empty($trs))
290
  $wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id) VALUES " . implode(',', $trs));
291
+ }
292
+
293
+ // it was a bad idea to pollute WP option with our custom nav menu locations
294
+ $menus = get_theme_mod('nav_menu_locations');
295
+ if (is_array($menus)) {
296
+ $default = $this->options['default_lang'];
297
+ $arr = array();
298
+
299
+ foreach ($menus as $loc => $menu) {
300
+ if ($pos = strpos($loc, '#')) {
301
+ $arr[substr($loc, 0, $pos)][substr($loc, $pos+1)] = $menu;
302
+ unset($menus[$loc]);
303
+ }
304
+ else
305
+ $arr[$loc][$default] = $menu;
306
+ }
307
+
308
+ $model = new PLL_Admin_Model($this->options);
309
+ $model->clean_languages_cache();
310
 
311
+ // assign menus language and translations
312
+ foreach ($arr as $loc => $translations) {
313
+ foreach ($translations as $lang=>$menu) {
314
+ $model->set_term_language($menu, $lang);
315
+ $model->save_translations('term', $menu, $translations);
 
 
316
  }
317
  }
318
+
319
+ set_theme_mod('nav_menu_locations', $menus);
320
+ }
321
+ }
322
+
323
+ /*
324
+ * upgrades if the previous version is < 1.2.1
325
+ *
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
+
335
+ /*
336
+ * upgrades if the previous version is < 1.2.1
337
+ * actions that need to be taken after $wp_rewrite is available
338
+ *
339
+ * @since 1.2.1
340
+ */
341
+ public function wp_loaded_upgrade_1_2_1() {
342
+ // strings translations
343
+ foreach(get_terms('language', array('hide_empty' => 0)) as $lang) {
344
+ if ($strings = get_option('polylang_mo'.$lang->term_id)) {
345
+ $mo = new PLL_MO();
346
+ foreach ($strings as $msg)
347
+ $mo->add_entry($mo->make_entry($msg[0], $msg[1]));
348
+ $mo->export_to_db($lang);
349
+ }
350
  }
351
  }
352
 
include/wpml-compat.php CHANGED
@@ -470,7 +470,7 @@ class PLL_WPML_Config {
470
 
471
  // plugins
472
  // don't forget sitewide active plugins thanks to Reactorshop http://wordpress.org/support/topic/polylang-and-yoast-seo-plugin/page/2?replies=38#post-4801829
473
- $plugins = ($sitewide_plugins = get_site_option('active_sitewide_plugins')) && is_array($sitewide_plugins) ? array_keys($sitewide_plugins) : array();
474
  $plugins = array_merge($plugins, get_option('active_plugins'));
475
 
476
  foreach ($plugins as $plugin) {
470
 
471
  // plugins
472
  // don't forget sitewide active plugins thanks to Reactorshop http://wordpress.org/support/topic/polylang-and-yoast-seo-plugin/page/2?replies=38#post-4801829
473
+ $plugins = (is_multisite() && $sitewide_plugins = get_site_option('active_sitewide_plugins')) && is_array($sitewide_plugins) ? array_keys($sitewide_plugins) : array();
474
  $plugins = array_merge($plugins, get_option('active_plugins'));
475
 
476
  foreach ($plugins as $plugin) {
languages/polylang-lv.mo CHANGED
Binary file
languages/polylang-lv.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: polylang 0.8\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2013-10-17 11:42+0100\n"
7
  "Last-Translator: Andis <andis.grossteins@gmail.com>\n"
8
  "Language-Team: \n"
9
  "Language: \n"
@@ -23,30 +23,30 @@ msgstr ""
23
  #: admin/view-about.php:3
24
  #, php-format
25
  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."
26
- msgstr "Polylang tiek piedāvāts ar plašu %sdokumentāciju%s (tikai angliski). Tā satur informāciju par to kā uzstādīt vietni vairākās valodās un kā to lietot ikdienā, BUJ, kā arī dokumentāciju programmētājiem par spraudņu un kažociņu pielāgošanu."
27
 
28
  # @ polylang
29
  #: admin/view-about.php:9
30
  #, php-format
31
  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."
32
- msgstr "Noderīgu informāciju varat atrast arī %satbalsata forumā%s. Ieteicams veikt meklēšanu pirms atvērt jaunu foruma tematu."
33
 
34
  # @ polylang
35
  #: admin/view-about.php:16
36
  #, php-format
37
  msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
38
- msgstr "Polylang ir bezmaksas un tiek piedāvāts ar to pašu licenci kā WordPress, %sGPL%s."
39
 
40
  # @ polylang
41
  #: admin/view-about.php:22
42
  #, php-format
43
  msgid "If you wonder how you can help the project, just %sread this%s."
44
- msgstr "Ja jūs prātojat kā varētu palīdzēt šim projektam, %sizlasiet šo%s."
45
 
46
  # @ polylang
47
  #: admin/view-about.php:27
48
  msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
49
- msgstr "Visbeidzot, ja jums patīk šis spraudnis vai ari tas palīdz jūsu biznesā, ziedojumi autoram tiks augsti vērtēti."
50
 
51
  # @ polylang
52
  #: admin/admin-filters-post.php:76
@@ -61,27 +61,27 @@ msgstr "Valodas"
61
  # @ polylang
62
  #: include/switcher.php:22
63
  msgid "Displays language names"
64
- msgstr "Rāda valodu nosaukumus"
65
 
66
  # @ polylang
67
  #: include/switcher.php:23
68
  msgid "Displays flags"
69
- msgstr "Rāda karogus"
70
 
71
  # @ polylang
72
  #: include/switcher.php:24
73
  msgid "Forces link to front page"
74
- msgstr "Valodas saite ved uz sākumlapu"
75
 
76
  # @ polylang
77
  #: include/switcher.php:25
78
  msgid "Hides the current language"
79
- msgstr "Paslēpt aktīvo valodu"
80
 
81
  # @ polylang
82
  #: include/switcher.php:29
83
  msgid "Displays as dropdown"
84
- msgstr "Rāda kā nolaižamo izvēlni"
85
 
86
  # @ polylang
87
  #: admin/admin.php:188
@@ -91,7 +91,7 @@ msgstr ""
91
  # @ polylang
92
  #: admin/admin.php:183
93
  msgid "Show all languages"
94
- msgstr "Rādīt visas valodas"
95
 
96
  # @ polylang
97
  #: admin/admin-filters-columns.php:126
@@ -132,7 +132,7 @@ msgstr "Nosaka valodu"
132
  # @ polylang
133
  #: admin/admin-filters.php:60
134
  msgid "The widget is displayed for:"
135
- msgstr "Logdaļa tiek rādīta:"
136
 
137
  # @ polylang
138
  #: admin/admin-filters.php:63
@@ -143,8 +143,9 @@ msgstr "Visas valodas"
143
  # @ polylang
144
  #: admin/admin-filters.php:120
145
  msgid "Admin language"
146
- msgstr "Vadības valoda"
147
 
 
148
  #: admin/admin-filters.php:123
149
  msgid "Wordpress default"
150
  msgstr ""
@@ -154,7 +155,7 @@ msgstr ""
154
  #: admin/admin.php:123
155
  #: admin/settings.php:62
156
  msgid "Settings"
157
- msgstr "Uzstādījumi"
158
 
159
  # @ polylang
160
  #: admin/admin-filters.php:151
@@ -174,32 +175,32 @@ msgstr "Tekstu tulkojumi"
174
  # @ polylang
175
  #: admin/settings.php:61
176
  msgid "Strings translation"
177
- msgstr "Tekstu tulkošana"
178
 
179
  # @ polylang
180
  #: admin/settings.php:74
181
- msgid "Enter a valid WorPress locale"
182
- msgstr "Ievadiet derīgu WordPress valodas kodu"
183
 
184
  # @ polylang
185
  #: admin/settings.php:76
186
  msgid "The language code must be unique"
187
- msgstr "Valodas kodam jābūt unikālam"
188
 
189
  # @ polylang
190
  #: admin/settings.php:77
191
  msgid "The language must have a name"
192
- msgstr "Valodai ir nepieciešams nosaukums"
193
 
194
  # @ polylang
195
  #: admin/settings.php:78
196
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
197
- msgstr "Valoda tika izveidota, bet WordPress tulkojumu fails netika lejuplādēts. Lūdzu uzstādiet to manuāli."
198
 
199
  # @ polylang
200
  #: admin/settings.php:305
201
  msgid "Widget title"
202
- msgstr "Logdaļas virsraksts"
203
 
204
  # @ polylang
205
  #: admin/settings.php:323
@@ -259,7 +260,7 @@ msgstr ""
259
  # @ polylang
260
  #: admin/view-languages.php:42
261
  msgid "Edit language"
262
- msgstr "Rediģēt valodu"
263
 
264
  # @ polylang
265
  #: admin/view-languages.php:42
@@ -270,12 +271,12 @@ msgstr "Pievienot jaunu valodu"
270
  # @ polylang
271
  #: admin/view-languages.php:58
272
  msgid "Choose a language"
273
- msgstr "Izvēlēties valodu"
274
 
275
  # @ polylang
276
  #: admin/view-languages.php:72
277
  msgid "You can choose a language in the list or directly edit it below."
278
- msgstr "Jūs varat izvēlēties valodu no saraksta, vai ari rediģēt to zemāk."
279
 
280
  # @ polylang
281
  #: admin/table-languages.php:74
@@ -286,18 +287,18 @@ msgstr "Pilns nosaukums"
286
  # @ polylang
287
  #: admin/view-languages.php:78
288
  msgid "The name is how it is displayed on your site (for example: English)."
289
- msgstr "Nosaukums, kādu to attēlos lapā (piemēram: Latviešu)"
290
 
291
  # @ polylang
292
  #: admin/table-languages.php:75
293
  #: admin/view-languages.php:82
294
  msgid "Locale"
295
- msgstr "Lokāle"
296
 
297
  # @ polylang
298
  #: admin/view-languages.php:87
299
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
300
- msgstr "WordPress valodas lokāle šai valodai (piemēram: en_US). Jums nāksies uzstādīt .mo failu šai valodai."
301
 
302
  # @ polylang
303
  #: admin/view-languages.php:91
@@ -307,38 +308,38 @@ msgstr "Valodas kods (piem.: lv)"
307
  # @ polylang
308
  #: admin/view-languages.php:93
309
  msgid "2-letters ISO 639-1 language code (for example: en)"
310
- msgstr "2 burtu ISO 639-1 valodas kods (piemēram: en)"
311
 
312
  # @ polylang
313
  #: admin/view-languages.php:97
314
  msgid "Text direction"
315
- msgstr "Lasīšanas virziens"
316
 
317
  # @ polylang
318
  #: admin/view-languages.php:101
319
  msgid "left to right"
320
- msgstr "no kreisās uz labo"
321
 
322
  # @ polylang
323
  #: admin/view-languages.php:106
324
  msgid "right to left"
325
- msgstr "no labās uz kreiso"
326
 
327
  # @ polylang
328
  #: admin/view-languages.php:108
329
  msgid "Choose the text direction for the language"
330
- msgstr "Izvēlieties lasīšanas virzienu šai valodai"
331
 
332
  # @ polylang
333
  #: admin/table-languages.php:77
334
  #: admin/view-languages.php:112
335
  msgid "Order"
336
- msgstr "Secība"
337
 
338
  # @ polylang
339
  #: admin/view-languages.php:114
340
  msgid "Position of the language in the language switcher"
341
- msgstr "Valodas atrašanās vieta valodu izvēlnē"
342
 
343
  # @ polylang
344
  #: admin/admin-nav-menu.php:51
@@ -348,7 +349,7 @@ msgstr "Valodas atrašanās vieta valodu izvēlnē"
348
  #: admin/admin-nav-menu.php:170
349
  #: include/upgrade.php:175
350
  msgid "Language switcher"
351
- msgstr "Valodu izvēlne"
352
 
353
  # @ polylang
354
  #: admin/view-languages.php:143
@@ -363,27 +364,27 @@ msgstr ""
363
  # @ polylang
364
  #: admin/view-languages.php:164
365
  msgid "Default language"
366
- msgstr "Noklusētā valoda"
367
 
368
  # @ polylang
369
  #: admin/view-languages.php:179
370
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
371
- msgstr "Ir atrasti raksti, lapas, tēmas, vai birkas bez uzstādītas valodas. Vai vēlaties uzstādīt tām visām noklusēto valodu?"
372
 
373
  # @ polylang
374
  #: admin/view-languages.php:187
375
  msgid "Detect browser language"
376
- msgstr "Noteikt pārlūka valodu"
377
 
378
  # @ polylang
379
  #: admin/view-languages.php:193
380
  msgid "When the front page is visited, set the language according to the browser preference"
381
- msgstr "Kad tiek apmeklēta sākumlapa, uzstāda valodu atkarībā no pārlūkprogrammas uzstādījumiem"
382
 
383
  # @ polylang
384
  #: admin/view-languages.php:200
385
  msgid "URL modifications"
386
- msgstr "Saišu modifikācijas"
387
 
388
  # @ polylang
389
  #: admin/view-languages.php:206
@@ -393,17 +394,17 @@ msgstr ""
393
  # @ polylang
394
  #: admin/view-languages.php:253
395
  msgid "Remove /language/ in pretty permalinks. Example:"
396
- msgstr "Nerādīt /language/ nemainīgajās saitēs. Piemērs:"
397
 
398
  # @ polylang
399
  #: admin/view-languages.php:262
400
  msgid "Keep /language/ in pretty permalinks. Example:"
401
- msgstr "Atstāt /language/ nemainīgajās saitēs. Piemērs:"
402
 
403
  # @ polylang
404
  #: admin/view-languages.php:271
405
  msgid "Hide URL language information for default language"
406
- msgstr "Paslēpt noklusētās valodas informāciju hipersaitēs"
407
 
408
  # @ polylang
409
  #: admin/view-languages.php:281
@@ -421,6 +422,7 @@ msgstr ""
421
  msgid "Activate languages and translations for media"
422
  msgstr ""
423
 
 
424
  #: admin/view-languages.php:303
425
  msgid "Synchronization"
426
  msgstr ""
@@ -454,13 +456,13 @@ msgstr ""
454
  #: admin/view-translations-term.php:18
455
  #: admin/view-translations-term.php:80
456
  msgid "Edit"
457
- msgstr "Rediģēt"
458
 
459
  # @ polylang
460
  #: admin/table-languages.php:60
461
  #: admin/table-string.php:167
462
  msgid "Delete"
463
- msgstr "Dzēst"
464
 
465
  # @ polylang
466
  #: admin/table-languages.php:76
@@ -505,12 +507,12 @@ msgstr "Pievienot jaunu"
505
  # @ polylang
506
  #: admin/view-translations-post.php:5
507
  msgid "ID of pages in other languages:"
508
- msgstr "lapas ID citās valodās:"
509
 
510
  # @ polylang
511
  #: admin/view-translations-post.php:5
512
  msgid "ID of posts in other languages:"
513
- msgstr "raksta ID citās valodās:"
514
 
515
  # @ polylang
516
  #: admin/view-translations-post.php:9
@@ -530,12 +532,12 @@ msgstr "Netulkotu terminu nav"
530
  # @ polylang
531
  #: include/widget-languages.php:16
532
  msgid "Language Switcher"
533
- msgstr "Valodu Izvēlne"
534
 
535
  # @ polylang
536
  #: include/widget-languages.php:16
537
  msgid "Displays a language switcher"
538
- msgstr "Parāda valodu izvēlni"
539
 
540
  # @ polylang
541
  #: include/widget-languages.php:100
@@ -552,7 +554,7 @@ msgstr ""
552
  #: polylang.php:157
553
  #, php-format
554
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
555
- msgstr "Jūs lietojat WordPress %s. Polylang nepieciešama vismaz WordPress %s versija."
556
 
557
  # @ polylang
558
  #: include/upgrade.php:75
3
  "Project-Id-Version: polylang 0.8\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2013-11-11 09:33+0100\n"
7
  "Last-Translator: Andis <andis.grossteins@gmail.com>\n"
8
  "Language-Team: \n"
9
  "Language: \n"
23
  #: admin/view-about.php:3
24
  #, php-format
25
  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."
26
+ msgstr "Polylang tiek piedāvāts ar plašu %sdokumentāciju%s (tikai angliski). satur informāciju par to uzstādīt vietni vairākās valodās un to lietot ikdienā, BUJ, arī dokumentāciju programmētājiem par spraudņu un kažociņu pielāgošanu."
27
 
28
  # @ polylang
29
  #: admin/view-about.php:9
30
  #, php-format
31
  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."
32
+ msgstr "Noderīgu informāciju varat atrast arī %satbalsata forumā%s. Ieteicams veikt meklēšanu pirms atvērt jaunu foruma tematu."
33
 
34
  # @ polylang
35
  #: admin/view-about.php:16
36
  #, php-format
37
  msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
38
+ msgstr "Polylang ir bezmaksas un tiek piedāvāts ar to pašu licenci WordPress, %sGPL%s."
39
 
40
  # @ polylang
41
  #: admin/view-about.php:22
42
  #, php-format
43
  msgid "If you wonder how you can help the project, just %sread this%s."
44
+ msgstr "Ja jūs prātojat varētu palīdzēt šim projektam, %sizlasiet šo%s."
45
 
46
  # @ polylang
47
  #: admin/view-about.php:27
48
  msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
49
+ msgstr "Visbeidzot, ja jums patīk šis spraudnis vai ari tas palīdz jūsu biznesā, ziedojumi autoram tiks augsti vērtēti."
50
 
51
  # @ polylang
52
  #: admin/admin-filters-post.php:76
61
  # @ polylang
62
  #: include/switcher.php:22
63
  msgid "Displays language names"
64
+ msgstr "Rāda valodu nosaukumus"
65
 
66
  # @ polylang
67
  #: include/switcher.php:23
68
  msgid "Displays flags"
69
+ msgstr "Rāda karogus"
70
 
71
  # @ polylang
72
  #: include/switcher.php:24
73
  msgid "Forces link to front page"
74
+ msgstr "Valodas saite ved uz sākumlapu"
75
 
76
  # @ polylang
77
  #: include/switcher.php:25
78
  msgid "Hides the current language"
79
+ msgstr "Paslēpt aktīvo valodu"
80
 
81
  # @ polylang
82
  #: include/switcher.php:29
83
  msgid "Displays as dropdown"
84
+ msgstr "Rāda nolaižamo izvēlni"
85
 
86
  # @ polylang
87
  #: admin/admin.php:188
91
  # @ polylang
92
  #: admin/admin.php:183
93
  msgid "Show all languages"
94
+ msgstr "Rādīt visas valodas"
95
 
96
  # @ polylang
97
  #: admin/admin-filters-columns.php:126
132
  # @ polylang
133
  #: admin/admin-filters.php:60
134
  msgid "The widget is displayed for:"
135
+ msgstr "Logdaļa tiek rādīta:"
136
 
137
  # @ polylang
138
  #: admin/admin-filters.php:63
143
  # @ polylang
144
  #: admin/admin-filters.php:120
145
  msgid "Admin language"
146
+ msgstr "Vadības valoda"
147
 
148
+ # @ polylang
149
  #: admin/admin-filters.php:123
150
  msgid "Wordpress default"
151
  msgstr ""
155
  #: admin/admin.php:123
156
  #: admin/settings.php:62
157
  msgid "Settings"
158
+ msgstr "Uzstādījumi"
159
 
160
  # @ polylang
161
  #: admin/admin-filters.php:151
175
  # @ polylang
176
  #: admin/settings.php:61
177
  msgid "Strings translation"
178
+ msgstr "Tekstu tulkošana"
179
 
180
  # @ polylang
181
  #: admin/settings.php:74
182
+ msgid "Enter a valid WordPress locale"
183
+ msgstr ""
184
 
185
  # @ polylang
186
  #: admin/settings.php:76
187
  msgid "The language code must be unique"
188
+ msgstr "Valodas kodam jābūt unikālam"
189
 
190
  # @ polylang
191
  #: admin/settings.php:77
192
  msgid "The language must have a name"
193
+ msgstr "Valodai ir nepieciešams nosaukums"
194
 
195
  # @ polylang
196
  #: admin/settings.php:78
197
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
198
+ msgstr "Valoda tika izveidota, bet WordPress tulkojumu fails netika lejuplādēts. Lūdzu uzstādiet to manuāli."
199
 
200
  # @ polylang
201
  #: admin/settings.php:305
202
  msgid "Widget title"
203
+ msgstr "Logdaļas virsraksts"
204
 
205
  # @ polylang
206
  #: admin/settings.php:323
260
  # @ polylang
261
  #: admin/view-languages.php:42
262
  msgid "Edit language"
263
+ msgstr "Rediģēt valodu"
264
 
265
  # @ polylang
266
  #: admin/view-languages.php:42
271
  # @ polylang
272
  #: admin/view-languages.php:58
273
  msgid "Choose a language"
274
+ msgstr "Izvēlēties valodu"
275
 
276
  # @ polylang
277
  #: admin/view-languages.php:72
278
  msgid "You can choose a language in the list or directly edit it below."
279
+ msgstr "Jūs varat izvēlēties valodu no saraksta, vai ari rediģēt to zemāk."
280
 
281
  # @ polylang
282
  #: admin/table-languages.php:74
287
  # @ polylang
288
  #: admin/view-languages.php:78
289
  msgid "The name is how it is displayed on your site (for example: English)."
290
+ msgstr "Nosaukums, kādu to attēlos lapā (piemēram: Latviešu)"
291
 
292
  # @ polylang
293
  #: admin/table-languages.php:75
294
  #: admin/view-languages.php:82
295
  msgid "Locale"
296
+ msgstr "Lokāle"
297
 
298
  # @ polylang
299
  #: admin/view-languages.php:87
300
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
301
+ msgstr "WordPress valodas lokāle šai valodai (piemēram: en_US). Jums nāksies uzstādīt .mo failu šai valodai."
302
 
303
  # @ polylang
304
  #: admin/view-languages.php:91
308
  # @ polylang
309
  #: admin/view-languages.php:93
310
  msgid "2-letters ISO 639-1 language code (for example: en)"
311
+ msgstr "2 burtu ISO 639-1 valodas kods (piemēram: en)"
312
 
313
  # @ polylang
314
  #: admin/view-languages.php:97
315
  msgid "Text direction"
316
+ msgstr "Lasīšanas virziens"
317
 
318
  # @ polylang
319
  #: admin/view-languages.php:101
320
  msgid "left to right"
321
+ msgstr "no kreisās uz labo"
322
 
323
  # @ polylang
324
  #: admin/view-languages.php:106
325
  msgid "right to left"
326
+ msgstr "no labās uz kreiso"
327
 
328
  # @ polylang
329
  #: admin/view-languages.php:108
330
  msgid "Choose the text direction for the language"
331
+ msgstr "Izvēlieties lasīšanas virzienu šai valodai"
332
 
333
  # @ polylang
334
  #: admin/table-languages.php:77
335
  #: admin/view-languages.php:112
336
  msgid "Order"
337
+ msgstr "Secība"
338
 
339
  # @ polylang
340
  #: admin/view-languages.php:114
341
  msgid "Position of the language in the language switcher"
342
+ msgstr "Valodas atrašanās vieta valodu izvēlnē"
343
 
344
  # @ polylang
345
  #: admin/admin-nav-menu.php:51
349
  #: admin/admin-nav-menu.php:170
350
  #: include/upgrade.php:175
351
  msgid "Language switcher"
352
+ msgstr "Valodu izvēlne"
353
 
354
  # @ polylang
355
  #: admin/view-languages.php:143
364
  # @ polylang
365
  #: admin/view-languages.php:164
366
  msgid "Default language"
367
+ msgstr "Noklusētā valoda"
368
 
369
  # @ polylang
370
  #: admin/view-languages.php:179
371
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
372
+ msgstr "Ir atrasti raksti, lapas, tēmas, vai birkas bez uzstādītas valodas. Vai vēlaties uzstādīt tām visām noklusēto valodu?"
373
 
374
  # @ polylang
375
  #: admin/view-languages.php:187
376
  msgid "Detect browser language"
377
+ msgstr "Noteikt pārlūka valodu"
378
 
379
  # @ polylang
380
  #: admin/view-languages.php:193
381
  msgid "When the front page is visited, set the language according to the browser preference"
382
+ msgstr "Kad tiek apmeklēta sākumlapa, uzstāda valodu atkarībā no pārlūkprogrammas uzstādījumiem"
383
 
384
  # @ polylang
385
  #: admin/view-languages.php:200
386
  msgid "URL modifications"
387
+ msgstr "Saišu modifikācijas"
388
 
389
  # @ polylang
390
  #: admin/view-languages.php:206
394
  # @ polylang
395
  #: admin/view-languages.php:253
396
  msgid "Remove /language/ in pretty permalinks. Example:"
397
+ msgstr "Nerādīt /language/ nemainīgajās saitēs. Piemērs:"
398
 
399
  # @ polylang
400
  #: admin/view-languages.php:262
401
  msgid "Keep /language/ in pretty permalinks. Example:"
402
+ msgstr "Atstāt /language/ nemainīgajās saitēs. Piemērs:"
403
 
404
  # @ polylang
405
  #: admin/view-languages.php:271
406
  msgid "Hide URL language information for default language"
407
+ msgstr "Paslēpt noklusētās valodas informāciju hipersaitēs"
408
 
409
  # @ polylang
410
  #: admin/view-languages.php:281
422
  msgid "Activate languages and translations for media"
423
  msgstr ""
424
 
425
+ # @ polylang
426
  #: admin/view-languages.php:303
427
  msgid "Synchronization"
428
  msgstr ""
456
  #: admin/view-translations-term.php:18
457
  #: admin/view-translations-term.php:80
458
  msgid "Edit"
459
+ msgstr "Rediģēt"
460
 
461
  # @ polylang
462
  #: admin/table-languages.php:60
463
  #: admin/table-string.php:167
464
  msgid "Delete"
465
+ msgstr "Dzēst"
466
 
467
  # @ polylang
468
  #: admin/table-languages.php:76
507
  # @ polylang
508
  #: admin/view-translations-post.php:5
509
  msgid "ID of pages in other languages:"
510
+ msgstr "lapas ID citās valodās:"
511
 
512
  # @ polylang
513
  #: admin/view-translations-post.php:5
514
  msgid "ID of posts in other languages:"
515
+ msgstr "raksta ID citās valodās:"
516
 
517
  # @ polylang
518
  #: admin/view-translations-post.php:9
532
  # @ polylang
533
  #: include/widget-languages.php:16
534
  msgid "Language Switcher"
535
+ msgstr "Valodu Izvēlne"
536
 
537
  # @ polylang
538
  #: include/widget-languages.php:16
539
  msgid "Displays a language switcher"
540
+ msgstr "Parāda valodu izvēlni"
541
 
542
  # @ polylang
543
  #: include/widget-languages.php:100
554
  #: polylang.php:157
555
  #, php-format
556
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
557
+ msgstr "Jūs lietojat WordPress %s. Polylang nepieciešama vismaz WordPress %s versija."
558
 
559
  # @ polylang
560
  #: include/upgrade.php:75
polylang.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
- Version: 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.2');
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.1
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.1');
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,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, international, localization
5
  Requires at least: 3.1
6
  Tested up to: 3.7.1
7
- Stable tag: 1.2
8
  License: GPLv2 or later
9
 
10
  Polylang adds multilingual content management support to WordPress.
@@ -63,11 +63,17 @@ See http://polylang.wordpress.com/documentation/contribute/
63
 
64
  == Upgrade Notice ==
65
 
66
- = 1.2 =
67
- 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 (2013-11-10) =
72
 
73
  This version does include important changes in database. More than ever, make a database backup before upgrading
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.
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
 
79
  This version does include important changes in database. More than ever, make a database backup before upgrading