Polylang - Version 0.8

Version Description

(2012-02-29) =

  • Sticky posts are now filtered by language
  • It is now possible to use the language page as home page
  • Add an "About Polylang" metabox on the languages admin page
  • Add the pll_the_languages filter allowing to filter the whole output of the language switcher
  • Add a new argument 'display_names_as' to the function pll_the_languages
  • Add pll_get_post_types & pll_get_taxonomies filters allowing to enable / disable the language filter for post types & taxonomies
  • Add ckb to predefined languages list
  • Completely reworked the string translation storage in the database
  • Some performance improvements on admin side
  • Improve compatibility with other plugins broken by the home url filter
  • Add an option to disable the home url filter
  • Add an option to disable synchronization of metas between translations
  • Bug correction: body class 'home' is not set on translated homepage
  • Bug correction: robots.txt is broken when adding the language code to all urls (including default language)
  • Bug correction: bad name for the Czech flag
  • Bug correction: bad language information in rss feed for WP < 3.4
  • Bug correction: signup broken on multisite
  • Bug correction: the translation url is set to self when using a static front page and no page for posts and there is no translation
  • Bug correction: problems with custom post type archive titles
  • Bug correction: problems with custom post type if rewrite slug is different from post_type (thanks to AndyDeGroo)
  • Bug correction: quick edit still breaks translation linking of pages (thanks to AndyDeGroo)
  • Bug correction: bad rewrite rules for feeds (introduced in 0.7.2)
  • Bug correction: the order is not saved when creating a language
  • Bug correction: the categories list is not updated when adding a new category (ajax broken)
Download this release

Release Info

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

Code changes from version 0.7.2 to 0.8

css/admin.css CHANGED
@@ -1,2 +1 @@
1
- .column-term_group,.column-flag,.column-count{width:10%;}.form-field input.tog{width:auto;margin-right:2px;}.stringstranslations .column-name{width:10%;}.stringstranslations .column-string{width:36%;}.translation label{display:inline-block;width:23%;}.translation input{width:72%;}th[class*='column-language_']{width:24px;}.pll_icon_add,.pll_icon_edit{display:block;width:16px;height:16px;background-image:url("icons.png");}.pll_icon_edit{background-position:0 -24px;}.pll_icon_add{background-position:16px -24px;}.pll_icon_edit:hover{background-position:0 -40px;}.pll_icon_add:hover{background-position:16px -40px;}#post-translations table{width:100%;text-align:left;font-size:11px;margin:0 6px;}#post-translations td{font-size:11px;}#term-translations table{width:97%;}#term-translations th{padding:8px 10px;}#term-translations td{font-size:12px;line-height:26px;margin-bottom:9px;padding:4px 10px;}.tr-language-column{width:35%;}div#term-translations select[id*='tr_lang_']{width:95%;}tr#term-translations select[id*='tr_lang_']{width:65%;}.tr-edit-column{width:15%;}
2
-
1
+ .column-term_group,.column-flag,.column-count{width:10%;}.form-field input.tog{width:auto;margin-right:2px;}#pll_about_box p{text-align:justify;}#pll_about_box input{margin:0;padding:0;float:right;}.stringstranslations .column-name{width:10%;}.stringstranslations .column-string{width:36%;}.translation label{display:inline-block;width:23%;}.translation input{width:72%;}th[class*='column-language_']{width:2em;}.pll_icon_edit,.pll_icon_add,.pll_icon_tick{display:block;width:16px;height:16px;background-image:url("icons.png");}.pll_icon_edit{background-position:0 -24px;}.pll_icon_add{background-position:-16px -24px;}.pll_icon_tick{background-position:-32px -24px;}.pll_icon_edit:hover{background-position:0 -40px;}.pll_icon_add:hover{background-position:-16px -40px;}.pll_icon_tick:hover{background-position:-32px -40px;}#post-translations table{width:100%;text-align:left;font-size:11px;margin:0 6px;}#post-translations td{font-size:11px;}#term-translations table{width:97%;}#term-translations th{padding:8px 10px;}#term-translations td{font-size:12px;line-height:26px;margin-bottom:9px;padding:4px 10px;}.tr-language-column{width:35%;}div#term-translations select[id*='tr_lang_']{width:95%;}tr#term-translations select[id*='tr_lang_']{width:65%;}.tr-edit-column{width:15%;}
 
css/admin.dev.css CHANGED
@@ -8,6 +8,17 @@
8
  margin-right: 2px;
9
  }
10
 
 
 
 
 
 
 
 
 
 
 
 
11
  /* strings translation table */
12
  .stringstranslations .column-name {
13
  width: 10%;
@@ -28,10 +39,10 @@
28
 
29
  /* language columns in edit.php and edit-tags.php */
30
  th[class*='column-language_'] {
31
- width: 24px;
32
  }
33
 
34
- .pll_icon_add, .pll_icon_edit {
35
  display: block;
36
  width: 16px;
37
  height: 16px;
@@ -39,10 +50,12 @@ th[class*='column-language_'] {
39
  }
40
 
41
  .pll_icon_edit {background-position: 0px -24px;}
42
- .pll_icon_add {background-position: 16px -24px;}
 
43
 
44
  .pll_icon_edit:hover {background-position: 0px -40px;}
45
- .pll_icon_add:hover {background-position: 16px -40px;}
 
46
 
47
  /* languages metabox in post.php */
48
  #post-translations table {
8
  margin-right: 2px;
9
  }
10
 
11
+ /* about Polylang metabox */
12
+ #pll_about_box p {
13
+ text-align: justify;
14
+ }
15
+
16
+ #pll_about_box input {
17
+ margin: 0;
18
+ padding: 0;
19
+ float: right;
20
+ }
21
+
22
  /* strings translation table */
23
  .stringstranslations .column-name {
24
  width: 10%;
39
 
40
  /* language columns in edit.php and edit-tags.php */
41
  th[class*='column-language_'] {
42
+ width: 2em;
43
  }
44
 
45
+ .pll_icon_edit, .pll_icon_add, .pll_icon_tick {
46
  display: block;
47
  width: 16px;
48
  height: 16px;
50
  }
51
 
52
  .pll_icon_edit {background-position: 0px -24px;}
53
+ .pll_icon_add {background-position: -16px -24px;}
54
+ .pll_icon_tick {background-position: -32px -24px;}
55
 
56
  .pll_icon_edit:hover {background-position: 0px -40px;}
57
+ .pll_icon_add:hover {background-position: -16px -40px;}
58
+ .pll_icon_tick:hover {background-position: -32px -40px;}
59
 
60
  /* languages metabox in post.php */
61
  #post-translations table {
css/icons.png CHANGED
Binary file
doc/documentation-en.odt CHANGED
Binary file
doc/documentation-en.pdf CHANGED
Binary file
flags/ckb.png ADDED
Binary file
flags/{cz_CZ.png → cs_CZ.png} RENAMED
File without changes
include/about.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <p><?php
2
+ printf(
3
+ __('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.', 'polylang'),
4
+ '<a href="'.esc_url(POLYLANG_URL.'/doc/documentation-en.pdf').'">',
5
+ '</a>');
6
+ echo ' ';
7
+ printf(
8
+ __("You will also find useful information in the %ssupport forum%s. However don't forget to make a search before posting a new topic.", 'polylang'),
9
+ '<a href="http://wordpress.org/tags/polylang?forum_id=10">',
10
+ '</a>');?>
11
+ </p>
12
+ <p><?php
13
+ printf(
14
+ __('Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s.', 'polylang'),
15
+ '<a href="http://wordpress.org/about/gpl/">',
16
+ '</a>');
17
+ echo ' ';
18
+ printf(__('If you wonder how you can help the project, just %sread this%s.', 'polylang'),
19
+ '<a href="http://wordpress.org/extend/plugins/polylang/other_notes/">',
20
+ '</a>');
21
+ echo ' ';
22
+ _e('Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated.', 'polylang')?>
23
+ </p>
24
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
25
+ <input type="hidden" name="cmd" value="_s-xclick">
26
+ <input type="hidden" name="hosted_button_id" value="CCWWYUUQV8F4E">
27
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
28
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
29
+ </form>
include/admin-filters.php CHANGED
@@ -45,13 +45,13 @@ class Polylang_Admin_Filters extends Polylang_Base {
45
  // adds actions and filters related to languages when creating, saving or deleting posts and pages
46
  add_filter('wp_insert_post_parent', array(&$this, 'wp_insert_post_parent'), 10, 4);
47
  add_action('dbx_post_advanced', array(&$this, 'dbx_post_advanced'));
48
- add_action('save_post', array(&$this, 'save_post'));
49
  add_action('before_delete_post', array(&$this, 'delete_post'));
50
 
51
  // filters categories and post tags by language
52
  add_filter('terms_clauses', array(&$this, 'terms_clauses'), 10, 3);
53
 
54
- foreach (get_taxonomies(array('show_ui'=>true)) as $tax) {
55
  // adds the language field in the 'Categories' and 'Post Tags' panels
56
  add_action($tax.'_add_form_fields', array(&$this, 'add_term_form'));
57
 
@@ -99,15 +99,22 @@ class Polylang_Admin_Filters extends Polylang_Base {
99
  // setup js scripts & css styles (only on the relevant pages)
100
  function admin_enqueue_scripts() {
101
  $screen = get_current_screen();
 
 
102
  if ($screen->base == 'settings_page_mlang' || $screen->base == 'post' || $screen->base == 'edit-tags')
103
- wp_enqueue_script('polylang_admin', POLYLANG_URL .'/js/admin.js', array('jquery', 'wp-ajax-response'), POLYLANG_VERSION, true);
 
104
  if ($screen->base == 'settings_page_mlang' || $screen->base == 'post' || $screen->base == 'edit-tags' || $screen->base == 'edit')
105
  wp_enqueue_style('polylang_admin', POLYLANG_URL .'/css/admin.css', array(), POLYLANG_VERSION);
 
 
 
 
106
  }
107
 
108
  // adds the language and translations columns (before the comments column) in the posts and pages list table
109
  function add_post_column($columns, $post_type ='') {
110
- if ($post_type == '' || get_post_type_object($post_type)->show_ui) {
111
  if ($n = array_search('comments', array_keys($columns))) {
112
  $end = array_slice($columns, $n);
113
  $columns = array_slice($columns, 0, $n);
@@ -132,7 +139,11 @@ class Polylang_Admin_Filters extends Polylang_Base {
132
 
133
  // link to edit post (or a translation)
134
  if ($id = $this->get_post($post_id, $language))
135
- printf('<a class="pll_icon_edit" title="%1$s" href="%2$s"></a>', esc_attr(get_post($id)->post_title), esc_url(get_edit_post_link($id, true )));
 
 
 
 
136
 
137
  // link to add a new translation
138
  else
@@ -172,7 +183,7 @@ class Polylang_Admin_Filters extends Polylang_Base {
172
  // adds the Languages box in the 'Edit Post' and 'Edit Page' panels (as well as in custom post types panels
173
  function add_meta_boxes() {
174
  if ($this->get_languages_list())
175
- foreach(get_post_types( array( 'show_ui' => true ) ) as $ptype)
176
  add_meta_box('ml_box', __('Languages','polylang'), array(&$this,'post_language'), $ptype, 'side','high');
177
  }
178
 
@@ -328,11 +339,16 @@ class Polylang_Admin_Filters extends Polylang_Base {
328
  }
329
 
330
  // called when a post (or page) is saved, published or updated
331
- function save_post($post_id) {
 
332
  // avoids breaking translations when using inline or bulk edit
333
  if (isset($_POST['_inline_edit']) || isset($_GET['bulk_edit']))
334
  return;
335
 
 
 
 
 
336
  if ($id = wp_is_post_revision($post_id))
337
  $post_id = $id;
338
 
@@ -349,7 +365,7 @@ class Polylang_Admin_Filters extends Polylang_Base {
349
  if (isset($_GET['from_post']) && isset($_GET['new_lang'])) {
350
 
351
  // translate terms if exist
352
- foreach (get_taxonomies(array('show_ui'=>true)) as $tax) {
353
  $newterms = array();
354
  $terms = get_the_terms($_GET['from_post'], $tax);
355
  if (is_array($terms)) {
@@ -374,9 +390,10 @@ class Polylang_Admin_Filters extends Polylang_Base {
374
  return;
375
 
376
  // make sure we get save terms in the right language (especially tags with same name in different languages)
377
- foreach (get_taxonomies(array('show_ui'=>true)) as $tax) {
378
  $terms = get_the_terms($post_id, $tax);
379
  if (is_array($terms)) {
 
380
  foreach ($terms as $term) {
381
  if ($term_id = $this->get_term($term->term_id, $_POST['post_lang_choice']))
382
  $newterms[] = (int) $term_id; // cast is important otherwise we get 'numeric' tags
@@ -394,13 +411,17 @@ class Polylang_Admin_Filters extends Polylang_Base {
394
 
395
  $this->save_translations('post', $post_id, $translations);
396
 
 
 
 
 
397
  // synchronise terms and metas in translations
398
  foreach ($translations as $lang=>$tr_id) {
399
  if (!$tr_id)
400
  continue;
401
 
402
  // translatable terms
403
- foreach (get_taxonomies(array('show_ui'=>true)) as $tax) {
404
  $newterms = array();
405
  $terms = get_the_terms($post_id, $tax);
406
  if (is_array($terms)) {
@@ -433,27 +454,31 @@ class Polylang_Admin_Filters extends Polylang_Base {
433
  }
434
 
435
  // post parent
436
- if ($parent_id = wp_get_post_parent_id($post_id));
437
- $post_parent = $this->get_translation('post', $parent_id, $lang);
438
-
439
  global $wpdb;
440
- $wpdb->update($wpdb->posts, array('post_parent'=> isset($post_parent) ? $post_parent : 0), array( 'ID' => $tr_id ));
 
 
 
 
441
  }
442
  }
443
 
444
  // called when a post (or page) is deleted
445
  function delete_post($post_id) {
446
- if ($id = wp_is_post_revision($post_id))
447
- $post_id = $id;
 
 
 
448
 
449
  $this->delete_translation('post', $post_id);
450
  }
451
 
452
  // filters categories and post tags by language when needed
453
  function terms_clauses($clauses, $taxonomies, $args) {
454
- // does nothing except on taxonomies which have show_ui set to 1 (includes category and post_tags)
455
  foreach ($taxonomies as $tax) {
456
- if (!get_taxonomy($tax)->show_ui)
457
  return $clauses;
458
  }
459
 
@@ -501,7 +526,7 @@ class Polylang_Admin_Filters extends Polylang_Base {
501
  $lang = $this->get_language($_POST['term_lang_choice']);
502
 
503
  // for a new post (or the parent dropdown list of a new term)
504
- elseif (($screen->base == 'post' || $screen->base == 'edit-tags') && !PLL_DISPLAY_ALL)
505
  $lang = $this->get_language($this->options['default_lang']);
506
 
507
  // adds our clauses to filter by current language
@@ -572,7 +597,8 @@ class Polylang_Admin_Filters extends Polylang_Base {
572
 
573
  // link to edit term (or a translation)
574
  if ($id = $this->get_term($term_id, $language))
575
- printf('<a class="pll_icon_edit" title="%1$s" href="%2$s"></a>',
 
576
  esc_attr(get_term($id, $taxonomy)->name),
577
  esc_url(get_edit_term_link($id, $taxonomy, $post_type))
578
  );
@@ -596,8 +622,8 @@ class Polylang_Admin_Filters extends Polylang_Base {
596
 
597
  // called when a category or post tag is created or edited
598
  function save_term($term_id, $tt_id, $taxonomy) {
599
- // does nothing except on taxonomies which have show_ui set to 1 (includes category and post_tags)
600
- if (!get_taxonomy($taxonomy)->show_ui)
601
  return;
602
 
603
  // avoids breaking translations when using inline edit
@@ -613,13 +639,19 @@ class Polylang_Admin_Filters extends Polylang_Base {
613
  return;
614
 
615
  // save translations after checking the translated term is in the right language (as well as cast id to int)
616
- foreach ($_POST['term_tr_lang'] as $lang=>$tr_id)
617
- $translations[$lang] = $this->get_term_language((int) $tr_id)->slug == $lang ? (int) $tr_id : 0;
 
 
618
 
619
  $this->save_translations('term', $term_id, $translations);
620
 
621
  // synchronize translations of this term in all posts
622
 
 
 
 
 
623
  // get all posts associated to this term
624
  $posts = get_posts(array(
625
  'numberposts'=>-1,
@@ -649,6 +681,9 @@ class Polylang_Admin_Filters extends Polylang_Base {
649
  // this is the reason to use the edit_term filter and not edited_term
650
  // take care that $_POST contains the only valid values for the current term
651
  foreach ($_POST['term_tr_lang'] as $lang=>$tr_id) {
 
 
 
652
  if (isset($_POST['parent']) && $_POST['parent'] != -1) // since WP 3.1
653
  $term_parent = $this->get_translation('term', $_POST['parent'], $lang);
654
 
45
  // adds actions and filters related to languages when creating, saving or deleting posts and pages
46
  add_filter('wp_insert_post_parent', array(&$this, 'wp_insert_post_parent'), 10, 4);
47
  add_action('dbx_post_advanced', array(&$this, 'dbx_post_advanced'));
48
+ add_action('save_post', array(&$this, 'save_post'), 10, 2);
49
  add_action('before_delete_post', array(&$this, 'delete_post'));
50
 
51
  // filters categories and post tags by language
52
  add_filter('terms_clauses', array(&$this, 'terms_clauses'), 10, 3);
53
 
54
+ foreach ($this->taxonomies as $tax) {
55
  // adds the language field in the 'Categories' and 'Post Tags' panels
56
  add_action($tax.'_add_form_fields', array(&$this, 'add_term_form'));
57
 
99
  // setup js scripts & css styles (only on the relevant pages)
100
  function admin_enqueue_scripts() {
101
  $screen = get_current_screen();
102
+
103
+ // FIXME keep the script in header to be sure it is loaded before post.js otherwise a non filtered tag cloud appear in tag cloud metabox
104
  if ($screen->base == 'settings_page_mlang' || $screen->base == 'post' || $screen->base == 'edit-tags')
105
+ wp_enqueue_script('polylang_admin', POLYLANG_URL .'/js/admin.js', array('jquery', 'wp-ajax-response'), POLYLANG_VERSION);
106
+
107
  if ($screen->base == 'settings_page_mlang' || $screen->base == 'post' || $screen->base == 'edit-tags' || $screen->base == 'edit')
108
  wp_enqueue_style('polylang_admin', POLYLANG_URL .'/css/admin.css', array(), POLYLANG_VERSION);
109
+
110
+ if ($screen->base == 'settings_page_mlang') {
111
+ wp_enqueue_script('postbox');
112
+ }
113
  }
114
 
115
  // adds the language and translations columns (before the comments column) in the posts and pages list table
116
  function add_post_column($columns, $post_type ='') {
117
+ if ($post_type == '' || in_array($post_type, $this->post_types)) {
118
  if ($n = array_search('comments', array_keys($columns))) {
119
  $end = array_slice($columns, $n);
120
  $columns = array_slice($columns, 0, $n);
139
 
140
  // link to edit post (or a translation)
141
  if ($id = $this->get_post($post_id, $language))
142
+ printf('<a class="%1$s" title="%2$s" href="%3$s"></a>',
143
+ $id == $post_id ? 'pll_icon_tick' : 'pll_icon_edit',
144
+ esc_attr(get_post($id)->post_title),
145
+ esc_url(get_edit_post_link($id, true ))
146
+ );
147
 
148
  // link to add a new translation
149
  else
183
  // adds the Languages box in the 'Edit Post' and 'Edit Page' panels (as well as in custom post types panels
184
  function add_meta_boxes() {
185
  if ($this->get_languages_list())
186
+ foreach($this->post_types as $ptype)
187
  add_meta_box('ml_box', __('Languages','polylang'), array(&$this,'post_language'), $ptype, 'side','high');
188
  }
189
 
339
  }
340
 
341
  // called when a post (or page) is saved, published or updated
342
+ function save_post($post_id, $post) {
343
+
344
  // avoids breaking translations when using inline or bulk edit
345
  if (isset($_POST['_inline_edit']) || isset($_GET['bulk_edit']))
346
  return;
347
 
348
+ // does nothing except on post types which are filterable
349
+ if (!in_array($post->post_type, $this->post_types))
350
+ return;
351
+
352
  if ($id = wp_is_post_revision($post_id))
353
  $post_id = $id;
354
 
365
  if (isset($_GET['from_post']) && isset($_GET['new_lang'])) {
366
 
367
  // translate terms if exist
368
+ foreach ($this->taxonomies as $tax) {
369
  $newterms = array();
370
  $terms = get_the_terms($_GET['from_post'], $tax);
371
  if (is_array($terms)) {
390
  return;
391
 
392
  // make sure we get save terms in the right language (especially tags with same name in different languages)
393
+ foreach ($this->taxonomies as $tax) {
394
  $terms = get_the_terms($post_id, $tax);
395
  if (is_array($terms)) {
396
+ $newterms = array();
397
  foreach ($terms as $term) {
398
  if ($term_id = $this->get_term($term->term_id, $_POST['post_lang_choice']))
399
  $newterms[] = (int) $term_id; // cast is important otherwise we get 'numeric' tags
411
 
412
  $this->save_translations('post', $post_id, $translations);
413
 
414
+ // STOP synchronisation if unwanted
415
+ if (!PLL_SYNC)
416
+ return;
417
+
418
  // synchronise terms and metas in translations
419
  foreach ($translations as $lang=>$tr_id) {
420
  if (!$tr_id)
421
  continue;
422
 
423
  // translatable terms
424
+ foreach ($this->taxonomies as $tax) {
425
  $newterms = array();
426
  $terms = get_the_terms($post_id, $tax);
427
  if (is_array($terms)) {
454
  }
455
 
456
  // post parent
 
 
 
457
  global $wpdb;
458
+ $post_parent = ($parent_id = wp_get_post_parent_id($post_id)) ? $this->get_translation('post', $parent_id, $lang) : 0;
459
+
460
+ // do not udpate the translation parent if the user set a parent with no translation
461
+ if (!($parent_id && !$post_parent))
462
+ $wpdb->update($wpdb->posts, array('post_parent'=> $post_parent), array( 'ID' => $tr_id ));
463
  }
464
  }
465
 
466
  // called when a post (or page) is deleted
467
  function delete_post($post_id) {
468
+ // don't delete translations if this is a post revision
469
+ // thanks to AndyDeGroo who catched this bug
470
+ // http://wordpress.org/support/topic/plugin-polylang-quick-edit-still-breaks-translation-linking-of-pages-in-072
471
+ if (wp_is_post_revision($post_id))
472
+ return;
473
 
474
  $this->delete_translation('post', $post_id);
475
  }
476
 
477
  // filters categories and post tags by language when needed
478
  function terms_clauses($clauses, $taxonomies, $args) {
479
+ // does nothing except on taxonomies which are filterable
480
  foreach ($taxonomies as $tax) {
481
+ if (!in_array($tax, $this->taxonomies))
482
  return $clauses;
483
  }
484
 
526
  $lang = $this->get_language($_POST['term_lang_choice']);
527
 
528
  // for a new post (or the parent dropdown list of a new term)
529
+ elseif (isset($screen) && ($screen->base == 'post' || $screen->base == 'edit-tags') && !PLL_DISPLAY_ALL)
530
  $lang = $this->get_language($this->options['default_lang']);
531
 
532
  // adds our clauses to filter by current language
597
 
598
  // link to edit term (or a translation)
599
  if ($id = $this->get_term($term_id, $language))
600
+ printf('<a class="%1$s" title="%2$s" href="%3$s"></a>',
601
+ $id == $term_id ? 'pll_icon_tick' : 'pll_icon_edit',
602
  esc_attr(get_term($id, $taxonomy)->name),
603
  esc_url(get_edit_term_link($id, $taxonomy, $post_type))
604
  );
622
 
623
  // called when a category or post tag is created or edited
624
  function save_term($term_id, $tt_id, $taxonomy) {
625
+ // does nothing except on taxonomies which are filterable
626
+ if (!in_array($taxonomy, $this->taxonomies))
627
  return;
628
 
629
  // avoids breaking translations when using inline edit
639
  return;
640
 
641
  // save translations after checking the translated term is in the right language (as well as cast id to int)
642
+ foreach ($_POST['term_tr_lang'] as $lang=>$tr_id) {
643
+ $tr_lang = $this->get_term_language((int) $tr_id);
644
+ $translations[$lang] = isset($tr_lang) && $tr_lang->slug == $lang ? (int) $tr_id : 0;
645
+ }
646
 
647
  $this->save_translations('term', $term_id, $translations);
648
 
649
  // synchronize translations of this term in all posts
650
 
651
+ // STOP synchronisation if unwanted
652
+ if (!PLL_SYNC)
653
+ return;
654
+
655
  // get all posts associated to this term
656
  $posts = get_posts(array(
657
  'numberposts'=>-1,
681
  // this is the reason to use the edit_term filter and not edited_term
682
  // take care that $_POST contains the only valid values for the current term
683
  foreach ($_POST['term_tr_lang'] as $lang=>$tr_id) {
684
+ if (!$tr_id)
685
+ continue;
686
+
687
  if (isset($_POST['parent']) && $_POST['parent'] != -1) // since WP 3.1
688
  $term_parent = $this->get_translation('term', $_POST['parent'], $lang);
689
 
include/admin.php CHANGED
@@ -6,6 +6,7 @@ require_once(PLL_INC.'/list-table.php');
6
  // setups the Polylang admin panel and calls for other admin related classes
7
  class Polylang_Admin extends Polylang_Base {
8
  function __construct() {
 
9
  new Polylang_Admin_Filters();
10
 
11
  // adds a 'settings' link in the plugins table
@@ -30,6 +31,16 @@ class Polylang_Admin extends Polylang_Base {
30
  // adds the link to the languages panel in the wordpress admin menu
31
  function add_menus() {
32
  add_submenu_page('options-general.php', __('Languages', 'polylang'), __('Languages', 'polylang'), 'manage_options', 'mlang', array(&$this, 'languages_page'));
 
 
 
 
 
 
 
 
 
 
33
  }
34
 
35
  // used to update the translation when a language slug has been modified
@@ -78,7 +89,8 @@ class Polylang_Admin extends Polylang_Base {
78
  $error = $this->validate_lang();
79
 
80
  if ($error == 0) {
81
- $r = wp_insert_term($_POST['name'],'language',array('slug'=>$_POST['slug'], 'description'=>$_POST['description'], 'term_group'=>$_POST['term_group']));
 
82
  update_metadata('term', $r['term_id'], '_rtl', $_POST['rtl']);
83
 
84
  if (!isset($options['default_lang'])) { // if this is the first language created, set it as default language
@@ -109,12 +121,12 @@ class Polylang_Admin extends Polylang_Base {
109
  $this->delete_translations('post', $posts, $lang_slug);
110
 
111
  // update the language slug in categories & post tags meta
112
- $terms= get_terms(get_taxonomies(array('show_ui'=>true)), array('get'=>'all', 'fields'=>'ids'));
113
  $this->delete_translations('term', $terms, $lang_slug);
114
 
115
  // FIXME should find something more efficient (with a sql query ?)
116
  foreach ($terms as $id) {
117
- if ($this->get_term_language($id)->term_id == $lang_id)
118
  $this->delete_term_language($id); // delete language of this term
119
  }
120
 
@@ -175,7 +187,7 @@ class Polylang_Admin extends Polylang_Base {
175
  $this->update_translations('post', $posts, $old_slug);
176
 
177
  // update the language slug in categories & post tags meta
178
- $terms = get_terms(get_taxonomies(array('show_ui'=>true)), array('get'=>'all', 'fields'=>'ids'));
179
  $this->update_translations('term', $terms, $old_slug);
180
 
181
  // update menus locations
@@ -228,25 +240,15 @@ class Polylang_Admin extends Polylang_Base {
228
  check_admin_referer( 'string-translation', '_wpnonce_string-translation' );
229
 
230
  $strings = $this->get_strings();
231
- $mo = new MO();
232
 
233
  foreach ($this->get_languages_list() as $language) {
234
- $reader = new POMO_StringReader(base64_decode(get_option('polylang_mo'.$language->term_id)));
235
- $mo->import_from_reader($reader);
236
 
237
  foreach ($_POST['translation'][$language->name] as $key=>$translation) {
238
  $mo->add_entry($mo->make_entry($strings[$key]['string'], stripslashes($translation)));
239
  }
240
  // FIXME should I clean the mo object to remove unused strings ?
241
- // use base64_encode to store binary mo data in database text field
242
- global $wp_version;
243
- if (version_compare($wp_version, '3.3', '<')) {
244
- // backward compatibility for WP < 3.3
245
- require_once(PLL_INC . '/mo.php');
246
- update_option('polylang_mo'.$language->term_id, base64_encode(pll_mo_export($mo)));
247
- }
248
- else
249
- update_option('polylang_mo'.$language->term_id, base64_encode($mo->export())); // MO::export since WP 3.3
250
  }
251
 
252
  $paged = isset($_GET['paged']) ? '&paged='.$_GET['paged'] : '';
@@ -258,10 +260,10 @@ class Polylang_Admin extends Polylang_Base {
258
  check_admin_referer( 'options-lang', '_wpnonce_options-lang' );
259
 
260
  $options['default_lang'] = $_POST['default_lang'];
261
- $options['browser'] = isset($_POST['browser']) ? 1 : 0;
262
  $options['rewrite'] = $_POST['rewrite'];
263
- $options['hide_default'] = isset($_POST['hide_default']) ? 1 : 0;
264
- $options['force_lang'] = isset($_POST['force_lang']) ? 1 : 0;
 
265
  update_option('polylang', $options);
266
 
267
  // refresh refresh permalink structure and rewrite rules in case rewrite or hide_default options have been modified
@@ -270,16 +272,25 @@ class Polylang_Admin extends Polylang_Base {
270
 
271
  // fills existing posts & terms with default language
272
  if (isset($_POST['fill_languages'])) {
273
- if (isset($_POST['posts'])) {
274
- foreach(explode(',', $_POST['posts']) as $post_id) {
275
- $this->set_post_language($post_id, $options['default_lang']);
276
- }
277
- }
278
- if (isset($_POST['terms'])) {
279
- foreach(explode(',', $_POST['terms']) as $term_id) {
280
- $this->set_term_language($term_id, $options['default_lang']);
281
- }
 
 
282
  }
 
 
 
 
 
 
 
283
  }
284
  break;
285
 
@@ -295,9 +306,7 @@ class Polylang_Admin extends Polylang_Base {
295
  if (current_theme_supports('menus'))
296
  $tabs['menus'] = __('Menus','polylang'); // don't display the menu tab if the active theme does not support nav menus
297
 
298
- if (function_exists('base64_decode'))
299
- $tabs['strings'] = __('Strings translation','polylang'); // some hosts disable the function for security reasons
300
-
301
  $tabs['settings'] = __('Settings', 'polylang');
302
  }
303
 
@@ -336,11 +345,8 @@ class Polylang_Admin extends Polylang_Base {
336
  $data = $this->get_strings();
337
 
338
  // load translations
339
- $mo = new MO();
340
  foreach ($listlanguages as $language) {
341
- $reader = new POMO_StringReader(base64_decode(get_option('polylang_mo'.$language->term_id)));
342
- $mo->import_from_reader($reader);
343
-
344
  foreach ($data as $key=>$row) {
345
  $data[$key]['translations'][$language->name] = $mo->translate($data[$key]['string']);
346
  $data[$key]['row'] = $key; // store the row number for convenience
@@ -352,29 +358,8 @@ class Polylang_Admin extends Polylang_Base {
352
  break;
353
 
354
  case 'settings':
355
- //FIXME rework this as it would not be efficient in case of thousands posts or terms !
356
  // detects posts & pages without language set
357
- $q = array(
358
- 'numberposts'=>-1,
359
- 'post_type' => 'any',
360
- 'post_status'=>'any',
361
- 'fields' => 'ids',
362
- 'tax_query' => array(array(
363
- 'taxonomy'=> 'language',
364
- 'terms'=> get_terms('language', array('fields'=>'ids')),
365
- 'operator'=>'NOT IN'
366
- ))
367
- );
368
- $posts = implode(',', get_posts($q));
369
-
370
- // detects categories & post tags without language set
371
- $terms = get_terms(get_taxonomies(array('show_ui'=>true)), array('get'=>'all', 'fields'=>'ids'));
372
-
373
- foreach ($terms as $key => $term_id) {
374
- if ($this->get_term_language($term_id))
375
- unset($terms[$key]);
376
- }
377
- $terms = implode(',', $terms);
378
  break;
379
 
380
  default:
@@ -406,6 +391,30 @@ class Polylang_Admin extends Polylang_Base {
406
  return isset($error) ? $error : 0;
407
  }
408
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
409
  // downloads mofiles
410
  function download_mo($locale, $upgrade = false) {
411
  global $wp_version;
@@ -458,7 +467,7 @@ class Polylang_Admin extends Polylang_Base {
458
  continue;
459
 
460
  // try to download ms and continents-cities files if exist (will not return false if failed)
461
- // with new files introduced in 3.4
462
  foreach (array("ms", "continent-cities", "admin", "admin-network") as $file)
463
  wp_remote_get($base."$version/messages/$file-$locale.mo", $args + array('filename' => WP_LANG_DIR."/$file-$locale.mo"));
464
 
@@ -520,8 +529,7 @@ class Polylang_Admin extends Polylang_Base {
520
 
521
  $widget_settings = $wp_registered_widgets[$widget]['callback'][0]->get_settings();
522
  $number = $wp_registered_widgets[$widget]['params'][0]['number'];
523
- $title = $widget_settings[$number]['title'];
524
- if (isset($title) && $title)
525
  $this->register_string(__('Widget title', 'polylang'), $title);
526
  }
527
  }
6
  // setups the Polylang admin panel and calls for other admin related classes
7
  class Polylang_Admin extends Polylang_Base {
8
  function __construct() {
9
+ parent::__construct();
10
  new Polylang_Admin_Filters();
11
 
12
  // adds a 'settings' link in the plugins table
31
  // adds the link to the languages panel in the wordpress admin menu
32
  function add_menus() {
33
  add_submenu_page('options-general.php', __('Languages', 'polylang'), __('Languages', 'polylang'), 'manage_options', 'mlang', array(&$this, 'languages_page'));
34
+
35
+ // adds the about box the languages admin panel
36
+ // test of $_GET['tab'] avoids displaying the automatically generated screen options on other tabs
37
+ if (PLL_DISPLAY_ABOUT && (!isset($_GET['tab']) || $_GET['tab'] == 'lang'))
38
+ add_meta_box('pll_about_box', __('About Polylang', 'polylang'), array(&$this,'about'), 'settings_page_mlang', 'normal', 'high');
39
+ }
40
+
41
+ // displays the about metabox
42
+ function about() {
43
+ include(PLL_INC.'/about.php');
44
  }
45
 
46
  // used to update the translation when a language slug has been modified
89
  $error = $this->validate_lang();
90
 
91
  if ($error == 0) {
92
+ $r = wp_insert_term($_POST['name'],'language', array('slug'=>$_POST['slug'], 'description'=>$_POST['description']));
93
+ wp_update_term($r['term_id'], 'language', array('term_group'=>$_POST['term_group'])); // can't set the term group directly in wp_insert_term
94
  update_metadata('term', $r['term_id'], '_rtl', $_POST['rtl']);
95
 
96
  if (!isset($options['default_lang'])) { // if this is the first language created, set it as default language
121
  $this->delete_translations('post', $posts, $lang_slug);
122
 
123
  // update the language slug in categories & post tags meta
124
+ $terms= get_terms($this->taxonomies, array('get'=>'all', 'fields'=>'ids'));
125
  $this->delete_translations('term', $terms, $lang_slug);
126
 
127
  // FIXME should find something more efficient (with a sql query ?)
128
  foreach ($terms as $id) {
129
+ if (($lg = $this->get_term_language($id)) && $lg->term_id == $lang_id)
130
  $this->delete_term_language($id); // delete language of this term
131
  }
132
 
187
  $this->update_translations('post', $posts, $old_slug);
188
 
189
  // update the language slug in categories & post tags meta
190
+ $terms = get_terms($this->taxonomies, array('get'=>'all', 'fields'=>'ids'));
191
  $this->update_translations('term', $terms, $old_slug);
192
 
193
  // update menus locations
240
  check_admin_referer( 'string-translation', '_wpnonce_string-translation' );
241
 
242
  $strings = $this->get_strings();
 
243
 
244
  foreach ($this->get_languages_list() as $language) {
245
+ $mo = $this->mo_import($language);
 
246
 
247
  foreach ($_POST['translation'][$language->name] as $key=>$translation) {
248
  $mo->add_entry($mo->make_entry($strings[$key]['string'], stripslashes($translation)));
249
  }
250
  // FIXME should I clean the mo object to remove unused strings ?
251
+ $this->mo_export($mo, $language);
 
 
 
 
 
 
 
 
252
  }
253
 
254
  $paged = isset($_GET['paged']) ? '&paged='.$_GET['paged'] : '';
260
  check_admin_referer( 'options-lang', '_wpnonce_options-lang' );
261
 
262
  $options['default_lang'] = $_POST['default_lang'];
 
263
  $options['rewrite'] = $_POST['rewrite'];
264
+ foreach (array('browser', 'hide_default', 'force_lang', 'redirect_lang') as $key)
265
+ $options[$key] = isset($_POST[$key]) ? 1 : 0;
266
+
267
  update_option('polylang', $options);
268
 
269
  // refresh refresh permalink structure and rewrite rules in case rewrite or hide_default options have been modified
272
 
273
  // fills existing posts & terms with default language
274
  if (isset($_POST['fill_languages'])) {
275
+ global $wpdb;
276
+ $untranslated = $this->get_untranslated();
277
+ $lang = $this->get_language($options['default_lang']);
278
+
279
+ $values = array();
280
+ foreach ($untranslated['posts'] as $post_id)
281
+ $values[] = $wpdb->prepare("(%d, %d)", $post_id, $lang->term_taxonomy_id);
282
+
283
+ if ($values) {
284
+ $wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id) VALUES " . implode(',', $values));
285
+ wp_update_term_count($lang->term_taxonomy_id, 'language'); // updating term count is mandatory (thanks to AndyDeGroo)
286
  }
287
+
288
+ $values = array();
289
+ foreach ($untranslated['terms'] as $term_id)
290
+ $values[] = $wpdb->prepare("(%d, %s, %d)", $term_id, '_language', $lang->term_id);
291
+
292
+ if ($values)
293
+ $wpdb->query("INSERT INTO $wpdb->termmeta (term_id, meta_key, meta_value) VALUES " . implode(',', $values));
294
  }
295
  break;
296
 
306
  if (current_theme_supports('menus'))
307
  $tabs['menus'] = __('Menus','polylang'); // don't display the menu tab if the active theme does not support nav menus
308
 
309
+ $tabs['strings'] = __('Strings translation','polylang');
 
 
310
  $tabs['settings'] = __('Settings', 'polylang');
311
  }
312
 
345
  $data = $this->get_strings();
346
 
347
  // load translations
 
348
  foreach ($listlanguages as $language) {
349
+ $mo = $this->mo_import($language);
 
 
350
  foreach ($data as $key=>$row) {
351
  $data[$key]['translations'][$language->name] = $mo->translate($data[$key]['string']);
352
  $data[$key]['row'] = $key; // store the row number for convenience
358
  break;
359
 
360
  case 'settings':
 
361
  // detects posts & pages without language set
362
+ $untranslated = $this->get_untranslated();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
363
  break;
364
 
365
  default:
391
  return isset($error) ? $error : 0;
392
  }
393
 
394
+ // returns unstranslated posts and terms ids
395
+ function get_untranslated() {
396
+ $posts = get_posts(array(
397
+ 'numberposts'=> -1,
398
+ 'post_type' => $this->post_types,
399
+ 'post_status'=> 'any',
400
+ 'fields' => 'ids',
401
+ 'tax_query' => array(array(
402
+ 'taxonomy'=> 'language',
403
+ 'terms'=> get_terms('language', array('fields'=>'ids')),
404
+ 'operator'=> 'NOT IN'
405
+ ))
406
+ ));
407
+
408
+ global $wpdb;
409
+ $terms = get_terms($this->taxonomies, array('get'=>'all', 'fields'=>'ids'));
410
+ $tr_terms = $wpdb->get_col("SELECT t.term_id FROM $wpdb->terms AS t
411
+ LEFT JOIN $wpdb->termmeta AS tm ON t.term_id = tm.term_id
412
+ WHERE tm.meta_key = '_language'");
413
+ $terms = array_diff($terms, $tr_terms);
414
+
415
+ return empty($posts) && empty($terms) ? false : array('posts' => $posts, 'terms' => $terms);
416
+ }
417
+
418
  // downloads mofiles
419
  function download_mo($locale, $upgrade = false) {
420
  global $wp_version;
467
  continue;
468
 
469
  // try to download ms and continents-cities files if exist (will not return false if failed)
470
+ // with new files introduced in WP 3.4
471
  foreach (array("ms", "continent-cities", "admin", "admin-network") as $file)
472
  wp_remote_get($base."$version/messages/$file-$locale.mo", $args + array('filename' => WP_LANG_DIR."/$file-$locale.mo"));
473
 
529
 
530
  $widget_settings = $wp_registered_widgets[$widget]['callback'][0]->get_settings();
531
  $number = $wp_registered_widgets[$widget]['params'][0]['number'];
532
+ if (isset($widget_settings[$number]['title']) && $title = $widget_settings[$number]['title'])
 
533
  $this->register_string(__('Widget title', 'polylang'), $title);
534
  }
535
  }
include/api.php CHANGED
@@ -17,19 +17,25 @@ function pll_get_post($post_id, $slug = '') {
17
  function pll_get_term($term_id, $slug = '') {
18
  global $polylang;
19
  $slug = $slug ? $slug : reset(explode('_', get_locale()));
20
- return isset($polylang) ? $polylang->get_term($term_id, $slug) : null;
21
  }
22
 
23
  // acts as is_front_page but knows about translated front page
24
  function pll_is_front_page() {
25
  global $polylang;
26
- return isset($polylang) ? $polylang->is_front_page() : null;
 
 
 
 
 
 
27
  }
28
 
29
  // register strings for translation in the "strings translation" panel
30
  function pll_register_string($name, $string) {
31
  global $polylang;
32
- if ($polylang)
33
  $polylang->register_string($name, $string);
34
  }
35
 
17
  function pll_get_term($term_id, $slug = '') {
18
  global $polylang;
19
  $slug = $slug ? $slug : reset(explode('_', get_locale()));
20
+ return isset($polylang) ? $polylang->get_term($term_id, $slug) : null;
21
  }
22
 
23
  // acts as is_front_page but knows about translated front page
24
  function pll_is_front_page() {
25
  global $polylang;
26
+ return isset($polylang) ? $polylang->is_front_page() : is_front_page();
27
+ }
28
+
29
+ // returns the home url in the right language
30
+ function pll_home_url() {
31
+ global $polylang;
32
+ return isset($polylang) ? $polylang->get_home_url() : home_url('/');
33
  }
34
 
35
  // register strings for translation in the "strings translation" panel
36
  function pll_register_string($name, $string) {
37
  global $polylang;
38
+ if (isset($polylang))
39
  $polylang->register_string($name, $string);
40
  }
41
 
include/base.php CHANGED
@@ -5,11 +5,21 @@ abstract class Polylang_Base {
5
  protected $options;
6
  protected $home;
7
  protected $strings; // strings to translate
 
 
8
 
9
  function __construct() {
10
  // init options often needed
11
  $this->options = get_option('polylang');
12
  $this->home = get_option('home');
 
 
 
 
 
 
 
 
13
  }
14
 
15
  // returns the list of available languages
@@ -34,7 +44,7 @@ abstract class Polylang_Base {
34
  );
35
  }
36
  $out .= "</select>\n";
37
- return $out;
38
  }
39
 
40
  // returns the language by its id or its slug
@@ -75,7 +85,7 @@ abstract class Polylang_Base {
75
  $slug = array_search($id, $translations);
76
  unset($translations[$slug]);
77
  $tr = serialize($translations);
78
- foreach($translations as $key=>$p)
79
  update_metadata($type, (int) $p, '_translations', $tr);
80
  delete_metadata($type, $id, '_translations');
81
  }
@@ -104,7 +114,10 @@ abstract class Polylang_Base {
104
 
105
  // among the post and its translations, returns the id of the post which is in $lang
106
  function get_post($post_id, $lang) {
107
- $lang = $this->get_language($lang);
 
 
 
108
  return $this->get_post_language($post_id)->term_id == $lang->term_id ? $post_id : $this->get_translation('post', $post_id, $lang);
109
  }
110
 
@@ -129,7 +142,10 @@ abstract class Polylang_Base {
129
 
130
  // among the term and its translations, returns the id of the term which is in $lang
131
  function get_term($term_id, $lang) {
132
- $lang = $this->get_language($lang);
 
 
 
133
  return $this->get_term_language($term_id)->term_id == $lang->term_id ? $term_id : $this->get_translation('term', $term_id, $lang);
134
  }
135
 
@@ -145,17 +161,16 @@ abstract class Polylang_Base {
145
  }
146
 
147
  // special case for pages which do not accept adding the lang parameter
148
- // FIXME check if it's still the case for WP3.4
149
  elseif ('_get_page_link' != current_filter())
150
  return add_query_arg( 'lang', $lang->slug, $url );
151
-
152
  return $url;
153
  }
154
 
155
  // optionally rewrite posts, pages links to filter them by language
156
  // rewrite post format (and optionally categories and post tags) archives links to filter them by language
157
  function add_post_term_link_filters() {
158
- if ($this->options['force_lang']) {
159
  foreach (array('post_link', '_get_page_link', 'post_type_link') as $filter)
160
  add_filter($filter, array(&$this, 'post_link'), 10, 2);
161
  }
@@ -165,13 +180,12 @@ abstract class Polylang_Base {
165
 
166
  // modifies post & page links
167
  function post_link($link, $post) {
168
- $id = '_get_page_link' == current_filter() ? $post : $post->ID;
169
- return $this->add_language_to_link($link, $this->get_post_language($id));
170
  }
171
 
172
  // modifies term link
173
  function term_link($link, $term, $tax) {
174
- return $tax == 'post_format' || ($this->options['force_lang'] && $tax != 'language') ?
175
  $this->add_language_to_link($link, $this->get_term_language($term->term_id)) : $link;
176
  }
177
 
@@ -224,5 +238,23 @@ abstract class Polylang_Base {
224
  $this->strings[] = array('name'=> $name, 'string' => $string);
225
  }
226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  } //class Polylang_Base
228
  ?>
5
  protected $options;
6
  protected $home;
7
  protected $strings; // strings to translate
8
+ protected $post_types; // post types to filter by language
9
+ protected $taxonomies; // taxonomies to filter by language
10
 
11
  function __construct() {
12
  // init options often needed
13
  $this->options = get_option('polylang');
14
  $this->home = get_option('home');
15
+
16
+ add_action('init', array(&$this, 'init_base'), 999); // must come late to be sure all post types and taxonomies are registered
17
+ }
18
+
19
+ // init post types and taxonomies to filter by language
20
+ function init_base() {
21
+ $this->post_types = apply_filters('pll_get_post_types', get_post_types(array('show_ui' => true)));
22
+ $this->taxonomies = apply_filters('pll_get_taxonomies', get_taxonomies(array('show_ui'=>true)));
23
  }
24
 
25
  // returns the list of available languages
44
  );
45
  }
46
  $out .= "</select>\n";
47
+ return $out;
48
  }
49
 
50
  // returns the language by its id or its slug
85
  $slug = array_search($id, $translations);
86
  unset($translations[$slug]);
87
  $tr = serialize($translations);
88
+ foreach($translations as $p)
89
  update_metadata($type, (int) $p, '_translations', $tr);
90
  delete_metadata($type, $id, '_translations');
91
  }
114
 
115
  // among the post and its translations, returns the id of the post which is in $lang
116
  function get_post($post_id, $lang) {
117
+ if (!$lang)
118
+ return '';
119
+
120
+ $lang = $this->get_language($lang);
121
  return $this->get_post_language($post_id)->term_id == $lang->term_id ? $post_id : $this->get_translation('post', $post_id, $lang);
122
  }
123
 
142
 
143
  // among the term and its translations, returns the id of the term which is in $lang
144
  function get_term($term_id, $lang) {
145
+ if (!$lang)
146
+ return '';
147
+
148
+ $lang = $this->get_language($lang);
149
  return $this->get_term_language($term_id)->term_id == $lang->term_id ? $term_id : $this->get_translation('term', $term_id, $lang);
150
  }
151
 
161
  }
162
 
163
  // special case for pages which do not accept adding the lang parameter
 
164
  elseif ('_get_page_link' != current_filter())
165
  return add_query_arg( 'lang', $lang->slug, $url );
166
+
167
  return $url;
168
  }
169
 
170
  // optionally rewrite posts, pages links to filter them by language
171
  // rewrite post format (and optionally categories and post tags) archives links to filter them by language
172
  function add_post_term_link_filters() {
173
+ if ($this->options['force_lang'] && $GLOBALS['wp_rewrite']->using_permalinks()) {
174
  foreach (array('post_link', '_get_page_link', 'post_type_link') as $filter)
175
  add_filter($filter, array(&$this, 'post_link'), 10, 2);
176
  }
180
 
181
  // modifies post & page links
182
  function post_link($link, $post) {
183
+ return $this->add_language_to_link($link, $this->get_post_language('_get_page_link' == current_filter() ? $post : $post->ID));
 
184
  }
185
 
186
  // modifies term link
187
  function term_link($link, $term, $tax) {
188
+ return $tax == 'post_format' || ($this->options['force_lang'] && $GLOBALS['wp_rewrite']->using_permalinks() && $tax != 'language') ?
189
  $this->add_language_to_link($link, $this->get_term_language($term->term_id)) : $link;
190
  }
191
 
238
  $this->strings[] = array('name'=> $name, 'string' => $string);
239
  }
240
 
241
+ // export a mo object in options
242
+ function mo_export($mo, $lang) {
243
+ $strings = array();
244
+ foreach ($mo->entries as $entry)
245
+ $strings[] = array($entry->singular, $mo->translate($entry->singular));
246
+ update_option('polylang_mo'.$lang->term_id, $strings);
247
+ }
248
+
249
+ // import a mo object from options
250
+ function mo_import($lang) {
251
+ $mo = new MO();
252
+ if ($strings = get_option('polylang_mo'.$lang->term_id)) {
253
+ foreach ($strings as $msg)
254
+ $mo->add_entry($mo->make_entry($msg[0], $msg[1]));
255
+ }
256
+ return $mo;
257
+ }
258
+
259
  } //class Polylang_Base
260
  ?>
include/core.php CHANGED
@@ -6,7 +6,6 @@ class Polylang_Core extends Polylang_base {
6
  private $default_locale;
7
  private $list_textdomains = array(); // all text domains
8
  private $search_form_filter = false; // did we pass our get_search_form filter ?
9
- private $page_id;
10
 
11
  // options often needed
12
  private $page_for_posts;
@@ -25,8 +24,14 @@ class Polylang_Core extends Polylang_base {
25
  add_action('wp', array(&$this, 'load_textdomains'));
26
 
27
  // filters posts according to the language
28
- add_filter('pre_get_posts', array(&$this, 'pre_get_posts'));
29
- add_filter('wp', array(&$this, 'post_get_posts'));
 
 
 
 
 
 
30
  }
31
 
32
  // set these filters and actions only once the current language has been defined
@@ -34,6 +39,10 @@ class Polylang_Core extends Polylang_base {
34
  // filters the WordPress locale
35
  add_filter('locale', array(&$this, 'get_locale'));
36
 
 
 
 
 
37
  // filters categories and post tags by language
38
  add_filter('terms_clauses', array(&$this, 'terms_clauses'), 10, 3);
39
 
@@ -74,8 +83,6 @@ class Polylang_Core extends Polylang_base {
74
  add_filter('theme_mod_nav_menu_locations', array(&$this, 'nav_menu_locations'));
75
  add_filter('wp_nav_menu_args', array(&$this, 'wp_nav_menu_args'));
76
  add_filter('wp_nav_menu_items', array(&$this, 'wp_nav_menu_items'), 10, 2);
77
- add_filter('wp_nav_menu_objects', array(&$this, 'wp_nav_menu_objects'), 10, 2);
78
- add_filter('wp_page_menu', array(&$this, 'wp_page_menu'), 10, 2);
79
 
80
  // filters the widgets according to the current language
81
  add_filter('widget_display_callback', array(&$this, 'widget_display_callback'), 10, 3);
@@ -88,12 +95,12 @@ class Polylang_Core extends Polylang_base {
88
  // loads front page template on translated front page
89
  add_filter('template_include', array(&$this, 'template_include'));
90
 
91
- // modifies the home url
92
- add_filter('home_url', array(&$this, 'home_url'));
93
 
94
- // allows a new value for the 'show' parameter to display the homepage url according to the current language
95
- // FIXME Backward compatibility for versions < 0.5 -> replaced by a filter on home_url
96
- add_filter('bloginfo_url', array(&$this, 'bloginfo_url'), 10, 2);
97
 
98
  // Template tag: displays the language switcher
99
  // FIXME Backward compatibility for versions < 0.5 -> replaced by pll_the_languages
@@ -143,7 +150,6 @@ class Polylang_Core extends Polylang_base {
143
 
144
  // returns the current language
145
  function get_current_language() {
146
-
147
  if ($this->curlang)
148
  return $this->curlang;
149
 
@@ -158,7 +164,7 @@ class Polylang_Core extends Polylang_base {
158
  $lang = $this->get_post_language($var);
159
 
160
  else {
161
- foreach (get_taxonomies(array('show_ui'=>true)) as $taxonomy) {
162
  if ($var = get_query_var(get_taxonomy($taxonomy)->query_var))
163
  $lang = $this->get_term_language($var, $taxonomy);
164
  }
@@ -176,6 +182,11 @@ class Polylang_Core extends Polylang_base {
176
  return $this->curlang->description;
177
  }
178
 
 
 
 
 
 
179
  // saves all text domains in a table for later usage
180
  function mofile($bool, $domain, $mofile) {
181
  $this->list_textdomains[] = array ('mo' => $mofile, 'domain' => $domain);
@@ -205,14 +216,9 @@ class Polylang_Core extends Polylang_base {
205
  foreach ($this->list_textdomains as $textdomain)
206
  load_textdomain( $textdomain['domain'], str_replace($this->default_locale, $new_locale, $textdomain['mo']));
207
 
208
- // and finally load user defined strings (check first that base64_decode is not disabled)
209
- if (function_exists('base64_decode')) {
210
- global $l10n;
211
- $mo = new MO();
212
- $reader = new POMO_StringReader(base64_decode(get_option('polylang_mo'.$this->curlang->term_id)));
213
- $mo->import_from_reader($reader);
214
- $l10n['pll_string'] = &$mo;
215
- }
216
 
217
  // reinitializes wp_locale for weekdays and months, as well as for text direction
218
  global $wp_locale;
@@ -230,7 +236,8 @@ class Polylang_Core extends Polylang_base {
230
  return;
231
 
232
  // homepage is requested, let's set the language
233
- if (empty($query->query)) {
 
234
  // find out the language
235
  if ($this->options['hide_default'] && isset($_COOKIE['wordpress_polylang']))
236
  $this->curlang = $this->get_language($this->options['default_lang']);
@@ -246,51 +253,54 @@ class Polylang_Core extends Polylang_base {
246
  }
247
  // redirect to the home page in the right language
248
  else {
249
- if ($this->page_on_front && $link_id = $this->get_post($this->page_on_front, $this->curlang))
250
- $url = $this->add_language_to_link(_get_page_link($link_id), $this->curlang);
251
- else
252
- $url = $this->add_language_to_link(home_url(), $this->curlang);
253
-
254
- wp_redirect($url);
255
  exit;
256
  }
257
  }
258
 
 
 
 
 
 
 
 
259
  // sets is_home on translated home page when it displays posts
260
  // is_home must be true on page 2, 3... too
261
- if (!$this->page_on_front && $query->is_tax && (count($query->query) == 1 || (is_paged() && count($query->query) == 2))) {
262
  $query->is_home = true;
263
  $query->is_tax = false;
 
264
  }
265
 
266
  // sets the language for posts page in case the front page displays a static page
267
  if ($this->page_for_posts) {
268
  // If permalinks are used, WordPress does set and use $query->queried_object_id and sets $query->query_vars['page_id'] to 0
269
  // and does set and use $query->query_vars['page_id'] if permalinks are not used :(
270
- if (isset($query->queried_object_id))
271
- $this->page_id = $query->queried_object_id;
272
  elseif (isset($qvars['page_id']))
273
- $this->page_id = $qvars['page_id'];
274
 
275
- if (isset($this->page_id) && $this->page_id && $this->get_post($this->page_id, $this->get_post_language($this->page_for_posts)) == $this->page_for_posts) {
276
- $query->set('lang',$this->get_post_language($this->page_id)->slug);
277
- $query->queried_object_id = $this->page_for_posts;
278
- $query->query_vars['page_id'] = $this->page_for_posts; // FIXME the trick works but breaks .current-menu-item and .current_page_item
279
  $query->is_page = false;
280
  $query->is_home = true;
281
  $query->is_posts_page = true;
282
  $query->is_singular = false;
283
  }
284
  }
285
-
286
  // FIXME to generalize as I probably forget things
287
  $is_archive = (count($query->query) == 1 && isset($qvars['paged']) && $qvars['paged']) ||
288
  (isset($qvars['m']) && $qvars['m']) ||
289
  (isset($qvars['author']) && $qvars['author']) ||
290
- (isset($qvars['post_type']) && is_post_type_archive() && !in_array($qvars['post_type'], get_post_types(array('show_ui' => false))));
291
-
292
  // sets 404 when the language is not set for archives needing the language in the url
293
- if (!$this->options['hide_default'] && !isset($qvars['lang']) && !$GLOBALS['wp_rewrite']->using_permalinks() && $is_archive)
294
  $query->set_404();
295
 
296
  // sets the language in case we hide the default language
@@ -299,7 +309,7 @@ class Polylang_Core extends Polylang_base {
299
 
300
  // allow filtering recent posts by the current language
301
  // take care not to break queries for non visible post types such as nav_menu_items, attachments...
302
- if ($query->is_home && $this->curlang && (!isset($qvars['post_type']) || !in_array($qvars['post_type'], get_post_types(array('show_ui' => false)))))
303
  $query->set('lang', $this->curlang->slug);
304
 
305
  // remove pages query when the language is set unless we do a search
@@ -313,10 +323,12 @@ class Polylang_Core extends Polylang_base {
313
  !is_post_type_archive() && !is_date() && !is_author() && !is_category() && !is_tag() && !is_tax('post_format'))
314
  $query->is_archive = false;
315
 
316
- // unset the is_tax flag for authors pages
317
  // FIXME Probably I should do this for other cases
318
- if (isset($qvars['lang']) && $qvars['lang'] && is_author())
319
  $query->is_tax = false;
 
 
320
 
321
  // sets a language for theme preview
322
  if (isset($_GET['preview']))
@@ -332,21 +344,22 @@ class Polylang_Core extends Polylang_base {
332
  }
333
  }
334
 
335
- // used only for page for posts: after posts have been selected, come back to right page_id
336
- // may be useful for some plugins ?
337
- function post_get_posts() {
338
- if ($this->page_id) {
339
- global $wp_query;
340
- $wp_query->queried_object_id = $this->page_id;
341
- $wp_query->query_vars['page_id'] = $this->page_id;
342
  }
 
343
  }
344
 
345
  // filters categories and post tags by language when needed
346
  function terms_clauses($clauses, $taxonomies, $args) {
347
- // does nothing except on taxonomies which have show_ui set to 1 (includes category and post_tags)
348
  foreach ($taxonomies as $tax) {
349
- if (!get_taxonomy($tax)->show_ui)
350
  return $clauses;
351
  }
352
 
@@ -365,28 +378,32 @@ class Polylang_Core extends Polylang_base {
365
 
366
  // modifies the page link in case the front page is not in the default language
367
  function page_link($link, $id) {
368
- if ($this->page_on_front && $id == $this->get_post($this->page_on_front, $this->options['default_lang']))
369
- return home_url('/');
 
 
 
 
370
  return _get_page_link($id);
371
  }
372
 
373
  // prevents redirection of the homepage
374
  function redirect_canonical($redirect_url, $requested_url) {
375
- return $requested_url == _get_page_link($this->page_on_front) ? false : $redirect_url;
376
  }
377
 
378
  // adds some javascript workaround knowing it's not perfect...
379
  function wp_print_footer_scripts() {
380
- $js = '';
381
-
382
- // modifies the search form since filtering get_search_form won't work if the template uses searchform.php
383
  // don't use directly e[0] just in case there is somewhere else an element named 's'
384
  // check before if the hidden input has not already been introduced by get_search_form
 
 
385
  if (!$this->search_form_filter) {
386
  $lang = esc_js($this->curlang->slug);
387
- $js .= "e = document.getElementsByName('s');
388
  for (i = 0; i < e.length; i++) {
389
- if (e[i] == '[object HTMLInputElement]') {
390
  var ih = document.createElement('input');
391
  ih.type = 'hidden';
392
  ih.name = 'lang';
@@ -394,14 +411,12 @@ class Polylang_Core extends Polylang_base {
394
  e[i].parentNode.appendChild(ih);
395
  }
396
  }";
397
- }
398
-
399
- if ($js)
400
  echo "<script type='text/javascript'>" .$js. "</script>";
 
401
  }
402
 
403
  // adds the language information in the search form
404
- // does not work if searchform.php is used
405
  function get_search_form($form) {
406
  if ($form) {
407
  $this->search_form_filter = true;
@@ -455,14 +470,14 @@ class Polylang_Core extends Polylang_base {
455
  $url = get_permalink($id);
456
 
457
  // page for posts
458
- elseif (get_option('show_on_front') == 'page' && isset($wp_query->queried_object_id) &&
459
- $this->get_post($wp_query->queried_object_id, $language) == ($id = $this->get_post($this->page_for_posts, $language)))
460
  $url = get_permalink($id);
461
 
462
  elseif (is_page() && $id = $this->get_post($wp_query->queried_object_id, $language))
463
- $url = $hide && $id == $this->get_post($this->page_on_front, $language) ? $this->home : _get_page_link($id);
464
 
465
- elseif (!is_tax('post_format') && !is_tax('language') && (is_category() || is_tag() || is_tax ()) ) {
466
  $term = get_queried_object();
467
  $lang = $this->get_term_language($term->term_id);
468
  $taxonomy = $term->taxonomy;
@@ -495,8 +510,14 @@ class Polylang_Core extends Polylang_base {
495
  if (is_tax('post_format'))
496
  $url = esc_url($base.'type/'.$qvars['post_format'].'/');
497
 
498
- if (is_post_type_archive())
499
- $url = esc_url($base.$qvars['post_type'].'/');
 
 
 
 
 
 
500
  }
501
  else
502
  $url = $hide ? remove_query_arg('lang') : add_query_arg('lang', $language->slug);
@@ -538,49 +559,6 @@ class Polylang_Core extends Polylang_base {
538
  $items . $this->the_languages(array_merge($menu_lang[$args->theme_location], array('menu' => 1, 'echo' => 0))) : $items;
539
  }
540
 
541
- // corrects some issues on front page and post pages nav menus items
542
- function wp_nav_menu_objects($menu_items, $args) {
543
- global $wp_query;
544
-
545
- // corrects classes in the menu for posts page
546
- // FIXME check for child pages
547
- if ($wp_query->is_posts_page) {
548
- $classes = array('current-menu-item', 'current_page_item', 'current_page_parent');
549
- foreach($menu_items as $item) {
550
- $item->classes = array_diff($item->classes, $classes);
551
- if ($item->object_id == $this->get_post($this->page_for_posts, $this->curlang))
552
- $item->classes = array_merge($item->classes, $classes);
553
- }
554
- }
555
- return $menu_items;
556
- }
557
-
558
- // corrects the output of the function for translated home
559
- function wp_page_menu($menu, $args) {
560
- global $wp_query;
561
-
562
- // add current_page_item class to posts page
563
- if ($wp_query->is_posts_page) {
564
- $id = $this->get_post($this->page_for_posts, $this->curlang);
565
- $menu = str_replace('<li class="page_item page-item-'.$id.'">', '<li class="page_item page-item-'.$id.' current_page_item">', $menu);
566
- }
567
-
568
- // add current_page_item class to home page
569
- // normally only the homepage has no class. note the space in <li >
570
- if ($this->is_front_page() && !is_paged())
571
- $menu = str_replace('<li >', '<li class="current_page_item">', $menu);
572
-
573
- // remove the 2nd occurrence of homepage (when translated)
574
- if ($this->page_on_front) {
575
- $id = $this->get_post($this->page_on_front, $this->curlang);
576
- $url = _get_page_link($id);
577
- $title = apply_filters('the_title', get_page($id)->post_title);
578
- $menu = str_replace('<li class="page_item page-item-'.$id.'"><a href="'.$url.'">'.$title.'</a></li>', '', $menu);
579
- $menu = str_replace('<li class="page_item page-item-'.$id.' current_page_item"><a href="'.$url.'">'.$title.'</a></li>', '', $menu);
580
- }
581
- return $menu;
582
- }
583
-
584
  // filters the widgets according to the current language
585
  function widget_display_callback($instance, $widget, $args) {
586
  $widget_lang = get_option('polylang_widgets');
@@ -598,6 +576,11 @@ class Polylang_Core extends Polylang_base {
598
  return in_array($show, array('', 'name', 'description')) ? __($output, 'pll_string') : $output;
599
  }
600
 
 
 
 
 
 
601
  // acts as is_front_page but knows about translated front page
602
  function is_front_page() {
603
  return ('posts' == get_option('show_on_front') && is_home()) ||
@@ -610,45 +593,48 @@ class Polylang_Core extends Polylang_base {
610
  return ($this->is_front_page() && $front_page = get_front_page_template()) ? $front_page : $template;
611
  }
612
 
 
 
 
 
 
 
 
613
  // filters the home url to get the right language
614
  function home_url($url) {
615
- if ( !(did_action('template_redirect') && rtrim($url,'/') == rtrim($this->home,'/')) )
616
  return $url;
617
 
618
- // don't like this but at least for WP_Widget_Categories::widget, it seems to be the only solution
619
- // FIXME are there other exceptions ?
620
  foreach (debug_backtrace() as $trace) {
621
- $exceptions = $trace['function'] == 'get_pagenum_link' ||
622
- $trace['function'] == 'get_author_posts_url' ||
623
- $trace['function'] == 'get_search_form' ||
624
- (isset($trace['file']) && strpos($trace['file'], 'searchform.php')) ||
625
- ($trace['function'] == 'widget' && $trace['class'] == 'WP_Widget_Categories');
626
- if ($exceptions)
627
- return $url;
 
628
  }
629
- return $this->get_home_url($this->curlang);
 
630
  }
631
 
632
  // returns the home url in the right language
633
- function get_home_url($language) {
 
 
 
634
  if ($this->options['default_lang'] == $language->slug && $this->options['hide_default'])
635
  return trailingslashit($this->home);
636
 
637
- // a static page is used as front page
638
  if ($this->page_on_front && $id = $this->get_post($this->page_on_front, $language))
639
- $url = _get_page_link($id);
640
-
641
- return isset($url) ? $url : get_term_link($language, 'language');
642
- }
643
 
644
- // adds 'lang_url' as possible value to the 'show' parameter of bloginfo to display the home url in the correct language
645
- // FIXME not tested
646
- function bloginfo_url($output, $show) {
647
- if ($show == 'lang_url') {
648
- $url = $this->get_home_url($this->curlang);
649
- $output = isset($url) ? $url : $this->home;
650
- }
651
- return $output;
652
  }
653
 
654
  // displays the language switcher
@@ -660,6 +646,7 @@ class Polylang_Core extends Polylang_base {
660
  'menu' => '0', // not for nav menu
661
  'show_flags' => 0, // don't show flags
662
  'show_names' => 1, // show language names
 
663
  'force_home' => 0, // tries to find a translation (available only if display != dropdown)
664
  'hide_if_no_translation' => 0, // don't hide the link if there is no translation
665
  'hide_current' => 0, // don't hide current language
@@ -691,13 +678,15 @@ class Polylang_Core extends Polylang_base {
691
  $class .= $menu ? ' menu-item' : '';
692
 
693
  $flag = $show_flags ? $this->get_flag($language) : '';
694
- $name = $show_names || !$show_flags ? esc_html($language->name) : '';
695
 
696
  $output .= sprintf("<li class='%s'><a hreflang='%s' href='%s'>%s</a></li>\n",
697
  $class, esc_attr($language->slug), esc_url($url), $show_flags && $show_names ? $flag.'&nbsp;'.$name : $flag.$name);
698
  }
699
  }
700
 
 
 
701
  if ($echo)
702
  echo $output;
703
  else
6
  private $default_locale;
7
  private $list_textdomains = array(); // all text domains
8
  private $search_form_filter = false; // did we pass our get_search_form filter ?
 
9
 
10
  // options often needed
11
  private $page_for_posts;
24
  add_action('wp', array(&$this, 'load_textdomains'));
25
 
26
  // filters posts according to the language
27
+ add_filter('pre_get_posts', array(&$this, 'pre_get_posts'));;
28
+
29
+ // filter sticky posts by current language
30
+ add_filter('option_sticky_posts', array(&$this, 'option_sticky_posts'));
31
+
32
+ // translates page for posts and page on front
33
+ add_filter('option_page_for_posts', array(&$this, 'translate_page'));
34
+ add_filter('option_page_on_front', array(&$this, 'translate_page'));
35
  }
36
 
37
  // set these filters and actions only once the current language has been defined
39
  // filters the WordPress locale
40
  add_filter('locale', array(&$this, 'get_locale'));
41
 
42
+ // modifies the language information in rss feed
43
+ // useful if WP < 3.4
44
+ add_filter('option_rss_language', array(&$this, 'option_rss_language'));
45
+
46
  // filters categories and post tags by language
47
  add_filter('terms_clauses', array(&$this, 'terms_clauses'), 10, 3);
48
 
83
  add_filter('theme_mod_nav_menu_locations', array(&$this, 'nav_menu_locations'));
84
  add_filter('wp_nav_menu_args', array(&$this, 'wp_nav_menu_args'));
85
  add_filter('wp_nav_menu_items', array(&$this, 'wp_nav_menu_items'), 10, 2);
 
 
86
 
87
  // filters the widgets according to the current language
88
  add_filter('widget_display_callback', array(&$this, 'widget_display_callback'), 10, 3);
95
  // loads front page template on translated front page
96
  add_filter('template_include', array(&$this, 'template_include'));
97
 
98
+ // add home class to body classes on translated frontpage
99
+ add_filter('body_class', array(&$this, 'body_class'));
100
 
101
+ // modifies the home url
102
+ if (PLL_FILTER_HOME_URL)
103
+ add_filter('home_url', array(&$this, 'home_url'));
104
 
105
  // Template tag: displays the language switcher
106
  // FIXME Backward compatibility for versions < 0.5 -> replaced by pll_the_languages
150
 
151
  // returns the current language
152
  function get_current_language() {
 
153
  if ($this->curlang)
154
  return $this->curlang;
155
 
164
  $lang = $this->get_post_language($var);
165
 
166
  else {
167
+ foreach ($this->taxonomies as $taxonomy) {
168
  if ($var = get_query_var(get_taxonomy($taxonomy)->query_var))
169
  $lang = $this->get_term_language($var, $taxonomy);
170
  }
182
  return $this->curlang->description;
183
  }
184
 
185
+ // modifies the language information in rss feed
186
+ function option_rss_language($value) {
187
+ return get_bloginfo_rss('language');
188
+ }
189
+
190
  // saves all text domains in a table for later usage
191
  function mofile($bool, $domain, $mofile) {
192
  $this->list_textdomains[] = array ('mo' => $mofile, 'domain' => $domain);
216
  foreach ($this->list_textdomains as $textdomain)
217
  load_textdomain( $textdomain['domain'], str_replace($this->default_locale, $new_locale, $textdomain['mo']));
218
 
219
+ // and finally load user defined strings
220
+ global $l10n;
221
+ $l10n['pll_string'] = $this->mo_import($this->curlang);
 
 
 
 
 
222
 
223
  // reinitializes wp_locale for weekdays and months, as well as for text direction
224
  global $wp_locale;
236
  return;
237
 
238
  // homepage is requested, let's set the language
239
+ // second check not to break wp-signup & wp-activate
240
+ if (empty($query->query) && home_url('/') == trailingslashit((is_ssl() ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) {
241
  // find out the language
242
  if ($this->options['hide_default'] && isset($_COOKIE['wordpress_polylang']))
243
  $this->curlang = $this->get_language($this->options['default_lang']);
253
  }
254
  // redirect to the home page in the right language
255
  else {
256
+ wp_redirect($this->get_home_url($this->curlang));
 
 
 
 
 
257
  exit;
258
  }
259
  }
260
 
261
+ // redirect the language page to the homepage
262
+ if ($this->options['redirect_lang'] && is_tax('language') && count($query->query) == 1 && $this->page_on_front) {
263
+ $this->curlang = $this->get_language(get_query_var('lang'));
264
+ $query->parse_query('page_id='.$this->get_post($this->page_on_front, $this->curlang));
265
+ return;
266
+ }
267
+
268
  // sets is_home on translated home page when it displays posts
269
  // is_home must be true on page 2, 3... too
270
+ if (!$this->page_on_front && is_tax('language') && (count($query->query) == 1 || (is_paged() && count($query->query) == 2))) {
271
  $query->is_home = true;
272
  $query->is_tax = false;
273
+ $this->curlang = $this->get_language(get_query_var('lang')); // sets the language now otherwise it will be too late to filter sticky posts !
274
  }
275
 
276
  // sets the language for posts page in case the front page displays a static page
277
  if ($this->page_for_posts) {
278
  // If permalinks are used, WordPress does set and use $query->queried_object_id and sets $query->query_vars['page_id'] to 0
279
  // and does set and use $query->query_vars['page_id'] if permalinks are not used :(
280
+ if (isset($qvars['pagename']) && $qvars['pagename'] && isset($query->queried_object_id))
281
+ $page_id = $query->queried_object_id;
282
  elseif (isset($qvars['page_id']))
283
+ $page_id = $qvars['page_id'];
284
 
285
+ if (isset($page_id) && $page_id && $this->get_post($page_id, $this->get_post_language($this->page_for_posts)) == $this->page_for_posts) {
286
+ $this->page_for_posts = $page_id;
287
+ $this->curlang = $this->get_post_language($page_id);
288
+ $query->set('lang', $this->curlang->slug);
289
  $query->is_page = false;
290
  $query->is_home = true;
291
  $query->is_posts_page = true;
292
  $query->is_singular = false;
293
  }
294
  }
295
+
296
  // FIXME to generalize as I probably forget things
297
  $is_archive = (count($query->query) == 1 && isset($qvars['paged']) && $qvars['paged']) ||
298
  (isset($qvars['m']) && $qvars['m']) ||
299
  (isset($qvars['author']) && $qvars['author']) ||
300
+ (isset($qvars['post_type']) && is_post_type_archive() && in_array($qvars['post_type'], $this->post_types));
301
+
302
  // sets 404 when the language is not set for archives needing the language in the url
303
+ if (!$this->options['hide_default'] && !isset($qvars['lang']) && !$GLOBALS['wp_rewrite']->using_permalinks() && $is_archive)
304
  $query->set_404();
305
 
306
  // sets the language in case we hide the default language
309
 
310
  // allow filtering recent posts by the current language
311
  // take care not to break queries for non visible post types such as nav_menu_items, attachments...
312
+ if ($query->is_home && $this->curlang && (!isset($qvars['post_type']) || in_array($qvars['post_type'], $this->post_types)))
313
  $query->set('lang', $this->curlang->slug);
314
 
315
  // remove pages query when the language is set unless we do a search
323
  !is_post_type_archive() && !is_date() && !is_author() && !is_category() && !is_tag() && !is_tax('post_format'))
324
  $query->is_archive = false;
325
 
326
+ // unset the is_tax flag for authors pages and post types archives
327
  // FIXME Probably I should do this for other cases
328
+ if (isset($qvars['lang']) && $qvars['lang'] && (is_author() || is_post_type_archive())) {
329
  $query->is_tax = false;
330
+ unset($query->queried_object);
331
+ }
332
 
333
  // sets a language for theme preview
334
  if (isset($_GET['preview']))
344
  }
345
  }
346
 
347
+ // filter sticky posts by current language
348
+ function option_sticky_posts($posts) {
349
+ if ($this->curlang && !empty($posts)) {
350
+ foreach ($posts as $key=>$post_id) {
351
+ if ($this->get_post_language($post_id)->term_id != $this->curlang->term_id)
352
+ unset($posts[$key]);
353
+ }
354
  }
355
+ return $posts;
356
  }
357
 
358
  // filters categories and post tags by language when needed
359
  function terms_clauses($clauses, $taxonomies, $args) {
360
+ // does nothing except on taxonomies which are filterable
361
  foreach ($taxonomies as $tax) {
362
+ if (!in_array($tax, $this->taxonomies))
363
  return $clauses;
364
  }
365
 
378
 
379
  // modifies the page link in case the front page is not in the default language
380
  function page_link($link, $id) {
381
+ if ($this->options['redirect_lang'] && $this->page_on_front && $id == $this->get_post($this->page_on_front, $lang = $this->get_post_language($id)))
382
+ return $this->options['hide_default'] && $lang->slug == $this->options['default_lang'] ? trailingslashit($this->home) : get_term_link($lang, 'language');
383
+
384
+ if ($this->page_on_front && $this->options['hide_default'] && $id == $this->get_post($this->page_on_front, $this->options['default_lang']))
385
+ return trailingslashit($this->home);
386
+
387
  return _get_page_link($id);
388
  }
389
 
390
  // prevents redirection of the homepage
391
  function redirect_canonical($redirect_url, $requested_url) {
392
+ return $requested_url == home_url('/') || $requested_url == $this->page_link('', get_option('page_on_front')) ? false : $redirect_url;
393
  }
394
 
395
  // adds some javascript workaround knowing it's not perfect...
396
  function wp_print_footer_scripts() {
397
+ // modifies the search form since filtering get_search_form won't work if the template uses searchform.php or the search form is hardcoded
 
 
398
  // don't use directly e[0] just in case there is somewhere else an element named 's'
399
  // check before if the hidden input has not already been introduced by get_search_form
400
+ // thanks to AndyDeGroo for improving the code for compatility with older browsers
401
+ // http://wordpress.org/support/topic/development-of-polylang-version-08?replies=6#post-2645559
402
  if (!$this->search_form_filter) {
403
  $lang = esc_js($this->curlang->slug);
404
+ $js = "e = document.getElementsByName('s');
405
  for (i = 0; i < e.length; i++) {
406
+ if (e[i].tagName.toUpperCase() == 'INPUT') {
407
  var ih = document.createElement('input');
408
  ih.type = 'hidden';
409
  ih.name = 'lang';
411
  e[i].parentNode.appendChild(ih);
412
  }
413
  }";
 
 
 
414
  echo "<script type='text/javascript'>" .$js. "</script>";
415
+ }
416
  }
417
 
418
  // adds the language information in the search form
419
+ // does not work if searchform.php is used or if the search form is hardcoded in another template file
420
  function get_search_form($form) {
421
  if ($form) {
422
  $this->search_form_filter = true;
470
  $url = get_permalink($id);
471
 
472
  // page for posts
473
+ elseif (get_option('show_on_front') == 'page' && isset($wp_query->queried_object_id) && $wp_query->queried_object_id &&
474
+ $wp_query->queried_object_id == $this->page_for_posts && ($id = $this->get_post($this->page_for_posts, $language)))
475
  $url = get_permalink($id);
476
 
477
  elseif (is_page() && $id = $this->get_post($wp_query->queried_object_id, $language))
478
+ $url = $hide && $id == $this->get_post($this->page_on_front, $language) ? $this->home : get_page_link($id);
479
 
480
+ elseif (!is_tax('post_format') && !is_tax('language') && (is_category() || is_tag() || is_tax()) ) {
481
  $term = get_queried_object();
482
  $lang = $this->get_term_language($term->term_id);
483
  $taxonomy = $term->taxonomy;
510
  if (is_tax('post_format'))
511
  $url = esc_url($base.'type/'.$qvars['post_format'].'/');
512
 
513
+ if (is_post_type_archive()){
514
+ // custom post types can have a different slug than the post type name
515
+ // thanks to AndyDeGroo for pointing that out
516
+ // http://wordpress.org/support/topic/plugin-polylang-problems-with-custom-post-type-archive-titles?replies=6#post-2640861
517
+ $cpt_rewrite = get_post_type_object($qvars['post_type'])->rewrite;
518
+ $cpt_slug = isset($cpt_rewrite['slug']) ? $cpt_rewrite['slug'] : $qvars['post_type'];
519
+ $url = esc_url($base.$cpt_slug.'/');
520
+ }
521
  }
522
  else
523
  $url = $hide ? remove_query_arg('lang') : add_query_arg('lang', $language->slug);
559
  $items . $this->the_languages(array_merge($menu_lang[$args->theme_location], array('menu' => 1, 'echo' => 0))) : $items;
560
  }
561
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
562
  // filters the widgets according to the current language
563
  function widget_display_callback($instance, $widget, $args) {
564
  $widget_lang = get_option('polylang_widgets');
576
  return in_array($show, array('', 'name', 'description')) ? __($output, 'pll_string') : $output;
577
  }
578
 
579
+ // translates page for posts and page on front
580
+ function translate_page($value) {
581
+ return isset($this->curlang) && $value ? $this->get_post($value, $this->curlang) : $value;
582
+ }
583
+
584
  // acts as is_front_page but knows about translated front page
585
  function is_front_page() {
586
  return ('posts' == get_option('show_on_front') && is_home()) ||
593
  return ($this->is_front_page() && $front_page = get_front_page_template()) ? $front_page : $template;
594
  }
595
 
596
+ // add home class to body classes on translated frontpage
597
+ function body_class($classes) {
598
+ if ($this->is_front_page() && !is_front_page())
599
+ array_unshift($classes, 'home');
600
+ return $classes;
601
+ }
602
+
603
  // filters the home url to get the right language
604
  function home_url($url) {
605
+ if (!did_action('template_redirect') || rtrim($url,'/') != $this->home)
606
  return $url;
607
 
608
+ $theme = get_theme_root();
 
609
  foreach (debug_backtrace() as $trace) {
610
+ $ok = $trace['function'] == 'wp_nav_menu' ||
611
+ // direct call from the theme
612
+ (isset($trace['file']) && !strpos($trace['file'], 'searchform.php') && strpos($trace['file'], $theme) !== false &&
613
+ in_array($trace['function'], array('home_url', 'bloginfo', 'get_bloginfo')) );
614
+
615
+ if ($ok) {
616
+ return $this->get_home_url($this->curlang);
617
+ }
618
  }
619
+
620
+ return $url;
621
  }
622
 
623
  // returns the home url in the right language
624
+ function get_home_url($language = '') {
625
+ if ($language == '')
626
+ $language = $this->curlang;
627
+
628
  if ($this->options['default_lang'] == $language->slug && $this->options['hide_default'])
629
  return trailingslashit($this->home);
630
 
631
+ // a static page is used as front page : /!\ don't use get_page_link to avoid infinite loop
632
  if ($this->page_on_front && $id = $this->get_post($this->page_on_front, $language))
633
+ return $this->options['force_lang'] && !$this->options['redirect_lang'] && $GLOBALS['wp_rewrite']->using_permalinks() ?
634
+ $this->add_language_to_link($this->page_link('', $id), $this->curlang) :
635
+ $this->page_link('', $id);
 
636
 
637
+ return get_term_link($language, 'language');
 
 
 
 
 
 
 
638
  }
639
 
640
  // displays the language switcher
646
  'menu' => '0', // not for nav menu
647
  'show_flags' => 0, // don't show flags
648
  'show_names' => 1, // show language names
649
+ 'display_names_as' => 'name', // valid options are slug and name
650
  'force_home' => 0, // tries to find a translation (available only if display != dropdown)
651
  'hide_if_no_translation' => 0, // don't hide the link if there is no translation
652
  'hide_current' => 0, // don't hide current language
678
  $class .= $menu ? ' menu-item' : '';
679
 
680
  $flag = $show_flags ? $this->get_flag($language) : '';
681
+ $name = $show_names || !$show_flags ? esc_html($display_names_as == 'slug' ? $language->slug : $language->name) : '';
682
 
683
  $output .= sprintf("<li class='%s'><a hreflang='%s' href='%s'>%s</a></li>\n",
684
  $class, esc_attr($language->slug), esc_url($url), $show_flags && $show_names ? $flag.'&nbsp;'.$name : $flag.$name);
685
  }
686
  }
687
 
688
+ $output = apply_filters('pll_the_languages', $output, $args);
689
+
690
  if ($echo)
691
  echo $output;
692
  else
include/languages-form.php CHANGED
@@ -22,7 +22,10 @@ if (isset($_GET['error'])) {?>
22
  <div id="col-right">
23
  <div class="col-wrap"><?php
24
  // displays the language list in a table
25
- $list_table->display(); ?>
 
 
 
26
  </div><!-- col-wrap -->
27
  </div><!-- col-right -->
28
 
@@ -103,7 +106,17 @@ if (isset($_GET['error'])) {?>
103
  </div><!-- form-wrap -->
104
  </div><!-- col-wrap -->
105
  </div><!-- col-left -->
106
- </div><!-- col-container --><?php
 
 
 
 
 
 
 
 
 
 
107
  break;
108
 
109
  // menu tab
@@ -177,13 +190,7 @@ case 'settings': ?>
177
  </tr><?php
178
 
179
  // posts or terms without language set
180
- if (!empty($posts) || !empty($terms) && $options['default_lang']) {
181
-
182
- if (!empty($posts))
183
- echo '<input type="hidden" name="posts" value="'.esc_attr($posts).'" />';
184
- if (!empty($terms))
185
- echo '<input type="hidden" name="terms" value="'.esc_attr($terms).'" />';?>
186
-
187
  <tr>
188
  <th></th>
189
  <td>
@@ -243,6 +250,13 @@ case 'settings': ?>
243
  __('Add language information to all URL including posts, pages, categories and post tags (not recommended)', 'polylang')
244
  );?>
245
  </label>
 
 
 
 
 
 
 
246
  </td>
247
  </tr>
248
 
22
  <div id="col-right">
23
  <div class="col-wrap"><?php
24
  // displays the language list in a table
25
+ $list_table->display();?>
26
+ <div class="metabox-holder"><?php
27
+ do_meta_boxes('settings_page_mlang', 'normal', array());?>
28
+ </div>
29
  </div><!-- col-wrap -->
30
  </div><!-- col-right -->
31
 
106
  </div><!-- form-wrap -->
107
  </div><!-- col-wrap -->
108
  </div><!-- col-left -->
109
+ </div><!-- col-container -->
110
+ <script type="text/javascript">
111
+ //<![CDATA[
112
+ jQuery(document).ready( function($) {
113
+ // close postboxes that should be closed
114
+ $('.if-js-closed').removeClass('if-js-closed').addClass('closed');
115
+ // postboxes setup
116
+ postboxes.add_postbox_toggles('settings_page_mlang');
117
+ });
118
+ //]]>
119
+ </script><?php
120
  break;
121
 
122
  // menu tab
190
  </tr><?php
191
 
192
  // posts or terms without language set
193
+ if ($untranslated && $options['default_lang']) {?>
 
 
 
 
 
 
194
  <tr>
195
  <th></th>
196
  <td>
250
  __('Add language information to all URL including posts, pages, categories and post tags (not recommended)', 'polylang')
251
  );?>
252
  </label>
253
+ <label><?php
254
+ printf(
255
+ '<input name="redirect_lang" type="checkbox" value="1" %s /> %s',
256
+ $options['redirect_lang'] ? 'checked="checked"' :'',
257
+ sprintf(__('Redirect the language page (example: %s) to the homepage in the right language', 'polylang'), '<code>'.esc_html(home_url('en/')).'</code>')
258
+ );?>
259
+ </label>
260
  </td>
261
  </tr>
262
 
include/languages.php CHANGED
@@ -36,6 +36,7 @@ $languages = array(
36
  array('jv', 'jv_ID', 'Basa Jawa'),
37
  array('ka', 'ka_GE', 'ქართული'),
38
  array('ko', 'ko_KR', '한국어'),
 
39
  array('lv', 'lv', 'Latviešu valoda'),
40
  array('mk', 'mk_MK', 'македонски јазик'),
41
  array('my', 'my_MM', 'ဗမာစာ'),
36
  array('jv', 'jv_ID', 'Basa Jawa'),
37
  array('ka', 'ka_GE', 'ქართული'),
38
  array('ko', 'ko_KR', '한국어'),
39
+ array('ku', 'ckb', 'کوردی', 'rtl'),
40
  array('lv', 'lv', 'Latviešu valoda'),
41
  array('mk', 'mk_MK', 'македонски јазик'),
42
  array('my', 'my_MM', 'ဗမာစာ'),
include/mo.php DELETED
@@ -1,56 +0,0 @@
1
- <?php
2
- // Backward compatibility for WP versions older than 3.3, in which the method MO::export does not exist
3
- // FIXME to be removed once WP 3.2.1 and older versions is no more supported
4
-
5
- function pll_mo_export($mo) {
6
- $tmp_fh = fopen("php://temp", 'r+');
7
- if ( !$tmp_fh ) return false;
8
- pll_mo_export_to_file_handle( $mo, $tmp_fh );
9
- rewind( $tmp_fh );
10
- return stream_get_contents( $tmp_fh );
11
- }
12
-
13
- function pll_mo_export_to_file_handle($mo, $fh) {
14
- $entries = array_filter($mo->entries, create_function('$e', 'return !empty($e->translations);'));
15
- ksort($entries);
16
- $magic = 0x950412de;
17
- $revision = 0;
18
- $total = count($entries) + 1; // all the headers are one entry
19
- $originals_lenghts_addr = 28;
20
- $translations_lenghts_addr = $originals_lenghts_addr + 8 * $total;
21
- $size_of_hash = 0;
22
- $hash_addr = $translations_lenghts_addr + 8 * $total;
23
- $current_addr = $hash_addr;
24
- fwrite($fh, pack('V*', $magic, $revision, $total, $originals_lenghts_addr,
25
- $translations_lenghts_addr, $size_of_hash, $hash_addr));
26
- fseek($fh, $originals_lenghts_addr);
27
-
28
- // headers' msgid is an empty string
29
- fwrite($fh, pack('VV', 0, $current_addr));
30
- $current_addr++;
31
- $originals_table = chr(0);
32
-
33
- foreach($entries as $entry) {
34
- $originals_table .= $mo->export_original($entry) . chr(0);
35
- $length = strlen($mo->export_original($entry));
36
- fwrite($fh, pack('VV', $length, $current_addr));
37
- $current_addr += $length + 1; // account for the NULL byte after
38
- }
39
-
40
- $exported_headers = $mo->export_headers();
41
- fwrite($fh, pack('VV', strlen($exported_headers), $current_addr));
42
- $current_addr += strlen($exported_headers) + 1;
43
- $translations_table = $exported_headers . chr(0);
44
-
45
- foreach($entries as $entry) {
46
- $translations_table .= $mo->export_translations($entry) . chr(0);
47
- $length = strlen($mo->export_translations($entry));
48
- fwrite($fh, pack('VV', $length, $current_addr));
49
- $current_addr += $length + 1;
50
- }
51
-
52
- fwrite($fh, $originals_table);
53
- fwrite($fh, $translations_table);
54
- return true;
55
- }
56
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/polylang-de_DE.po CHANGED
@@ -19,13 +19,13 @@ msgstr ""
19
  "X-Poedit-SearchPath-0: ..\n"
20
  "X-Textdomain-Support: yes"
21
 
22
- #: polylang.php:185
23
  #@ polylang
24
  msgid "Error: Restore of local flags failed!"
25
  msgstr "Fehler: Wiederherstellung der lokalen Fahnen fehlgeschlagen!"
26
 
27
- #: include/admin-filters.php:512
28
- #: include/admin-filters.php:529
29
  #: include/list-table.php:12
30
  #: include/post-translations.php:4
31
  #: include/term-translations.php:15
@@ -33,8 +33,8 @@ msgstr "Fehler: Wiederherstellung der lokalen Fahnen fehlgeschlagen!"
33
  msgid "Language"
34
  msgstr "Sprache"
35
 
36
- #: include/admin-filters.php:514
37
- #: include/admin-filters.php:532
38
  #@ polylang
39
  msgid "Sets the language"
40
  msgstr "definiert die Sprache"
@@ -54,77 +54,77 @@ msgstr "Zeigt einen Sprachenumschalter"
54
  msgid "Title:"
55
  msgstr "Titel :"
56
 
57
- #: include/admin.php:482
58
  #@ polylang
59
  msgid "Displays language names"
60
  msgstr "Darstellung der Namen der Sprachen"
61
 
62
- #: include/admin.php:483
63
  #@ polylang
64
  msgid "Displays flags"
65
  msgstr "Darstellung der Fahnen"
66
 
67
- #: include/admin.php:488
68
  #@ polylang
69
  msgid "Displays as dropdown"
70
  msgstr "Als Auswahlbox darstellen"
71
 
72
- #: include/admin.php:484
73
  #@ polylang
74
  msgid "Forces link to front page"
75
  msgstr "Erzwingt einen Link zur Startseite"
76
 
77
- #: include/admin.php:25
78
- #: include/admin.php:298
79
  #@ default
80
  #@ polylang
81
  msgid "Settings"
82
  msgstr "Einstellungen"
83
 
84
- #: include/admin-filters.php:185
85
- #: include/admin.php:32
86
- #: include/admin.php:291
87
  #: include/list-table.php:13
88
  #@ polylang
89
  msgid "Languages"
90
  msgstr "Sprachen"
91
 
92
- #: include/admin.php:296
93
  #@ polylang
94
  msgid "Menus"
95
  msgstr "Menüs"
96
 
97
- #: include/admin.php:316
98
  #@ polylang
99
  msgid "Enter a valid WorPress locale"
100
  msgstr "Bitte geben Sie eine gültige Sprachdatei an"
101
 
102
- #: include/admin.php:317
103
  #@ polylang
104
  msgid "The language code must be 2 characters long"
105
  msgstr "Der Sprachcode muss 2 Buchstaben betragen"
106
 
107
- #: include/admin.php:318
108
  #@ polylang
109
  msgid "The language code must be unique"
110
  msgstr "Der Sprachcode muss eindeutig sein"
111
 
112
- #: include/admin.php:319
113
  #@ polylang
114
  msgid "The language must have a name"
115
  msgstr "Die Sprache muss einen Namen haben"
116
 
117
- #: include/admin.php:487
118
  #@ polylang
119
  msgid "Displays a language switcher at the end of the menu"
120
  msgstr "Zeigt einen Sprachenumschalter am Ende des Menüs"
121
 
122
- #: include/admin-filters.php:202
123
  #@ polylang
124
  msgid "Page's language:"
125
  msgstr "Sprache der Seite :"
126
 
127
- #: include/admin-filters.php:202
128
  #@ polylang
129
  msgid "Post's language:"
130
  msgstr "Sprache des Artikels :"
@@ -156,28 +156,28 @@ msgstr "Bearbeiten"
156
  msgid "Add new"
157
  msgstr "Hinzufügen"
158
 
159
- #: include/admin-filters.php:172
160
  #@ polylang
161
  msgid "Show all languages"
162
  msgstr "Alle Sprachen anzeigen"
163
 
164
- #: include/admin-filters.php:714
165
  #@ polylang
166
  msgid "Theme locations and languages"
167
  msgstr "Verortung der Vorlage und Sprachen"
168
 
169
- #: include/admin-filters.php:719
170
  #, php-format
171
  #@ polylang
172
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
173
  msgstr "Du solltest zur %sSprachenseite%s gehen, um die Verortung der Vorlage und die Sprachen einzustellen."
174
 
175
- #: include/admin-filters.php:730
176
  #@ polylang
177
  msgid "The widget is displayed for:"
178
  msgstr "Zeigt das Widget für :"
179
 
180
- #: include/base.php:33
181
  #@ polylang
182
  msgid "All languages"
183
  msgstr "Alle Sprachen"
@@ -187,13 +187,13 @@ msgstr "Alle Sprachen"
187
  msgid "Delete"
188
  msgstr "Löschen"
189
 
190
- #: include/languages-form.php:67
191
  #: include/list-table.php:45
192
  #@ polylang
193
  msgid "Full name"
194
  msgstr "Name"
195
 
196
- #: include/languages-form.php:73
197
  #: include/list-table.php:46
198
  #@ polylang
199
  msgid "Locale"
@@ -214,7 +214,7 @@ msgstr "Fahne"
214
  msgid "Posts"
215
  msgstr "Artikel"
216
 
217
- #. translators: Calendar caption: 1: month name, 2: 4-digit year
218
  #: include/calendar.php:106
219
  #, php-format
220
  #@ default
@@ -229,93 +229,93 @@ msgstr "%1$s %2$s"
229
  msgid "View posts for %1$s %2$s"
230
  msgstr "Siehe Artikel für %1$s %2$s"
231
 
232
- #: include/languages-form.php:33
233
  #@ polylang
234
  msgid "Edit language"
235
  msgstr "Sprache bearbeiten"
236
 
237
- #: include/languages-form.php:33
238
- #: include/languages-form.php:98
239
  #@ polylang
240
  msgid "Add new language"
241
  msgstr "Neue Sprache hinzufügen"
242
 
243
- #: include/languages-form.php:55
244
  #@ polylang
245
  msgid "Choose a language"
246
  msgstr "Sprache auswählen"
247
 
248
- #: include/languages-form.php:63
249
  #@ polylang
250
  msgid "You can choose a language in the list or directly edit it below."
251
  msgstr "Du kannst eine Sprache in der Liste auswählen oder sie unten direkt bearbeiten."
252
 
253
- #: include/languages-form.php:69
254
  #@ polylang
255
  msgid "The name is how it is displayed on your site (for example: English)."
256
  msgstr "Dieser Name wird dann auf der Website angezeigt (beispielsweise : Deutsch)"
257
 
258
- #: include/languages-form.php:76
259
  #@ polylang
260
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
261
  msgstr "Wordpress Sprachdatei für die Sprache (beispielweise : de_DE). Du musst die .mo-Datei für diese Sprache installieren."
262
 
263
- #: include/languages-form.php:80
264
  #@ polylang
265
  msgid "Language code"
266
  msgstr "Sprachcode"
267
 
268
- #: include/languages-form.php:82
269
  #@ polylang
270
  msgid "2-letters ISO 639-1 language code (for example: en)"
271
  msgstr "2 Buchstaben ISO 639-1 Sprachcode (beispielsweise : de)"
272
 
273
- #: include/languages-form.php:98
274
  #@ default
275
  msgid "Update"
276
  msgstr "Aktualisieren"
277
 
278
- #: include/languages-form.php:134
279
  #@ polylang
280
  msgid "Language switcher"
281
  msgstr "Sprachenumschalter"
282
 
283
- #: include/languages-form.php:173
284
  #@ polylang
285
  msgid "Default language"
286
  msgstr "Standardsprache"
287
 
288
- #: include/languages-form.php:191
289
  #@ polylang
290
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
291
  msgstr "Es gibt Artikel, Seite, Kategorien oder Schlagwörter ohne Spracheinstellung. Willst du alle auf die Standardsprache einstellen ?"
292
 
293
- #: include/languages-form.php:199
294
  #@ polylang
295
  msgid "Detect browser language"
296
  msgstr "Browsersprache erkennen"
297
 
298
- #: include/languages-form.php:205
299
  #@ polylang
300
  msgid "When the front page is visited, set the language according to the browser preference"
301
  msgstr "Beim Besuch der Startseite erscheint sie in der Standardsprache des Browsers"
302
 
303
- #: include/languages-form.php:212
304
  #@ polylang
305
  msgid "URL modifications"
306
  msgstr "URL-Veränderungen"
307
 
308
- #: include/languages-form.php:218
309
  #@ polylang
310
  msgid "Keep /language/ in pretty permalinks. Example:"
311
  msgstr "/language/ in schönen Permalinks behalten. Zum Beispiel :"
312
 
313
- #: include/languages-form.php:226
314
  #@ polylang
315
  msgid "Remove /language/ in pretty permalinks. Example:"
316
  msgstr "/language/ in Permalinks entfernen. Zum Beispiel :"
317
 
318
- #: include/languages-form.php:234
319
  #@ polylang
320
  msgid "Hide URL language information for default language"
321
  msgstr "URL Informationen für die Standardsprache verstecken"
@@ -340,55 +340,55 @@ msgstr "ID der Seite"
340
  msgid "Post ID"
341
  msgstr "Artikel-ID"
342
 
343
- #: include/admin-filters.php:761
344
  #@ polylang
345
  msgid "Admin language"
346
  msgstr "Adminsprache"
347
 
348
- #: include/admin-filters.php:148
349
- #: include/admin-filters.php:575
350
  #@ polylang
351
  msgid "Add new translation"
352
  msgstr "Neue Übersetzung hinzufügen"
353
 
354
- #: include/admin-filters.php:262
355
  #@ default
356
  msgid "(no parent)"
357
  msgstr "(kein Elternteil)"
358
 
359
- #: include/admin.php:298
360
  #: include/list-table.php:104
361
  #@ polylang
362
  msgid "Strings translation"
363
  msgstr "Übersetzung von Sätzen"
364
 
365
- #: include/admin.php:320
366
  #@ polylang
367
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
368
  msgstr "Die Sprache wurde erstellt, aber die WordPress Sprachdatei wurde nicht heruntergeladen. Bitte händisch installieren."
369
 
370
- #: include/admin.php:497
371
  #@ default
372
  msgid "Site Title"
373
  msgstr "Titel der Website"
374
 
375
- #: include/admin.php:498
376
  #@ default
377
  msgid "Tagline"
378
  msgstr "Tagline"
379
 
380
- #: include/admin.php:517
381
  #@ polylang
382
  msgid "Widget title"
383
  msgstr "Titel des Widgets"
384
 
385
- #: include/languages-form.php:93
386
  #: include/list-table.php:48
387
  #@ polylang
388
  msgid "Order"
389
  msgstr "Reihenfolge"
390
 
391
- #: include/languages-form.php:95
392
  #@ polylang
393
  msgid "Position of the language in the language switcher"
394
  msgstr "Position der Sprache im Sprachenumschalter"
@@ -413,55 +413,100 @@ msgstr "Zeichenfolge"
413
  msgid "No untranslated term"
414
  msgstr "Kein unübersetzter Ausdruck"
415
 
416
- #: polylang.php:186
417
  #, php-format
418
  #@ polylang
419
  msgid "Please move your local flags from %s to %s"
420
  msgstr "Bitte entfernen Sie Ihre lokalen Flaggen von %s bis %s"
421
 
422
- #: include/admin-filters.php:697
423
  #@ default
424
  msgid "None"
425
  msgstr "Keine"
426
 
427
- #: include/admin.php:473
428
  #@ polylang
429
  msgid "Upgrading language files&#8230;"
430
  msgstr "Sprachdateien werden aktualisiert&#8230;"
431
 
432
- #: include/admin.php:485
433
  #@ polylang
434
  msgid "Hides the current language"
435
  msgstr "Versteckt die aktuelle Sprache"
436
 
437
- #: include/languages-form.php:86
438
  #@ polylang
439
  msgid "Text direction"
440
  msgstr "Textrichtung"
441
 
442
- #: include/languages-form.php:87
443
  #@ polylang
444
  msgid "left to right"
445
  msgstr "von links nach rechts"
446
 
447
- #: include/languages-form.php:88
448
  #@ polylang
449
  msgid "right to left"
450
  msgstr "von rechts nach links"
451
 
452
- #: include/languages-form.php:89
453
  #@ polylang
454
  msgid "Choose the text direction for the language"
455
  msgstr "Wählen Sie die Textrichtung für die Sprache aus"
456
 
457
- #: include/languages-form.php:241
458
  #@ polylang
459
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
460
  msgstr "Sprachinformationen allen URLs beifügen inkl. Artikel, Seiten, Kategorien und Artikelschlagwörter (nicht empfohlen)"
461
 
462
- #: polylang.php:88
463
  #, php-format
464
- #@ default
465
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
466
  msgstr "Sie benutzen WordPress %s. Polylang benötigt mindestens WordPress %s."
467
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  "X-Poedit-SearchPath-0: ..\n"
20
  "X-Textdomain-Support: yes"
21
 
22
+ #: polylang.php:193
23
  #@ polylang
24
  msgid "Error: Restore of local flags failed!"
25
  msgstr "Fehler: Wiederherstellung der lokalen Fahnen fehlgeschlagen!"
26
 
27
+ #: include/admin-filters.php:537
28
+ #: include/admin-filters.php:554
29
  #: include/list-table.php:12
30
  #: include/post-translations.php:4
31
  #: include/term-translations.php:15
33
  msgid "Language"
34
  msgstr "Sprache"
35
 
36
+ #: include/admin-filters.php:539
37
+ #: include/admin-filters.php:557
38
  #@ polylang
39
  msgid "Sets the language"
40
  msgstr "definiert die Sprache"
54
  msgid "Title:"
55
  msgstr "Titel :"
56
 
57
+ #: include/admin.php:486
58
  #@ polylang
59
  msgid "Displays language names"
60
  msgstr "Darstellung der Namen der Sprachen"
61
 
62
+ #: include/admin.php:487
63
  #@ polylang
64
  msgid "Displays flags"
65
  msgstr "Darstellung der Fahnen"
66
 
67
+ #: include/admin.php:492
68
  #@ polylang
69
  msgid "Displays as dropdown"
70
  msgstr "Als Auswahlbox darstellen"
71
 
72
+ #: include/admin.php:488
73
  #@ polylang
74
  msgid "Forces link to front page"
75
  msgstr "Erzwingt einen Link zur Startseite"
76
 
77
+ #: include/admin.php:26
78
+ #: include/admin.php:300
79
  #@ default
80
  #@ polylang
81
  msgid "Settings"
82
  msgstr "Einstellungen"
83
 
84
+ #: include/admin-filters.php:187
85
+ #: include/admin.php:33
86
+ #: include/admin.php:292
87
  #: include/list-table.php:13
88
  #@ polylang
89
  msgid "Languages"
90
  msgstr "Sprachen"
91
 
92
+ #: include/admin.php:297
93
  #@ polylang
94
  msgid "Menus"
95
  msgstr "Menüs"
96
 
97
+ #: include/admin.php:318
98
  #@ polylang
99
  msgid "Enter a valid WorPress locale"
100
  msgstr "Bitte geben Sie eine gültige Sprachdatei an"
101
 
102
+ #: include/admin.php:319
103
  #@ polylang
104
  msgid "The language code must be 2 characters long"
105
  msgstr "Der Sprachcode muss 2 Buchstaben betragen"
106
 
107
+ #: include/admin.php:320
108
  #@ polylang
109
  msgid "The language code must be unique"
110
  msgstr "Der Sprachcode muss eindeutig sein"
111
 
112
+ #: include/admin.php:321
113
  #@ polylang
114
  msgid "The language must have a name"
115
  msgstr "Die Sprache muss einen Namen haben"
116
 
117
+ #: include/admin.php:491
118
  #@ polylang
119
  msgid "Displays a language switcher at the end of the menu"
120
  msgstr "Zeigt einen Sprachenumschalter am Ende des Menüs"
121
 
122
+ #: include/admin-filters.php:204
123
  #@ polylang
124
  msgid "Page's language:"
125
  msgstr "Sprache der Seite :"
126
 
127
+ #: include/admin-filters.php:204
128
  #@ polylang
129
  msgid "Post's language:"
130
  msgstr "Sprache des Artikels :"
156
  msgid "Add new"
157
  msgstr "Hinzufügen"
158
 
159
+ #: include/admin-filters.php:174
160
  #@ polylang
161
  msgid "Show all languages"
162
  msgstr "Alle Sprachen anzeigen"
163
 
164
+ #: include/admin-filters.php:738
165
  #@ polylang
166
  msgid "Theme locations and languages"
167
  msgstr "Verortung der Vorlage und Sprachen"
168
 
169
+ #: include/admin-filters.php:743
170
  #, php-format
171
  #@ polylang
172
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
173
  msgstr "Du solltest zur %sSprachenseite%s gehen, um die Verortung der Vorlage und die Sprachen einzustellen."
174
 
175
+ #: include/admin-filters.php:754
176
  #@ polylang
177
  msgid "The widget is displayed for:"
178
  msgstr "Zeigt das Widget für :"
179
 
180
+ #: include/base.php:38
181
  #@ polylang
182
  msgid "All languages"
183
  msgstr "Alle Sprachen"
187
  msgid "Delete"
188
  msgstr "Löschen"
189
 
190
+ #: include/languages-form.php:70
191
  #: include/list-table.php:45
192
  #@ polylang
193
  msgid "Full name"
194
  msgstr "Name"
195
 
196
+ #: include/languages-form.php:76
197
  #: include/list-table.php:46
198
  #@ polylang
199
  msgid "Locale"
214
  msgid "Posts"
215
  msgstr "Artikel"
216
 
217
+ #. translators: Calendar caption: 1: month name, 2: 4-digit year
218
  #: include/calendar.php:106
219
  #, php-format
220
  #@ default
229
  msgid "View posts for %1$s %2$s"
230
  msgstr "Siehe Artikel für %1$s %2$s"
231
 
232
+ #: include/languages-form.php:36
233
  #@ polylang
234
  msgid "Edit language"
235
  msgstr "Sprache bearbeiten"
236
 
237
+ #: include/languages-form.php:36
238
+ #: include/languages-form.php:103
239
  #@ polylang
240
  msgid "Add new language"
241
  msgstr "Neue Sprache hinzufügen"
242
 
243
+ #: include/languages-form.php:58
244
  #@ polylang
245
  msgid "Choose a language"
246
  msgstr "Sprache auswählen"
247
 
248
+ #: include/languages-form.php:66
249
  #@ polylang
250
  msgid "You can choose a language in the list or directly edit it below."
251
  msgstr "Du kannst eine Sprache in der Liste auswählen oder sie unten direkt bearbeiten."
252
 
253
+ #: include/languages-form.php:72
254
  #@ polylang
255
  msgid "The name is how it is displayed on your site (for example: English)."
256
  msgstr "Dieser Name wird dann auf der Website angezeigt (beispielsweise : Deutsch)"
257
 
258
+ #: include/languages-form.php:79
259
  #@ polylang
260
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
261
  msgstr "Wordpress Sprachdatei für die Sprache (beispielweise : de_DE). Du musst die .mo-Datei für diese Sprache installieren."
262
 
263
+ #: include/languages-form.php:83
264
  #@ polylang
265
  msgid "Language code"
266
  msgstr "Sprachcode"
267
 
268
+ #: include/languages-form.php:85
269
  #@ polylang
270
  msgid "2-letters ISO 639-1 language code (for example: en)"
271
  msgstr "2 Buchstaben ISO 639-1 Sprachcode (beispielsweise : de)"
272
 
273
+ #: include/languages-form.php:103
274
  #@ default
275
  msgid "Update"
276
  msgstr "Aktualisieren"
277
 
278
+ #: include/languages-form.php:149
279
  #@ polylang
280
  msgid "Language switcher"
281
  msgstr "Sprachenumschalter"
282
 
283
+ #: include/languages-form.php:188
284
  #@ polylang
285
  msgid "Default language"
286
  msgstr "Standardsprache"
287
 
288
+ #: include/languages-form.php:206
289
  #@ polylang
290
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
291
  msgstr "Es gibt Artikel, Seite, Kategorien oder Schlagwörter ohne Spracheinstellung. Willst du alle auf die Standardsprache einstellen ?"
292
 
293
+ #: include/languages-form.php:214
294
  #@ polylang
295
  msgid "Detect browser language"
296
  msgstr "Browsersprache erkennen"
297
 
298
+ #: include/languages-form.php:220
299
  #@ polylang
300
  msgid "When the front page is visited, set the language according to the browser preference"
301
  msgstr "Beim Besuch der Startseite erscheint sie in der Standardsprache des Browsers"
302
 
303
+ #: include/languages-form.php:227
304
  #@ polylang
305
  msgid "URL modifications"
306
  msgstr "URL-Veränderungen"
307
 
308
+ #: include/languages-form.php:233
309
  #@ polylang
310
  msgid "Keep /language/ in pretty permalinks. Example:"
311
  msgstr "/language/ in schönen Permalinks behalten. Zum Beispiel :"
312
 
313
+ #: include/languages-form.php:241
314
  #@ polylang
315
  msgid "Remove /language/ in pretty permalinks. Example:"
316
  msgstr "/language/ in Permalinks entfernen. Zum Beispiel :"
317
 
318
+ #: include/languages-form.php:249
319
  #@ polylang
320
  msgid "Hide URL language information for default language"
321
  msgstr "URL Informationen für die Standardsprache verstecken"
340
  msgid "Post ID"
341
  msgstr "Artikel-ID"
342
 
343
+ #: include/admin-filters.php:785
344
  #@ polylang
345
  msgid "Admin language"
346
  msgstr "Adminsprache"
347
 
348
+ #: include/admin-filters.php:151
349
+ #: include/admin-filters.php:600
350
  #@ polylang
351
  msgid "Add new translation"
352
  msgstr "Neue Übersetzung hinzufügen"
353
 
354
+ #: include/admin-filters.php:263
355
  #@ default
356
  msgid "(no parent)"
357
  msgstr "(kein Elternteil)"
358
 
359
+ #: include/admin.php:299
360
  #: include/list-table.php:104
361
  #@ polylang
362
  msgid "Strings translation"
363
  msgstr "Übersetzung von Sätzen"
364
 
365
+ #: include/admin.php:322
366
  #@ polylang
367
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
368
  msgstr "Die Sprache wurde erstellt, aber die WordPress Sprachdatei wurde nicht heruntergeladen. Bitte händisch installieren."
369
 
370
+ #: include/admin.php:501
371
  #@ default
372
  msgid "Site Title"
373
  msgstr "Titel der Website"
374
 
375
+ #: include/admin.php:502
376
  #@ default
377
  msgid "Tagline"
378
  msgstr "Tagline"
379
 
380
+ #: include/admin.php:520
381
  #@ polylang
382
  msgid "Widget title"
383
  msgstr "Titel des Widgets"
384
 
385
+ #: include/languages-form.php:98
386
  #: include/list-table.php:48
387
  #@ polylang
388
  msgid "Order"
389
  msgstr "Reihenfolge"
390
 
391
+ #: include/languages-form.php:100
392
  #@ polylang
393
  msgid "Position of the language in the language switcher"
394
  msgstr "Position der Sprache im Sprachenumschalter"
413
  msgid "No untranslated term"
414
  msgstr "Kein unübersetzter Ausdruck"
415
 
416
+ #: polylang.php:194
417
  #, php-format
418
  #@ polylang
419
  msgid "Please move your local flags from %s to %s"
420
  msgstr "Bitte entfernen Sie Ihre lokalen Flaggen von %s bis %s"
421
 
422
+ #: include/admin-filters.php:721
423
  #@ default
424
  msgid "None"
425
  msgstr "Keine"
426
 
427
+ #: include/admin.php:475
428
  #@ polylang
429
  msgid "Upgrading language files&#8230;"
430
  msgstr "Sprachdateien werden aktualisiert&#8230;"
431
 
432
+ #: include/admin.php:489
433
  #@ polylang
434
  msgid "Hides the current language"
435
  msgstr "Versteckt die aktuelle Sprache"
436
 
437
+ #: include/languages-form.php:89
438
  #@ polylang
439
  msgid "Text direction"
440
  msgstr "Textrichtung"
441
 
442
+ #: include/languages-form.php:91
443
  #@ polylang
444
  msgid "left to right"
445
  msgstr "von links nach rechts"
446
 
447
+ #: include/languages-form.php:93
448
  #@ polylang
449
  msgid "right to left"
450
  msgstr "von rechts nach links"
451
 
452
+ #: include/languages-form.php:94
453
  #@ polylang
454
  msgid "Choose the text direction for the language"
455
  msgstr "Wählen Sie die Textrichtung für die Sprache aus"
456
 
457
+ #: include/languages-form.php:256
458
  #@ polylang
459
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
460
  msgstr "Sprachinformationen allen URLs beifügen inkl. Artikel, Seiten, Kategorien und Artikelschlagwörter (nicht empfohlen)"
461
 
462
+ #: polylang.php:97
463
  #, php-format
464
+ #@ polylang
465
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
466
  msgstr "Sie benutzen WordPress %s. Polylang benötigt mindestens WordPress %s."
467
 
468
+ #: include/about.php:3
469
+ #, php-format
470
+ #@ polylang
471
+ 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."
472
+ msgstr ""
473
+
474
+ #: include/about.php:8
475
+ #, php-format
476
+ #@ polylang
477
+ 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."
478
+ msgstr ""
479
+
480
+ #: include/about.php:14
481
+ #, php-format
482
+ #@ polylang
483
+ msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
484
+ msgstr ""
485
+
486
+ #: include/about.php:18
487
+ #, php-format
488
+ #@ polylang
489
+ msgid "If you wonder how you can help the project, just %sread this%s."
490
+ msgstr ""
491
+
492
+ #: include/about.php:22
493
+ #@ polylang
494
+ msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
495
+ msgstr ""
496
+
497
+ #: include/admin.php:38
498
+ #@ polylang
499
+ msgid "About Polylang"
500
+ msgstr ""
501
+
502
+ #: include/languages-form.php:263
503
+ #, php-format
504
+ #@ polylang
505
+ msgid "Redirect the language page (example: %s) to the homepage in the right language"
506
+ msgstr ""
507
+
508
+ #: polylang.php:111
509
+ #@ polylang
510
+ msgid "For some reasons, Polylang could not create a table in your database."
511
+ msgstr ""
512
+
languages/polylang-el.mo CHANGED
Binary file
languages/polylang-el.po CHANGED
@@ -4,7 +4,7 @@ msgstr ""
4
  "Project-Id-Version: polylang\n"
5
  "Report-Msgid-Bugs-To: \n"
6
  "POT-Creation-Date: 2012-01-03 20:07+0100\n"
7
- "PO-Revision-Date: 2012-01-24 08:28+0300\n"
8
  "Last-Translator: Theodotos Andreou <theo@ubuntucy.org>\n"
9
  "Language-Team: Cyprus Ubuntu Loco Team (www.ubuntucy.org)\n"
10
  "Language: el\n"
@@ -24,19 +24,19 @@ msgstr ""
24
  "X-Textdomain-Support: yes\n"
25
 
26
  #@ polylang
27
- #: polylang.php:185
28
  msgid "Error: Restore of local flags failed!"
29
  msgstr "Σφάλμα: αποτυχία επαναφοράς των τοπικών σημαιών!"
30
 
31
  #@ polylang
32
- #: polylang.php:186
33
  #, php-format
34
  msgid "Please move your local flags from %s to %s"
35
  msgstr "Παρακαλώ μετακινήστε τις τοπικές σημαίες σας από %s σε %s"
36
 
37
  #@ polylang
38
- #: include/admin-filters.php:512
39
- #: include/admin-filters.php:529
40
  #: include/list-table.php:12
41
  #: include/post-translations.php:4
42
  #: include/term-translations.php:15
@@ -44,8 +44,8 @@ msgid "Language"
44
  msgstr "Γλώσσα"
45
 
46
  #@ polylang
47
- #: include/admin-filters.php:514
48
- #: include/admin-filters.php:532
49
  msgid "Sets the language"
50
  msgstr "Ορισμός γλώσσας"
51
 
@@ -65,103 +65,105 @@ msgid "Title:"
65
  msgstr "Τίτλος:"
66
 
67
  #@ polylang
68
- #: include/admin.php:482
69
  msgid "Displays language names"
70
  msgstr "Εμφάνιση ονομάτων γλώσσας"
71
 
72
  #@ polylang
73
- #: include/admin.php:483
74
  msgid "Displays flags"
75
  msgstr "Εμφάνιση σημαιών"
76
 
77
  #@ polylang
78
- #: include/admin.php:488
79
  msgid "Displays as dropdown"
80
  msgstr "Εμφάνιση σαν κυλιόμενο μενού"
81
 
82
  #@ polylang
83
- #: include/admin.php:484
84
  msgid "Forces link to front page"
85
  msgstr "Υποχρεωτική παραπομπή συνδέσμου στην αρχική σελίδα"
86
 
87
  #@ default
88
  #@ polylang
89
- #: include/admin.php:25
90
- #: include/admin.php:298
91
  msgid "Settings"
92
  msgstr "Ρυθμίσεις"
93
 
94
  #@ polylang
95
- #: include/admin-filters.php:185
96
- #: include/admin.php:32
97
- #: include/admin.php:291
98
  #: include/list-table.php:13
99
  msgid "Languages"
100
  msgstr "Γλώσσες"
101
 
102
  #@ polylang
103
- #: include/admin.php:296
104
  msgid "Menus"
105
  msgstr "Μενού"
106
 
107
  #@ polylang
108
- #: include/admin.php:298
109
  #: include/list-table.php:104
110
  msgid "Strings translation"
111
  msgstr "Μετάφραση συμβολοσειρών"
112
 
113
  #@ polylang
114
- #: include/admin.php:316
115
  msgid "Enter a valid WorPress locale"
116
- msgstr "Εισάγετε μια έγκυρη τοπιοποίηση Wordpress"
117
 
118
  #@ polylang
119
- #: include/admin.php:317
120
  msgid "The language code must be 2 characters long"
121
  msgstr "Ο κώδικας γλώσσας θα πρέπει να είναι 2 χαρακτήρες"
122
 
123
  #@ polylang
124
- #: include/admin.php:318
125
  msgid "The language code must be unique"
126
  msgstr "Ο κώδικας γλώσσας θα πρέπει να είναι μοναδικός"
127
 
128
  #@ polylang
129
- #: include/admin.php:319
130
  msgid "The language must have a name"
131
  msgstr "Η γλώσσα πρέπει να έχει όνομα"
132
 
133
  #@ polylang
134
- #: include/admin.php:320
135
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
136
- msgstr "Η γλώσσα δημιουργήθηκε αλλά το αρχείο γλώσσας του Wordpress δεν έχει κατέβει. Παρακαλώ εγκαταστήστε το εσείς."
 
 
137
 
138
  #@ polylang
139
- #: include/admin.php:487
140
  msgid "Displays a language switcher at the end of the menu"
141
  msgstr "Εμφάνιση επιλογέα γλώσσας στο τέλος του μενού"
142
 
143
  #@ default
144
- #: include/admin.php:497
145
  msgid "Site Title"
146
  msgstr "Τίτλος ιστοσελίδας"
147
 
148
  #@ default
149
- #: include/admin.php:498
150
  msgid "Tagline"
151
  msgstr "Υπότιτλος"
152
 
153
  #@ polylang
154
- #: include/admin.php:517
155
  msgid "Widget title"
156
  msgstr "Τίτλος μονάδας"
157
 
158
  #@ polylang
159
- #: include/admin-filters.php:202
160
  msgid "Page's language:"
161
  msgstr "Γλώσσα σελίδας:"
162
 
163
  #@ polylang
164
- #: include/admin-filters.php:202
165
  msgid "Post's language:"
166
  msgstr "Γλώσσα άρθρου:"
167
 
@@ -198,39 +200,41 @@ msgid "Add new"
198
  msgstr "Προσθήκη νέου"
199
 
200
  #@ polylang
201
- #: include/admin-filters.php:148
202
- #: include/admin-filters.php:575
203
  msgid "Add new translation"
204
  msgstr "Προσθήκη νέας μετάφρασης"
205
 
206
  #@ polylang
207
- #: include/admin-filters.php:172
208
  msgid "Show all languages"
209
  msgstr "Εμφάνιση όλων των γλωσσών"
210
 
211
  #@ default
212
- #: include/admin-filters.php:262
213
  msgid "(no parent)"
214
  msgstr "(απουσία μητρικού)"
215
 
216
  #@ polylang
217
- #: include/admin-filters.php:714
218
  msgid "Theme locations and languages"
219
  msgstr "Γλώσσες και τοποθεσίες θεμάτων"
220
 
221
  #@ polylang
222
- #: include/admin-filters.php:719
223
  #, php-format
224
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
225
- msgstr "Παρακαλώ πηγαίνετε στην %sσελίδα γλώσσας%s για καθορισμό τοποθεσιών και γλωσσών θέματος"
 
 
226
 
227
  #@ polylang
228
- #: include/admin-filters.php:730
229
  msgid "The widget is displayed for:"
230
  msgstr "Η μονάδα εμφανίζεται για:"
231
 
232
  #@ polylang
233
- #: include/base.php:33
234
  msgid "All languages"
235
  msgstr "Όλες οι γλώσσες"
236
 
@@ -240,16 +244,16 @@ msgid "Delete"
240
  msgstr "Διαγραφή"
241
 
242
  #@ polylang
243
- #: include/languages-form.php:67
244
  #: include/list-table.php:45
245
  msgid "Full name"
246
  msgstr "Πλήρες όνομα"
247
 
248
  #@ polylang
249
- #: include/languages-form.php:73
250
  #: include/list-table.php:46
251
  msgid "Locale"
252
- msgstr "Τοπιοποίηση"
253
 
254
  #@ polylang
255
  #: include/list-table.php:47
@@ -257,7 +261,7 @@ msgid "Code"
257
  msgstr "Κώδικας"
258
 
259
  #@ polylang
260
- #: include/languages-form.php:93
261
  #: include/list-table.php:48
262
  msgid "Order"
263
  msgstr "Εντολή"
@@ -295,98 +299,106 @@ msgid "View posts for %1$s %2$s"
295
  msgstr "Προβολή άρθρων για %1$s %2$s"
296
 
297
  #@ polylang
298
- #: include/languages-form.php:33
299
  msgid "Edit language"
300
  msgstr "Επεξεργασία γλώσσας"
301
 
302
  #@ polylang
303
- #: include/languages-form.php:33
304
- #: include/languages-form.php:98
305
  msgid "Add new language"
306
  msgstr "Προσθήκη νέας γλώσσας"
307
 
308
  #@ polylang
309
- #: include/languages-form.php:55
310
  msgid "Choose a language"
311
  msgstr "Επιλογή γλώσσας"
312
 
313
  #@ polylang
314
- #: include/languages-form.php:63
315
  msgid "You can choose a language in the list or directly edit it below."
316
- msgstr "Μπορείτε να επιλέξετε μια γλώσσα από την λίστα ή να την επεξεργαστείτε πιο κάτω."
 
 
317
 
318
  #@ polylang
319
- #: include/languages-form.php:69
320
  msgid "The name is how it is displayed on your site (for example: English)."
321
  msgstr "Το όνομα καθορίζει πως θα εμφανίζεται στην σελίδα σας (πχ: Ελληνικά)."
322
 
323
  #@ polylang
324
- #: include/languages-form.php:76
325
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
326
- msgstr "Τοπιοποίηση Wordpress για την γλώσσα (πχ: en_US). Θα χρειαστεί να εγκαταστήσετε το αρχείο .mo για αυτή την γλώσσα."
 
 
327
 
328
  #@ polylang
329
- #: include/languages-form.php:80
330
  msgid "Language code"
331
  msgstr "Κώδικας γλώσσας"
332
 
333
  #@ polylang
334
- #: include/languages-form.php:82
335
  msgid "2-letters ISO 639-1 language code (for example: en)"
336
  msgstr "ISO 639-1 κώδικας γλώσσας 2 χαρακτήρων (πχ: en)"
337
 
338
  #@ polylang
339
- #: include/languages-form.php:95
340
  msgid "Position of the language in the language switcher"
341
  msgstr "Θέση της γλώσσας στον επιλογέα γλώσσας"
342
 
343
  #@ default
344
- #: include/languages-form.php:98
345
  msgid "Update"
346
  msgstr "Ενημέρωση"
347
 
348
  #@ polylang
349
- #: include/languages-form.php:134
350
  msgid "Language switcher"
351
  msgstr "Επιλογέας γλώσσας"
352
 
353
  #@ polylang
354
- #: include/languages-form.php:173
355
  msgid "Default language"
356
  msgstr "Προκαθορισμένη γλώσσα"
357
 
358
  #@ polylang
359
- #: include/languages-form.php:191
360
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
361
- msgstr "Υπάρχουν άρθρα, σελίδες, κατηγορίες ή ετικέτες χωρίς καθορισμό γλώσσας. Θέλετε να οριστούν όλα στην προκαθορισμένη γλώσσα;"
 
 
362
 
363
  #@ polylang
364
- #: include/languages-form.php:199
365
  msgid "Detect browser language"
366
  msgstr "Αναγνώριση γλώσσας φυλλομετρητή"
367
 
368
  #@ polylang
369
- #: include/languages-form.php:205
370
  msgid "When the front page is visited, set the language according to the browser preference"
371
- msgstr "Όταν καλείται η αρχική σελίδα, να καθορίζεται η γλώσσα βάση των προτιμήσεων του φυλλομετρητή"
 
 
372
 
373
  #@ polylang
374
- #: include/languages-form.php:212
375
  msgid "URL modifications"
376
  msgstr "Τροποποιήσεις URL"
377
 
378
  #@ polylang
379
- #: include/languages-form.php:218
380
  msgid "Keep /language/ in pretty permalinks. Example:"
381
  msgstr "Διατήρηση /language/ σε ευδιάκριτους μόνιμους συνδέσμους. Παράδειγμα:"
382
 
383
  #@ polylang
384
- #: include/languages-form.php:226
385
  msgid "Remove /language/ in pretty permalinks. Example:"
386
  msgstr "Αφαίρεση /language/ από ευδιάκριτους μόνιμους συνδέσμους. Παράδειγμα:"
387
 
388
  #@ polylang
389
- #: include/languages-form.php:234
390
  msgid "Hide URL language information for default language"
391
  msgstr "Απόκρυψη των πληροφοριών γλώσσας από URL, για την προκαθορισμένη γλώσσα"
392
 
@@ -411,22 +423,22 @@ msgid "Post ID"
411
  msgstr "ID άρθρου"
412
 
413
  #@ polylang
414
- #: include/admin-filters.php:761
415
  msgid "Admin language"
416
- msgstr "Γλώσσα διαχείρησης"
417
 
418
  #@ default
419
- #: include/admin-filters.php:697
420
  msgid "None"
421
  msgstr "Κανένα"
422
 
423
  #@ polylang
424
- #: include/admin.php:473
425
  msgid "Upgrading language files&#8230;"
426
  msgstr "Αναβάθμιση αρχείων γλώσσας&#8230;"
427
 
428
  #@ polylang
429
- #: include/admin.php:485
430
  msgid "Hides the current language"
431
  msgstr "Απόκρυψη τρέχουσας γλώσσας"
432
 
@@ -439,36 +451,97 @@ msgid "%1$s %2$s"
439
  msgstr "%1$s %2$s"
440
 
441
  #@ polylang
442
- #: include/languages-form.php:86
443
  msgid "Text direction"
444
  msgstr "Κατεύθυνση κειμένου"
445
 
446
  #@ polylang
447
- #: include/languages-form.php:87
448
  msgid "left to right"
449
  msgstr "αριστερά προς δεξιά"
450
 
451
  #@ polylang
452
- #: include/languages-form.php:88
453
  msgid "right to left"
454
  msgstr "δεξιά προς αριστερά"
455
 
456
  #@ polylang
457
- #: include/languages-form.php:89
458
  msgid "Choose the text direction for the language"
459
  msgstr "Επιλογή κατεύθυνσης κειμένου για γλώσσα"
460
 
461
  #@ polylang
462
- #: include/languages-form.php:241
463
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
464
  msgstr ""
465
  "Προσθήκη πληροφορίας γλώσσας σε όλα τα URL συμπεριλαμβανομένων άρθρων, "
466
  "σελίδων, κατηγοριών και ετικετών άρθρων (δεν συστήνεται) "
467
 
468
- #@ default
469
- #: polylang.php:88
470
  #, php-format
471
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
472
  msgstr ""
473
  "Χρησιμοποιείτε WordPress %s. Το Polylang χρειάζεται τουλάχιστον WordPress %"
474
  "s."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  "Project-Id-Version: polylang\n"
5
  "Report-Msgid-Bugs-To: \n"
6
  "POT-Creation-Date: 2012-01-03 20:07+0100\n"
7
+ "PO-Revision-Date: 2012-02-22 11:57+0300\n"
8
  "Last-Translator: Theodotos Andreou <theo@ubuntucy.org>\n"
9
  "Language-Team: Cyprus Ubuntu Loco Team (www.ubuntucy.org)\n"
10
  "Language: el\n"
24
  "X-Textdomain-Support: yes\n"
25
 
26
  #@ polylang
27
+ #: polylang.php:193
28
  msgid "Error: Restore of local flags failed!"
29
  msgstr "Σφάλμα: αποτυχία επαναφοράς των τοπικών σημαιών!"
30
 
31
  #@ polylang
32
+ #: polylang.php:194
33
  #, php-format
34
  msgid "Please move your local flags from %s to %s"
35
  msgstr "Παρακαλώ μετακινήστε τις τοπικές σημαίες σας από %s σε %s"
36
 
37
  #@ polylang
38
+ #: include/admin-filters.php:537
39
+ #: include/admin-filters.php:554
40
  #: include/list-table.php:12
41
  #: include/post-translations.php:4
42
  #: include/term-translations.php:15
44
  msgstr "Γλώσσα"
45
 
46
  #@ polylang
47
+ #: include/admin-filters.php:539
48
+ #: include/admin-filters.php:557
49
  msgid "Sets the language"
50
  msgstr "Ορισμός γλώσσας"
51
 
65
  msgstr "Τίτλος:"
66
 
67
  #@ polylang
68
+ #: include/admin.php:486
69
  msgid "Displays language names"
70
  msgstr "Εμφάνιση ονομάτων γλώσσας"
71
 
72
  #@ polylang
73
+ #: include/admin.php:487
74
  msgid "Displays flags"
75
  msgstr "Εμφάνιση σημαιών"
76
 
77
  #@ polylang
78
+ #: include/admin.php:492
79
  msgid "Displays as dropdown"
80
  msgstr "Εμφάνιση σαν κυλιόμενο μενού"
81
 
82
  #@ polylang
83
+ #: include/admin.php:488
84
  msgid "Forces link to front page"
85
  msgstr "Υποχρεωτική παραπομπή συνδέσμου στην αρχική σελίδα"
86
 
87
  #@ default
88
  #@ polylang
89
+ #: include/admin.php:26
90
+ #: include/admin.php:300
91
  msgid "Settings"
92
  msgstr "Ρυθμίσεις"
93
 
94
  #@ polylang
95
+ #: include/admin-filters.php:187
96
+ #: include/admin.php:33
97
+ #: include/admin.php:292
98
  #: include/list-table.php:13
99
  msgid "Languages"
100
  msgstr "Γλώσσες"
101
 
102
  #@ polylang
103
+ #: include/admin.php:297
104
  msgid "Menus"
105
  msgstr "Μενού"
106
 
107
  #@ polylang
108
+ #: include/admin.php:299
109
  #: include/list-table.php:104
110
  msgid "Strings translation"
111
  msgstr "Μετάφραση συμβολοσειρών"
112
 
113
  #@ polylang
114
+ #: include/admin.php:318
115
  msgid "Enter a valid WorPress locale"
116
+ msgstr "Εισάγετε μια έγκυρη τοπικοποίηση Wordpress"
117
 
118
  #@ polylang
119
+ #: include/admin.php:319
120
  msgid "The language code must be 2 characters long"
121
  msgstr "Ο κώδικας γλώσσας θα πρέπει να είναι 2 χαρακτήρες"
122
 
123
  #@ polylang
124
+ #: include/admin.php:320
125
  msgid "The language code must be unique"
126
  msgstr "Ο κώδικας γλώσσας θα πρέπει να είναι μοναδικός"
127
 
128
  #@ polylang
129
+ #: include/admin.php:321
130
  msgid "The language must have a name"
131
  msgstr "Η γλώσσα πρέπει να έχει όνομα"
132
 
133
  #@ polylang
134
+ #: include/admin.php:322
135
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
136
+ msgstr ""
137
+ "Η γλώσσα δημιουργήθηκε αλλά το αρχείο γλώσσας του Wordpress δεν έχει "
138
+ "κατέβει. Παρακαλώ εγκαταστήστε το εσείς."
139
 
140
  #@ polylang
141
+ #: include/admin.php:491
142
  msgid "Displays a language switcher at the end of the menu"
143
  msgstr "Εμφάνιση επιλογέα γλώσσας στο τέλος του μενού"
144
 
145
  #@ default
146
+ #: include/admin.php:501
147
  msgid "Site Title"
148
  msgstr "Τίτλος ιστοσελίδας"
149
 
150
  #@ default
151
+ #: include/admin.php:502
152
  msgid "Tagline"
153
  msgstr "Υπότιτλος"
154
 
155
  #@ polylang
156
+ #: include/admin.php:520
157
  msgid "Widget title"
158
  msgstr "Τίτλος μονάδας"
159
 
160
  #@ polylang
161
+ #: include/admin-filters.php:204
162
  msgid "Page's language:"
163
  msgstr "Γλώσσα σελίδας:"
164
 
165
  #@ polylang
166
+ #: include/admin-filters.php:204
167
  msgid "Post's language:"
168
  msgstr "Γλώσσα άρθρου:"
169
 
200
  msgstr "Προσθήκη νέου"
201
 
202
  #@ polylang
203
+ #: include/admin-filters.php:151
204
+ #: include/admin-filters.php:600
205
  msgid "Add new translation"
206
  msgstr "Προσθήκη νέας μετάφρασης"
207
 
208
  #@ polylang
209
+ #: include/admin-filters.php:174
210
  msgid "Show all languages"
211
  msgstr "Εμφάνιση όλων των γλωσσών"
212
 
213
  #@ default
214
+ #: include/admin-filters.php:263
215
  msgid "(no parent)"
216
  msgstr "(απουσία μητρικού)"
217
 
218
  #@ polylang
219
+ #: include/admin-filters.php:738
220
  msgid "Theme locations and languages"
221
  msgstr "Γλώσσες και τοποθεσίες θεμάτων"
222
 
223
  #@ polylang
224
+ #: include/admin-filters.php:743
225
  #, php-format
226
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
227
+ msgstr ""
228
+ "Παρακαλώ πηγαίνετε στην %sσελίδα γλώσσας%s για καθορισμό τοποθεσιών και "
229
+ "γλωσσών θέματος"
230
 
231
  #@ polylang
232
+ #: include/admin-filters.php:754
233
  msgid "The widget is displayed for:"
234
  msgstr "Η μονάδα εμφανίζεται για:"
235
 
236
  #@ polylang
237
+ #: include/base.php:38
238
  msgid "All languages"
239
  msgstr "Όλες οι γλώσσες"
240
 
244
  msgstr "Διαγραφή"
245
 
246
  #@ polylang
247
+ #: include/languages-form.php:70
248
  #: include/list-table.php:45
249
  msgid "Full name"
250
  msgstr "Πλήρες όνομα"
251
 
252
  #@ polylang
253
+ #: include/languages-form.php:76
254
  #: include/list-table.php:46
255
  msgid "Locale"
256
+ msgstr "Τοπικοποίηση"
257
 
258
  #@ polylang
259
  #: include/list-table.php:47
261
  msgstr "Κώδικας"
262
 
263
  #@ polylang
264
+ #: include/languages-form.php:98
265
  #: include/list-table.php:48
266
  msgid "Order"
267
  msgstr "Εντολή"
299
  msgstr "Προβολή άρθρων για %1$s %2$s"
300
 
301
  #@ polylang
302
+ #: include/languages-form.php:36
303
  msgid "Edit language"
304
  msgstr "Επεξεργασία γλώσσας"
305
 
306
  #@ polylang
307
+ #: include/languages-form.php:36
308
+ #: include/languages-form.php:103
309
  msgid "Add new language"
310
  msgstr "Προσθήκη νέας γλώσσας"
311
 
312
  #@ polylang
313
+ #: include/languages-form.php:58
314
  msgid "Choose a language"
315
  msgstr "Επιλογή γλώσσας"
316
 
317
  #@ polylang
318
+ #: include/languages-form.php:66
319
  msgid "You can choose a language in the list or directly edit it below."
320
+ msgstr ""
321
+ "Μπορείτε να επιλέξετε μια γλώσσα από την λίστα ή να την επεξεργαστείτε πιο "
322
+ "κάτω."
323
 
324
  #@ polylang
325
+ #: include/languages-form.php:72
326
  msgid "The name is how it is displayed on your site (for example: English)."
327
  msgstr "Το όνομα καθορίζει πως θα εμφανίζεται στην σελίδα σας (πχ: Ελληνικά)."
328
 
329
  #@ polylang
330
+ #: include/languages-form.php:79
331
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
332
+ msgstr ""
333
+ "Τοπικοποίηση Wordpress για την γλώσσα (πχ: en_US). Θα χρειαστεί να "
334
+ "εγκαταστήσετε το αρχείο .mo για αυτή την γλώσσα."
335
 
336
  #@ polylang
337
+ #: include/languages-form.php:83
338
  msgid "Language code"
339
  msgstr "Κώδικας γλώσσας"
340
 
341
  #@ polylang
342
+ #: include/languages-form.php:85
343
  msgid "2-letters ISO 639-1 language code (for example: en)"
344
  msgstr "ISO 639-1 κώδικας γλώσσας 2 χαρακτήρων (πχ: en)"
345
 
346
  #@ polylang
347
+ #: include/languages-form.php:100
348
  msgid "Position of the language in the language switcher"
349
  msgstr "Θέση της γλώσσας στον επιλογέα γλώσσας"
350
 
351
  #@ default
352
+ #: include/languages-form.php:103
353
  msgid "Update"
354
  msgstr "Ενημέρωση"
355
 
356
  #@ polylang
357
+ #: include/languages-form.php:149
358
  msgid "Language switcher"
359
  msgstr "Επιλογέας γλώσσας"
360
 
361
  #@ polylang
362
+ #: include/languages-form.php:188
363
  msgid "Default language"
364
  msgstr "Προκαθορισμένη γλώσσα"
365
 
366
  #@ polylang
367
+ #: include/languages-form.php:206
368
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
369
+ msgstr ""
370
+ "Υπάρχουν άρθρα, σελίδες, κατηγορίες ή ετικέτες χωρίς καθορισμό γλώσσας. "
371
+ "Θέλετε να οριστούν όλα στην προκαθορισμένη γλώσσα;"
372
 
373
  #@ polylang
374
+ #: include/languages-form.php:214
375
  msgid "Detect browser language"
376
  msgstr "Αναγνώριση γλώσσας φυλλομετρητή"
377
 
378
  #@ polylang
379
+ #: include/languages-form.php:220
380
  msgid "When the front page is visited, set the language according to the browser preference"
381
+ msgstr ""
382
+ "Όταν καλείται η αρχική σελίδα, να καθορίζεται η γλώσσα βάση των προτιμήσεων "
383
+ "του φυλλομετρητή"
384
 
385
  #@ polylang
386
+ #: include/languages-form.php:227
387
  msgid "URL modifications"
388
  msgstr "Τροποποιήσεις URL"
389
 
390
  #@ polylang
391
+ #: include/languages-form.php:233
392
  msgid "Keep /language/ in pretty permalinks. Example:"
393
  msgstr "Διατήρηση /language/ σε ευδιάκριτους μόνιμους συνδέσμους. Παράδειγμα:"
394
 
395
  #@ polylang
396
+ #: include/languages-form.php:241
397
  msgid "Remove /language/ in pretty permalinks. Example:"
398
  msgstr "Αφαίρεση /language/ από ευδιάκριτους μόνιμους συνδέσμους. Παράδειγμα:"
399
 
400
  #@ polylang
401
+ #: include/languages-form.php:249
402
  msgid "Hide URL language information for default language"
403
  msgstr "Απόκρυψη των πληροφοριών γλώσσας από URL, για την προκαθορισμένη γλώσσα"
404
 
423
  msgstr "ID άρθρου"
424
 
425
  #@ polylang
426
+ #: include/admin-filters.php:785
427
  msgid "Admin language"
428
+ msgstr "Γλώσσα διαχείρισης"
429
 
430
  #@ default
431
+ #: include/admin-filters.php:721
432
  msgid "None"
433
  msgstr "Κανένα"
434
 
435
  #@ polylang
436
+ #: include/admin.php:475
437
  msgid "Upgrading language files&#8230;"
438
  msgstr "Αναβάθμιση αρχείων γλώσσας&#8230;"
439
 
440
  #@ polylang
441
+ #: include/admin.php:489
442
  msgid "Hides the current language"
443
  msgstr "Απόκρυψη τρέχουσας γλώσσας"
444
 
451
  msgstr "%1$s %2$s"
452
 
453
  #@ polylang
454
+ #: include/languages-form.php:89
455
  msgid "Text direction"
456
  msgstr "Κατεύθυνση κειμένου"
457
 
458
  #@ polylang
459
+ #: include/languages-form.php:91
460
  msgid "left to right"
461
  msgstr "αριστερά προς δεξιά"
462
 
463
  #@ polylang
464
+ #: include/languages-form.php:93
465
  msgid "right to left"
466
  msgstr "δεξιά προς αριστερά"
467
 
468
  #@ polylang
469
+ #: include/languages-form.php:94
470
  msgid "Choose the text direction for the language"
471
  msgstr "Επιλογή κατεύθυνσης κειμένου για γλώσσα"
472
 
473
  #@ polylang
474
+ #: include/languages-form.php:256
475
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
476
  msgstr ""
477
  "Προσθήκη πληροφορίας γλώσσας σε όλα τα URL συμπεριλαμβανομένων άρθρων, "
478
  "σελίδων, κατηγοριών και ετικετών άρθρων (δεν συστήνεται) "
479
 
480
+ #@ polylang
481
+ #: polylang.php:97
482
  #, php-format
483
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
484
  msgstr ""
485
  "Χρησιμοποιείτε WordPress %s. Το Polylang χρειάζεται τουλάχιστον WordPress %"
486
  "s."
487
+
488
+ #@ polylang
489
+ #: include/about.php:3
490
+ #, php-format
491
+ 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."
492
+ msgstr ""
493
+ "Το Polylang παρέχει εκτενή %sτεκμηρίωση%s (μόνο στα Αγγλικά). Περιέχει "
494
+ "πληροφορίες πως να ρυθμίσετε τον πολυγλωσσικό σας ιστοτόπο και να τον "
495
+ "χρησιμοποιήσετε σε καθημερινή βάση, λίστα συχνών ερωτήσεων (FAQ), καθώς και "
496
+ "τεκμηρίωση για προγραμματιστές για προσαρμογή των προσθέτων και θεμάτων "
497
+ "τους."
498
+
499
+ #@ polylang
500
+ #: include/about.php:8
501
+ #, php-format
502
+ 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."
503
+ msgstr ""
504
+ "Θα βρείτε επίσης χρήσιμες πληροφορίες στο %sφόρουμ%s υποστήριξης. Μην "
505
+ "ξεχνάτε να ψάξετε πρώτα αν έχει απαντηθεί το ερώτημα σας πριν ανοίξετε "
506
+ "καινούργιο θέμα."
507
+
508
+ #@ polylang
509
+ #: include/about.php:14
510
+ #, php-format
511
+ msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
512
+ msgstr ""
513
+ "Το Polylang είναι δωρεάν και διανέμεται κάτω από την ίδια άδεια χρήσης όπως "
514
+ "και το Wordpress, την %sΓενική Άδεια Χρήσης - GPL%s."
515
+
516
+ #@ polylang
517
+ #: include/about.php:18
518
+ #, php-format
519
+ msgid "If you wonder how you can help the project, just %sread this%s."
520
+ msgstr "Αν θέλετε να βοηθήσετε, απλά, %sδιαβάστε εδώ%s."
521
+
522
+ #@ polylang
523
+ #: include/about.php:22
524
+ msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
525
+ msgstr ""
526
+ "Τέλος αν σας αρέσει αυτό το πρόσθετο ή αν σας βοηθά στην επιχείρηση σας, οι "
527
+ "δωρεές στο δημιουργό θα εκτιμηθούν ιδιαίτερα. "
528
+
529
+ #@ polylang
530
+ #: include/admin.php:38
531
+ msgid "About Polylang"
532
+ msgstr "Σχετικά με το Polylang"
533
+
534
+ #@ polylang
535
+ #: include/languages-form.php:263
536
+ #, php-format
537
+ msgid "Redirect the language page (example: %s) to the homepage in the right language"
538
+ msgstr ""
539
+ "Ανακατεύθυνση της σελίδας γλώσσας (παράδειγμα: %s) στην αρχική σελίδα στη "
540
+ "σωστή γλώσσα"
541
+
542
+ #@ polylang
543
+ #: polylang.php:111
544
+ msgid "For some reasons, Polylang could not create a table in your database."
545
+ msgstr ""
546
+ "Το Polylang δεν μπόρεσε να δημιουργήσει πίνακα στην βάση δεδομένων σας, για "
547
+ "κάποιο λόγο."
languages/polylang-fr_FR.mo CHANGED
Binary file
languages/polylang-fr_FR.po CHANGED
@@ -17,8 +17,8 @@ msgstr ""
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
  #@ polylang
20
- #: include/admin-filters.php:512
21
- #: include/admin-filters.php:529
22
  #: include/list-table.php:12
23
  #: include/post-translations.php:4
24
  #: include/term-translations.php:15
@@ -26,8 +26,8 @@ msgid "Language"
26
  msgstr "Langue"
27
 
28
  #@ polylang
29
- #: include/admin-filters.php:514
30
- #: include/admin-filters.php:532
31
  msgid "Sets the language"
32
  msgstr "Définit la langue"
33
 
@@ -47,103 +47,103 @@ msgid "Title:"
47
  msgstr "Titre :"
48
 
49
  #@ polylang
50
- #: include/admin.php:482
51
  msgid "Displays language names"
52
  msgstr "Afficher le nom des langues"
53
 
54
  #@ polylang
55
- #: include/admin.php:483
56
  msgid "Displays flags"
57
  msgstr "Afficher les drapeaux"
58
 
59
  #@ polylang
60
- #: include/admin.php:488
61
  msgid "Displays as dropdown"
62
  msgstr "Afficher comme liste déroulante"
63
 
64
  #@ polylang
65
- #: include/admin.php:484
66
  msgid "Forces link to front page"
67
  msgstr "Force le lien vers la page d'accueil"
68
 
69
  #@ default
70
  #@ polylang
71
- #: include/admin.php:25
72
- #: include/admin.php:298
73
  msgid "Settings"
74
  msgstr "Réglages"
75
 
76
  #@ polylang
77
- #: include/admin-filters.php:185
78
- #: include/admin.php:32
79
- #: include/admin.php:291
80
  #: include/list-table.php:13
81
  msgid "Languages"
82
  msgstr "Langues"
83
 
84
  #@ polylang
85
- #: include/admin.php:296
86
  msgid "Menus"
87
  msgstr "Menus"
88
 
89
  #@ polylang
90
- #: include/admin.php:298
91
  #: include/list-table.php:104
92
  msgid "Strings translation"
93
  msgstr "Traduction de phrases"
94
 
95
  #@ polylang
96
- #: include/admin.php:316
97
  msgid "Enter a valid WorPress locale"
98
  msgstr "Entrez un code local WordPress valide"
99
 
100
  #@ polylang
101
- #: include/admin.php:317
102
  msgid "The language code must be 2 characters long"
103
  msgstr "Le code de la langue doit avoir 2 lettres"
104
 
105
  #@ polylang
106
- #: include/admin.php:318
107
  msgid "The language code must be unique"
108
  msgstr "Le code de la langue doit être unique"
109
 
110
  #@ polylang
111
- #: include/admin.php:319
112
  msgid "The language must have a name"
113
  msgstr "La langue doit avoir un nom"
114
 
115
  #@ polylang
116
- #: include/admin.php:320
117
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
118
  msgstr "La langue a été créée, mais le fichier de langue WordPress n'a pu être téléchargé. Merci de l'installer manuellement."
119
 
120
  #@ polylang
121
- #: include/admin.php:487
122
  msgid "Displays a language switcher at the end of the menu"
123
  msgstr "Affiche la liste des langues"
124
 
125
  #@ default
126
- #: include/admin.php:497
127
  msgid "Site Title"
128
  msgstr ""
129
 
130
  #@ default
131
- #: include/admin.php:498
132
  msgid "Tagline"
133
  msgstr ""
134
 
135
  #@ polylang
136
- #: include/admin.php:517
137
  msgid "Widget title"
138
  msgstr "Titre de widget"
139
 
140
  #@ polylang
141
- #: include/admin-filters.php:202
142
  msgid "Page's language:"
143
  msgstr "Langue de la page"
144
 
145
  #@ polylang
146
- #: include/admin-filters.php:202
147
  msgid "Post's language:"
148
  msgstr "Langue de l'article"
149
 
@@ -180,39 +180,39 @@ msgid "Add new"
180
  msgstr "Ajouter"
181
 
182
  #@ polylang
183
- #: include/admin-filters.php:148
184
- #: include/admin-filters.php:575
185
  msgid "Add new translation"
186
  msgstr "Ajoute une nouvelle traduction"
187
 
188
  #@ polylang
189
- #: include/admin-filters.php:172
190
  msgid "Show all languages"
191
  msgstr "Afficher toutes les langues"
192
 
193
  #@ default
194
- #: include/admin-filters.php:262
195
  msgid "(no parent)"
196
  msgstr ""
197
 
198
  #@ polylang
199
- #: include/admin-filters.php:714
200
  msgid "Theme locations and languages"
201
  msgstr "Emplacements du thème et langues"
202
 
203
  #@ polylang
204
- #: include/admin-filters.php:719
205
  #, php-format
206
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
207
  msgstr "Aller à la %spage langues%s pour définir les emplacements du thème et les langues"
208
 
209
  #@ polylang
210
- #: include/admin-filters.php:730
211
  msgid "The widget is displayed for:"
212
  msgstr "Afficher le widget pour :"
213
 
214
  #@ polylang
215
- #: include/base.php:33
216
  msgid "All languages"
217
  msgstr "Toutes les langues"
218
 
@@ -222,13 +222,13 @@ msgid "Delete"
222
  msgstr "Supprimer"
223
 
224
  #@ polylang
225
- #: include/languages-form.php:67
226
  #: include/list-table.php:45
227
  msgid "Full name"
228
  msgstr "Nom"
229
 
230
  #@ polylang
231
- #: include/languages-form.php:73
232
  #: include/list-table.php:46
233
  msgid "Locale"
234
  msgstr "Code local"
@@ -239,7 +239,7 @@ msgid "Code"
239
  msgstr "Code"
240
 
241
  #@ polylang
242
- #: include/languages-form.php:93
243
  #: include/list-table.php:48
244
  msgid "Order"
245
  msgstr "Ordre"
@@ -285,98 +285,98 @@ msgid "View posts for %1$s %2$s"
285
  msgstr ""
286
 
287
  #@ polylang
288
- #: include/languages-form.php:33
289
  msgid "Edit language"
290
  msgstr "Modifier la langue"
291
 
292
  #@ polylang
293
- #: include/languages-form.php:33
294
- #: include/languages-form.php:98
295
  msgid "Add new language"
296
  msgstr "Ajouter une nouvelle langue"
297
 
298
  #@ polylang
299
- #: include/languages-form.php:55
300
  msgid "Choose a language"
301
  msgstr "Choisir une langue"
302
 
303
  #@ polylang
304
- #: include/languages-form.php:63
305
  msgid "You can choose a language in the list or directly edit it below."
306
  msgstr "Choisissez une langue dans la liste ou éditez la directement ci-dessous."
307
 
308
  #@ polylang
309
- #: include/languages-form.php:69
310
  msgid "The name is how it is displayed on your site (for example: English)."
311
  msgstr "Le nom est utilisé un peu partout sur le site (par exemple : Français)"
312
 
313
  #@ polylang
314
- #: include/languages-form.php:76
315
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
316
  msgstr "Code local utilisé par Wordpress pour la langue (par exemple : fr_FR). Vous aurez besoin d'installer les fichiers .mo correspondant"
317
 
318
  #@ polylang
319
- #: include/languages-form.php:80
320
  msgid "Language code"
321
  msgstr "Code de la langue"
322
 
323
  #@ polylang
324
- #: include/languages-form.php:82
325
  msgid "2-letters ISO 639-1 language code (for example: en)"
326
  msgstr "Code ISO 639-1 à 2 lettres (par exemple : fr)"
327
 
328
  #@ polylang
329
- #: include/languages-form.php:95
330
  msgid "Position of the language in the language switcher"
331
  msgstr "Position de la langue dans la liste de langues"
332
 
333
  #@ default
334
- #: include/languages-form.php:98
335
  msgid "Update"
336
  msgstr "Mettre à jour"
337
 
338
  #@ polylang
339
- #: include/languages-form.php:134
340
  msgid "Language switcher"
341
  msgstr "Liste des langues"
342
 
343
  #@ polylang
344
- #: include/languages-form.php:173
345
  msgid "Default language"
346
  msgstr "Langue par défaut"
347
 
348
  #@ polylang
349
- #: include/languages-form.php:191
350
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
351
  msgstr "Il y a des articles, pages, catégories ou tags sans langue définie. Voulez-vous leur attribuer la langue par défaut ?"
352
 
353
  #@ polylang
354
- #: include/languages-form.php:199
355
  msgid "Detect browser language"
356
  msgstr "Détecter la langue du navigateur"
357
 
358
  #@ polylang
359
- #: include/languages-form.php:205
360
  msgid "When the front page is visited, set the language according to the browser preference"
361
  msgstr "Lorsque la page d'accueil est visitée pour la première fois, le visiteur est redirigé à la bonne URL en fonction des préférences de langue de son navigateur"
362
 
363
  #@ polylang
364
- #: include/languages-form.php:212
365
  msgid "URL modifications"
366
  msgstr "Modifications des URL"
367
 
368
  #@ polylang
369
- #: include/languages-form.php:218
370
  msgid "Keep /language/ in pretty permalinks. Example:"
371
  msgstr "Conserve /language/ dans les permaliens. Exemple :"
372
 
373
  #@ polylang
374
- #: include/languages-form.php:226
375
  msgid "Remove /language/ in pretty permalinks. Example:"
376
  msgstr "Supprime /language/ dans les permaliens. Exemple :"
377
 
378
  #@ polylang
379
- #: include/languages-form.php:234
380
  msgid "Hide URL language information for default language"
381
  msgstr "Cacher l'information de langue dans l'URL pour la langue par défaut"
382
 
@@ -401,64 +401,109 @@ msgid "Post ID"
401
  msgstr "ID de l'article"
402
 
403
  #@ polylang
404
- #: include/admin-filters.php:761
405
  msgid "Admin language"
406
  msgstr "Langue pour l'interface d'administration"
407
 
408
  #@ polylang
409
- #: polylang.php:185
410
  msgid "Error: Restore of local flags failed!"
411
  msgstr "Erreur : La restauration des drapeaux personnalisés a échoué"
412
 
413
  #@ polylang
414
- #: polylang.php:186
415
  #, php-format
416
  msgid "Please move your local flags from %s to %s"
417
  msgstr "Merci de déplacer vos drapeaux personnalisés de %s vers %s"
418
 
419
  #@ default
420
- #: include/admin-filters.php:697
421
  msgid "None"
422
  msgstr ""
423
 
424
  #@ polylang
425
- #: include/admin.php:473
426
  msgid "Upgrading language files&#8230;"
427
  msgstr "Mise à jour des fichiers de langues&#8230;"
428
 
429
  #@ polylang
430
- #: include/admin.php:485
431
  msgid "Hides the current language"
432
  msgstr "Cacher la langue courante"
433
 
434
  #@ polylang
435
- #: include/languages-form.php:86
436
  msgid "Text direction"
437
  msgstr "Système d'écriture"
438
 
439
  #@ polylang
440
- #: include/languages-form.php:87
441
  msgid "left to right"
442
  msgstr "de gauche à droite"
443
 
444
  #@ polylang
445
- #: include/languages-form.php:88
446
  msgid "right to left"
447
  msgstr "de droite à gauche"
448
 
449
  #@ polylang
450
- #: include/languages-form.php:89
451
  msgid "Choose the text direction for the language"
452
  msgstr "Choisir le système d'écriture pour la langue"
453
 
454
  #@ polylang
455
- #: include/languages-form.php:241
456
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
457
  msgstr "Ajoute le code de la langue dans tous les permaliens, inclus articles, pages, catégories et mots clés (non recommandé)"
458
 
459
- #@ default
460
- #: polylang.php:88
461
  #, php-format
462
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
463
  msgstr "Vous utilisez WordPress %s. Polylang nécessite au moins WordPress %s."
464
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
  #@ polylang
20
+ #: include/admin-filters.php:537
21
+ #: include/admin-filters.php:554
22
  #: include/list-table.php:12
23
  #: include/post-translations.php:4
24
  #: include/term-translations.php:15
26
  msgstr "Langue"
27
 
28
  #@ polylang
29
+ #: include/admin-filters.php:539
30
+ #: include/admin-filters.php:557
31
  msgid "Sets the language"
32
  msgstr "Définit la langue"
33
 
47
  msgstr "Titre :"
48
 
49
  #@ polylang
50
+ #: include/admin.php:486
51
  msgid "Displays language names"
52
  msgstr "Afficher le nom des langues"
53
 
54
  #@ polylang
55
+ #: include/admin.php:487
56
  msgid "Displays flags"
57
  msgstr "Afficher les drapeaux"
58
 
59
  #@ polylang
60
+ #: include/admin.php:492
61
  msgid "Displays as dropdown"
62
  msgstr "Afficher comme liste déroulante"
63
 
64
  #@ polylang
65
+ #: include/admin.php:488
66
  msgid "Forces link to front page"
67
  msgstr "Force le lien vers la page d'accueil"
68
 
69
  #@ default
70
  #@ polylang
71
+ #: include/admin.php:26
72
+ #: include/admin.php:300
73
  msgid "Settings"
74
  msgstr "Réglages"
75
 
76
  #@ polylang
77
+ #: include/admin-filters.php:187
78
+ #: include/admin.php:33
79
+ #: include/admin.php:292
80
  #: include/list-table.php:13
81
  msgid "Languages"
82
  msgstr "Langues"
83
 
84
  #@ polylang
85
+ #: include/admin.php:297
86
  msgid "Menus"
87
  msgstr "Menus"
88
 
89
  #@ polylang
90
+ #: include/admin.php:299
91
  #: include/list-table.php:104
92
  msgid "Strings translation"
93
  msgstr "Traduction de phrases"
94
 
95
  #@ polylang
96
+ #: include/admin.php:318
97
  msgid "Enter a valid WorPress locale"
98
  msgstr "Entrez un code local WordPress valide"
99
 
100
  #@ polylang
101
+ #: include/admin.php:319
102
  msgid "The language code must be 2 characters long"
103
  msgstr "Le code de la langue doit avoir 2 lettres"
104
 
105
  #@ polylang
106
+ #: include/admin.php:320
107
  msgid "The language code must be unique"
108
  msgstr "Le code de la langue doit être unique"
109
 
110
  #@ polylang
111
+ #: include/admin.php:321
112
  msgid "The language must have a name"
113
  msgstr "La langue doit avoir un nom"
114
 
115
  #@ polylang
116
+ #: include/admin.php:322
117
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
118
  msgstr "La langue a été créée, mais le fichier de langue WordPress n'a pu être téléchargé. Merci de l'installer manuellement."
119
 
120
  #@ polylang
121
+ #: include/admin.php:491
122
  msgid "Displays a language switcher at the end of the menu"
123
  msgstr "Affiche la liste des langues"
124
 
125
  #@ default
126
+ #: include/admin.php:501
127
  msgid "Site Title"
128
  msgstr ""
129
 
130
  #@ default
131
+ #: include/admin.php:502
132
  msgid "Tagline"
133
  msgstr ""
134
 
135
  #@ polylang
136
+ #: include/admin.php:520
137
  msgid "Widget title"
138
  msgstr "Titre de widget"
139
 
140
  #@ polylang
141
+ #: include/admin-filters.php:204
142
  msgid "Page's language:"
143
  msgstr "Langue de la page"
144
 
145
  #@ polylang
146
+ #: include/admin-filters.php:204
147
  msgid "Post's language:"
148
  msgstr "Langue de l'article"
149
 
180
  msgstr "Ajouter"
181
 
182
  #@ polylang
183
+ #: include/admin-filters.php:151
184
+ #: include/admin-filters.php:600
185
  msgid "Add new translation"
186
  msgstr "Ajoute une nouvelle traduction"
187
 
188
  #@ polylang
189
+ #: include/admin-filters.php:174
190
  msgid "Show all languages"
191
  msgstr "Afficher toutes les langues"
192
 
193
  #@ default
194
+ #: include/admin-filters.php:263
195
  msgid "(no parent)"
196
  msgstr ""
197
 
198
  #@ polylang
199
+ #: include/admin-filters.php:738
200
  msgid "Theme locations and languages"
201
  msgstr "Emplacements du thème et langues"
202
 
203
  #@ polylang
204
+ #: include/admin-filters.php:743
205
  #, php-format
206
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
207
  msgstr "Aller à la %spage langues%s pour définir les emplacements du thème et les langues"
208
 
209
  #@ polylang
210
+ #: include/admin-filters.php:754
211
  msgid "The widget is displayed for:"
212
  msgstr "Afficher le widget pour :"
213
 
214
  #@ polylang
215
+ #: include/base.php:38
216
  msgid "All languages"
217
  msgstr "Toutes les langues"
218
 
222
  msgstr "Supprimer"
223
 
224
  #@ polylang
225
+ #: include/languages-form.php:70
226
  #: include/list-table.php:45
227
  msgid "Full name"
228
  msgstr "Nom"
229
 
230
  #@ polylang
231
+ #: include/languages-form.php:76
232
  #: include/list-table.php:46
233
  msgid "Locale"
234
  msgstr "Code local"
239
  msgstr "Code"
240
 
241
  #@ polylang
242
+ #: include/languages-form.php:98
243
  #: include/list-table.php:48
244
  msgid "Order"
245
  msgstr "Ordre"
285
  msgstr ""
286
 
287
  #@ polylang
288
+ #: include/languages-form.php:36
289
  msgid "Edit language"
290
  msgstr "Modifier la langue"
291
 
292
  #@ polylang
293
+ #: include/languages-form.php:36
294
+ #: include/languages-form.php:103
295
  msgid "Add new language"
296
  msgstr "Ajouter une nouvelle langue"
297
 
298
  #@ polylang
299
+ #: include/languages-form.php:58
300
  msgid "Choose a language"
301
  msgstr "Choisir une langue"
302
 
303
  #@ polylang
304
+ #: include/languages-form.php:66
305
  msgid "You can choose a language in the list or directly edit it below."
306
  msgstr "Choisissez une langue dans la liste ou éditez la directement ci-dessous."
307
 
308
  #@ polylang
309
+ #: include/languages-form.php:72
310
  msgid "The name is how it is displayed on your site (for example: English)."
311
  msgstr "Le nom est utilisé un peu partout sur le site (par exemple : Français)"
312
 
313
  #@ polylang
314
+ #: include/languages-form.php:79
315
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
316
  msgstr "Code local utilisé par Wordpress pour la langue (par exemple : fr_FR). Vous aurez besoin d'installer les fichiers .mo correspondant"
317
 
318
  #@ polylang
319
+ #: include/languages-form.php:83
320
  msgid "Language code"
321
  msgstr "Code de la langue"
322
 
323
  #@ polylang
324
+ #: include/languages-form.php:85
325
  msgid "2-letters ISO 639-1 language code (for example: en)"
326
  msgstr "Code ISO 639-1 à 2 lettres (par exemple : fr)"
327
 
328
  #@ polylang
329
+ #: include/languages-form.php:100
330
  msgid "Position of the language in the language switcher"
331
  msgstr "Position de la langue dans la liste de langues"
332
 
333
  #@ default
334
+ #: include/languages-form.php:103
335
  msgid "Update"
336
  msgstr "Mettre à jour"
337
 
338
  #@ polylang
339
+ #: include/languages-form.php:149
340
  msgid "Language switcher"
341
  msgstr "Liste des langues"
342
 
343
  #@ polylang
344
+ #: include/languages-form.php:188
345
  msgid "Default language"
346
  msgstr "Langue par défaut"
347
 
348
  #@ polylang
349
+ #: include/languages-form.php:206
350
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
351
  msgstr "Il y a des articles, pages, catégories ou tags sans langue définie. Voulez-vous leur attribuer la langue par défaut ?"
352
 
353
  #@ polylang
354
+ #: include/languages-form.php:214
355
  msgid "Detect browser language"
356
  msgstr "Détecter la langue du navigateur"
357
 
358
  #@ polylang
359
+ #: include/languages-form.php:220
360
  msgid "When the front page is visited, set the language according to the browser preference"
361
  msgstr "Lorsque la page d'accueil est visitée pour la première fois, le visiteur est redirigé à la bonne URL en fonction des préférences de langue de son navigateur"
362
 
363
  #@ polylang
364
+ #: include/languages-form.php:227
365
  msgid "URL modifications"
366
  msgstr "Modifications des URL"
367
 
368
  #@ polylang
369
+ #: include/languages-form.php:233
370
  msgid "Keep /language/ in pretty permalinks. Example:"
371
  msgstr "Conserve /language/ dans les permaliens. Exemple :"
372
 
373
  #@ polylang
374
+ #: include/languages-form.php:241
375
  msgid "Remove /language/ in pretty permalinks. Example:"
376
  msgstr "Supprime /language/ dans les permaliens. Exemple :"
377
 
378
  #@ polylang
379
+ #: include/languages-form.php:249
380
  msgid "Hide URL language information for default language"
381
  msgstr "Cacher l'information de langue dans l'URL pour la langue par défaut"
382
 
401
  msgstr "ID de l'article"
402
 
403
  #@ polylang
404
+ #: include/admin-filters.php:785
405
  msgid "Admin language"
406
  msgstr "Langue pour l'interface d'administration"
407
 
408
  #@ polylang
409
+ #: polylang.php:193
410
  msgid "Error: Restore of local flags failed!"
411
  msgstr "Erreur : La restauration des drapeaux personnalisés a échoué"
412
 
413
  #@ polylang
414
+ #: polylang.php:194
415
  #, php-format
416
  msgid "Please move your local flags from %s to %s"
417
  msgstr "Merci de déplacer vos drapeaux personnalisés de %s vers %s"
418
 
419
  #@ default
420
+ #: include/admin-filters.php:721
421
  msgid "None"
422
  msgstr ""
423
 
424
  #@ polylang
425
+ #: include/admin.php:475
426
  msgid "Upgrading language files&#8230;"
427
  msgstr "Mise à jour des fichiers de langues&#8230;"
428
 
429
  #@ polylang
430
+ #: include/admin.php:489
431
  msgid "Hides the current language"
432
  msgstr "Cacher la langue courante"
433
 
434
  #@ polylang
435
+ #: include/languages-form.php:89
436
  msgid "Text direction"
437
  msgstr "Système d'écriture"
438
 
439
  #@ polylang
440
+ #: include/languages-form.php:91
441
  msgid "left to right"
442
  msgstr "de gauche à droite"
443
 
444
  #@ polylang
445
+ #: include/languages-form.php:93
446
  msgid "right to left"
447
  msgstr "de droite à gauche"
448
 
449
  #@ polylang
450
+ #: include/languages-form.php:94
451
  msgid "Choose the text direction for the language"
452
  msgstr "Choisir le système d'écriture pour la langue"
453
 
454
  #@ polylang
455
+ #: include/languages-form.php:256
456
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
457
  msgstr "Ajoute le code de la langue dans tous les permaliens, inclus articles, pages, catégories et mots clés (non recommandé)"
458
 
459
+ #@ polylang
460
+ #: polylang.php:97
461
  #, php-format
462
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
463
  msgstr "Vous utilisez WordPress %s. Polylang nécessite au moins WordPress %s."
464
 
465
+ #@ polylang
466
+ #: include/about.php:3
467
+ #, php-format
468
+ 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."
469
+ msgstr "Polylang est fourni avec une %sdocumentation%s (en anglais). Elle explique comment installer votre site multilingue et l'utiliser au jour le jour. Elle contient aussi une FAQ et une documentation pour les programmeurs leur permettant d'adapter leurs extensions et leurs thèmes."
470
+
471
+ #@ polylang
472
+ #: include/about.php:8
473
+ #, php-format
474
+ 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."
475
+ msgstr "Vous pouvez aussi trouver des informations dans le %sforum de support%s (en anglais). Cependant, n'oubliez pas de faire une recherche avant de poster."
476
+
477
+ #@ polylang
478
+ #: include/about.php:14
479
+ #, php-format
480
+ msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
481
+ msgstr "Polylang est gratuit et publié sous la même licence que WordPress, la %sGPL%s."
482
+
483
+ #@ polylang
484
+ #: include/about.php:18
485
+ #, php-format
486
+ msgid "If you wonder how you can help the project, just %sread this%s."
487
+ msgstr "Si vous souhaitez aider le projet, %slisez cela%s."
488
+
489
+ #@ polylang
490
+ #: include/about.php:22
491
+ msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
492
+ msgstr "Enfin, si vous aimez cette extension ou si elle vous aide dans votre business, vous pouvez faire un don à l'auteur."
493
+
494
+ #@ polylang
495
+ #: include/admin.php:38
496
+ msgid "About Polylang"
497
+ msgstr "A propos de Polylang"
498
+
499
+ #@ polylang
500
+ #: include/languages-form.php:263
501
+ #, php-format
502
+ msgid "Redirect the language page (example: %s) to the homepage in the right language"
503
+ msgstr "Rediriger la page de langue (exemple: %s) vers la page d'accueil dans la bonne langue"
504
+
505
+ #@ polylang
506
+ #: polylang.php:111
507
+ msgid "For some reasons, Polylang could not create a table in your database."
508
+ msgstr "Polylang n'a pu crée une table dans votre base de données."
509
+
languages/polylang-he_IL.mo CHANGED
Binary file
languages/polylang-he_IL.po CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "POT-Creation-Date: 2012-01-03 20:07+0100\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
- "Language-Team: <a@arielk.net>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -18,19 +18,19 @@ msgstr ""
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
  #@ polylang
21
- #: polylang.php:185
22
  msgid "Error: Restore of local flags failed!"
23
  msgstr "שגיאה: שחזור דגלים מקומי נכשל!"
24
 
25
  #@ polylang
26
- #: polylang.php:186
27
  #, php-format
28
  msgid "Please move your local flags from %s to %s"
29
  msgstr "נא להעביר דגל שפה מ %s ל %s"
30
 
31
  #@ polylang
32
- #: include/admin-filters.php:512
33
- #: include/admin-filters.php:529
34
  #: include/list-table.php:12
35
  #: include/post-translations.php:4
36
  #: include/term-translations.php:15
@@ -38,8 +38,8 @@ msgid "Language"
38
  msgstr "שפה"
39
 
40
  #@ polylang
41
- #: include/admin-filters.php:514
42
- #: include/admin-filters.php:532
43
  msgid "Sets the language"
44
  msgstr "הגדרות שפה"
45
 
@@ -59,103 +59,103 @@ msgid "Title:"
59
  msgstr "כותרת:"
60
 
61
  #@ polylang
62
- #: include/admin.php:482
63
  msgid "Displays language names"
64
  msgstr "הצגת שם שפה"
65
 
66
  #@ polylang
67
- #: include/admin.php:483
68
  msgid "Displays flags"
69
  msgstr "הצגת דגלים"
70
 
71
  #@ polylang
72
- #: include/admin.php:488
73
  msgid "Displays as dropdown"
74
  msgstr "הצג בתפריט נפתח"
75
 
76
  #@ polylang
77
- #: include/admin.php:484
78
  msgid "Forces link to front page"
79
  msgstr "לקשר תמיד לעמוד הבית"
80
 
81
  #@ default
82
  #@ polylang
83
- #: include/admin.php:25
84
- #: include/admin.php:298
85
  msgid "Settings"
86
  msgstr "הגדרות"
87
 
88
  #@ polylang
89
- #: include/admin-filters.php:185
90
- #: include/admin.php:32
91
- #: include/admin.php:291
92
  #: include/list-table.php:13
93
  msgid "Languages"
94
  msgstr "שפות"
95
 
96
  #@ polylang
97
- #: include/admin.php:296
98
  msgid "Menus"
99
  msgstr "תפריטים"
100
 
101
  #@ polylang
102
- #: include/admin.php:298
103
  #: include/list-table.php:104
104
  msgid "Strings translation"
105
  msgstr "מחרוזות תרגום"
106
 
107
  #@ polylang
108
- #: include/admin.php:316
109
  msgid "Enter a valid WorPress locale"
110
  msgstr "הזן אזור שתקף בוורדפרס"
111
 
112
  #@ polylang
113
- #: include/admin.php:317
114
  msgid "The language code must be 2 characters long"
115
  msgstr "קוד שפה חייב להיות עם 2 תוים לפחות"
116
 
117
  #@ polylang
118
- #: include/admin.php:318
119
  msgid "The language code must be unique"
120
  msgstr "קוד שפה חייב להיות ייחודי"
121
 
122
  #@ polylang
123
- #: include/admin.php:319
124
  msgid "The language must have a name"
125
  msgstr "שם שפה חובה"
126
 
127
  #@ polylang
128
- #: include/admin.php:320
129
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
130
  msgstr "השפה נוצרה, אבל את הקובץ שפה של וורדפרס לא היה ניתן להוריד. אנא התקן את הקבצים באופן ידני."
131
 
132
  #@ polylang
133
- #: include/admin.php:487
134
  msgid "Displays a language switcher at the end of the menu"
135
  msgstr "הצג את מחליף השפות בסוף התפריט"
136
 
137
  #@ default
138
- #: include/admin.php:497
139
  msgid "Site Title"
140
  msgstr "כותרת אתר"
141
 
142
  #@ default
143
- #: include/admin.php:498
144
  msgid "Tagline"
145
  msgstr "שורת תגים"
146
 
147
  #@ polylang
148
- #: include/admin.php:517
149
  msgid "Widget title"
150
  msgstr "וידג'ט טקסט"
151
 
152
  #@ polylang
153
- #: include/admin-filters.php:202
154
  msgid "Page's language:"
155
  msgstr "תרגום עמודים"
156
 
157
  #@ polylang
158
- #: include/admin-filters.php:202
159
  msgid "Post's language:"
160
  msgstr "תרגום פוסטים"
161
 
@@ -192,39 +192,39 @@ msgid "Add new"
192
  msgstr "הוספת חדש"
193
 
194
  #@ polylang
195
- #: include/admin-filters.php:148
196
- #: include/admin-filters.php:575
197
  msgid "Add new translation"
198
  msgstr "הוספת תרגום חדש"
199
 
200
  #@ polylang
201
- #: include/admin-filters.php:172
202
  msgid "Show all languages"
203
  msgstr "הצג את כל השפות"
204
 
205
  #@ default
206
- #: include/admin-filters.php:262
207
  msgid "(no parent)"
208
  msgstr "(אין הורה)"
209
 
210
  #@ polylang
211
- #: include/admin-filters.php:714
212
  msgid "Theme locations and languages"
213
  msgstr "מיקום ערכות נושא ושפות"
214
 
215
  #@ polylang
216
- #: include/admin-filters.php:719
217
  #, php-format
218
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
219
  msgstr "בבקשה עבור ל %sהגדרות שפה%s כדי לבחור תפריט ראשי לכל שפה"
220
 
221
  #@ polylang
222
- #: include/admin-filters.php:730
223
  msgid "The widget is displayed for:"
224
  msgstr "וידגט' זה יוצג בשפה:"
225
 
226
  #@ polylang
227
- #: include/base.php:33
228
  msgid "All languages"
229
  msgstr "כל השפות"
230
 
@@ -234,13 +234,13 @@ msgid "Delete"
234
  msgstr "מחיקה"
235
 
236
  #@ polylang
237
- #: include/languages-form.php:67
238
  #: include/list-table.php:45
239
  msgid "Full name"
240
  msgstr "שם מלא"
241
 
242
  #@ polylang
243
- #: include/languages-form.php:73
244
  #: include/list-table.php:46
245
  msgid "Locale"
246
  msgstr "מיקום"
@@ -251,7 +251,7 @@ msgid "Code"
251
  msgstr "קוד"
252
 
253
  #@ polylang
254
- #: include/languages-form.php:93
255
  #: include/list-table.php:48
256
  msgid "Order"
257
  msgstr "סידור"
@@ -289,98 +289,98 @@ msgid "View posts for %1$s %2$s"
289
  msgstr "הצג פוסטים עבור %1$s %2$s"
290
 
291
  #@ polylang
292
- #: include/languages-form.php:33
293
  msgid "Edit language"
294
  msgstr "עריכת שפה"
295
 
296
  #@ polylang
297
- #: include/languages-form.php:33
298
- #: include/languages-form.php:98
299
  msgid "Add new language"
300
  msgstr "הוספת שפה חדשה"
301
 
302
  #@ polylang
303
- #: include/languages-form.php:55
304
  msgid "Choose a language"
305
  msgstr "בחירת שפה"
306
 
307
  #@ polylang
308
- #: include/languages-form.php:63
309
  msgid "You can choose a language in the list or directly edit it below."
310
  msgstr "אתה יכול לבחור שפה מהרשימה או ישירות לערוך אותה בהמשך."
311
 
312
  #@ polylang
313
- #: include/languages-form.php:69
314
  msgid "The name is how it is displayed on your site (for example: English)."
315
  msgstr "השם שיוצג באתר שלך (לדוגמא: עברית)"
316
 
317
  #@ polylang
318
- #: include/languages-form.php:76
319
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
320
  msgstr "קבצי שפה של וורדפרס (לדוגמא he_IL ). חייב להיות קובץ .MO בשביל הגדרת שפה"
321
 
322
  #@ polylang
323
- #: include/languages-form.php:80
324
  msgid "Language code"
325
  msgstr "קוד שפה"
326
 
327
  #@ polylang
328
- #: include/languages-form.php:82
329
  msgid "2-letters ISO 639-1 language code (for example: en)"
330
  msgstr "2 תוים לפחות (לדוגמא: he)"
331
 
332
  #@ polylang
333
- #: include/languages-form.php:95
334
  msgid "Position of the language in the language switcher"
335
  msgstr "מיקום שפה במחליף השפות"
336
 
337
  #@ default
338
- #: include/languages-form.php:98
339
  msgid "Update"
340
  msgstr "עדכון"
341
 
342
  #@ polylang
343
- #: include/languages-form.php:134
344
  msgid "Language switcher"
345
  msgstr "מחליף שפות"
346
 
347
  #@ polylang
348
- #: include/languages-form.php:173
349
  msgid "Default language"
350
  msgstr "שפת ברירת מחדל"
351
 
352
  #@ polylang
353
- #: include/languages-form.php:191
354
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
355
  msgstr "יש הודעות, דפים, קטגוריות או תגיות שאינם מוגדרים בשפה מסויימת. האם להגדיר את כולם שפת ברירת המחדל? "
356
 
357
  #@ polylang
358
- #: include/languages-form.php:199
359
  msgid "Detect browser language"
360
  msgstr "זהה שפת דפדפן"
361
 
362
  #@ polylang
363
- #: include/languages-form.php:205
364
  msgid "When the front page is visited, set the language according to the browser preference"
365
  msgstr "כאשר הגולש הגיע לעמוד הבית, הצג את השפה על פי שפת הדפדפן של הגולש"
366
 
367
  #@ polylang
368
- #: include/languages-form.php:212
369
  msgid "URL modifications"
370
  msgstr "שינויי URL"
371
 
372
  #@ polylang
373
- #: include/languages-form.php:218
374
  msgid "Keep /language/ in pretty permalinks. Example:"
375
  msgstr "כתובת מיקום שפה לאחר /language/. לדוגמא:"
376
 
377
  #@ polylang
378
- #: include/languages-form.php:226
379
  msgid "Remove /language/ in pretty permalinks. Example:"
380
  msgstr "מחק /language/ מכתובת השפה. לדוגמא:"
381
 
382
  #@ polylang
383
- #: include/languages-form.php:234
384
  msgid "Hide URL language information for default language"
385
  msgstr "הסר שינוי כתובת עבור שפת ברירת מחדל"
386
 
@@ -405,22 +405,22 @@ msgid "Post ID"
405
  msgstr "מספר זיהוי פוסט"
406
 
407
  #@ polylang
408
- #: include/admin-filters.php:761
409
  msgid "Admin language"
410
  msgstr "שפת פאנל ניהול"
411
 
412
  #@ default
413
- #: include/admin-filters.php:697
414
  msgid "None"
415
  msgstr "ללא"
416
 
417
  #@ polylang
418
- #: include/admin.php:473
419
  msgid "Upgrading language files&#8230;"
420
  msgstr "עדכון קבצי שפה&#8230;"
421
 
422
  #@ polylang
423
- #: include/admin.php:485
424
  msgid "Hides the current language"
425
  msgstr "הסתר שפה נוכחית"
426
 
@@ -433,33 +433,78 @@ msgid "%1$s %2$s"
433
  msgstr "%1$s %2$s"
434
 
435
  #@ polylang
436
- #: include/languages-form.php:86
437
  msgid "Text direction"
438
  msgstr "כיוון טקסט"
439
 
440
  #@ polylang
441
- #: include/languages-form.php:87
442
  msgid "left to right"
443
  msgstr "שמאל לימין"
444
 
445
  #@ polylang
446
- #: include/languages-form.php:88
447
  msgid "right to left"
448
  msgstr "ימין לשמאל"
449
 
450
  #@ polylang
451
- #: include/languages-form.php:89
452
  msgid "Choose the text direction for the language"
453
  msgstr "בחר כיווניות טקסט עבור השפה"
454
 
455
  #@ polylang
456
- #: include/languages-form.php:241
457
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
458
  msgstr "הוספת תווי שפה ייחודיים ב URL של הפוסטים, עמודים, קטגוריות ותגיות (לא מומלץ)"
459
 
460
- #@ default
461
- #: polylang.php:88
462
  #, php-format
463
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
464
  msgstr "אתה משתמש בוורדפרס %s. התוסף דורש לפחות וורדפרס גרסה %s."
465
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  "POT-Creation-Date: 2012-01-03 20:07+0100\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
+ "Language-Team: ARYO Digital <a@arielk.net>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
  #@ polylang
21
+ #: polylang.php:193
22
  msgid "Error: Restore of local flags failed!"
23
  msgstr "שגיאה: שחזור דגלים מקומי נכשל!"
24
 
25
  #@ polylang
26
+ #: polylang.php:194
27
  #, php-format
28
  msgid "Please move your local flags from %s to %s"
29
  msgstr "נא להעביר דגל שפה מ %s ל %s"
30
 
31
  #@ polylang
32
+ #: include/admin-filters.php:537
33
+ #: include/admin-filters.php:554
34
  #: include/list-table.php:12
35
  #: include/post-translations.php:4
36
  #: include/term-translations.php:15
38
  msgstr "שפה"
39
 
40
  #@ polylang
41
+ #: include/admin-filters.php:539
42
+ #: include/admin-filters.php:557
43
  msgid "Sets the language"
44
  msgstr "הגדרות שפה"
45
 
59
  msgstr "כותרת:"
60
 
61
  #@ polylang
62
+ #: include/admin.php:486
63
  msgid "Displays language names"
64
  msgstr "הצגת שם שפה"
65
 
66
  #@ polylang
67
+ #: include/admin.php:487
68
  msgid "Displays flags"
69
  msgstr "הצגת דגלים"
70
 
71
  #@ polylang
72
+ #: include/admin.php:492
73
  msgid "Displays as dropdown"
74
  msgstr "הצג בתפריט נפתח"
75
 
76
  #@ polylang
77
+ #: include/admin.php:488
78
  msgid "Forces link to front page"
79
  msgstr "לקשר תמיד לעמוד הבית"
80
 
81
  #@ default
82
  #@ polylang
83
+ #: include/admin.php:26
84
+ #: include/admin.php:300
85
  msgid "Settings"
86
  msgstr "הגדרות"
87
 
88
  #@ polylang
89
+ #: include/admin-filters.php:187
90
+ #: include/admin.php:33
91
+ #: include/admin.php:292
92
  #: include/list-table.php:13
93
  msgid "Languages"
94
  msgstr "שפות"
95
 
96
  #@ polylang
97
+ #: include/admin.php:297
98
  msgid "Menus"
99
  msgstr "תפריטים"
100
 
101
  #@ polylang
102
+ #: include/admin.php:299
103
  #: include/list-table.php:104
104
  msgid "Strings translation"
105
  msgstr "מחרוזות תרגום"
106
 
107
  #@ polylang
108
+ #: include/admin.php:318
109
  msgid "Enter a valid WorPress locale"
110
  msgstr "הזן אזור שתקף בוורדפרס"
111
 
112
  #@ polylang
113
+ #: include/admin.php:319
114
  msgid "The language code must be 2 characters long"
115
  msgstr "קוד שפה חייב להיות עם 2 תוים לפחות"
116
 
117
  #@ polylang
118
+ #: include/admin.php:320
119
  msgid "The language code must be unique"
120
  msgstr "קוד שפה חייב להיות ייחודי"
121
 
122
  #@ polylang
123
+ #: include/admin.php:321
124
  msgid "The language must have a name"
125
  msgstr "שם שפה חובה"
126
 
127
  #@ polylang
128
+ #: include/admin.php:322
129
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
130
  msgstr "השפה נוצרה, אבל את הקובץ שפה של וורדפרס לא היה ניתן להוריד. אנא התקן את הקבצים באופן ידני."
131
 
132
  #@ polylang
133
+ #: include/admin.php:491
134
  msgid "Displays a language switcher at the end of the menu"
135
  msgstr "הצג את מחליף השפות בסוף התפריט"
136
 
137
  #@ default
138
+ #: include/admin.php:501
139
  msgid "Site Title"
140
  msgstr "כותרת אתר"
141
 
142
  #@ default
143
+ #: include/admin.php:502
144
  msgid "Tagline"
145
  msgstr "שורת תגים"
146
 
147
  #@ polylang
148
+ #: include/admin.php:520
149
  msgid "Widget title"
150
  msgstr "וידג'ט טקסט"
151
 
152
  #@ polylang
153
+ #: include/admin-filters.php:204
154
  msgid "Page's language:"
155
  msgstr "תרגום עמודים"
156
 
157
  #@ polylang
158
+ #: include/admin-filters.php:204
159
  msgid "Post's language:"
160
  msgstr "תרגום פוסטים"
161
 
192
  msgstr "הוספת חדש"
193
 
194
  #@ polylang
195
+ #: include/admin-filters.php:151
196
+ #: include/admin-filters.php:600
197
  msgid "Add new translation"
198
  msgstr "הוספת תרגום חדש"
199
 
200
  #@ polylang
201
+ #: include/admin-filters.php:174
202
  msgid "Show all languages"
203
  msgstr "הצג את כל השפות"
204
 
205
  #@ default
206
+ #: include/admin-filters.php:263
207
  msgid "(no parent)"
208
  msgstr "(אין הורה)"
209
 
210
  #@ polylang
211
+ #: include/admin-filters.php:738
212
  msgid "Theme locations and languages"
213
  msgstr "מיקום ערכות נושא ושפות"
214
 
215
  #@ polylang
216
+ #: include/admin-filters.php:743
217
  #, php-format
218
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
219
  msgstr "בבקשה עבור ל %sהגדרות שפה%s כדי לבחור תפריט ראשי לכל שפה"
220
 
221
  #@ polylang
222
+ #: include/admin-filters.php:754
223
  msgid "The widget is displayed for:"
224
  msgstr "וידגט' זה יוצג בשפה:"
225
 
226
  #@ polylang
227
+ #: include/base.php:38
228
  msgid "All languages"
229
  msgstr "כל השפות"
230
 
234
  msgstr "מחיקה"
235
 
236
  #@ polylang
237
+ #: include/languages-form.php:70
238
  #: include/list-table.php:45
239
  msgid "Full name"
240
  msgstr "שם מלא"
241
 
242
  #@ polylang
243
+ #: include/languages-form.php:76
244
  #: include/list-table.php:46
245
  msgid "Locale"
246
  msgstr "מיקום"
251
  msgstr "קוד"
252
 
253
  #@ polylang
254
+ #: include/languages-form.php:98
255
  #: include/list-table.php:48
256
  msgid "Order"
257
  msgstr "סידור"
289
  msgstr "הצג פוסטים עבור %1$s %2$s"
290
 
291
  #@ polylang
292
+ #: include/languages-form.php:36
293
  msgid "Edit language"
294
  msgstr "עריכת שפה"
295
 
296
  #@ polylang
297
+ #: include/languages-form.php:36
298
+ #: include/languages-form.php:103
299
  msgid "Add new language"
300
  msgstr "הוספת שפה חדשה"
301
 
302
  #@ polylang
303
+ #: include/languages-form.php:58
304
  msgid "Choose a language"
305
  msgstr "בחירת שפה"
306
 
307
  #@ polylang
308
+ #: include/languages-form.php:66
309
  msgid "You can choose a language in the list or directly edit it below."
310
  msgstr "אתה יכול לבחור שפה מהרשימה או ישירות לערוך אותה בהמשך."
311
 
312
  #@ polylang
313
+ #: include/languages-form.php:72
314
  msgid "The name is how it is displayed on your site (for example: English)."
315
  msgstr "השם שיוצג באתר שלך (לדוגמא: עברית)"
316
 
317
  #@ polylang
318
+ #: include/languages-form.php:79
319
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
320
  msgstr "קבצי שפה של וורדפרס (לדוגמא he_IL ). חייב להיות קובץ .MO בשביל הגדרת שפה"
321
 
322
  #@ polylang
323
+ #: include/languages-form.php:83
324
  msgid "Language code"
325
  msgstr "קוד שפה"
326
 
327
  #@ polylang
328
+ #: include/languages-form.php:85
329
  msgid "2-letters ISO 639-1 language code (for example: en)"
330
  msgstr "2 תוים לפחות (לדוגמא: he)"
331
 
332
  #@ polylang
333
+ #: include/languages-form.php:100
334
  msgid "Position of the language in the language switcher"
335
  msgstr "מיקום שפה במחליף השפות"
336
 
337
  #@ default
338
+ #: include/languages-form.php:103
339
  msgid "Update"
340
  msgstr "עדכון"
341
 
342
  #@ polylang
343
+ #: include/languages-form.php:149
344
  msgid "Language switcher"
345
  msgstr "מחליף שפות"
346
 
347
  #@ polylang
348
+ #: include/languages-form.php:188
349
  msgid "Default language"
350
  msgstr "שפת ברירת מחדל"
351
 
352
  #@ polylang
353
+ #: include/languages-form.php:206
354
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
355
  msgstr "יש הודעות, דפים, קטגוריות או תגיות שאינם מוגדרים בשפה מסויימת. האם להגדיר את כולם שפת ברירת המחדל? "
356
 
357
  #@ polylang
358
+ #: include/languages-form.php:214
359
  msgid "Detect browser language"
360
  msgstr "זהה שפת דפדפן"
361
 
362
  #@ polylang
363
+ #: include/languages-form.php:220
364
  msgid "When the front page is visited, set the language according to the browser preference"
365
  msgstr "כאשר הגולש הגיע לעמוד הבית, הצג את השפה על פי שפת הדפדפן של הגולש"
366
 
367
  #@ polylang
368
+ #: include/languages-form.php:227
369
  msgid "URL modifications"
370
  msgstr "שינויי URL"
371
 
372
  #@ polylang
373
+ #: include/languages-form.php:233
374
  msgid "Keep /language/ in pretty permalinks. Example:"
375
  msgstr "כתובת מיקום שפה לאחר /language/. לדוגמא:"
376
 
377
  #@ polylang
378
+ #: include/languages-form.php:241
379
  msgid "Remove /language/ in pretty permalinks. Example:"
380
  msgstr "מחק /language/ מכתובת השפה. לדוגמא:"
381
 
382
  #@ polylang
383
+ #: include/languages-form.php:249
384
  msgid "Hide URL language information for default language"
385
  msgstr "הסר שינוי כתובת עבור שפת ברירת מחדל"
386
 
405
  msgstr "מספר זיהוי פוסט"
406
 
407
  #@ polylang
408
+ #: include/admin-filters.php:785
409
  msgid "Admin language"
410
  msgstr "שפת פאנל ניהול"
411
 
412
  #@ default
413
+ #: include/admin-filters.php:721
414
  msgid "None"
415
  msgstr "ללא"
416
 
417
  #@ polylang
418
+ #: include/admin.php:475
419
  msgid "Upgrading language files&#8230;"
420
  msgstr "עדכון קבצי שפה&#8230;"
421
 
422
  #@ polylang
423
+ #: include/admin.php:489
424
  msgid "Hides the current language"
425
  msgstr "הסתר שפה נוכחית"
426
 
433
  msgstr "%1$s %2$s"
434
 
435
  #@ polylang
436
+ #: include/languages-form.php:89
437
  msgid "Text direction"
438
  msgstr "כיוון טקסט"
439
 
440
  #@ polylang
441
+ #: include/languages-form.php:91
442
  msgid "left to right"
443
  msgstr "שמאל לימין"
444
 
445
  #@ polylang
446
+ #: include/languages-form.php:93
447
  msgid "right to left"
448
  msgstr "ימין לשמאל"
449
 
450
  #@ polylang
451
+ #: include/languages-form.php:94
452
  msgid "Choose the text direction for the language"
453
  msgstr "בחר כיווניות טקסט עבור השפה"
454
 
455
  #@ polylang
456
+ #: include/languages-form.php:256
457
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
458
  msgstr "הוספת תווי שפה ייחודיים ב URL של הפוסטים, עמודים, קטגוריות ותגיות (לא מומלץ)"
459
 
460
+ #@ polylang
461
+ #: polylang.php:97
462
  #, php-format
463
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
464
  msgstr "אתה משתמש בוורדפרס %s. התוסף דורש לפחות וורדפרס גרסה %s."
465
 
466
+ #@ polylang
467
+ #: include/about.php:3
468
+ #, php-format
469
+ 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."
470
+ msgstr "התוסף מסופק עם %sתיעוד מסודר%s (באנגלית בלבד). התיעוד כולל מידע על הקמת אתר רב לשוני והשתמשות בו על בסיס יומיומי, שאלות נפוצות, וכן תיעוד עבור מפתחים להתאמת תוספים וערכות נושא לתוסף."
471
+
472
+ #@ polylang
473
+ #: include/about.php:8
474
+ #, php-format
475
+ 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."
476
+ msgstr "תוכלו למצוא מידע שימושי ב %sפורום תמיכה%s של התוסף. רק אל תשכחו לחפש לפני שאתם שואלים."
477
+
478
+ #@ polylang
479
+ #: include/about.php:14
480
+ #, php-format
481
+ msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
482
+ msgstr "התוסף ללא תשלום והוא משוחרר לשימוש חופשי ברישיון %sGPL%s בדומה לוורדפרס."
483
+
484
+ #@ polylang
485
+ #: include/about.php:18
486
+ #, php-format
487
+ msgid "If you wonder how you can help the project, just %sread this%s."
488
+ msgstr "אם הינכם מעוניינים לעזור לפרויקט הזה %sקראו כאן%s."
489
+
490
+ #@ polylang
491
+ #: include/about.php:22
492
+ msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
493
+ msgstr "אם אתם ממש אוהבים את התוסף הזה או שזה עוזר לעסק שלכם, אני מאוד אעריך אם תתמכו בי."
494
+
495
+ #@ polylang
496
+ #: include/admin.php:38
497
+ msgid "About Polylang"
498
+ msgstr "אודות התוסף"
499
+
500
+ #@ polylang
501
+ #: include/languages-form.php:263
502
+ #, php-format
503
+ msgid "Redirect the language page (example: %s) to the homepage in the right language"
504
+ msgstr "הפנה את העמוד שפה (למשל: %s) לעמוד הבית בשפה הנכונה"
505
+
506
+ #@ polylang
507
+ #: polylang.php:111
508
+ msgid "For some reasons, Polylang could not create a table in your database."
509
+ msgstr "מסיבות מסויימות, התוסף לא יוצר טבלה במסד הנתונים של המערכת"
510
+
languages/polylang-nl_NL.mo CHANGED
Binary file
languages/polylang-nl_NL.po CHANGED
@@ -10,462 +10,503 @@ msgstr ""
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;_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"
15
  "X-Poedit-Basepath: .\n"
16
- "X-Textdomain-Support: yes\n"
17
  "X-Poedit-SearchPath-0: ..\n"
 
18
 
 
19
  #@ polylang
20
- #: polylang.php:185
21
  msgid "Error: Restore of local flags failed!"
22
  msgstr "Fout: Herstel van lokale vlaggen mislukt!"
23
 
24
- #@ polylang
25
- #: polylang.php:186
26
  #, php-format
 
27
  msgid "Please move your local flags from %s to %s"
28
  msgstr "Verplaats je lokale vlaggen van %s naar %s"
29
 
30
- #@ polylang
31
- #: include/add-term-form.php:5
32
- #: include/admin-filters.php:512
33
- #: include/admin-filters.php:529
34
- #: include/edit-term-form.php:6
35
  #: include/list-table.php:12
36
  #: include/post-translations.php:4
37
  #: include/term-translations.php:15
 
38
  msgid "Language"
39
  msgstr "Taal"
40
 
 
 
41
  #@ polylang
42
- #: include/add-term-form.php:17
43
- #: include/admin-filters.php:514
44
- #: include/admin-filters.php:532
45
- #: include/edit-term-form.php:19
46
  msgid "Sets the language"
47
  msgstr "Stelt de taal in"
48
 
49
- #@ polylang
50
  #: include/widget.php:6
 
51
  msgid "Language Switcher"
52
  msgstr "Taalschakelaar"
53
 
54
- #@ polylang
55
  #: include/widget.php:6
 
56
  msgid "Displays a language switcher"
57
  msgstr "Toon een taalschakelaar"
58
 
59
- #@ polylang
60
  #: include/widget.php:71
 
61
  msgid "Title:"
62
  msgstr "Titel:"
63
 
 
64
  #@ polylang
65
- #: include/admin.php:483
66
  msgid "Displays language names"
67
  msgstr "Toon namen van talen"
68
 
 
69
  #@ polylang
70
- #: include/admin.php:484
71
  msgid "Displays flags"
72
  msgstr "Toon vlaggen"
73
 
 
74
  #@ polylang
75
- #: include/admin.php:489
76
  msgid "Displays as dropdown"
77
  msgstr "Toon als dropdown"
78
 
 
79
  #@ polylang
80
- #: include/admin.php:485
81
  msgid "Forces link to front page"
82
  msgstr "Forceer link naar startpagina"
83
 
 
 
84
  #@ default
85
  #@ polylang
86
- #: include/admin.php:25
87
- #: include/admin.php:298
88
  msgid "Settings"
89
  msgstr "Instellingen"
90
 
91
- #@ polylang
92
- #: include/admin-filters.php:185
93
- #: include/admin.php:32
94
- #: include/admin.php:291
95
  #: include/list-table.php:13
 
96
  msgid "Languages"
97
  msgstr "Talen"
98
 
 
99
  #@ polylang
100
- #: include/admin.php:296
101
  msgid "Menus"
102
  msgstr "Menu's"
103
 
104
- #@ polylang
105
- #: include/admin.php:298
106
  #: include/list-table.php:104
 
107
  msgid "Strings translation"
108
  msgstr "Tekstvertaling"
109
 
 
110
  #@ polylang
111
- #: include/admin.php:316
112
  msgid "Enter a valid WorPress locale"
113
  msgstr "Voer een geldige Wordpress lokaal in"
114
 
 
115
  #@ polylang
116
- #: include/admin.php:317
117
  msgid "The language code must be 2 characters long"
118
  msgstr "De taalcode moet uit 2 karakters bestaan"
119
 
 
120
  #@ polylang
121
- #: include/admin.php:318
122
  msgid "The language code must be unique"
123
  msgstr "De taalcode moet uniek zijn"
124
 
 
125
  #@ polylang
126
- #: include/admin.php:319
127
  msgid "The language must have a name"
128
  msgstr "De taal moet een naam hebben"
129
 
 
130
  #@ polylang
131
- #: include/admin.php:320
132
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
133
  msgstr "De taal was gecreëerd, maar het Wordpress taalbestand was niet gedownload. Handmatige installatie is noodzakelijk."
134
 
 
135
  #@ polylang
136
- #: include/admin.php:488
137
  msgid "Displays a language switcher at the end of the menu"
138
  msgstr "Toon een taalschakelaar aan het einde van het menu"
139
 
 
140
  #@ default
141
- #: include/admin.php:498
142
  msgid "Site Title"
143
  msgstr ""
144
 
 
145
  #@ default
146
- #: include/admin.php:499
147
  msgid "Tagline"
148
  msgstr ""
149
 
 
150
  #@ polylang
151
- #: include/admin.php:518
152
  msgid "Widget title"
153
  msgstr "Widget titel"
154
 
 
155
  #@ polylang
156
- #: include/admin-filters.php:202
157
- #: include/post-metabox.php:5
158
  msgid "Page's language:"
159
  msgstr "Taal van de pagina:"
160
 
 
161
  #@ polylang
162
- #: include/admin-filters.php:202
163
- #: include/post-metabox.php:5
164
  msgid "Post's language:"
165
  msgstr "Taal van de post:"
166
 
167
- #@ polylang
168
  #: include/list-table.php:127
169
  #: include/term-translations.php:6
170
  #: include/term-translations.php:11
 
171
  msgid "Translations"
172
  msgstr "Vertalingen"
173
 
174
- #@ polylang
175
  #: include/term-translations.php:16
 
176
  msgid "Translation"
177
  msgstr "Vertaling"
178
 
179
- #@ polylang
180
  #: include/list-table.php:26
181
  #: include/post-translations.php:6
182
  #: include/post-translations.php:29
183
  #: include/term-translations.php:18
184
  #: include/term-translations.php:65
 
185
  msgid "Edit"
186
  msgstr "Wijzig"
187
 
188
- #@ polylang
189
  #: include/term-translations.php:48
 
190
  msgid "No untranslated term"
191
  msgstr "Geen onvertaalde term"
192
 
193
- #@ polylang
194
  #: include/post-translations.php:34
195
  #: include/term-translations.php:54
 
196
  msgid "Add new"
197
  msgstr "Voeg nieuwe toe"
198
 
 
 
199
  #@ polylang
200
- #: include/admin-filters.php:148
201
- #: include/admin-filters.php:575
202
  msgid "Add new translation"
203
  msgstr "Voeg nieuwe vertaling toe"
204
 
 
205
  #@ polylang
206
- #: include/admin-filters.php:172
207
  msgid "Show all languages"
208
  msgstr "Toon alle talen"
209
 
 
210
  #@ default
211
- #: include/admin-filters.php:262
212
  msgid "(no parent)"
213
  msgstr ""
214
 
 
215
  #@ polylang
216
- #: include/admin-filters.php:714
217
  msgid "Theme locations and languages"
218
  msgstr "Lokaties en talen van het thema"
219
 
220
- #@ polylang
221
- #: include/admin-filters.php:719
222
  #, php-format
 
223
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
224
  msgstr "Ga naar de %stalen pagina%s om lokaties en talen van het thema in te stellen"
225
 
 
226
  #@ polylang
227
- #: include/admin-filters.php:730
228
  msgid "The widget is displayed for:"
229
  msgstr "Het widget wordt getoond voor:"
230
 
 
231
  #@ polylang
232
- #: include/base.php:33
233
  msgid "All languages"
234
  msgstr "Alle talen"
235
 
236
- #@ polylang
237
  #: include/list-table.php:27
 
238
  msgid "Delete"
239
  msgstr "Verwijder"
240
 
241
- #@ polylang
242
- #: include/languages-form.php:67
243
  #: include/list-table.php:45
 
244
  msgid "Full name"
245
  msgstr "Volledige naam"
246
 
247
- #@ polylang
248
- #: include/languages-form.php:73
249
  #: include/list-table.php:46
 
250
  msgid "Locale"
251
  msgstr "Locale"
252
 
253
- #@ polylang
254
  #: include/list-table.php:47
 
255
  msgid "Code"
256
  msgstr "Taalcode"
257
 
258
- #@ polylang
259
- #: include/languages-form.php:93
260
  #: include/list-table.php:48
 
261
  msgid "Order"
262
  msgstr "Volgorde"
263
 
264
- #@ polylang
265
  #: include/list-table.php:49
 
266
  msgid "Flag"
267
  msgstr "Vlag"
268
 
269
- #@ polylang
270
  #: include/list-table.php:50
 
271
  msgid "Posts"
272
  msgstr "Berichten"
273
 
274
- #@ polylang
275
  #: include/list-table.php:105
 
276
  msgid "Strings translations"
277
  msgstr "Tekstvertalingen"
278
 
279
- #@ polylang
280
  #: include/list-table.php:125
 
281
  msgid "Name"
282
  msgstr "Naam"
283
 
284
- #@ polylang
285
  #: include/list-table.php:126
 
286
  msgid "String"
287
  msgstr "Tekst"
288
 
289
- #@ default
290
  #: include/calendar.php:132
291
  #: include/calendar.php:140
292
  #, php-format
 
293
  msgid "View posts for %1$s %2$s"
294
  msgstr ""
295
 
 
296
  #@ polylang
297
- #: include/languages-form.php:33
298
  msgid "Edit language"
299
  msgstr "Wijzig taal"
300
 
 
 
301
  #@ polylang
302
- #: include/languages-form.php:33
303
- #: include/languages-form.php:98
304
  msgid "Add new language"
305
  msgstr "Voeg nieuwe taal toe"
306
 
 
307
  #@ polylang
308
- #: include/languages-form.php:55
309
  msgid "Choose a language"
310
  msgstr "Kies een taal"
311
 
 
312
  #@ polylang
313
- #: include/languages-form.php:63
314
  msgid "You can choose a language in the list or directly edit it below."
315
  msgstr "Kies een taal uit de lijst of vul deze direct hieronder in."
316
 
 
317
  #@ polylang
318
- #: include/languages-form.php:69
319
  msgid "The name is how it is displayed on your site (for example: English)."
320
  msgstr "De naam geeft aan hoe het op je site getoond wordt (b.v.: Nederlands)."
321
 
 
322
  #@ polylang
323
- #: include/languages-form.php:76
324
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
325
  msgstr "Wordpress Locale voor de taal (bv.: nl_NL). Installeer het .mo bestand voor deze taal."
326
 
 
327
  #@ polylang
328
- #: include/languages-form.php:80
329
  msgid "Language code"
330
  msgstr "Taalcode"
331
 
 
332
  #@ polylang
333
- #: include/languages-form.php:82
334
  msgid "2-letters ISO 639-1 language code (for example: en)"
335
  msgstr "2-karakter ISO 639-1 taalcode (bv.: nl)"
336
 
 
337
  #@ polylang
338
- #: include/languages-form.php:95
339
  msgid "Position of the language in the language switcher"
340
  msgstr "Positionering van de taal in de taalschakelaar"
341
 
 
342
  #@ default
343
- #: include/languages-form.php:98
344
  msgid "Update"
345
  msgstr ""
346
 
 
347
  #@ polylang
348
- #: include/languages-form.php:134
349
  msgid "Language switcher"
350
  msgstr "Taalschakelaar"
351
 
 
352
  #@ polylang
353
- #: include/languages-form.php:173
354
  msgid "Default language"
355
  msgstr "Standaardtaal"
356
 
 
357
  #@ polylang
358
- #: include/languages-form.php:191
359
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
360
  msgstr "Er zijn berichten, pagina's, categorieën of tags zonder taalinstelling. Deze allemaal instellen op de standaardtaal?"
361
 
 
362
  #@ polylang
363
- #: include/languages-form.php:199
364
  msgid "Detect browser language"
365
  msgstr "Bepaal de taal van de browser"
366
 
 
367
  #@ polylang
368
- #: include/languages-form.php:205
369
  msgid "When the front page is visited, set the language according to the browser preference"
370
  msgstr "Wanneer de startpagina bezocht is, stel dan de taal in op basis van de voorkeur van de browser"
371
 
 
372
  #@ polylang
373
- #: include/languages-form.php:212
374
  msgid "URL modifications"
375
  msgstr "URL aanpassingen"
376
 
 
377
  #@ polylang
378
- #: include/languages-form.php:218
379
  msgid "Keep /language/ in pretty permalinks. Example:"
380
  msgstr "Behoud /language/ in pretty permalinks. Voorbeeld:"
381
 
 
382
  #@ polylang
383
- #: include/languages-form.php:226
384
  msgid "Remove /language/ in pretty permalinks. Example:"
385
  msgstr "Verwijder /language/ in pretty permalinks. Voorbeeld:"
386
 
 
387
  #@ polylang
388
- #: include/languages-form.php:234
389
  msgid "Hide URL language information for default language"
390
  msgstr "Verberg URL taalinformatie voor de standaardtaal"
391
 
392
- #@ polylang
393
  #: include/post-translations.php:1
 
394
  msgid "ID of pages in other languages:"
395
  msgstr "ID's van pagina's in andere talen:"
396
 
397
- #@ polylang
398
  #: include/post-translations.php:1
 
399
  msgid "ID of posts in other languages:"
400
  msgstr "ID's van berichten in andere talen:"
401
 
402
- #@ polylang
403
  #: include/post-translations.php:5
 
404
  msgid "Page ID"
405
  msgstr "Pagina ID"
406
 
407
- #@ polylang
408
  #: include/post-translations.php:5
 
409
  msgid "Post ID"
410
  msgstr "Bericht ID"
411
 
 
412
  #@ polylang
413
- #: include/admin-filters.php:761
414
- #: include/personal-options.php:5
415
  msgid "Admin language"
416
  msgstr "Admin taal"
417
 
 
418
  #@ polylang
419
- #: include/admin.php:474
420
  msgid "Upgrading language files&#8230;"
421
  msgstr "Aanpassen taalbestanden&#8230;"
422
 
423
- #@ default
424
  #. translators: Calendar caption: 1: month name, 2: 4-digit year
425
  #: include/calendar.php:106
426
  #, php-format
 
427
  msgctxt "calendar caption"
428
  msgid "%1$s %2$s"
429
  msgstr ""
430
 
 
431
  #@ default
432
- #: include/admin-filters.php:697
433
  msgid "None"
434
  msgstr ""
435
 
 
436
  #@ polylang
437
- #: include/admin.php:486
438
  msgid "Hides the current language"
439
  msgstr "Verberg huidige taal"
440
 
 
441
  #@ polylang
442
- #: include/languages-form.php:86
443
  msgid "Text direction"
444
  msgstr "Tekstrichting"
445
 
 
446
  #@ polylang
447
- #: include/languages-form.php:87
448
  msgid "left to right"
449
  msgstr "van links naar rechts"
450
 
 
451
  #@ polylang
452
- #: include/languages-form.php:88
453
  msgid "right to left"
454
  msgstr "van rechts naar links"
455
 
 
456
  #@ polylang
457
- #: include/languages-form.php:89
458
  msgid "Choose the text direction for the language"
459
  msgstr "Kies de tekstrichting voor de taal"
460
 
 
461
  #@ polylang
462
- #: include/languages-form.php:241
463
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
464
  msgstr "Voeg taalinformatie toe aan alle URL's, inclusief berichten, pagina's, categorieën en berichten tages (niet aanbevolen)"
465
 
466
- #@ default
467
- #: polylang.php:88
468
  #, php-format
 
469
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
470
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
471
 
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-Language: \n"
14
+ "X-Poedit-Country: \n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
+ "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"
17
  "X-Poedit-Basepath: .\n"
18
+ "X-Poedit-Bookmarks: \n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
+ "X-Textdomain-Support: yes"
21
 
22
+ #: polylang.php:193
23
  #@ polylang
 
24
  msgid "Error: Restore of local flags failed!"
25
  msgstr "Fout: Herstel van lokale vlaggen mislukt!"
26
 
27
+ #: polylang.php:194
 
28
  #, php-format
29
+ #@ polylang
30
  msgid "Please move your local flags from %s to %s"
31
  msgstr "Verplaats je lokale vlaggen van %s naar %s"
32
 
33
+ #: include/admin-filters.php:537
34
+ #: include/admin-filters.php:554
 
 
 
35
  #: include/list-table.php:12
36
  #: include/post-translations.php:4
37
  #: include/term-translations.php:15
38
+ #@ polylang
39
  msgid "Language"
40
  msgstr "Taal"
41
 
42
+ #: include/admin-filters.php:539
43
+ #: include/admin-filters.php:557
44
  #@ polylang
 
 
 
 
45
  msgid "Sets the language"
46
  msgstr "Stelt de taal in"
47
 
 
48
  #: include/widget.php:6
49
+ #@ polylang
50
  msgid "Language Switcher"
51
  msgstr "Taalschakelaar"
52
 
 
53
  #: include/widget.php:6
54
+ #@ polylang
55
  msgid "Displays a language switcher"
56
  msgstr "Toon een taalschakelaar"
57
 
 
58
  #: include/widget.php:71
59
+ #@ polylang
60
  msgid "Title:"
61
  msgstr "Titel:"
62
 
63
+ #: include/admin.php:486
64
  #@ polylang
 
65
  msgid "Displays language names"
66
  msgstr "Toon namen van talen"
67
 
68
+ #: include/admin.php:487
69
  #@ polylang
 
70
  msgid "Displays flags"
71
  msgstr "Toon vlaggen"
72
 
73
+ #: include/admin.php:492
74
  #@ polylang
 
75
  msgid "Displays as dropdown"
76
  msgstr "Toon als dropdown"
77
 
78
+ #: include/admin.php:488
79
  #@ polylang
 
80
  msgid "Forces link to front page"
81
  msgstr "Forceer link naar startpagina"
82
 
83
+ #: include/admin.php:26
84
+ #: include/admin.php:300
85
  #@ default
86
  #@ polylang
 
 
87
  msgid "Settings"
88
  msgstr "Instellingen"
89
 
90
+ #: include/admin-filters.php:187
91
+ #: include/admin.php:33
92
+ #: include/admin.php:292
 
93
  #: include/list-table.php:13
94
+ #@ polylang
95
  msgid "Languages"
96
  msgstr "Talen"
97
 
98
+ #: include/admin.php:297
99
  #@ polylang
 
100
  msgid "Menus"
101
  msgstr "Menu's"
102
 
103
+ #: include/admin.php:299
 
104
  #: include/list-table.php:104
105
+ #@ polylang
106
  msgid "Strings translation"
107
  msgstr "Tekstvertaling"
108
 
109
+ #: include/admin.php:318
110
  #@ polylang
 
111
  msgid "Enter a valid WorPress locale"
112
  msgstr "Voer een geldige Wordpress lokaal in"
113
 
114
+ #: include/admin.php:319
115
  #@ polylang
 
116
  msgid "The language code must be 2 characters long"
117
  msgstr "De taalcode moet uit 2 karakters bestaan"
118
 
119
+ #: include/admin.php:320
120
  #@ polylang
 
121
  msgid "The language code must be unique"
122
  msgstr "De taalcode moet uniek zijn"
123
 
124
+ #: include/admin.php:321
125
  #@ polylang
 
126
  msgid "The language must have a name"
127
  msgstr "De taal moet een naam hebben"
128
 
129
+ #: include/admin.php:322
130
  #@ polylang
 
131
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
132
  msgstr "De taal was gecreëerd, maar het Wordpress taalbestand was niet gedownload. Handmatige installatie is noodzakelijk."
133
 
134
+ #: include/admin.php:491
135
  #@ polylang
 
136
  msgid "Displays a language switcher at the end of the menu"
137
  msgstr "Toon een taalschakelaar aan het einde van het menu"
138
 
139
+ #: include/admin.php:501
140
  #@ default
 
141
  msgid "Site Title"
142
  msgstr ""
143
 
144
+ #: include/admin.php:502
145
  #@ default
 
146
  msgid "Tagline"
147
  msgstr ""
148
 
149
+ #: include/admin.php:520
150
  #@ polylang
 
151
  msgid "Widget title"
152
  msgstr "Widget titel"
153
 
154
+ #: include/admin-filters.php:204
155
  #@ polylang
 
 
156
  msgid "Page's language:"
157
  msgstr "Taal van de pagina:"
158
 
159
+ #: include/admin-filters.php:204
160
  #@ polylang
 
 
161
  msgid "Post's language:"
162
  msgstr "Taal van de post:"
163
 
 
164
  #: include/list-table.php:127
165
  #: include/term-translations.php:6
166
  #: include/term-translations.php:11
167
+ #@ polylang
168
  msgid "Translations"
169
  msgstr "Vertalingen"
170
 
 
171
  #: include/term-translations.php:16
172
+ #@ polylang
173
  msgid "Translation"
174
  msgstr "Vertaling"
175
 
 
176
  #: include/list-table.php:26
177
  #: include/post-translations.php:6
178
  #: include/post-translations.php:29
179
  #: include/term-translations.php:18
180
  #: include/term-translations.php:65
181
+ #@ polylang
182
  msgid "Edit"
183
  msgstr "Wijzig"
184
 
 
185
  #: include/term-translations.php:48
186
+ #@ polylang
187
  msgid "No untranslated term"
188
  msgstr "Geen onvertaalde term"
189
 
 
190
  #: include/post-translations.php:34
191
  #: include/term-translations.php:54
192
+ #@ polylang
193
  msgid "Add new"
194
  msgstr "Voeg nieuwe toe"
195
 
196
+ #: include/admin-filters.php:151
197
+ #: include/admin-filters.php:600
198
  #@ polylang
 
 
199
  msgid "Add new translation"
200
  msgstr "Voeg nieuwe vertaling toe"
201
 
202
+ #: include/admin-filters.php:174
203
  #@ polylang
 
204
  msgid "Show all languages"
205
  msgstr "Toon alle talen"
206
 
207
+ #: include/admin-filters.php:263
208
  #@ default
 
209
  msgid "(no parent)"
210
  msgstr ""
211
 
212
+ #: include/admin-filters.php:738
213
  #@ polylang
 
214
  msgid "Theme locations and languages"
215
  msgstr "Lokaties en talen van het thema"
216
 
217
+ #: include/admin-filters.php:743
 
218
  #, php-format
219
+ #@ polylang
220
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
221
  msgstr "Ga naar de %stalen pagina%s om lokaties en talen van het thema in te stellen"
222
 
223
+ #: include/admin-filters.php:754
224
  #@ polylang
 
225
  msgid "The widget is displayed for:"
226
  msgstr "Het widget wordt getoond voor:"
227
 
228
+ #: include/base.php:38
229
  #@ polylang
 
230
  msgid "All languages"
231
  msgstr "Alle talen"
232
 
 
233
  #: include/list-table.php:27
234
+ #@ polylang
235
  msgid "Delete"
236
  msgstr "Verwijder"
237
 
238
+ #: include/languages-form.php:70
 
239
  #: include/list-table.php:45
240
+ #@ polylang
241
  msgid "Full name"
242
  msgstr "Volledige naam"
243
 
244
+ #: include/languages-form.php:76
 
245
  #: include/list-table.php:46
246
+ #@ polylang
247
  msgid "Locale"
248
  msgstr "Locale"
249
 
 
250
  #: include/list-table.php:47
251
+ #@ polylang
252
  msgid "Code"
253
  msgstr "Taalcode"
254
 
255
+ #: include/languages-form.php:98
 
256
  #: include/list-table.php:48
257
+ #@ polylang
258
  msgid "Order"
259
  msgstr "Volgorde"
260
 
 
261
  #: include/list-table.php:49
262
+ #@ polylang
263
  msgid "Flag"
264
  msgstr "Vlag"
265
 
 
266
  #: include/list-table.php:50
267
+ #@ polylang
268
  msgid "Posts"
269
  msgstr "Berichten"
270
 
 
271
  #: include/list-table.php:105
272
+ #@ polylang
273
  msgid "Strings translations"
274
  msgstr "Tekstvertalingen"
275
 
 
276
  #: include/list-table.php:125
277
+ #@ polylang
278
  msgid "Name"
279
  msgstr "Naam"
280
 
 
281
  #: include/list-table.php:126
282
+ #@ polylang
283
  msgid "String"
284
  msgstr "Tekst"
285
 
 
286
  #: include/calendar.php:132
287
  #: include/calendar.php:140
288
  #, php-format
289
+ #@ default
290
  msgid "View posts for %1$s %2$s"
291
  msgstr ""
292
 
293
+ #: include/languages-form.php:36
294
  #@ polylang
 
295
  msgid "Edit language"
296
  msgstr "Wijzig taal"
297
 
298
+ #: include/languages-form.php:36
299
+ #: include/languages-form.php:103
300
  #@ polylang
 
 
301
  msgid "Add new language"
302
  msgstr "Voeg nieuwe taal toe"
303
 
304
+ #: include/languages-form.php:58
305
  #@ polylang
 
306
  msgid "Choose a language"
307
  msgstr "Kies een taal"
308
 
309
+ #: include/languages-form.php:66
310
  #@ polylang
 
311
  msgid "You can choose a language in the list or directly edit it below."
312
  msgstr "Kies een taal uit de lijst of vul deze direct hieronder in."
313
 
314
+ #: include/languages-form.php:72
315
  #@ polylang
 
316
  msgid "The name is how it is displayed on your site (for example: English)."
317
  msgstr "De naam geeft aan hoe het op je site getoond wordt (b.v.: Nederlands)."
318
 
319
+ #: include/languages-form.php:79
320
  #@ polylang
 
321
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
322
  msgstr "Wordpress Locale voor de taal (bv.: nl_NL). Installeer het .mo bestand voor deze taal."
323
 
324
+ #: include/languages-form.php:83
325
  #@ polylang
 
326
  msgid "Language code"
327
  msgstr "Taalcode"
328
 
329
+ #: include/languages-form.php:85
330
  #@ polylang
 
331
  msgid "2-letters ISO 639-1 language code (for example: en)"
332
  msgstr "2-karakter ISO 639-1 taalcode (bv.: nl)"
333
 
334
+ #: include/languages-form.php:100
335
  #@ polylang
 
336
  msgid "Position of the language in the language switcher"
337
  msgstr "Positionering van de taal in de taalschakelaar"
338
 
339
+ #: include/languages-form.php:103
340
  #@ default
 
341
  msgid "Update"
342
  msgstr ""
343
 
344
+ #: include/languages-form.php:149
345
  #@ polylang
 
346
  msgid "Language switcher"
347
  msgstr "Taalschakelaar"
348
 
349
+ #: include/languages-form.php:188
350
  #@ polylang
 
351
  msgid "Default language"
352
  msgstr "Standaardtaal"
353
 
354
+ #: include/languages-form.php:206
355
  #@ polylang
 
356
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
357
  msgstr "Er zijn berichten, pagina's, categorieën of tags zonder taalinstelling. Deze allemaal instellen op de standaardtaal?"
358
 
359
+ #: include/languages-form.php:214
360
  #@ polylang
 
361
  msgid "Detect browser language"
362
  msgstr "Bepaal de taal van de browser"
363
 
364
+ #: include/languages-form.php:220
365
  #@ polylang
 
366
  msgid "When the front page is visited, set the language according to the browser preference"
367
  msgstr "Wanneer de startpagina bezocht is, stel dan de taal in op basis van de voorkeur van de browser"
368
 
369
+ #: include/languages-form.php:227
370
  #@ polylang
 
371
  msgid "URL modifications"
372
  msgstr "URL aanpassingen"
373
 
374
+ #: include/languages-form.php:233
375
  #@ polylang
 
376
  msgid "Keep /language/ in pretty permalinks. Example:"
377
  msgstr "Behoud /language/ in pretty permalinks. Voorbeeld:"
378
 
379
+ #: include/languages-form.php:241
380
  #@ polylang
 
381
  msgid "Remove /language/ in pretty permalinks. Example:"
382
  msgstr "Verwijder /language/ in pretty permalinks. Voorbeeld:"
383
 
384
+ #: include/languages-form.php:249
385
  #@ polylang
 
386
  msgid "Hide URL language information for default language"
387
  msgstr "Verberg URL taalinformatie voor de standaardtaal"
388
 
 
389
  #: include/post-translations.php:1
390
+ #@ polylang
391
  msgid "ID of pages in other languages:"
392
  msgstr "ID's van pagina's in andere talen:"
393
 
 
394
  #: include/post-translations.php:1
395
+ #@ polylang
396
  msgid "ID of posts in other languages:"
397
  msgstr "ID's van berichten in andere talen:"
398
 
 
399
  #: include/post-translations.php:5
400
+ #@ polylang
401
  msgid "Page ID"
402
  msgstr "Pagina ID"
403
 
 
404
  #: include/post-translations.php:5
405
+ #@ polylang
406
  msgid "Post ID"
407
  msgstr "Bericht ID"
408
 
409
+ #: include/admin-filters.php:785
410
  #@ polylang
 
 
411
  msgid "Admin language"
412
  msgstr "Admin taal"
413
 
414
+ #: include/admin.php:475
415
  #@ polylang
 
416
  msgid "Upgrading language files&#8230;"
417
  msgstr "Aanpassen taalbestanden&#8230;"
418
 
 
419
  #. translators: Calendar caption: 1: month name, 2: 4-digit year
420
  #: include/calendar.php:106
421
  #, php-format
422
+ #@ default
423
  msgctxt "calendar caption"
424
  msgid "%1$s %2$s"
425
  msgstr ""
426
 
427
+ #: include/admin-filters.php:721
428
  #@ default
 
429
  msgid "None"
430
  msgstr ""
431
 
432
+ #: include/admin.php:489
433
  #@ polylang
 
434
  msgid "Hides the current language"
435
  msgstr "Verberg huidige taal"
436
 
437
+ #: include/languages-form.php:89
438
  #@ polylang
 
439
  msgid "Text direction"
440
  msgstr "Tekstrichting"
441
 
442
+ #: include/languages-form.php:91
443
  #@ polylang
 
444
  msgid "left to right"
445
  msgstr "van links naar rechts"
446
 
447
+ #: include/languages-form.php:93
448
  #@ polylang
 
449
  msgid "right to left"
450
  msgstr "van rechts naar links"
451
 
452
+ #: include/languages-form.php:94
453
  #@ polylang
 
454
  msgid "Choose the text direction for the language"
455
  msgstr "Kies de tekstrichting voor de taal"
456
 
457
+ #: include/languages-form.php:256
458
  #@ polylang
 
459
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
460
  msgstr "Voeg taalinformatie toe aan alle URL's, inclusief berichten, pagina's, categorieën en berichten tages (niet aanbevolen)"
461
 
462
+ #: polylang.php:97
 
463
  #, php-format
464
+ #@ polylang
465
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
466
+ msgstr "Je gebruikt Wordpress %s. Polylang vereist tenminste Wordpress %s."
467
+
468
+ #: include/about.php:3
469
+ #, php-format
470
+ #@ polylang
471
+ 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."
472
+ msgstr "Polylang is voorzien van uitgebreide %sdocumentatie%s (alleen in engels). Dit omvat informatie hoe een meertalige site opgezet kan worden en het gebruik op dagelijkse basis, een FAQ en ook documentatie voor ontwikkelaars voor het aanpassen van hun plugins en thema's."
473
+
474
+ #: include/about.php:8
475
+ #, php-format
476
+ #@ polylang
477
+ 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."
478
+ msgstr "Je kunt ook bruikbare information vinden in het %s support forum%s. Vergeet niet eerst een zoekopdracht uit te voeren voordat je een nieuw item post."
479
+
480
+ #: include/about.php:14
481
+ #, php-format
482
+ #@ polylang
483
+ msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
484
+ msgstr "Polylang is gratis te gebruiken en is vrijgegeven onder dezelfde licentie als Wordpress, de %sGPL%s."
485
+
486
+ #: include/about.php:18
487
+ #, php-format
488
+ #@ polylang
489
+ msgid "If you wonder how you can help the project, just %sread this%s."
490
+ msgstr "Ben je benieuwd hoe je dit project kan ondersteunen, %slees dit%s."
491
+
492
+ #: include/about.php:22
493
+ #@ polylang
494
+ msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
495
+ msgstr "Tot slot, wanneer deze plugin je bevalt of wanneer het jouw bedrijfsvoering ondersteunt, donaties ten behoeve van de auteur wordt zeer gewaardeerd."
496
+
497
+ #: include/admin.php:38
498
+ #@ polylang
499
+ msgid "About Polylang"
500
+ msgstr "Over Polylang"
501
+
502
+ #: include/languages-form.php:263
503
+ #, php-format
504
+ #@ polylang
505
+ msgid "Redirect the language page (example: %s) to the homepage in the right language"
506
+ msgstr "Herrouteer the taalpagina (bijvoorbeeld: %s) naar de startpagina van de juiste taal."
507
+
508
+ #: polylang.php:111
509
+ #@ polylang
510
+ msgid "For some reasons, Polylang could not create a table in your database."
511
+ msgstr "Om onbekende reden kon Polylang geen tabel in jouw database creëren."
512
 
languages/polylang-pl_PL.po CHANGED
@@ -6,374 +6,507 @@ msgstr ""
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=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
 
 
14
  "X-Poedit-SourceCharset: utf-8\n"
15
- "X-Poedit-KeywordsList: _e;__;_x\n"
16
  "X-Poedit-Basepath: .\n"
 
17
  "X-Poedit-SearchPath-0: ..\n"
18
- "X-Poedit-SearchPath-1: ../include\n"
19
 
20
- #: ../polylang.php:88
21
  #, php-format
 
22
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
23
  msgstr "Używasz WordPress %s. Polylang wymaga przynajmniej WordPress %s."
24
 
25
- #: ../polylang.php:185
 
26
  msgid "Error: Restore of local flags failed!"
27
  msgstr "Błąd: Odtworzenie lokalnych flag nie powiodło się!"
28
 
29
- #: ../polylang.php:186
30
  #, php-format
 
31
  msgid "Please move your local flags from %s to %s"
32
  msgstr "Proszę przenieś twoje lokalne flagi z %s do %s"
33
 
34
- #: ../include/widget.php:6
 
35
  msgid "Language Switcher"
36
  msgstr "Przełącznik języka"
37
 
38
- #: ../include/widget.php:6
 
39
  msgid "Displays a language switcher"
40
  msgstr "Wyświetla przełącznik języka"
41
 
42
- #: ../include/widget.php:71
 
43
  msgid "Title:"
44
  msgstr "Tytuł:"
45
 
46
- #: ../include/admin.php:25
47
- #: ../include/admin.php:298
 
 
48
  msgid "Settings"
49
  msgstr "Ustawienia"
50
 
51
- #: ../include/admin.php:32
52
- #: ../include/admin.php:291
53
- #: ../include/admin-filters.php:185
54
- #: ../include/list-table.php:13
 
55
  msgid "Languages"
56
  msgstr "Języki"
57
 
58
- #: ../include/admin.php:296
 
59
  msgid "Menus"
60
  msgstr "Menu"
61
 
62
- #: ../include/admin.php:298
63
- #: ../include/list-table.php:104
 
64
  msgid "Strings translation"
65
  msgstr "Tłumaczenie ciągów tekstowych"
66
 
67
- #: ../include/admin.php:316
 
68
  msgid "Enter a valid WorPress locale"
69
  msgstr "Wpisz prawidłową lokalizację WordPress"
70
 
71
- #: ../include/admin.php:317
 
72
  msgid "The language code must be 2 characters long"
73
  msgstr "Kod języka musi się składać z 2 znaków"
74
 
75
- #: ../include/admin.php:318
 
76
  msgid "The language code must be unique"
77
  msgstr "Kod języka musi być unikalny"
78
 
79
- #: ../include/admin.php:319
 
80
  msgid "The language must have a name"
81
  msgstr "Język musi mieć nazwę"
82
 
83
- #: ../include/admin.php:320
 
84
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
85
  msgstr "Język został dodany, ale plik językowy WordPress nie został załadowany. Proszę zainstalować go manualnie."
86
 
87
- #: ../include/admin.php:473
 
88
  msgid "Upgrading language files&#8230;"
89
  msgstr "Uaktualnianie pliku językowego&#8230;"
90
 
91
- #: ../include/admin.php:482
 
92
  msgid "Displays language names"
93
  msgstr "Wyświetla nazwy języków"
94
 
95
- #: ../include/admin.php:483
 
96
  msgid "Displays flags"
97
  msgstr "Wyświetla flagi"
98
 
99
- #: ../include/admin.php:484
 
100
  msgid "Forces link to front page"
101
  msgstr "Wymusza link do strony głównej"
102
 
103
- #: ../include/admin.php:485
 
104
  msgid "Hides the current language"
105
  msgstr "Ukrywa aktualny język"
106
 
107
- #: ../include/admin.php:487
 
108
  msgid "Displays a language switcher at the end of the menu"
109
  msgstr "Wyświetla przełącznik języków na końcu menu"
110
 
111
- #: ../include/admin.php:488
 
112
  msgid "Displays as dropdown"
113
  msgstr "Wyświetla się jako menu rozwijane"
114
 
115
- #: ../include/admin.php:497
 
116
  msgid "Site Title"
117
  msgstr "Tytuł witryny"
118
 
119
- #: ../include/admin.php:498
 
120
  msgid "Tagline"
121
  msgstr "Tagline"
122
 
123
- #: ../include/admin.php:517
 
124
  msgid "Widget title"
125
  msgstr "Nazwa widgeta"
126
 
127
- #: ../include/term-translations.php:6
128
- #: ../include/term-translations.php:11
129
- #: ../include/list-table.php:127
 
130
  msgid "Translations"
131
  msgstr "Tłumaczenia"
132
 
133
- #: ../include/term-translations.php:15
134
- #: ../include/admin-filters.php:512
135
- #: ../include/admin-filters.php:529
136
- #: ../include/list-table.php:12
137
- #: ../include/post-translations.php:4
 
138
  msgid "Language"
139
  msgstr "Język"
140
 
141
- #: ../include/term-translations.php:16
 
142
  msgid "Translation"
143
  msgstr "Tłumaczenie"
144
 
145
- #: ../include/term-translations.php:18
146
- #: ../include/term-translations.php:65
147
- #: ../include/list-table.php:26
148
- #: ../include/post-translations.php:6
149
- #: ../include/post-translations.php:29
 
150
  msgid "Edit"
151
  msgstr "Edytuj"
152
 
153
- #: ../include/term-translations.php:48
 
154
  msgid "No untranslated term"
155
  msgstr "Brak nieprzetłumaczonego terminu"
156
 
157
- #: ../include/term-translations.php:54
158
- #: ../include/post-translations.php:34
 
159
  msgid "Add new"
160
  msgstr "Dodaj nowy"
161
 
162
- #: ../include/admin-filters.php:148
163
- #: ../include/admin-filters.php:575
 
164
  msgid "Add new translation"
165
  msgstr "Dodaj nowe tłumaczenie"
166
 
167
- #: ../include/admin-filters.php:172
 
168
  msgid "Show all languages"
169
  msgstr "Pokaż wszystkie języki"
170
 
171
- #: ../include/admin-filters.php:202
 
172
  msgid "Page's language:"
173
  msgstr "Język strony:"
174
 
175
- #: ../include/admin-filters.php:202
 
176
  msgid "Post's language:"
177
  msgstr "Język wpisu:"
178
 
179
- #: ../include/admin-filters.php:262
 
180
  msgid "(no parent)"
181
  msgstr "(brak strony nadrzędnej)"
182
 
183
- #: ../include/admin-filters.php:514
184
- #: ../include/admin-filters.php:532
 
185
  msgid "Sets the language"
186
  msgstr "Ustawia język"
187
 
188
- #: ../include/admin-filters.php:697
 
189
  msgid "None"
190
  msgstr "Żaden"
191
 
192
- #: ../include/admin-filters.php:714
 
193
  msgid "Theme locations and languages"
194
  msgstr "Lokalizacje motywów i języki"
195
 
196
- #: ../include/admin-filters.php:719
197
  #, php-format
 
198
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
199
  msgstr "Proszę idź do %sstrony języka%s aby ustawić lokalizacje motywu i języki"
200
 
201
- #: ../include/admin-filters.php:730
 
202
  msgid "The widget is displayed for:"
203
  msgstr "Widget wyświetlany jest dla:"
204
 
205
- #: ../include/admin-filters.php:761
 
206
  msgid "Admin language"
207
  msgstr "Język administratora"
208
 
209
- #: ../include/list-table.php:27
 
210
  msgid "Delete"
211
  msgstr "Usuń"
212
 
213
- #: ../include/list-table.php:45
214
- #: ../include/languages-form.php:67
 
215
  msgid "Full name"
216
  msgstr "Pełna nazwa"
217
 
218
- #: ../include/list-table.php:46
219
- #: ../include/languages-form.php:73
 
220
  msgid "Locale"
221
  msgstr "Lokalizacja"
222
 
223
- #: ../include/list-table.php:47
 
224
  msgid "Code"
225
  msgstr "Kod"
226
 
227
- #: ../include/list-table.php:48
228
- #: ../include/languages-form.php:93
 
229
  msgid "Order"
230
  msgstr "Kolejność"
231
 
232
- #: ../include/list-table.php:49
 
233
  msgid "Flag"
234
  msgstr "Flaga"
235
 
236
- #: ../include/list-table.php:50
 
237
  msgid "Posts"
238
  msgstr "Wpisy"
239
 
240
- #: ../include/list-table.php:105
 
241
  msgid "Strings translations"
242
  msgstr "Tłumaczenia ciągów tekstowych"
243
 
244
- #: ../include/list-table.php:125
 
245
  msgid "Name"
246
  msgstr "Nazwa"
247
 
248
- #: ../include/list-table.php:126
 
249
  msgid "String"
250
  msgstr "Ciąg tekstowy"
251
 
252
- #: ../include/calendar.php:106
253
- #, php-format
254
- msgid "%1$s %2$s"
255
- msgstr "%1$s %2$s"
256
-
257
- #: ../include/calendar.php:132
258
- #: ../include/calendar.php:140
259
  #, php-format
 
260
  msgid "View posts for %1$s %2$s"
261
  msgstr "Zobacz wpisy dla %1$s %2$s"
262
 
263
- #: ../include/languages-form.php:33
 
264
  msgid "Edit language"
265
  msgstr "Edytuj język"
266
 
267
- #: ../include/languages-form.php:33
268
- #: ../include/languages-form.php:98
 
269
  msgid "Add new language"
270
  msgstr "Dodaj nowy język"
271
 
272
- #: ../include/languages-form.php:55
 
273
  msgid "Choose a language"
274
  msgstr "Wybierz język"
275
 
276
- #: ../include/languages-form.php:63
 
277
  msgid "You can choose a language in the list or directly edit it below."
278
  msgstr "Możesz wybrać język z listy lub edytować go bezpośrednio poniżej"
279
 
280
- #: ../include/languages-form.php:69
 
281
  msgid "The name is how it is displayed on your site (for example: English)."
282
  msgstr "Nazwa, tak jak będzie wyświetlana na stronie (np. English)"
283
 
284
- #: ../include/languages-form.php:76
 
285
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
286
  msgstr "Lokalizacja WordPress dla języka (np. en_US). Dla tego języka będziesz musiał zainstalować plik .mo."
287
 
288
- #: ../include/languages-form.php:80
 
289
  msgid "Language code"
290
  msgstr "Kod języka"
291
 
292
- #: ../include/languages-form.php:82
 
293
  msgid "2-letters ISO 639-1 language code (for example: en)"
294
  msgstr "2-literowy kod języka w ISO 639-1 (np. en)"
295
 
296
- #: ../include/languages-form.php:86
 
297
  msgid "Text direction"
298
  msgstr "Kierunek zapisu języka"
299
 
300
- #: ../include/languages-form.php:87
 
301
  msgid "left to right"
302
  msgstr "od lewej do prawej"
303
 
304
- #: ../include/languages-form.php:88
 
305
  msgid "right to left"
306
  msgstr "od prawej do lewej"
307
 
308
- #: ../include/languages-form.php:89
 
309
  msgid "Choose the text direction for the language"
310
  msgstr "Wybierz kierunek zapisu języka"
311
 
312
- #: ../include/languages-form.php:95
 
313
  msgid "Position of the language in the language switcher"
314
  msgstr "Pozycja języka w przełączniku języka"
315
 
316
- #: ../include/languages-form.php:98
 
317
  msgid "Update"
318
  msgstr "Aktualizacja"
319
 
320
- #: ../include/languages-form.php:134
 
321
  msgid "Language switcher"
322
  msgstr "Przełącznik języka"
323
 
324
- #: ../include/languages-form.php:173
 
325
  msgid "Default language"
326
  msgstr "Domyślny język"
327
 
328
- #: ../include/languages-form.php:191
 
329
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
330
  msgstr "Istnieją wpisy, strony, kategorie i tagi bez określonego języka. Czy chcesz ustawić dla nich domyślny język?"
331
 
332
- #: ../include/languages-form.php:199
 
333
  msgid "Detect browser language"
334
  msgstr "Wykryj język przeglądarki"
335
 
336
- #: ../include/languages-form.php:205
 
337
  msgid "When the front page is visited, set the language according to the browser preference"
338
  msgstr "Przy wejściu na stronę domową, ustaw język zgodnie z ustawieniami przeglądarki"
339
 
340
- #: ../include/languages-form.php:212
 
341
  msgid "URL modifications"
342
  msgstr "Modyfikacje URL"
343
 
344
- #: ../include/languages-form.php:218
 
345
  msgid "Keep /language/ in pretty permalinks. Example:"
346
  msgstr "Zachowaj /language/ w przyjaznych permalinkach. Np.:"
347
 
348
- #: ../include/languages-form.php:226
 
349
  msgid "Remove /language/ in pretty permalinks. Example:"
350
  msgstr "Usuń /language/ z przyjaznych permalinków. Np.:"
351
 
352
- #: ../include/languages-form.php:234
 
353
  msgid "Hide URL language information for default language"
354
  msgstr "Ukryj informację o języku w URL dla domyślnego języka"
355
 
356
- #: ../include/languages-form.php:241
 
357
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
358
  msgstr "Dodaj informację o języku do wszystkich URL w tym do wpisów, stron, kategorii i tagów (nie rekomendowane)"
359
 
360
- #: ../include/base.php:33
 
361
  msgid "All languages"
362
  msgstr "Wszystkie języki"
363
 
364
- #: ../include/post-translations.php:1
 
365
  msgid "ID of pages in other languages:"
366
  msgstr "ID stron w innych językach"
367
 
368
- #: ../include/post-translations.php:1
 
369
  msgid "ID of posts in other languages:"
370
  msgstr "ID wpisów w innych językach"
371
 
372
- #: ../include/post-translations.php:5
 
373
  msgid "Page ID"
374
  msgstr "ID strony"
375
 
376
- #: ../include/post-translations.php:5
 
377
  msgid "Post ID"
378
  msgstr "ID wpisu"
379
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  "PO-Revision-Date: \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-Language: \n"
14
+ "X-Poedit-Country: \n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
+ "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"
17
  "X-Poedit-Basepath: .\n"
18
+ "X-Poedit-Bookmarks: \n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
+ "X-Textdomain-Support: yes"
21
 
22
+ #: polylang.php:97
23
  #, php-format
24
+ #@ polylang
25
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
26
  msgstr "Używasz WordPress %s. Polylang wymaga przynajmniej WordPress %s."
27
 
28
+ #: polylang.php:193
29
+ #@ polylang
30
  msgid "Error: Restore of local flags failed!"
31
  msgstr "Błąd: Odtworzenie lokalnych flag nie powiodło się!"
32
 
33
+ #: polylang.php:194
34
  #, php-format
35
+ #@ polylang
36
  msgid "Please move your local flags from %s to %s"
37
  msgstr "Proszę przenieś twoje lokalne flagi z %s do %s"
38
 
39
+ #: include/widget.php:6
40
+ #@ polylang
41
  msgid "Language Switcher"
42
  msgstr "Przełącznik języka"
43
 
44
+ #: include/widget.php:6
45
+ #@ polylang
46
  msgid "Displays a language switcher"
47
  msgstr "Wyświetla przełącznik języka"
48
 
49
+ #: include/widget.php:71
50
+ #@ polylang
51
  msgid "Title:"
52
  msgstr "Tytuł:"
53
 
54
+ #: include/admin.php:26
55
+ #: include/admin.php:300
56
+ #@ default
57
+ #@ polylang
58
  msgid "Settings"
59
  msgstr "Ustawienia"
60
 
61
+ #: include/admin-filters.php:187
62
+ #: include/admin.php:33
63
+ #: include/admin.php:292
64
+ #: include/list-table.php:13
65
+ #@ polylang
66
  msgid "Languages"
67
  msgstr "Języki"
68
 
69
+ #: include/admin.php:297
70
+ #@ polylang
71
  msgid "Menus"
72
  msgstr "Menu"
73
 
74
+ #: include/admin.php:299
75
+ #: include/list-table.php:104
76
+ #@ polylang
77
  msgid "Strings translation"
78
  msgstr "Tłumaczenie ciągów tekstowych"
79
 
80
+ #: include/admin.php:318
81
+ #@ polylang
82
  msgid "Enter a valid WorPress locale"
83
  msgstr "Wpisz prawidłową lokalizację WordPress"
84
 
85
+ #: include/admin.php:319
86
+ #@ polylang
87
  msgid "The language code must be 2 characters long"
88
  msgstr "Kod języka musi się składać z 2 znaków"
89
 
90
+ #: include/admin.php:320
91
+ #@ polylang
92
  msgid "The language code must be unique"
93
  msgstr "Kod języka musi być unikalny"
94
 
95
+ #: include/admin.php:321
96
+ #@ polylang
97
  msgid "The language must have a name"
98
  msgstr "Język musi mieć nazwę"
99
 
100
+ #: include/admin.php:322
101
+ #@ polylang
102
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
103
  msgstr "Język został dodany, ale plik językowy WordPress nie został załadowany. Proszę zainstalować go manualnie."
104
 
105
+ #: include/admin.php:475
106
+ #@ polylang
107
  msgid "Upgrading language files&#8230;"
108
  msgstr "Uaktualnianie pliku językowego&#8230;"
109
 
110
+ #: include/admin.php:486
111
+ #@ polylang
112
  msgid "Displays language names"
113
  msgstr "Wyświetla nazwy języków"
114
 
115
+ #: include/admin.php:487
116
+ #@ polylang
117
  msgid "Displays flags"
118
  msgstr "Wyświetla flagi"
119
 
120
+ #: include/admin.php:488
121
+ #@ polylang
122
  msgid "Forces link to front page"
123
  msgstr "Wymusza link do strony głównej"
124
 
125
+ #: include/admin.php:489
126
+ #@ polylang
127
  msgid "Hides the current language"
128
  msgstr "Ukrywa aktualny język"
129
 
130
+ #: include/admin.php:491
131
+ #@ polylang
132
  msgid "Displays a language switcher at the end of the menu"
133
  msgstr "Wyświetla przełącznik języków na końcu menu"
134
 
135
+ #: include/admin.php:492
136
+ #@ polylang
137
  msgid "Displays as dropdown"
138
  msgstr "Wyświetla się jako menu rozwijane"
139
 
140
+ #: include/admin.php:501
141
+ #@ default
142
  msgid "Site Title"
143
  msgstr "Tytuł witryny"
144
 
145
+ #: include/admin.php:502
146
+ #@ default
147
  msgid "Tagline"
148
  msgstr "Tagline"
149
 
150
+ #: include/admin.php:520
151
+ #@ polylang
152
  msgid "Widget title"
153
  msgstr "Nazwa widgeta"
154
 
155
+ #: include/list-table.php:127
156
+ #: include/term-translations.php:6
157
+ #: include/term-translations.php:11
158
+ #@ polylang
159
  msgid "Translations"
160
  msgstr "Tłumaczenia"
161
 
162
+ #: include/admin-filters.php:537
163
+ #: include/admin-filters.php:554
164
+ #: include/list-table.php:12
165
+ #: include/post-translations.php:4
166
+ #: include/term-translations.php:15
167
+ #@ polylang
168
  msgid "Language"
169
  msgstr "Język"
170
 
171
+ #: include/term-translations.php:16
172
+ #@ polylang
173
  msgid "Translation"
174
  msgstr "Tłumaczenie"
175
 
176
+ #: include/list-table.php:26
177
+ #: include/post-translations.php:6
178
+ #: include/post-translations.php:29
179
+ #: include/term-translations.php:18
180
+ #: include/term-translations.php:65
181
+ #@ polylang
182
  msgid "Edit"
183
  msgstr "Edytuj"
184
 
185
+ #: include/term-translations.php:48
186
+ #@ polylang
187
  msgid "No untranslated term"
188
  msgstr "Brak nieprzetłumaczonego terminu"
189
 
190
+ #: include/post-translations.php:34
191
+ #: include/term-translations.php:54
192
+ #@ polylang
193
  msgid "Add new"
194
  msgstr "Dodaj nowy"
195
 
196
+ #: include/admin-filters.php:151
197
+ #: include/admin-filters.php:600
198
+ #@ polylang
199
  msgid "Add new translation"
200
  msgstr "Dodaj nowe tłumaczenie"
201
 
202
+ #: include/admin-filters.php:174
203
+ #@ polylang
204
  msgid "Show all languages"
205
  msgstr "Pokaż wszystkie języki"
206
 
207
+ #: include/admin-filters.php:204
208
+ #@ polylang
209
  msgid "Page's language:"
210
  msgstr "Język strony:"
211
 
212
+ #: include/admin-filters.php:204
213
+ #@ polylang
214
  msgid "Post's language:"
215
  msgstr "Język wpisu:"
216
 
217
+ #: include/admin-filters.php:263
218
+ #@ default
219
  msgid "(no parent)"
220
  msgstr "(brak strony nadrzędnej)"
221
 
222
+ #: include/admin-filters.php:539
223
+ #: include/admin-filters.php:557
224
+ #@ polylang
225
  msgid "Sets the language"
226
  msgstr "Ustawia język"
227
 
228
+ #: include/admin-filters.php:721
229
+ #@ default
230
  msgid "None"
231
  msgstr "Żaden"
232
 
233
+ #: include/admin-filters.php:738
234
+ #@ polylang
235
  msgid "Theme locations and languages"
236
  msgstr "Lokalizacje motywów i języki"
237
 
238
+ #: include/admin-filters.php:743
239
  #, php-format
240
+ #@ polylang
241
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
242
  msgstr "Proszę idź do %sstrony języka%s aby ustawić lokalizacje motywu i języki"
243
 
244
+ #: include/admin-filters.php:754
245
+ #@ polylang
246
  msgid "The widget is displayed for:"
247
  msgstr "Widget wyświetlany jest dla:"
248
 
249
+ #: include/admin-filters.php:785
250
+ #@ polylang
251
  msgid "Admin language"
252
  msgstr "Język administratora"
253
 
254
+ #: include/list-table.php:27
255
+ #@ polylang
256
  msgid "Delete"
257
  msgstr "Usuń"
258
 
259
+ #: include/languages-form.php:70
260
+ #: include/list-table.php:45
261
+ #@ polylang
262
  msgid "Full name"
263
  msgstr "Pełna nazwa"
264
 
265
+ #: include/languages-form.php:76
266
+ #: include/list-table.php:46
267
+ #@ polylang
268
  msgid "Locale"
269
  msgstr "Lokalizacja"
270
 
271
+ #: include/list-table.php:47
272
+ #@ polylang
273
  msgid "Code"
274
  msgstr "Kod"
275
 
276
+ #: include/languages-form.php:98
277
+ #: include/list-table.php:48
278
+ #@ polylang
279
  msgid "Order"
280
  msgstr "Kolejność"
281
 
282
+ #: include/list-table.php:49
283
+ #@ polylang
284
  msgid "Flag"
285
  msgstr "Flaga"
286
 
287
+ #: include/list-table.php:50
288
+ #@ polylang
289
  msgid "Posts"
290
  msgstr "Wpisy"
291
 
292
+ #: include/list-table.php:105
293
+ #@ polylang
294
  msgid "Strings translations"
295
  msgstr "Tłumaczenia ciągów tekstowych"
296
 
297
+ #: include/list-table.php:125
298
+ #@ polylang
299
  msgid "Name"
300
  msgstr "Nazwa"
301
 
302
+ #: include/list-table.php:126
303
+ #@ polylang
304
  msgid "String"
305
  msgstr "Ciąg tekstowy"
306
 
307
+ #: include/calendar.php:132
308
+ #: include/calendar.php:140
 
 
 
 
 
309
  #, php-format
310
+ #@ default
311
  msgid "View posts for %1$s %2$s"
312
  msgstr "Zobacz wpisy dla %1$s %2$s"
313
 
314
+ #: include/languages-form.php:36
315
+ #@ polylang
316
  msgid "Edit language"
317
  msgstr "Edytuj język"
318
 
319
+ #: include/languages-form.php:36
320
+ #: include/languages-form.php:103
321
+ #@ polylang
322
  msgid "Add new language"
323
  msgstr "Dodaj nowy język"
324
 
325
+ #: include/languages-form.php:58
326
+ #@ polylang
327
  msgid "Choose a language"
328
  msgstr "Wybierz język"
329
 
330
+ #: include/languages-form.php:66
331
+ #@ polylang
332
  msgid "You can choose a language in the list or directly edit it below."
333
  msgstr "Możesz wybrać język z listy lub edytować go bezpośrednio poniżej"
334
 
335
+ #: include/languages-form.php:72
336
+ #@ polylang
337
  msgid "The name is how it is displayed on your site (for example: English)."
338
  msgstr "Nazwa, tak jak będzie wyświetlana na stronie (np. English)"
339
 
340
+ #: include/languages-form.php:79
341
+ #@ polylang
342
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
343
  msgstr "Lokalizacja WordPress dla języka (np. en_US). Dla tego języka będziesz musiał zainstalować plik .mo."
344
 
345
+ #: include/languages-form.php:83
346
+ #@ polylang
347
  msgid "Language code"
348
  msgstr "Kod języka"
349
 
350
+ #: include/languages-form.php:85
351
+ #@ polylang
352
  msgid "2-letters ISO 639-1 language code (for example: en)"
353
  msgstr "2-literowy kod języka w ISO 639-1 (np. en)"
354
 
355
+ #: include/languages-form.php:89
356
+ #@ polylang
357
  msgid "Text direction"
358
  msgstr "Kierunek zapisu języka"
359
 
360
+ #: include/languages-form.php:91
361
+ #@ polylang
362
  msgid "left to right"
363
  msgstr "od lewej do prawej"
364
 
365
+ #: include/languages-form.php:93
366
+ #@ polylang
367
  msgid "right to left"
368
  msgstr "od prawej do lewej"
369
 
370
+ #: include/languages-form.php:94
371
+ #@ polylang
372
  msgid "Choose the text direction for the language"
373
  msgstr "Wybierz kierunek zapisu języka"
374
 
375
+ #: include/languages-form.php:100
376
+ #@ polylang
377
  msgid "Position of the language in the language switcher"
378
  msgstr "Pozycja języka w przełączniku języka"
379
 
380
+ #: include/languages-form.php:103
381
+ #@ default
382
  msgid "Update"
383
  msgstr "Aktualizacja"
384
 
385
+ #: include/languages-form.php:149
386
+ #@ polylang
387
  msgid "Language switcher"
388
  msgstr "Przełącznik języka"
389
 
390
+ #: include/languages-form.php:188
391
+ #@ polylang
392
  msgid "Default language"
393
  msgstr "Domyślny język"
394
 
395
+ #: include/languages-form.php:206
396
+ #@ polylang
397
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
398
  msgstr "Istnieją wpisy, strony, kategorie i tagi bez określonego języka. Czy chcesz ustawić dla nich domyślny język?"
399
 
400
+ #: include/languages-form.php:214
401
+ #@ polylang
402
  msgid "Detect browser language"
403
  msgstr "Wykryj język przeglądarki"
404
 
405
+ #: include/languages-form.php:220
406
+ #@ polylang
407
  msgid "When the front page is visited, set the language according to the browser preference"
408
  msgstr "Przy wejściu na stronę domową, ustaw język zgodnie z ustawieniami przeglądarki"
409
 
410
+ #: include/languages-form.php:227
411
+ #@ polylang
412
  msgid "URL modifications"
413
  msgstr "Modyfikacje URL"
414
 
415
+ #: include/languages-form.php:233
416
+ #@ polylang
417
  msgid "Keep /language/ in pretty permalinks. Example:"
418
  msgstr "Zachowaj /language/ w przyjaznych permalinkach. Np.:"
419
 
420
+ #: include/languages-form.php:241
421
+ #@ polylang
422
  msgid "Remove /language/ in pretty permalinks. Example:"
423
  msgstr "Usuń /language/ z przyjaznych permalinków. Np.:"
424
 
425
+ #: include/languages-form.php:249
426
+ #@ polylang
427
  msgid "Hide URL language information for default language"
428
  msgstr "Ukryj informację o języku w URL dla domyślnego języka"
429
 
430
+ #: include/languages-form.php:256
431
+ #@ polylang
432
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
433
  msgstr "Dodaj informację o języku do wszystkich URL w tym do wpisów, stron, kategorii i tagów (nie rekomendowane)"
434
 
435
+ #: include/base.php:38
436
+ #@ polylang
437
  msgid "All languages"
438
  msgstr "Wszystkie języki"
439
 
440
+ #: include/post-translations.php:1
441
+ #@ polylang
442
  msgid "ID of pages in other languages:"
443
  msgstr "ID stron w innych językach"
444
 
445
+ #: include/post-translations.php:1
446
+ #@ polylang
447
  msgid "ID of posts in other languages:"
448
  msgstr "ID wpisów w innych językach"
449
 
450
+ #: include/post-translations.php:5
451
+ #@ polylang
452
  msgid "Page ID"
453
  msgstr "ID strony"
454
 
455
+ #: include/post-translations.php:5
456
+ #@ polylang
457
  msgid "Post ID"
458
  msgstr "ID wpisu"
459
 
460
+ #: include/about.php:3
461
+ #, php-format
462
+ #@ polylang
463
+ 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."
464
+ msgstr ""
465
+
466
+ #: include/about.php:8
467
+ #, php-format
468
+ #@ polylang
469
+ 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."
470
+ msgstr ""
471
+
472
+ #: include/about.php:14
473
+ #, php-format
474
+ #@ polylang
475
+ msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
476
+ msgstr ""
477
+
478
+ #: include/about.php:18
479
+ #, php-format
480
+ #@ polylang
481
+ msgid "If you wonder how you can help the project, just %sread this%s."
482
+ msgstr ""
483
+
484
+ #: include/about.php:22
485
+ #@ polylang
486
+ msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
487
+ msgstr ""
488
+
489
+ #: include/admin.php:38
490
+ #@ polylang
491
+ msgid "About Polylang"
492
+ msgstr ""
493
+
494
+ #. translators: Calendar caption: 1: month name, 2: 4-digit year
495
+ #: include/calendar.php:106
496
+ #, php-format
497
+ #@ default
498
+ msgctxt "calendar caption"
499
+ msgid "%1$s %2$s"
500
+ msgstr ""
501
+
502
+ #: include/languages-form.php:263
503
+ #, php-format
504
+ #@ polylang
505
+ msgid "Redirect the language page (example: %s) to the homepage in the right language"
506
+ msgstr ""
507
+
508
+ #: polylang.php:111
509
+ #@ polylang
510
+ msgid "For some reasons, Polylang could not create a table in your database."
511
+ msgstr ""
512
+
languages/polylang-ru_RU.po CHANGED
@@ -19,13 +19,13 @@ msgstr ""
19
  "X-Poedit-SearchPath-0: ..\n"
20
  "X-Textdomain-Support: yes"
21
 
22
- #: polylang.php:185
23
  #@ polylang
24
  msgid "Error: Restore of local flags failed!"
25
  msgstr "Ошибка: Не удалось восстановить пользовательские иконки-флаги из резервной копиии!"
26
 
27
- #: include/admin-filters.php:512
28
- #: include/admin-filters.php:529
29
  #: include/list-table.php:12
30
  #: include/post-translations.php:4
31
  #: include/term-translations.php:15
@@ -33,8 +33,8 @@ msgstr "Ошибка: Не удалось восстановить пользо
33
  msgid "Language"
34
  msgstr "Язык"
35
 
36
- #: include/admin-filters.php:514
37
- #: include/admin-filters.php:532
38
  #@ polylang
39
  msgid "Sets the language"
40
  msgstr "Устанавливает язык"
@@ -54,77 +54,77 @@ msgstr "Показывает переключатель языков"
54
  msgid "Title:"
55
  msgstr "Название:"
56
 
57
- #: include/admin.php:482
58
  #@ polylang
59
  msgid "Displays language names"
60
  msgstr "Показывать названия языков"
61
 
62
- #: include/admin.php:483
63
  #@ polylang
64
  msgid "Displays flags"
65
  msgstr "Показывать флаги"
66
 
67
- #: include/admin.php:488
68
  #@ polylang
69
  msgid "Displays as dropdown"
70
  msgstr "Показывать как выпадающий список"
71
 
72
- #: include/admin.php:484
73
  #@ polylang
74
  msgid "Forces link to front page"
75
  msgstr "Принудительно переходить на главную страницу при смене языка"
76
 
77
- #: include/admin.php:25
78
- #: include/admin.php:298
79
  #@ default
80
  #@ polylang
81
  msgid "Settings"
82
  msgstr "Настройки"
83
 
84
- #: include/admin-filters.php:185
85
- #: include/admin.php:32
86
- #: include/admin.php:291
87
  #: include/list-table.php:13
88
  #@ polylang
89
  msgid "Languages"
90
  msgstr "Языки"
91
 
92
- #: include/admin.php:296
93
  #@ polylang
94
  msgid "Menus"
95
  msgstr "Меню"
96
 
97
- #: include/admin.php:316
98
  #@ polylang
99
  msgid "Enter a valid WorPress locale"
100
  msgstr "Введите корректную WordPress локаль"
101
 
102
- #: include/admin.php:317
103
  #@ polylang
104
  msgid "The language code must be 2 characters long"
105
  msgstr "Код языка должен состоять из 2-х символов"
106
 
107
- #: include/admin.php:318
108
  #@ polylang
109
  msgid "The language code must be unique"
110
  msgstr "Код языка должен быть уникальным"
111
 
112
- #: include/admin.php:319
113
  #@ polylang
114
  msgid "The language must have a name"
115
  msgstr "У языка должно быть название"
116
 
117
- #: include/admin.php:487
118
  #@ polylang
119
  msgid "Displays a language switcher at the end of the menu"
120
  msgstr "Показывает переключатель языков"
121
 
122
- #: include/admin-filters.php:202
123
  #@ polylang
124
  msgid "Page's language:"
125
  msgstr "Язык страницы"
126
 
127
- #: include/admin-filters.php:202
128
  #@ polylang
129
  msgid "Post's language:"
130
  msgstr "Язык записи"
@@ -156,28 +156,28 @@ msgstr "Редактировать"
156
  msgid "Add new"
157
  msgstr "Добавить новый"
158
 
159
- #: include/admin-filters.php:172
160
  #@ polylang
161
  msgid "Show all languages"
162
  msgstr "Показать все языки"
163
 
164
- #: include/admin-filters.php:714
165
  #@ polylang
166
  msgid "Theme locations and languages"
167
  msgstr "Расположение темы и языков"
168
 
169
- #: include/admin-filters.php:719
170
  #, php-format
171
  #@ polylang
172
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
173
  msgstr "Перейдите на %slanguages page%s для указания расположения темы и языков"
174
 
175
- #: include/admin-filters.php:730
176
  #@ polylang
177
  msgid "The widget is displayed for:"
178
  msgstr "Показывать виджет для"
179
 
180
- #: include/base.php:33
181
  #@ polylang
182
  msgid "All languages"
183
  msgstr "Все языки"
@@ -187,13 +187,13 @@ msgstr "Все языки"
187
  msgid "Delete"
188
  msgstr "Удалить"
189
 
190
- #: include/languages-form.php:67
191
  #: include/list-table.php:45
192
  #@ polylang
193
  msgid "Full name"
194
  msgstr "Полное название"
195
 
196
- #: include/languages-form.php:73
197
  #: include/list-table.php:46
198
  #@ polylang
199
  msgid "Locale"
@@ -229,93 +229,93 @@ msgstr "%1$s %2$s"
229
  msgid "View posts for %1$s %2$s"
230
  msgstr "Показать записи для %1$s %2$s"
231
 
232
- #: include/languages-form.php:33
233
  #@ polylang
234
  msgid "Edit language"
235
  msgstr "Редактировать язык"
236
 
237
- #: include/languages-form.php:33
238
- #: include/languages-form.php:98
239
  #@ polylang
240
  msgid "Add new language"
241
  msgstr "Добавить новый язык"
242
 
243
- #: include/languages-form.php:55
244
  #@ polylang
245
  msgid "Choose a language"
246
  msgstr "Показать все языки"
247
 
248
- #: include/languages-form.php:63
249
  #@ polylang
250
  msgid "You can choose a language in the list or directly edit it below."
251
  msgstr "Выберите язык из списка или укажите сами."
252
 
253
- #: include/languages-form.php:69
254
  #@ polylang
255
  msgid "The name is how it is displayed on your site (for example: English)."
256
  msgstr "Название для отображения на сайте (например: Русский)."
257
 
258
- #: include/languages-form.php:76
259
  #@ polylang
260
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
261
  msgstr "Локаль Wordpress'a для языка (например: ru_RU). Вы должны установить файлы .mo для админ.панели и используемой темы."
262
 
263
- #: include/languages-form.php:80
264
  #@ polylang
265
  msgid "Language code"
266
  msgstr "Код языка"
267
 
268
- #: include/languages-form.php:82
269
  #@ polylang
270
  msgid "2-letters ISO 639-1 language code (for example: en)"
271
  msgstr "2х-буквенный ISO 639-1 код языка (например: ru)"
272
 
273
- #: include/languages-form.php:98
274
  #@ default
275
  msgid "Update"
276
  msgstr "Обновить"
277
 
278
- #: include/languages-form.php:134
279
  #@ polylang
280
  msgid "Language switcher"
281
  msgstr "Переключатель языков"
282
 
283
- #: include/languages-form.php:173
284
  #@ polylang
285
  msgid "Default language"
286
  msgstr "Язык по-умолчанию"
287
 
288
- #: include/languages-form.php:191
289
  #@ polylang
290
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
291
  msgstr "Найдены записи, страницы, категории или метки без указанния какого-либо языка. Установить им язык по-умолчанию?"
292
 
293
- #: include/languages-form.php:199
294
  #@ polylang
295
  msgid "Detect browser language"
296
  msgstr "Определять язык в браузере"
297
 
298
- #: include/languages-form.php:205
299
  #@ polylang
300
  msgid "When the front page is visited, set the language according to the browser preference"
301
  msgstr "Установить язык сайта согласно настройкам браузера"
302
 
303
- #: include/languages-form.php:212
304
  #@ polylang
305
  msgid "URL modifications"
306
  msgstr "Модификации URL"
307
 
308
- #: include/languages-form.php:218
309
  #@ polylang
310
  msgid "Keep /language/ in pretty permalinks. Example:"
311
  msgstr "Оставить /language/ в ЧПУ. Пример:"
312
 
313
- #: include/languages-form.php:226
314
  #@ polylang
315
  msgid "Remove /language/ in pretty permalinks. Example:"
316
  msgstr "Удалить /language/ в ЧПУ. Пример:"
317
 
318
- #: include/languages-form.php:234
319
  #@ polylang
320
  msgid "Hide URL language information for default language"
321
  msgstr "Спрятать название языка по-умолчанию из URL"
@@ -340,55 +340,55 @@ msgstr "ID страницы"
340
  msgid "Post ID"
341
  msgstr "ID записи"
342
 
343
- #: include/admin-filters.php:761
344
  #@ polylang
345
  msgid "Admin language"
346
  msgstr "Язык админ.панели"
347
 
348
- #: include/admin-filters.php:148
349
- #: include/admin-filters.php:575
350
  #@ polylang
351
  msgid "Add new translation"
352
  msgstr ""
353
 
354
- #: include/admin-filters.php:262
355
  #@ default
356
  msgid "(no parent)"
357
  msgstr ""
358
 
359
- #: include/admin.php:298
360
  #: include/list-table.php:104
361
  #@ polylang
362
  msgid "Strings translation"
363
  msgstr ""
364
 
365
- #: include/admin.php:320
366
  #@ polylang
367
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
368
  msgstr ""
369
 
370
- #: include/admin.php:497
371
  #@ default
372
  msgid "Site Title"
373
  msgstr ""
374
 
375
- #: include/admin.php:498
376
  #@ default
377
  msgid "Tagline"
378
  msgstr ""
379
 
380
- #: include/admin.php:517
381
  #@ polylang
382
  msgid "Widget title"
383
  msgstr ""
384
 
385
- #: include/languages-form.php:93
386
  #: include/list-table.php:48
387
  #@ polylang
388
  msgid "Order"
389
  msgstr ""
390
 
391
- #: include/languages-form.php:95
392
  #@ polylang
393
  msgid "Position of the language in the language switcher"
394
  msgstr ""
@@ -413,55 +413,100 @@ msgstr ""
413
  msgid "No untranslated term"
414
  msgstr ""
415
 
416
- #: polylang.php:186
417
  #, php-format
418
  #@ polylang
419
  msgid "Please move your local flags from %s to %s"
420
  msgstr ""
421
 
422
- #: include/admin-filters.php:697
423
  #@ default
424
  msgid "None"
425
  msgstr ""
426
 
427
- #: include/admin.php:473
428
  #@ polylang
429
  msgid "Upgrading language files&#8230;"
430
  msgstr ""
431
 
432
- #: include/admin.php:485
433
  #@ polylang
434
  msgid "Hides the current language"
435
  msgstr ""
436
 
437
- #: include/languages-form.php:86
438
  #@ polylang
439
  msgid "Text direction"
440
  msgstr ""
441
 
442
- #: include/languages-form.php:87
443
  #@ polylang
444
  msgid "left to right"
445
  msgstr ""
446
 
447
- #: include/languages-form.php:88
448
  #@ polylang
449
  msgid "right to left"
450
  msgstr ""
451
 
452
- #: include/languages-form.php:89
453
  #@ polylang
454
  msgid "Choose the text direction for the language"
455
  msgstr ""
456
 
457
- #: include/languages-form.php:241
458
  #@ polylang
459
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
460
  msgstr ""
461
 
462
- #: polylang.php:88
463
  #, php-format
464
- #@ default
465
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
466
  msgstr ""
467
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  "X-Poedit-SearchPath-0: ..\n"
20
  "X-Textdomain-Support: yes"
21
 
22
+ #: polylang.php:193
23
  #@ polylang
24
  msgid "Error: Restore of local flags failed!"
25
  msgstr "Ошибка: Не удалось восстановить пользовательские иконки-флаги из резервной копиии!"
26
 
27
+ #: include/admin-filters.php:537
28
+ #: include/admin-filters.php:554
29
  #: include/list-table.php:12
30
  #: include/post-translations.php:4
31
  #: include/term-translations.php:15
33
  msgid "Language"
34
  msgstr "Язык"
35
 
36
+ #: include/admin-filters.php:539
37
+ #: include/admin-filters.php:557
38
  #@ polylang
39
  msgid "Sets the language"
40
  msgstr "Устанавливает язык"
54
  msgid "Title:"
55
  msgstr "Название:"
56
 
57
+ #: include/admin.php:486
58
  #@ polylang
59
  msgid "Displays language names"
60
  msgstr "Показывать названия языков"
61
 
62
+ #: include/admin.php:487
63
  #@ polylang
64
  msgid "Displays flags"
65
  msgstr "Показывать флаги"
66
 
67
+ #: include/admin.php:492
68
  #@ polylang
69
  msgid "Displays as dropdown"
70
  msgstr "Показывать как выпадающий список"
71
 
72
+ #: include/admin.php:488
73
  #@ polylang
74
  msgid "Forces link to front page"
75
  msgstr "Принудительно переходить на главную страницу при смене языка"
76
 
77
+ #: include/admin.php:26
78
+ #: include/admin.php:300
79
  #@ default
80
  #@ polylang
81
  msgid "Settings"
82
  msgstr "Настройки"
83
 
84
+ #: include/admin-filters.php:187
85
+ #: include/admin.php:33
86
+ #: include/admin.php:292
87
  #: include/list-table.php:13
88
  #@ polylang
89
  msgid "Languages"
90
  msgstr "Языки"
91
 
92
+ #: include/admin.php:297
93
  #@ polylang
94
  msgid "Menus"
95
  msgstr "Меню"
96
 
97
+ #: include/admin.php:318
98
  #@ polylang
99
  msgid "Enter a valid WorPress locale"
100
  msgstr "Введите корректную WordPress локаль"
101
 
102
+ #: include/admin.php:319
103
  #@ polylang
104
  msgid "The language code must be 2 characters long"
105
  msgstr "Код языка должен состоять из 2-х символов"
106
 
107
+ #: include/admin.php:320
108
  #@ polylang
109
  msgid "The language code must be unique"
110
  msgstr "Код языка должен быть уникальным"
111
 
112
+ #: include/admin.php:321
113
  #@ polylang
114
  msgid "The language must have a name"
115
  msgstr "У языка должно быть название"
116
 
117
+ #: include/admin.php:491
118
  #@ polylang
119
  msgid "Displays a language switcher at the end of the menu"
120
  msgstr "Показывает переключатель языков"
121
 
122
+ #: include/admin-filters.php:204
123
  #@ polylang
124
  msgid "Page's language:"
125
  msgstr "Язык страницы"
126
 
127
+ #: include/admin-filters.php:204
128
  #@ polylang
129
  msgid "Post's language:"
130
  msgstr "Язык записи"
156
  msgid "Add new"
157
  msgstr "Добавить новый"
158
 
159
+ #: include/admin-filters.php:174
160
  #@ polylang
161
  msgid "Show all languages"
162
  msgstr "Показать все языки"
163
 
164
+ #: include/admin-filters.php:738
165
  #@ polylang
166
  msgid "Theme locations and languages"
167
  msgstr "Расположение темы и языков"
168
 
169
+ #: include/admin-filters.php:743
170
  #, php-format
171
  #@ polylang
172
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
173
  msgstr "Перейдите на %slanguages page%s для указания расположения темы и языков"
174
 
175
+ #: include/admin-filters.php:754
176
  #@ polylang
177
  msgid "The widget is displayed for:"
178
  msgstr "Показывать виджет для"
179
 
180
+ #: include/base.php:38
181
  #@ polylang
182
  msgid "All languages"
183
  msgstr "Все языки"
187
  msgid "Delete"
188
  msgstr "Удалить"
189
 
190
+ #: include/languages-form.php:70
191
  #: include/list-table.php:45
192
  #@ polylang
193
  msgid "Full name"
194
  msgstr "Полное название"
195
 
196
+ #: include/languages-form.php:76
197
  #: include/list-table.php:46
198
  #@ polylang
199
  msgid "Locale"
229
  msgid "View posts for %1$s %2$s"
230
  msgstr "Показать записи для %1$s %2$s"
231
 
232
+ #: include/languages-form.php:36
233
  #@ polylang
234
  msgid "Edit language"
235
  msgstr "Редактировать язык"
236
 
237
+ #: include/languages-form.php:36
238
+ #: include/languages-form.php:103
239
  #@ polylang
240
  msgid "Add new language"
241
  msgstr "Добавить новый язык"
242
 
243
+ #: include/languages-form.php:58
244
  #@ polylang
245
  msgid "Choose a language"
246
  msgstr "Показать все языки"
247
 
248
+ #: include/languages-form.php:66
249
  #@ polylang
250
  msgid "You can choose a language in the list or directly edit it below."
251
  msgstr "Выберите язык из списка или укажите сами."
252
 
253
+ #: include/languages-form.php:72
254
  #@ polylang
255
  msgid "The name is how it is displayed on your site (for example: English)."
256
  msgstr "Название для отображения на сайте (например: Русский)."
257
 
258
+ #: include/languages-form.php:79
259
  #@ polylang
260
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
261
  msgstr "Локаль Wordpress'a для языка (например: ru_RU). Вы должны установить файлы .mo для админ.панели и используемой темы."
262
 
263
+ #: include/languages-form.php:83
264
  #@ polylang
265
  msgid "Language code"
266
  msgstr "Код языка"
267
 
268
+ #: include/languages-form.php:85
269
  #@ polylang
270
  msgid "2-letters ISO 639-1 language code (for example: en)"
271
  msgstr "2х-буквенный ISO 639-1 код языка (например: ru)"
272
 
273
+ #: include/languages-form.php:103
274
  #@ default
275
  msgid "Update"
276
  msgstr "Обновить"
277
 
278
+ #: include/languages-form.php:149
279
  #@ polylang
280
  msgid "Language switcher"
281
  msgstr "Переключатель языков"
282
 
283
+ #: include/languages-form.php:188
284
  #@ polylang
285
  msgid "Default language"
286
  msgstr "Язык по-умолчанию"
287
 
288
+ #: include/languages-form.php:206
289
  #@ polylang
290
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
291
  msgstr "Найдены записи, страницы, категории или метки без указанния какого-либо языка. Установить им язык по-умолчанию?"
292
 
293
+ #: include/languages-form.php:214
294
  #@ polylang
295
  msgid "Detect browser language"
296
  msgstr "Определять язык в браузере"
297
 
298
+ #: include/languages-form.php:220
299
  #@ polylang
300
  msgid "When the front page is visited, set the language according to the browser preference"
301
  msgstr "Установить язык сайта согласно настройкам браузера"
302
 
303
+ #: include/languages-form.php:227
304
  #@ polylang
305
  msgid "URL modifications"
306
  msgstr "Модификации URL"
307
 
308
+ #: include/languages-form.php:233
309
  #@ polylang
310
  msgid "Keep /language/ in pretty permalinks. Example:"
311
  msgstr "Оставить /language/ в ЧПУ. Пример:"
312
 
313
+ #: include/languages-form.php:241
314
  #@ polylang
315
  msgid "Remove /language/ in pretty permalinks. Example:"
316
  msgstr "Удалить /language/ в ЧПУ. Пример:"
317
 
318
+ #: include/languages-form.php:249
319
  #@ polylang
320
  msgid "Hide URL language information for default language"
321
  msgstr "Спрятать название языка по-умолчанию из URL"
340
  msgid "Post ID"
341
  msgstr "ID записи"
342
 
343
+ #: include/admin-filters.php:785
344
  #@ polylang
345
  msgid "Admin language"
346
  msgstr "Язык админ.панели"
347
 
348
+ #: include/admin-filters.php:151
349
+ #: include/admin-filters.php:600
350
  #@ polylang
351
  msgid "Add new translation"
352
  msgstr ""
353
 
354
+ #: include/admin-filters.php:263
355
  #@ default
356
  msgid "(no parent)"
357
  msgstr ""
358
 
359
+ #: include/admin.php:299
360
  #: include/list-table.php:104
361
  #@ polylang
362
  msgid "Strings translation"
363
  msgstr ""
364
 
365
+ #: include/admin.php:322
366
  #@ polylang
367
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
368
  msgstr ""
369
 
370
+ #: include/admin.php:501
371
  #@ default
372
  msgid "Site Title"
373
  msgstr ""
374
 
375
+ #: include/admin.php:502
376
  #@ default
377
  msgid "Tagline"
378
  msgstr ""
379
 
380
+ #: include/admin.php:520
381
  #@ polylang
382
  msgid "Widget title"
383
  msgstr ""
384
 
385
+ #: include/languages-form.php:98
386
  #: include/list-table.php:48
387
  #@ polylang
388
  msgid "Order"
389
  msgstr ""
390
 
391
+ #: include/languages-form.php:100
392
  #@ polylang
393
  msgid "Position of the language in the language switcher"
394
  msgstr ""
413
  msgid "No untranslated term"
414
  msgstr ""
415
 
416
+ #: polylang.php:194
417
  #, php-format
418
  #@ polylang
419
  msgid "Please move your local flags from %s to %s"
420
  msgstr ""
421
 
422
+ #: include/admin-filters.php:721
423
  #@ default
424
  msgid "None"
425
  msgstr ""
426
 
427
+ #: include/admin.php:475
428
  #@ polylang
429
  msgid "Upgrading language files&#8230;"
430
  msgstr ""
431
 
432
+ #: include/admin.php:489
433
  #@ polylang
434
  msgid "Hides the current language"
435
  msgstr ""
436
 
437
+ #: include/languages-form.php:89
438
  #@ polylang
439
  msgid "Text direction"
440
  msgstr ""
441
 
442
+ #: include/languages-form.php:91
443
  #@ polylang
444
  msgid "left to right"
445
  msgstr ""
446
 
447
+ #: include/languages-form.php:93
448
  #@ polylang
449
  msgid "right to left"
450
  msgstr ""
451
 
452
+ #: include/languages-form.php:94
453
  #@ polylang
454
  msgid "Choose the text direction for the language"
455
  msgstr ""
456
 
457
+ #: include/languages-form.php:256
458
  #@ polylang
459
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
460
  msgstr ""
461
 
462
+ #: polylang.php:97
463
  #, php-format
464
+ #@ polylang
465
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
466
  msgstr ""
467
 
468
+ #: include/about.php:3
469
+ #, php-format
470
+ #@ polylang
471
+ 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."
472
+ msgstr ""
473
+
474
+ #: include/about.php:8
475
+ #, php-format
476
+ #@ polylang
477
+ 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."
478
+ msgstr ""
479
+
480
+ #: include/about.php:14
481
+ #, php-format
482
+ #@ polylang
483
+ msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
484
+ msgstr ""
485
+
486
+ #: include/about.php:18
487
+ #, php-format
488
+ #@ polylang
489
+ msgid "If you wonder how you can help the project, just %sread this%s."
490
+ msgstr ""
491
+
492
+ #: include/about.php:22
493
+ #@ polylang
494
+ msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
495
+ msgstr ""
496
+
497
+ #: include/admin.php:38
498
+ #@ polylang
499
+ msgid "About Polylang"
500
+ msgstr ""
501
+
502
+ #: include/languages-form.php:263
503
+ #, php-format
504
+ #@ polylang
505
+ msgid "Redirect the language page (example: %s) to the homepage in the right language"
506
+ msgstr ""
507
+
508
+ #: polylang.php:111
509
+ #@ polylang
510
+ msgid "For some reasons, Polylang could not create a table in your database."
511
+ msgstr ""
512
+
languages/polylang.pot CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: polylang\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-01-23 15:00+0100\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: F. Demarle\n"
8
  "Language-Team: \n"
@@ -17,16 +17,20 @@ msgstr ""
17
  "X-Poedit-SearchPath-0: ..\n"
18
  "X-Poedit-SearchPath-1: ../include\n"
19
 
20
- #: ../polylang.php:88
21
  #, php-format
22
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
23
  msgstr ""
24
 
25
- #: ../polylang.php:185
 
 
 
 
26
  msgid "Error: Restore of local flags failed!"
27
  msgstr ""
28
 
29
- #: ../polylang.php:186
30
  #, php-format
31
  msgid "Please move your local flags from %s to %s"
32
  msgstr ""
@@ -43,84 +47,88 @@ msgstr ""
43
  msgid "Title:"
44
  msgstr ""
45
 
46
- #: ../include/admin.php:25
47
- #: ../include/admin.php:298
48
  msgid "Settings"
49
  msgstr ""
50
 
51
- #: ../include/admin.php:32
52
- #: ../include/admin.php:291
53
- #: ../include/admin-filters.php:185
54
  #: ../include/list-table.php:13
55
  msgid "Languages"
56
  msgstr ""
57
 
58
- #: ../include/admin.php:296
 
 
 
 
59
  msgid "Menus"
60
  msgstr ""
61
 
62
- #: ../include/admin.php:298
63
  #: ../include/list-table.php:104
64
  msgid "Strings translation"
65
  msgstr ""
66
 
67
- #: ../include/admin.php:316
68
  msgid "Enter a valid WorPress locale"
69
  msgstr ""
70
 
71
- #: ../include/admin.php:317
72
  msgid "The language code must be 2 characters long"
73
  msgstr ""
74
 
75
- #: ../include/admin.php:318
76
  msgid "The language code must be unique"
77
  msgstr ""
78
 
79
- #: ../include/admin.php:319
80
  msgid "The language must have a name"
81
  msgstr ""
82
 
83
- #: ../include/admin.php:320
84
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
85
  msgstr ""
86
 
87
- #: ../include/admin.php:473
88
  msgid "Upgrading language files&#8230;"
89
  msgstr ""
90
 
91
- #: ../include/admin.php:482
92
  msgid "Displays language names"
93
  msgstr ""
94
 
95
- #: ../include/admin.php:483
96
  msgid "Displays flags"
97
  msgstr ""
98
 
99
- #: ../include/admin.php:484
100
  msgid "Forces link to front page"
101
  msgstr ""
102
 
103
- #: ../include/admin.php:485
104
  msgid "Hides the current language"
105
  msgstr ""
106
 
107
- #: ../include/admin.php:487
108
  msgid "Displays a language switcher at the end of the menu"
109
  msgstr ""
110
 
111
- #: ../include/admin.php:488
112
  msgid "Displays as dropdown"
113
  msgstr ""
114
 
115
- #: ../include/admin.php:497
116
  msgid "Site Title"
117
  msgstr ""
118
 
119
- #: ../include/admin.php:498
120
  msgid "Tagline"
121
  msgstr ""
122
 
123
- #: ../include/admin.php:517
124
  msgid "Widget title"
125
  msgstr ""
126
 
@@ -131,8 +139,8 @@ msgid "Translations"
131
  msgstr ""
132
 
133
  #: ../include/term-translations.php:15
134
- #: ../include/admin-filters.php:512
135
- #: ../include/admin-filters.php:529
136
  #: ../include/list-table.php:12
137
  #: ../include/post-translations.php:4
138
  msgid "Language"
@@ -159,50 +167,50 @@ msgstr ""
159
  msgid "Add new"
160
  msgstr ""
161
 
162
- #: ../include/admin-filters.php:148
163
- #: ../include/admin-filters.php:575
164
  msgid "Add new translation"
165
  msgstr ""
166
 
167
- #: ../include/admin-filters.php:172
168
  msgid "Show all languages"
169
  msgstr ""
170
 
171
- #: ../include/admin-filters.php:202
172
  msgid "Page's language:"
173
  msgstr ""
174
 
175
- #: ../include/admin-filters.php:202
176
  msgid "Post's language:"
177
  msgstr ""
178
 
179
- #: ../include/admin-filters.php:262
180
  msgid "(no parent)"
181
  msgstr ""
182
 
183
- #: ../include/admin-filters.php:514
184
- #: ../include/admin-filters.php:532
185
  msgid "Sets the language"
186
  msgstr ""
187
 
188
- #: ../include/admin-filters.php:697
189
  msgid "None"
190
  msgstr ""
191
 
192
- #: ../include/admin-filters.php:714
193
  msgid "Theme locations and languages"
194
  msgstr ""
195
 
196
- #: ../include/admin-filters.php:719
197
  #, php-format
198
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
199
  msgstr ""
200
 
201
- #: ../include/admin-filters.php:730
202
  msgid "The widget is displayed for:"
203
  msgstr ""
204
 
205
- #: ../include/admin-filters.php:761
206
  msgid "Admin language"
207
  msgstr ""
208
 
@@ -211,12 +219,12 @@ msgid "Delete"
211
  msgstr ""
212
 
213
  #: ../include/list-table.php:45
214
- #: ../include/languages-form.php:67
215
  msgid "Full name"
216
  msgstr ""
217
 
218
  #: ../include/list-table.php:46
219
- #: ../include/languages-form.php:73
220
  msgid "Locale"
221
  msgstr ""
222
 
@@ -225,7 +233,7 @@ msgid "Code"
225
  msgstr ""
226
 
227
  #: ../include/list-table.php:48
228
- #: ../include/languages-form.php:93
229
  msgid "Order"
230
  msgstr ""
231
 
@@ -260,104 +268,109 @@ msgstr ""
260
  msgid "View posts for %1$s %2$s"
261
  msgstr ""
262
 
263
- #: ../include/languages-form.php:33
264
  msgid "Edit language"
265
  msgstr ""
266
 
267
- #: ../include/languages-form.php:33
268
- #: ../include/languages-form.php:98
269
  msgid "Add new language"
270
  msgstr ""
271
 
272
- #: ../include/languages-form.php:55
273
  msgid "Choose a language"
274
  msgstr ""
275
 
276
- #: ../include/languages-form.php:63
277
  msgid "You can choose a language in the list or directly edit it below."
278
  msgstr ""
279
 
280
- #: ../include/languages-form.php:69
281
  msgid "The name is how it is displayed on your site (for example: English)."
282
  msgstr ""
283
 
284
- #: ../include/languages-form.php:76
285
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
286
  msgstr ""
287
 
288
- #: ../include/languages-form.php:80
289
  msgid "Language code"
290
  msgstr ""
291
 
292
- #: ../include/languages-form.php:82
293
  msgid "2-letters ISO 639-1 language code (for example: en)"
294
  msgstr ""
295
 
296
- #: ../include/languages-form.php:86
297
  msgid "Text direction"
298
  msgstr ""
299
 
300
- #: ../include/languages-form.php:87
301
  msgid "left to right"
302
  msgstr ""
303
 
304
- #: ../include/languages-form.php:88
305
  msgid "right to left"
306
  msgstr ""
307
 
308
- #: ../include/languages-form.php:89
309
  msgid "Choose the text direction for the language"
310
  msgstr ""
311
 
312
- #: ../include/languages-form.php:95
313
  msgid "Position of the language in the language switcher"
314
  msgstr ""
315
 
316
- #: ../include/languages-form.php:98
317
  msgid "Update"
318
  msgstr ""
319
 
320
- #: ../include/languages-form.php:134
321
  msgid "Language switcher"
322
  msgstr ""
323
 
324
- #: ../include/languages-form.php:173
325
  msgid "Default language"
326
  msgstr ""
327
 
328
- #: ../include/languages-form.php:191
329
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
330
  msgstr ""
331
 
332
- #: ../include/languages-form.php:199
333
  msgid "Detect browser language"
334
  msgstr ""
335
 
336
- #: ../include/languages-form.php:205
337
  msgid "When the front page is visited, set the language according to the browser preference"
338
  msgstr ""
339
 
340
- #: ../include/languages-form.php:212
341
  msgid "URL modifications"
342
  msgstr ""
343
 
344
- #: ../include/languages-form.php:218
345
  msgid "Keep /language/ in pretty permalinks. Example:"
346
  msgstr ""
347
 
348
- #: ../include/languages-form.php:226
349
  msgid "Remove /language/ in pretty permalinks. Example:"
350
  msgstr ""
351
 
352
- #: ../include/languages-form.php:234
353
  msgid "Hide URL language information for default language"
354
  msgstr ""
355
 
356
- #: ../include/languages-form.php:241
357
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
358
  msgstr ""
359
 
360
- #: ../include/base.php:33
 
 
 
 
 
361
  msgid "All languages"
362
  msgstr ""
363
 
@@ -377,3 +390,27 @@ msgstr ""
377
  msgid "Post ID"
378
  msgstr ""
379
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: polylang\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-21 20:50+0100\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: F. Demarle\n"
8
  "Language-Team: \n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
  "X-Poedit-SearchPath-1: ../include\n"
19
 
20
+ #: ../polylang.php:97
21
  #, php-format
22
  msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
23
  msgstr ""
24
 
25
+ #: ../polylang.php:111
26
+ msgid "For some reasons, Polylang could not create a table in your database."
27
+ msgstr ""
28
+
29
+ #: ../polylang.php:193
30
  msgid "Error: Restore of local flags failed!"
31
  msgstr ""
32
 
33
+ #: ../polylang.php:194
34
  #, php-format
35
  msgid "Please move your local flags from %s to %s"
36
  msgstr ""
47
  msgid "Title:"
48
  msgstr ""
49
 
50
+ #: ../include/admin.php:26
51
+ #: ../include/admin.php:300
52
  msgid "Settings"
53
  msgstr ""
54
 
55
+ #: ../include/admin.php:33
56
+ #: ../include/admin.php:292
57
+ #: ../include/admin-filters.php:187
58
  #: ../include/list-table.php:13
59
  msgid "Languages"
60
  msgstr ""
61
 
62
+ #: ../include/admin.php:38
63
+ msgid "About Polylang"
64
+ msgstr ""
65
+
66
+ #: ../include/admin.php:297
67
  msgid "Menus"
68
  msgstr ""
69
 
70
+ #: ../include/admin.php:299
71
  #: ../include/list-table.php:104
72
  msgid "Strings translation"
73
  msgstr ""
74
 
75
+ #: ../include/admin.php:318
76
  msgid "Enter a valid WorPress locale"
77
  msgstr ""
78
 
79
+ #: ../include/admin.php:319
80
  msgid "The language code must be 2 characters long"
81
  msgstr ""
82
 
83
+ #: ../include/admin.php:320
84
  msgid "The language code must be unique"
85
  msgstr ""
86
 
87
+ #: ../include/admin.php:321
88
  msgid "The language must have a name"
89
  msgstr ""
90
 
91
+ #: ../include/admin.php:322
92
  msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
93
  msgstr ""
94
 
95
+ #: ../include/admin.php:475
96
  msgid "Upgrading language files&#8230;"
97
  msgstr ""
98
 
99
+ #: ../include/admin.php:486
100
  msgid "Displays language names"
101
  msgstr ""
102
 
103
+ #: ../include/admin.php:487
104
  msgid "Displays flags"
105
  msgstr ""
106
 
107
+ #: ../include/admin.php:488
108
  msgid "Forces link to front page"
109
  msgstr ""
110
 
111
+ #: ../include/admin.php:489
112
  msgid "Hides the current language"
113
  msgstr ""
114
 
115
+ #: ../include/admin.php:491
116
  msgid "Displays a language switcher at the end of the menu"
117
  msgstr ""
118
 
119
+ #: ../include/admin.php:492
120
  msgid "Displays as dropdown"
121
  msgstr ""
122
 
123
+ #: ../include/admin.php:501
124
  msgid "Site Title"
125
  msgstr ""
126
 
127
+ #: ../include/admin.php:502
128
  msgid "Tagline"
129
  msgstr ""
130
 
131
+ #: ../include/admin.php:520
132
  msgid "Widget title"
133
  msgstr ""
134
 
139
  msgstr ""
140
 
141
  #: ../include/term-translations.php:15
142
+ #: ../include/admin-filters.php:537
143
+ #: ../include/admin-filters.php:554
144
  #: ../include/list-table.php:12
145
  #: ../include/post-translations.php:4
146
  msgid "Language"
167
  msgid "Add new"
168
  msgstr ""
169
 
170
+ #: ../include/admin-filters.php:151
171
+ #: ../include/admin-filters.php:600
172
  msgid "Add new translation"
173
  msgstr ""
174
 
175
+ #: ../include/admin-filters.php:174
176
  msgid "Show all languages"
177
  msgstr ""
178
 
179
+ #: ../include/admin-filters.php:204
180
  msgid "Page's language:"
181
  msgstr ""
182
 
183
+ #: ../include/admin-filters.php:204
184
  msgid "Post's language:"
185
  msgstr ""
186
 
187
+ #: ../include/admin-filters.php:263
188
  msgid "(no parent)"
189
  msgstr ""
190
 
191
+ #: ../include/admin-filters.php:539
192
+ #: ../include/admin-filters.php:557
193
  msgid "Sets the language"
194
  msgstr ""
195
 
196
+ #: ../include/admin-filters.php:721
197
  msgid "None"
198
  msgstr ""
199
 
200
+ #: ../include/admin-filters.php:738
201
  msgid "Theme locations and languages"
202
  msgstr ""
203
 
204
+ #: ../include/admin-filters.php:743
205
  #, php-format
206
  msgid "Please go to the %slanguages page%s to set theme locations and languages"
207
  msgstr ""
208
 
209
+ #: ../include/admin-filters.php:754
210
  msgid "The widget is displayed for:"
211
  msgstr ""
212
 
213
+ #: ../include/admin-filters.php:785
214
  msgid "Admin language"
215
  msgstr ""
216
 
219
  msgstr ""
220
 
221
  #: ../include/list-table.php:45
222
+ #: ../include/languages-form.php:70
223
  msgid "Full name"
224
  msgstr ""
225
 
226
  #: ../include/list-table.php:46
227
+ #: ../include/languages-form.php:76
228
  msgid "Locale"
229
  msgstr ""
230
 
233
  msgstr ""
234
 
235
  #: ../include/list-table.php:48
236
+ #: ../include/languages-form.php:98
237
  msgid "Order"
238
  msgstr ""
239
 
268
  msgid "View posts for %1$s %2$s"
269
  msgstr ""
270
 
271
+ #: ../include/languages-form.php:36
272
  msgid "Edit language"
273
  msgstr ""
274
 
275
+ #: ../include/languages-form.php:36
276
+ #: ../include/languages-form.php:103
277
  msgid "Add new language"
278
  msgstr ""
279
 
280
+ #: ../include/languages-form.php:58
281
  msgid "Choose a language"
282
  msgstr ""
283
 
284
+ #: ../include/languages-form.php:66
285
  msgid "You can choose a language in the list or directly edit it below."
286
  msgstr ""
287
 
288
+ #: ../include/languages-form.php:72
289
  msgid "The name is how it is displayed on your site (for example: English)."
290
  msgstr ""
291
 
292
+ #: ../include/languages-form.php:79
293
  msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
294
  msgstr ""
295
 
296
+ #: ../include/languages-form.php:83
297
  msgid "Language code"
298
  msgstr ""
299
 
300
+ #: ../include/languages-form.php:85
301
  msgid "2-letters ISO 639-1 language code (for example: en)"
302
  msgstr ""
303
 
304
+ #: ../include/languages-form.php:89
305
  msgid "Text direction"
306
  msgstr ""
307
 
308
+ #: ../include/languages-form.php:91
309
  msgid "left to right"
310
  msgstr ""
311
 
312
+ #: ../include/languages-form.php:93
313
  msgid "right to left"
314
  msgstr ""
315
 
316
+ #: ../include/languages-form.php:94
317
  msgid "Choose the text direction for the language"
318
  msgstr ""
319
 
320
+ #: ../include/languages-form.php:100
321
  msgid "Position of the language in the language switcher"
322
  msgstr ""
323
 
324
+ #: ../include/languages-form.php:103
325
  msgid "Update"
326
  msgstr ""
327
 
328
+ #: ../include/languages-form.php:149
329
  msgid "Language switcher"
330
  msgstr ""
331
 
332
+ #: ../include/languages-form.php:188
333
  msgid "Default language"
334
  msgstr ""
335
 
336
+ #: ../include/languages-form.php:206
337
  msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
338
  msgstr ""
339
 
340
+ #: ../include/languages-form.php:214
341
  msgid "Detect browser language"
342
  msgstr ""
343
 
344
+ #: ../include/languages-form.php:220
345
  msgid "When the front page is visited, set the language according to the browser preference"
346
  msgstr ""
347
 
348
+ #: ../include/languages-form.php:227
349
  msgid "URL modifications"
350
  msgstr ""
351
 
352
+ #: ../include/languages-form.php:233
353
  msgid "Keep /language/ in pretty permalinks. Example:"
354
  msgstr ""
355
 
356
+ #: ../include/languages-form.php:241
357
  msgid "Remove /language/ in pretty permalinks. Example:"
358
  msgstr ""
359
 
360
+ #: ../include/languages-form.php:249
361
  msgid "Hide URL language information for default language"
362
  msgstr ""
363
 
364
+ #: ../include/languages-form.php:256
365
  msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
366
  msgstr ""
367
 
368
+ #: ../include/languages-form.php:263
369
+ #, php-format
370
+ msgid "Redirect the language page (example: %s) to the homepage in the right language"
371
+ msgstr ""
372
+
373
+ #: ../include/base.php:38
374
  msgid "All languages"
375
  msgstr ""
376
 
390
  msgid "Post ID"
391
  msgstr ""
392
 
393
+ #: ../include/about.php:3
394
+ #, php-format
395
+ 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."
396
+ msgstr ""
397
+
398
+ #: ../include/about.php:8
399
+ #, php-format
400
+ 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."
401
+ msgstr ""
402
+
403
+ #: ../include/about.php:14
404
+ #, php-format
405
+ msgid "Polylang is free of charge and is released under the same license as WordPress, the %sGPL%s."
406
+ msgstr ""
407
+
408
+ #: ../include/about.php:18
409
+ #, php-format
410
+ msgid "If you wonder how you can help the project, just %sread this%s."
411
+ msgstr ""
412
+
413
+ #: ../include/about.php:22
414
+ msgid "Finally if you like this plugin or if it helps your business, donations to the author are greatly appreciated."
415
+ msgstr ""
416
+
polylang.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://wordpress.org/extend/plugins/polylang/
5
- Version: 0.7.2
6
  Author: F. Demarle
7
  Description: Adds multilingual capability to Wordpress
8
  */
@@ -24,7 +24,7 @@ Description: Adds multilingual capability to Wordpress
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
 
27
- define('POLYLANG_VERSION', '0.7.2');
28
  define('PLL_MIN_WP_VERSION', '3.1');
29
 
30
  define('POLYLANG_DIR', dirname(__FILE__)); // our directory
@@ -38,8 +38,17 @@ if (!defined('PLL_LOCAL_DIR'))
38
  if (!defined('PLL_LOCAL_URL'))
39
  define('PLL_LOCAL_URL', WP_CONTENT_URL.'/polylang'); // default url to access user data such as custom flags
40
 
 
 
 
41
  if (!defined('PLL_DISPLAY_ALL'))
42
- define('PLL_DISPLAY_ALL', false); // diplaying posts & terms with undefined language is disabled by default
 
 
 
 
 
 
43
 
44
  require_once(PLL_INC.'/base.php');
45
  require_once(PLL_INC.'/widget.php');
@@ -49,6 +58,7 @@ require_once(PLL_INC.'/calendar.php');
49
  class Polylang extends Polylang_Base {
50
 
51
  function __construct() {
 
52
  global $polylang; // globalize the variable to access it in the API
53
 
54
  // manages plugin activation and deactivation
@@ -57,14 +67,14 @@ class Polylang extends Polylang_Base {
57
 
58
  // stopping here if we are going to deactivate the plugin avoids breaking rewrite rules
59
  if (isset($_GET['action']) && $_GET['action'] == 'deactivate' && isset($_GET['plugin']) && $_GET['plugin'] == 'polylang/polylang.php')
60
- return;
61
 
62
  // manages plugin upgrade
63
  add_filter('upgrader_post_install', array(&$this, 'post_upgrade'));
64
  add_action('admin_init', array(&$this, 'admin_init'));
65
 
66
  // plugin and widget initialization
67
- add_action('init', array(&$this, 'init'));
68
  add_action('widgets_init', array(&$this, 'widgets_init'));
69
 
70
  // rewrite rules
@@ -87,21 +97,24 @@ class Polylang extends Polylang_Base {
87
  // plugin activation for multisite
88
  function activate() {
89
  global $wp_version, $wpdb;
 
90
 
91
  if (version_compare($wp_version, PLL_MIN_WP_VERSION , '<'))
92
- die (sprintf('<p style = "font-family: sans-serif; font-size: 12px; color: #333; margin: -5px">%s</p>',
93
- sprintf(__('You are using WordPress %s. Polylang requires at least WordPress %s.', 'polylang'), $wp_version, PLL_MIN_WP_VERSION)));
94
 
95
  // check if it is a network activation - if so, run the activation function for each blog
96
  if (is_multisite() && isset($_GET['networkwide']) && ($_GET['networkwide'] == 1)) {
97
  foreach ($wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs")) as $blog_id) {
98
  switch_to_blog($blog_id);
99
- $this->_activate();
100
  }
101
  restore_current_blog();
102
  }
103
  else
104
- $this->_activate();
 
 
 
105
  }
106
 
107
  // plugin activation
@@ -109,15 +122,11 @@ class Polylang extends Polylang_Base {
109
  // create the termmeta table - not provided by WP by default - if it does not already exists
110
  // uses exactly the same model as other meta tables to be able to use access functions provided by WP
111
  global $wpdb;
112
- $charset_collate = '';
113
- if ( ! empty($wpdb->charset) )
114
- $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
115
- if ( ! empty($wpdb->collate) )
116
- $charset_collate .= " COLLATE $wpdb->collate";
117
-
118
  $table = $wpdb->prefix . 'termmeta';
119
 
120
- $wpdb->query("CREATE TABLE IF NOT EXISTS $table (
121
  meta_id bigint(20) unsigned NOT NULL auto_increment,
122
  term_id bigint(20) unsigned NOT NULL default '0',
123
  meta_key varchar(255) default NULL,
@@ -127,8 +136,11 @@ class Polylang extends Polylang_Base {
127
  KEY meta_key (meta_key)
128
  ) $charset_collate;");
129
 
 
 
 
130
  // codex tells to use the init action to call register_taxonomy but I need it now for my rewrite rules
131
- register_taxonomy('language', get_post_types(array('show_ui' => true)), array('label' => false, 'query_var'=>'lang'));
132
 
133
  // defines default values for options in case this is the first installation
134
  $options = get_option('polylang');
@@ -137,6 +149,7 @@ class Polylang extends Polylang_Base {
137
  $options['rewrite'] = 1; // remove /language/ in permalinks (was the opposite before 0.7.2)
138
  $options['hide_default'] = 0; // do not remove URL language information for default language
139
  $options['force_lang'] = 0; // do not add URL language information when useless
 
140
  }
141
  $options['version'] = POLYLANG_VERSION;
142
  update_option('polylang', $options);
@@ -144,6 +157,7 @@ class Polylang extends Polylang_Base {
144
  // add our rewrite rules
145
  global $wp_rewrite;
146
  $wp_rewrite->flush_rules();
 
147
  }
148
 
149
  // plugin deactivation for multisite
@@ -183,7 +197,7 @@ class Polylang extends Polylang_Base {
183
  if (!@rename($upgrade_dir, PLL_LOCAL_DIR))
184
  return new WP_Error('polylang_restore_error', sprintf('%s<br />%s',
185
  __('Error: Restore of local flags failed!', 'polylang'),
186
- sprintf(__('Please move your local flags from %s to %s', 'polylang'), esc_html($upgrade_dir), '<strong>'.esc_html(PLL_LOCAL_DIR).'</strong>')
187
  ));
188
 
189
  @rmdir(WP_CONTENT_DIR . '/upgrade/polylang');
@@ -223,8 +237,8 @@ class Polylang extends Polylang_Base {
223
  if (version_compare($options['version'], '0.5', '<')) {
224
  $ids = get_posts(array('numberposts'=>-1, 'fields' => 'ids', 'post_type'=>'any', 'post_status'=>'any'));
225
  $this->upgrade_translations('post', $ids);
226
- $ids = get_terms(get_taxonomies(array('show_ui'=>true)), array('get'=>'all', 'fields'=>'ids'));
227
- $this->upgrade_translations('term', $ids);
228
  }
229
 
230
  // translation model changed in V0.5
@@ -238,7 +252,7 @@ class Polylang extends Polylang_Base {
238
  delete_post_meta($id, '_lang-'.$lang->slug);
239
  }
240
 
241
- $ids = get_terms(get_taxonomies(array('show_ui'=>true)), array('get'=>'all', 'fields'=>'ids'));
242
  foreach ($ids as $id) {
243
  foreach ($listlanguages as $lang)
244
  delete_metadata('term', $id, '_lang-'.$lang->slug);
@@ -248,8 +262,21 @@ class Polylang extends Polylang_Base {
248
  if (version_compare($options['version'], '0.7', '<'))
249
  $options['force_lang'] = 0; // option introduced in 0.7
250
 
251
- if (version_compare($options['version'], '0.7.2', '<'))
252
- $GLOBALS['wp_rewrite']->flush_rules(); // rewrite rules have been modified in 0.7.1 & 0.7.2
 
 
 
 
 
 
 
 
 
 
 
 
 
253
 
254
  $options['version'] = POLYLANG_VERSION;
255
  update_option('polylang', $options);
@@ -263,7 +290,7 @@ class Polylang extends Polylang_Base {
263
 
264
  // registers the language taxonomy
265
  // codex: use the init action to call this function
266
- register_taxonomy('language', get_post_types(array('show_ui' => true)), array(
267
  'label' => false,
268
  'public' => false, // avoid displaying the 'like post tags text box' in the quick edit
269
  'query_var'=>'lang',
@@ -273,7 +300,7 @@ class Polylang extends Polylang_Base {
273
  // the simple line of code is inspired by the WP No Category Base plugin: http://wordpresssupplies.com/wordpress-plugins/no-category-base/
274
  global $wp_rewrite;
275
  $options = get_option('polylang');
276
- if ($options['rewrite'] && $wp_rewrite->extra_permastructs)
277
  $wp_rewrite->extra_permastructs['language'][0] = '%language%';
278
 
279
  load_plugin_textdomain('polylang', false, basename(POLYLANG_DIR).'/languages'); // plugin i18n
@@ -284,8 +311,8 @@ class Polylang extends Polylang_Base {
284
  register_widget('Polylang_Widget');
285
 
286
  // overwrites the calendar widget to filter posts by language
287
- unregister_widget('WP_Widget_Calendar');
288
- register_widget('Polylang_Widget_Calendar');
289
  }
290
 
291
  // rewrites rules if pretty permalinks are used
@@ -294,54 +321,44 @@ class Polylang extends Polylang_Base {
294
  function rewrite_rules_array($rules) {
295
  $options = get_option('polylang');
296
  $newrules = array();
 
297
 
298
  // don't modify the rules if there is no languages created
299
  if (!($listlanguages = $this->get_languages_list()))
300
  return $rules;
301
 
302
- $languages = array();
303
  foreach ($listlanguages as $language)
304
  if (!$options['hide_default'] || $options['default_lang'] != $language->slug)
305
  $languages[] = $language->slug;
306
 
307
- if ($languages) {
308
  $slug = '('.implode('|', $languages).')/';
309
  $slug = $options['rewrite'] ? $slug : 'language/'.$slug;
310
- }
311
-
312
- foreach ($rules as $key => $rule) {
313
- $is_archive = strpos($rule, 'post_format=') || strpos($rule, 'author_name=') || strpos($rule, 'post_type=') || strpos($rule, 'year=') &&
314
- !(strpos($rule, 'p=') || strpos($rule, 'name=') || strpos($rule, 'page=') || strpos($rule, 'cpage='));
315
-
316
- $is_comment_feed = strpos($rule, 'withcomments=1');
317
-
318
- // modifies the rules created by WordPress for our taxonomy
319
- if (strpos($rule, 'lang=')) {
320
- $newkey = $options['rewrite'] ? str_replace('([^/]+)/', '', $key) : str_replace('language/([^/]+)/', '', $key);
321
- if (isset($slug))
322
- $newrules[$slug.$newkey] = $rule;
323
 
324
- // take care not to create the rule [?$] => index.php?lang=$matches[1] !
325
- if ($options['hide_default'] && $newkey != '?$')
326
- $newrules[$newkey] = str_replace('lang=$matches[1]', 'lang='.$options['default_lang'], $rule);
 
 
327
 
 
 
328
  unset($rules[$key]);
329
- }
330
-
331
  // special case for pages which do not accept adding the lang parameter
332
- // FIXME check if it's still the case for WP3.4
333
  elseif ($options['force_lang'] && strpos($rule, 'pagename')) {
334
  if (isset($slug))
335
- $newrules[$slug.$key] = str_replace(array('[4]', '[3]', '[2]', '[1]'), array('[5]', '[4]', '[3]', '[2]'), $rule); // hopefully it is sufficient !
336
 
337
- if (!$options['hide_default'])
338
  unset($rules[$key]); // now useless
339
  }
340
 
341
  // rewrite rules filtered by language
342
- elseif ($is_archive || $is_comment_feed || $options['force_lang']) {
343
  if (isset($slug))
344
- $newrules[$slug.$key] = str_replace(array('[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '[1]', '?'),
345
  array('[9]', '[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '?lang=$matches[1]&'), $rule); // hopefully it is sufficient !
346
 
347
  if ($options['hide_default'])
@@ -350,8 +367,8 @@ class Polylang extends Polylang_Base {
350
  unset($rules[$key]); // now useless
351
  }
352
  }
353
-
354
- return $newrules + $rules;
355
  }
356
 
357
  } // class Polylang
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://wordpress.org/extend/plugins/polylang/
5
+ Version: 0.8
6
  Author: F. Demarle
7
  Description: Adds multilingual capability to Wordpress
8
  */
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
 
27
+ define('POLYLANG_VERSION', '0.8');
28
  define('PLL_MIN_WP_VERSION', '3.1');
29
 
30
  define('POLYLANG_DIR', dirname(__FILE__)); // our directory
38
  if (!defined('PLL_LOCAL_URL'))
39
  define('PLL_LOCAL_URL', WP_CONTENT_URL.'/polylang'); // default url to access user data such as custom flags
40
 
41
+ if (!defined('PLL_DISPLAY_ABOUT'))
42
+ define('PLL_DISPLAY_ABOUT', true); // displays the "About Polylang" metabox by default
43
+
44
  if (!defined('PLL_DISPLAY_ALL'))
45
+ define('PLL_DISPLAY_ALL', false); // diplaying posts & terms with undefined language is disabled by default (unsupported since 0.7)
46
+
47
+ if (!defined('PLL_FILTER_HOME_URL'))
48
+ define('PLL_FILTER_HOME_URL', true); // filters the home url (to return the homepage in the right langage) by default
49
+
50
+ if (!defined('PLL_SYNC'))
51
+ define('PLL_SYNC', true); // synchronisation is enabled by default
52
 
53
  require_once(PLL_INC.'/base.php');
54
  require_once(PLL_INC.'/widget.php');
58
  class Polylang extends Polylang_Base {
59
 
60
  function __construct() {
61
+ parent::__construct();
62
  global $polylang; // globalize the variable to access it in the API
63
 
64
  // manages plugin activation and deactivation
67
 
68
  // stopping here if we are going to deactivate the plugin avoids breaking rewrite rules
69
  if (isset($_GET['action']) && $_GET['action'] == 'deactivate' && isset($_GET['plugin']) && $_GET['plugin'] == 'polylang/polylang.php')
70
+ return;
71
 
72
  // manages plugin upgrade
73
  add_filter('upgrader_post_install', array(&$this, 'post_upgrade'));
74
  add_action('admin_init', array(&$this, 'admin_init'));
75
 
76
  // plugin and widget initialization
77
+ add_action('init', array(&$this, 'init'), 1000); // called just after the init in Polylang_Base
78
  add_action('widgets_init', array(&$this, 'widgets_init'));
79
 
80
  // rewrite rules
97
  // plugin activation for multisite
98
  function activate() {
99
  global $wp_version, $wpdb;
100
+ $style = '<p style = "font-family: sans-serif; font-size: 12px; color: #333; margin: -5px">%s</p>';
101
 
102
  if (version_compare($wp_version, PLL_MIN_WP_VERSION , '<'))
103
+ die (sprintf($style, sprintf(__('You are using WordPress %s. Polylang requires at least WordPress %s.', 'polylang'), $wp_version, PLL_MIN_WP_VERSION)));
 
104
 
105
  // check if it is a network activation - if so, run the activation function for each blog
106
  if (is_multisite() && isset($_GET['networkwide']) && ($_GET['networkwide'] == 1)) {
107
  foreach ($wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs")) as $blog_id) {
108
  switch_to_blog($blog_id);
109
+ $r = $this->_activate();
110
  }
111
  restore_current_blog();
112
  }
113
  else
114
+ $r = $this->_activate();
115
+
116
+ if (!$r)
117
+ die (sprintf($style, __('For some reasons, Polylang could not create a table in your database.', 'polylang')));
118
  }
119
 
120
  // plugin activation
122
  // create the termmeta table - not provided by WP by default - if it does not already exists
123
  // uses exactly the same model as other meta tables to be able to use access functions provided by WP
124
  global $wpdb;
125
+ $charset_collate = empty($wpdb->charset) ? '' : "DEFAULT CHARACTER SET $wpdb->charset";
126
+ $charset_collate .= empty($wpdb->collate) ? '' : " COLLATE $wpdb->collate";
 
 
 
 
127
  $table = $wpdb->prefix . 'termmeta';
128
 
129
+ $r = $wpdb->query("CREATE TABLE IF NOT EXISTS $table (
130
  meta_id bigint(20) unsigned NOT NULL auto_increment,
131
  term_id bigint(20) unsigned NOT NULL default '0',
132
  meta_key varchar(255) default NULL,
136
  KEY meta_key (meta_key)
137
  ) $charset_collate;");
138
 
139
+ if ($r === false)
140
+ return false;
141
+
142
  // codex tells to use the init action to call register_taxonomy but I need it now for my rewrite rules
143
+ register_taxonomy('language', $this->post_types, array('label' => false, 'query_var'=>'lang'));
144
 
145
  // defines default values for options in case this is the first installation
146
  $options = get_option('polylang');
149
  $options['rewrite'] = 1; // remove /language/ in permalinks (was the opposite before 0.7.2)
150
  $options['hide_default'] = 0; // do not remove URL language information for default language
151
  $options['force_lang'] = 0; // do not add URL language information when useless
152
+ $options['redirect_lang'] = 0; // do not redirect the language page to the homepage
153
  }
154
  $options['version'] = POLYLANG_VERSION;
155
  update_option('polylang', $options);
157
  // add our rewrite rules
158
  global $wp_rewrite;
159
  $wp_rewrite->flush_rules();
160
+ return true;
161
  }
162
 
163
  // plugin deactivation for multisite
197
  if (!@rename($upgrade_dir, PLL_LOCAL_DIR))
198
  return new WP_Error('polylang_restore_error', sprintf('%s<br />%s',
199
  __('Error: Restore of local flags failed!', 'polylang'),
200
+ sprintf(__('Please move your local flags from %s to %s', 'polylang'), esc_html($upgrade_dir), '<strong>'.esc_html(PLL_LOCAL_DIR).'</strong>')
201
  ));
202
 
203
  @rmdir(WP_CONTENT_DIR . '/upgrade/polylang');
237
  if (version_compare($options['version'], '0.5', '<')) {
238
  $ids = get_posts(array('numberposts'=>-1, 'fields' => 'ids', 'post_type'=>'any', 'post_status'=>'any'));
239
  $this->upgrade_translations('post', $ids);
240
+ $ids = get_terms($this->taxonomies, array('get'=>'all', 'fields'=>'ids'));
241
+ $this->upgrade_translations('term', $ids);
242
  }
243
 
244
  // translation model changed in V0.5
252
  delete_post_meta($id, '_lang-'.$lang->slug);
253
  }
254
 
255
+ $ids = get_terms($this->taxonomies, array('get'=>'all', 'fields'=>'ids'));
256
  foreach ($ids as $id) {
257
  foreach ($listlanguages as $lang)
258
  delete_metadata('term', $id, '_lang-'.$lang->slug);
262
  if (version_compare($options['version'], '0.7', '<'))
263
  $options['force_lang'] = 0; // option introduced in 0.7
264
 
265
+ if (version_compare($options['version'], '0.8', '<'))
266
+ $GLOBALS['wp_rewrite']->flush_rules(); // rewrite rules have been modified in 0.7.1 & 0.7.2 & 0.8
267
+
268
+ // string translation storage model changed and option added in 0.8
269
+ if (version_compare($options['version'], '0.8dev1', '<')) {
270
+ if (function_exists('base64_decode')) {
271
+ $mo = new MO();
272
+ foreach ($this->get_languages_list() as $language) {
273
+ $reader = new POMO_StringReader(base64_decode(get_option('polylang_mo'.$language->term_id)));
274
+ $mo->import_from_reader($reader);
275
+ $this->mo_export($mo, $language);
276
+ }
277
+ }
278
+ $options['redirect_lang'] = 0; // option introduced in 0.8
279
+ }
280
 
281
  $options['version'] = POLYLANG_VERSION;
282
  update_option('polylang', $options);
290
 
291
  // registers the language taxonomy
292
  // codex: use the init action to call this function
293
+ register_taxonomy('language', $this->post_types, array(
294
  'label' => false,
295
  'public' => false, // avoid displaying the 'like post tags text box' in the quick edit
296
  'query_var'=>'lang',
300
  // the simple line of code is inspired by the WP No Category Base plugin: http://wordpresssupplies.com/wordpress-plugins/no-category-base/
301
  global $wp_rewrite;
302
  $options = get_option('polylang');
303
+ if ($options['rewrite'] && $wp_rewrite->extra_permastructs)
304
  $wp_rewrite->extra_permastructs['language'][0] = '%language%';
305
 
306
  load_plugin_textdomain('polylang', false, basename(POLYLANG_DIR).'/languages'); // plugin i18n
311
  register_widget('Polylang_Widget');
312
 
313
  // overwrites the calendar widget to filter posts by language
314
+ unregister_widget('WP_Widget_Calendar');
315
+ register_widget('Polylang_Widget_Calendar');
316
  }
317
 
318
  // rewrites rules if pretty permalinks are used
321
  function rewrite_rules_array($rules) {
322
  $options = get_option('polylang');
323
  $newrules = array();
324
+ $languages = array();
325
 
326
  // don't modify the rules if there is no languages created
327
  if (!($listlanguages = $this->get_languages_list()))
328
  return $rules;
329
 
 
330
  foreach ($listlanguages as $language)
331
  if (!$options['hide_default'] || $options['default_lang'] != $language->slug)
332
  $languages[] = $language->slug;
333
 
334
+ if ($languages) {
335
  $slug = '('.implode('|', $languages).')/';
336
  $slug = $options['rewrite'] ? $slug : 'language/'.$slug;
337
+ }
 
 
 
 
 
 
 
 
 
 
 
 
338
 
339
+ foreach ($rules as $key => $rule) {
340
+ // rules which *always* need the language code
341
+ $to_rewrite = in_array($key, array('feed/(feed|rdf|rss|rss2|atom)/?$', '(feed|rdf|rss|rss2|atom)/?$', 'page/?([0-9]{1,})/?$')) ||
342
+ strpos($rule, 'withcomments=1') || strpos($rule, 'post_format=') || strpos($rule, 'author_name=') || strpos($rule, 'post_type=') ||
343
+ strpos($rule, 'year=') && !(strpos($rule, 'p=') || strpos($rule, 'name=') || strpos($rule, 'page=') || strpos($rule, 'cpage='));
344
 
345
+ // suppress the rules created by WordPress for our taxonomy
346
+ if (strpos($rule, 'lang='))
347
  unset($rules[$key]);
348
+
 
349
  // special case for pages which do not accept adding the lang parameter
 
350
  elseif ($options['force_lang'] && strpos($rule, 'pagename')) {
351
  if (isset($slug))
352
+ $newrules[$slug.$key] = str_replace(array('[4]', '[3]', '[2]', '[1]'), array('[5]', '[4]', '[3]', '[2]'), $rule); // hopefully it is sufficient !
353
 
354
+ if (!$options['hide_default'])
355
  unset($rules[$key]); // now useless
356
  }
357
 
358
  // rewrite rules filtered by language
359
+ elseif ($to_rewrite || ($options['force_lang'] && !strpos($rule, 'robots'))) {
360
  if (isset($slug))
361
+ $newrules[$slug.$key] = str_replace(array('[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '[1]', '?'),
362
  array('[9]', '[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '?lang=$matches[1]&'), $rule); // hopefully it is sufficient !
363
 
364
  if ($options['hide_default'])
367
  unset($rules[$key]); // now useless
368
  }
369
  }
370
+ // important to put home rewrite rule before unmodified rules
371
+ return $newrules + array($slug.'?$' => 'index.php?lang=$matches[1]') + $rules;
372
  }
373
 
374
  } // class Polylang
readme.txt CHANGED
@@ -1,19 +1,15 @@
1
  === Polylang ===
2
  Contributors: Chouby
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CCWWYUUQV8F4E
4
- Tags: bilingual, language, i18n, international, l10n, localization, multilanguage, multilingual, multisite, translate, translation
5
  Requires at least: 3.1
6
  Tested up to: 3.3.1
7
- Stable tag: 0.7.2
8
 
9
  Polylang adds multilingual content management support to WordPress.
10
 
11
  == Description ==
12
 
13
- = Announcement =
14
-
15
- [A development version of Polylang 0.8 is available](http://wordpress.org/support/topic/development-of-polylang-version-08).
16
-
17
  = Upgrade Notice =
18
 
19
  When upgrading from 0.5.1 or older, your custom flags in 'wp-content/plugins/polylang/local_flags' directory should move to 'wp-content/polylang'. People using the function 'pll_the_language' should be aware that it does not display the 'ul' tag anymore. I wrote about the reasons for these changes in the [forum](http://wordpress.org/support/topic/development-of-polylang-version-06). When upgrading from 0.6.1 or older, people using RTL languages must edit these languages and set the text direction to RTL in order for Polylang to work properly (the RTL property of the language is not set automatically when upgrading).
@@ -23,7 +19,7 @@ When upgrading from 0.5.1 or older, your custom flags in 'wp-content/plugins/pol
23
  You write posts, pages and create categories and post tags as usual, and then define the language for each of them. The translation is optional. The plugin does not integrate automatic or professional translation.
24
 
25
  * You can have as many languages as you want. RTL languages are now supported. WordPress languages files are automatically downloaded and updated.
26
- * You can translate posts, pages, categories, post tags, menus, widgets... Custom post types, custom taxonomies and post formats, RSS feeds and all default WordPress widgets are supported.
27
  * Categories, post tags as well as some other metas are automatically copied when adding a new post or page translation
28
  * Support for Search form (see the FAQ in the documentation)
29
  * Support for multisite, pretty permalinks and static page used as front page
@@ -43,7 +39,9 @@ The plugin admin interface is currently available in:
43
  * Hebrew contributed by [ArielK](http://www.arielk.net)
44
  * Polish contributed by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl)
45
 
46
- Other translators are welcome !
 
 
47
 
48
  = Feedback or ideas =
49
 
@@ -115,6 +113,33 @@ Every suggestions are welcome.
115
 
116
  == Changelog ==
117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  = 0.7.2 (2012-02-15) =
119
 
120
  * Add Polish translation contributed by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl)
@@ -131,7 +156,7 @@ Every suggestions are welcome.
131
  * Bug correction: the all posts admin page is messed if another plugin adds a column
132
  * Bug correction: 404 error on static front page when adding language code to all urls (including default language)
133
 
134
- = 0.7.1 (2012-02-06) =
135
 
136
  * Allow using 3 characters languages codes (ISO 639-2 or 639-3)
137
  * The predefined languages dropdown list now displays the locale to help differentiate some languages
1
  === Polylang ===
2
  Contributors: Chouby
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CCWWYUUQV8F4E
4
+ Tags: multilingual, bilingual, translate, translation, language, multilanguage, i18n, international, l10n, localization
5
  Requires at least: 3.1
6
  Tested up to: 3.3.1
7
+ Stable tag: 0.8
8
 
9
  Polylang adds multilingual content management support to WordPress.
10
 
11
  == Description ==
12
 
 
 
 
 
13
  = Upgrade Notice =
14
 
15
  When upgrading from 0.5.1 or older, your custom flags in 'wp-content/plugins/polylang/local_flags' directory should move to 'wp-content/polylang'. People using the function 'pll_the_language' should be aware that it does not display the 'ul' tag anymore. I wrote about the reasons for these changes in the [forum](http://wordpress.org/support/topic/development-of-polylang-version-06). When upgrading from 0.6.1 or older, people using RTL languages must edit these languages and set the text direction to RTL in order for Polylang to work properly (the RTL property of the language is not set automatically when upgrading).
19
  You write posts, pages and create categories and post tags as usual, and then define the language for each of them. The translation is optional. The plugin does not integrate automatic or professional translation.
20
 
21
  * You can have as many languages as you want. RTL languages are now supported. WordPress languages files are automatically downloaded and updated.
22
+ * You can translate posts, pages, categories, post tags, menus, widgets... Custom post types, custom taxonomies, sticky posts and post formats, RSS feeds and all default WordPress widgets are supported.
23
  * Categories, post tags as well as some other metas are automatically copied when adding a new post or page translation
24
  * Support for Search form (see the FAQ in the documentation)
25
  * Support for multisite, pretty permalinks and static page used as front page
39
  * Hebrew contributed by [ArielK](http://www.arielk.net)
40
  * Polish contributed by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl)
41
 
42
+ Special thanks to [AndyDeGroo](http://wordpress.org/support/profile/andydegroo) and [RavanH](http://4visions.nl/) for their help in debugging and improving Polylang !
43
+
44
+ Other [contributions](http://wordpress.org/extend/plugins/polylang/other_notes/) are welcome !
45
 
46
  = Feedback or ideas =
47
 
113
 
114
  == Changelog ==
115
 
116
+ = 0.8 (2012-02-29) =
117
+
118
+ * Sticky posts are now filtered by language
119
+ * It is now possible to use the language page as home page
120
+ * Add an "About Polylang" metabox on the languages admin page
121
+ * Add the pll_the_languages filter allowing to filter the whole output of the language switcher
122
+ * Add a new argument 'display_names_as' to the function pll_the_languages
123
+ * Add pll_get_post_types & pll_get_taxonomies filters allowing to enable / disable the language filter for post types & taxonomies
124
+ * Add ckb to predefined languages list
125
+ * Completely reworked the string translation storage in the database
126
+ * Some performance improvements on admin side
127
+ * Improve compatibility with other plugins broken by the home url filter
128
+ * Add an option to disable the home url filter
129
+ * Add an option to disable synchronization of metas between translations
130
+ * Bug correction: body class 'home' is not set on translated homepage
131
+ * Bug correction: robots.txt is broken when adding the language code to all urls (including default language)
132
+ * Bug correction: bad name for the Czech flag
133
+ * Bug correction: bad language information in rss feed for WP < 3.4
134
+ * Bug correction: signup broken on multisite
135
+ * Bug correction: the translation url is set to self when using a static front page and no page for posts and there is no translation
136
+ * Bug correction: problems with custom post type archive titles
137
+ * Bug correction: problems with custom post type if rewrite slug is different from post_type (thanks to AndyDeGroo)
138
+ * Bug correction: quick edit still breaks translation linking of pages (thanks to AndyDeGroo)
139
+ * Bug correction: bad rewrite rules for feeds (introduced in 0.7.2)
140
+ * Bug correction: the order is not saved when creating a language
141
+ * Bug correction: the categories list is not updated when adding a new category (ajax broken)
142
+
143
  = 0.7.2 (2012-02-15) =
144
 
145
  * Add Polish translation contributed by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl)
156
  * Bug correction: the all posts admin page is messed if another plugin adds a column
157
  * Bug correction: 404 error on static front page when adding language code to all urls (including default language)
158
 
159
+ = 0.7.1 (2012-02-06) =
160
 
161
  * Allow using 3 characters languages codes (ISO 639-2 or 639-3)
162
  * The predefined languages dropdown list now displays the locale to help differentiate some languages
uninstall.php CHANGED
@@ -21,7 +21,9 @@ class Polylang_Uninstall {
21
  function uninstall() {
22
  global $wpdb;
23
  $wpdb->termmeta = $wpdb->prefix . 'termmeta'; // registers the termmeta table in wpdb
24
- register_taxonomy('language', get_post_types(array('show_ui' => true)), array('label' => false, 'query_var'=>'lang')); // need to register the language taxonomy
 
 
25
 
26
  $languages = get_terms('language', array('hide_empty'=>false));
27
 
@@ -31,7 +33,7 @@ class Polylang_Uninstall {
31
  delete_post_meta($id, '_translations');
32
 
33
  // delete terms translations
34
- $ids = get_terms(get_taxonomies(array('show_ui'=>true)), array('get'=>'all', 'fields'=>'ids'));
35
  foreach ($ids as $id) {
36
  delete_metadata('term', $id, '_translations');
37
  delete_metadata('term', $id, '_language');
@@ -51,11 +53,11 @@ class Polylang_Uninstall {
51
  unset($wpdb->termmeta);
52
  }
53
 
54
- // delete options
55
  delete_option('polylang');
56
  delete_option('polylang_nav_menus');
57
  delete_option('polylang_widgets');
58
- delete_option('polylang_widget'); // automatically created by WP
59
  }
60
  }
61
 
21
  function uninstall() {
22
  global $wpdb;
23
  $wpdb->termmeta = $wpdb->prefix . 'termmeta'; // registers the termmeta table in wpdb
24
+
25
+ // need to register the language taxonomy
26
+ register_taxonomy('language', apply_filters('pll_get_post_types', get_post_types(array('show_ui' => true))), array('label' => false, 'query_var'=>'lang'));
27
 
28
  $languages = get_terms('language', array('hide_empty'=>false));
29
 
33
  delete_post_meta($id, '_translations');
34
 
35
  // delete terms translations
36
+ $ids = get_terms(apply_filters('pll_get_taxonomies', get_taxonomies(array('show_ui'=>true))), array('get'=>'all', 'fields'=>'ids'));
37
  foreach ($ids as $id) {
38
  delete_metadata('term', $id, '_translations');
39
  delete_metadata('term', $id, '_language');
53
  unset($wpdb->termmeta);
54
  }
55
 
56
+ // delete options
57
  delete_option('polylang');
58
  delete_option('polylang_nav_menus');
59
  delete_option('polylang_widgets');
60
+ delete_option('widget_polylang'); // automatically created by WP
61
  }
62
  }
63