Polylang - Version 0.8.3

Version Description

(2012-04-09) =

  • Add Danish translation contributed by [Compute]((http://wordpress.org/support/profile/compute)
  • Add Spanish translation contributed by Curro
  • Add the possibility to add a content in a different language than the current one by setting explicitely the lang parameter in the secondary query
  • Add support of PATHINFO permalinks
  • Bug correction: secondary queries not correctly filtered by language
  • Bug correction: wrong archives links when using permalinks with front
  • Bug correction: wrong homepage link when keeping 'language' in permalinks with front
  • Bug correction: flush_rewrite_rules notice when setting up a static front page (introduced in 0.8.2)
  • Bug correction: every post in every language are shown when hitting the homepage with a query string unknown to WP (thanks to Gonalo Peres)
  • Bug correction: every post in every language are shown on the homepage when PHP adds index.php to the url
  • Tests done with WordPress 3.4 beta 1
Download this release

Release Info

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

Code changes from version 0.8.2 to 0.8.3

doc/documentation-en.odt CHANGED
Binary file
doc/documentation-en.pdf CHANGED
Binary file
include/admin-filters.php CHANGED
@@ -13,7 +13,7 @@ class Polylang_Admin_Filters extends Polylang_Admin_Base {
13
  add_action('customize_register', array(&$this, 'customize_register'), 20); // since WP 3.4
14
 
15
  // refresh rewrite rules if the 'page_on_front' option is modified
16
- add_action('update_option_page_on_front', array(&$this, 'flush_rewrite_rules'));
17
 
18
  // adds a 'settings' link in the plugins table
19
  $plugin_file = basename(POLYLANG_DIR).'/polylang.php';
13
  add_action('customize_register', array(&$this, 'customize_register'), 20); // since WP 3.4
14
 
15
  // refresh rewrite rules if the 'page_on_front' option is modified
16
+ add_action('update_option_page_on_front', 'flush_rewrite_rules');
17
 
18
  // adds a 'settings' link in the plugins table
19
  $plugin_file = basename(POLYLANG_DIR).'/polylang.php';
include/base.php CHANGED
@@ -154,10 +154,11 @@ abstract class Polylang_Base {
154
  if (!isset($lang)) // FIXME avoid notice when adding a page to a custom menu
155
  return;
156
 
157
- if ($GLOBALS['wp_rewrite']->using_permalinks()) {
158
- $base = $this->options['rewrite'] ? '/' : '/language/';
159
- $slug = $this->options['default_lang'] == $lang->slug && $this->options['hide_default'] ? '' : $base.$lang->slug;
160
- return esc_url(str_replace($this->home, $this->home.$slug, $url));
 
161
  }
162
 
163
  // special case for pages which do not accept adding the lang parameter
154
  if (!isset($lang)) // FIXME avoid notice when adding a page to a custom menu
155
  return;
156
 
157
+ global $wp_rewrite;
158
+ if ($wp_rewrite->using_permalinks()) {
159
+ $base = $this->options['rewrite'] ? '' : 'language/';
160
+ $slug = $this->options['default_lang'] == $lang->slug && $this->options['hide_default'] ? '' : $base.$lang->slug.'/';
161
+ return esc_url(str_replace($this->home.'/'.$wp_rewrite->root, $this->home.'/'.$wp_rewrite->root.$slug, $url));
162
  }
163
 
164
  // special case for pages which do not accept adding the lang parameter
include/core.php CHANGED
@@ -236,6 +236,10 @@ class Polylang_Core extends Polylang_base {
236
 
237
  $qvars = $query->query_vars;
238
 
 
 
 
 
239
  // detect our exclude pages query and returns to avoid conflicts
240
  // this test should be sufficient
241
  if (isset($qvars['tax_query'][0]['taxonomy']) && $qvars['tax_query'][0]['taxonomy'] == 'language' &&
@@ -244,7 +248,10 @@ class Polylang_Core extends Polylang_base {
244
 
245
  // homepage is requested, let's set the language
246
  // second check not to break wp-signup & wp-activate
247
- if (empty($query->query) && home_url('/') == trailingslashit((is_ssl() ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) {
 
 
 
248
  // find out the language
249
  if ($this->options['hide_default'] && isset($_COOKIE['wordpress_polylang']))
250
  $this->curlang = $this->get_language($this->options['default_lang']);
@@ -314,9 +321,9 @@ class Polylang_Core extends Polylang_base {
314
  if ($this->options['hide_default'] && !isset($qvars['lang']) && ($is_archive || (count($query->query) == 1 && isset($qvars['feed']) && $qvars['feed']) ))
315
  $query->set('lang', $this->options['default_lang']);
316
 
317
- // allow filtering recent posts by the current language
318
  // take care not to break queries for non visible post types such as nav_menu_items, attachments...
319
- if ($query->is_home && $this->curlang && (!isset($qvars['post_type']) || in_array($qvars['post_type'], $this->post_types) ||
320
  (is_array($qvars['post_type']) && array_intersect($qvars['post_type'], $this->post_types)) ))
321
  $query->set('lang', $this->curlang->slug);
322
 
@@ -395,7 +402,7 @@ class Polylang_Core extends Polylang_base {
395
  return _get_page_link($id);
396
  }
397
 
398
- // prevents redirection of the homepage
399
  function redirect_canonical($redirect_url, $requested_url) {
400
  return $requested_url == home_url('/') || $requested_url == $this->page_link('', get_option('page_on_front')) ? false : $redirect_url;
401
  }
@@ -405,7 +412,7 @@ class Polylang_Core extends Polylang_base {
405
  // modifies the search form since filtering get_search_form won't work if the template uses searchform.php or the search form is hardcoded
406
  // don't use directly e[0] just in case there is somewhere else an element named 's'
407
  // check before if the hidden input has not already been introduced by get_search_form
408
- // thanks to AndyDeGroo for improving the code for compatility with older browsers
409
  // http://wordpress.org/support/topic/development-of-polylang-version-08?replies=6#post-2645559
410
  if (!$this->search_form_filter) {
411
  $lang = esc_js($this->curlang->slug);
@@ -499,41 +506,42 @@ class Polylang_Core extends Polylang_base {
499
  // don't test if there are existing translations before creating the url as it would be very expensive in sql queries
500
  elseif (is_archive()) {
501
  if ($wp_rewrite->using_permalinks()) {
502
- $base = $this->options['rewrite'] ? '/' : '/language/';
503
- $base = $hide ? '' : $base.$language->slug;
504
- $base = $this->home.$base.'/';
505
 
506
- if (is_author())
507
- $url = esc_url($base.'author/'.$qvars['author_name'].'/');
 
 
508
 
 
 
 
509
  if (is_year())
510
- $url = esc_url($base.$qvars['year'].'/');
511
 
512
  if (is_month())
513
- $url = esc_url($base.$qvars['year'].'/'.$qvars['monthnum'].'/');
514
 
515
  if (is_day())
516
- $url = esc_url($base.$qvars['year'].'/'.$qvars['monthnum'].'/'.$qvars['day'].'/');
 
 
 
517
 
518
  if (is_tax('post_format'))
519
- $url = esc_url($base.'type/'.$qvars['post_format'].'/');
520
-
521
- if (is_post_type_archive()){
522
- // custom post types can have a different slug than the post type name
523
- // thanks to AndyDeGroo for pointing that out
524
- // http://wordpress.org/support/topic/plugin-polylang-problems-with-custom-post-type-archive-titles
525
- $cpt = get_post_type_object($qvars['post_type']);
526
- // we don't need to check if there is $cpt->rewrite['slug'] because WP always sets it
527
- $cpt_slug = is_string($cpt->has_archive) ? $cpt->has_archive : $cpt->rewrite['slug'];
528
- $url = esc_url($base.$cpt_slug.'/');
529
- }
530
  }
531
  else
532
  $url = $hide ? remove_query_arg('lang') : add_query_arg('lang', $language->slug);
533
  }
534
 
535
  elseif (is_home() || is_tax('language') )
536
- $url = $this->get_home_url($language, 'language');
537
 
538
  return isset($url) ? $url : null;
539
  }
@@ -624,7 +632,7 @@ class Polylang_Core extends Polylang_base {
624
  return get_term_link($language, 'language');
625
  }
626
 
627
- // displays the language switcher
628
  function the_languages($args = '') {
629
  $defaults = array(
630
  'dropdown' => 0, // display as list and not as dropdown
@@ -674,10 +682,9 @@ class Polylang_Core extends Polylang_base {
674
 
675
  $output = apply_filters('pll_the_languages', $output, $args);
676
 
677
- if ($echo)
678
- echo $output;
679
- else
680
  return $output;
 
681
  }
682
 
683
  // just returns the current language for API
236
 
237
  $qvars = $query->query_vars;
238
 
239
+ // users may want to display content in a different langage than the current one by setting it explicitely in the query
240
+ if ($this->curlang && isset($qvars['lang']) && $qvars['lang'])
241
+ return;
242
+
243
  // detect our exclude pages query and returns to avoid conflicts
244
  // this test should be sufficient
245
  if (isset($qvars['tax_query'][0]['taxonomy']) && $qvars['tax_query'][0]['taxonomy'] == 'language' &&
248
 
249
  // homepage is requested, let's set the language
250
  // second check not to break wp-signup & wp-activate
251
+ // some PHP setups turn requests for / into /index.php in REQUEST_URI
252
+ // thanks to Gonçalo Peres for pointing out the issue with queries unknown to WP
253
+ // http://wordpress.org/support/topic/plugin-polylang-language-homepage-redirection-problem-and-solution-but-incomplete?replies=4#post-2729566
254
+ if (empty($query->query) && home_url('/') == trailingslashit((is_ssl() ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].str_replace(array('index.php', '?'.$_SERVER['QUERY_STRING']), array('', ''), $_SERVER['REQUEST_URI']))) {
255
  // find out the language
256
  if ($this->options['hide_default'] && isset($_COOKIE['wordpress_polylang']))
257
  $this->curlang = $this->get_language($this->options['default_lang']);
321
  if ($this->options['hide_default'] && !isset($qvars['lang']) && ($is_archive || (count($query->query) == 1 && isset($qvars['feed']) && $qvars['feed']) ))
322
  $query->set('lang', $this->options['default_lang']);
323
 
324
+ // allow filtering recent posts and secondary queries by the current language
325
  // take care not to break queries for non visible post types such as nav_menu_items, attachments...
326
+ if (/*$query->is_home && */$this->curlang && (!isset($qvars['post_type']) || in_array($qvars['post_type'], $this->post_types) ||
327
  (is_array($qvars['post_type']) && array_intersect($qvars['post_type'], $this->post_types)) ))
328
  $query->set('lang', $this->curlang->slug);
329
 
402
  return _get_page_link($id);
403
  }
404
 
405
+ // prevents redirection of the homepage when using page on front
406
  function redirect_canonical($redirect_url, $requested_url) {
407
  return $requested_url == home_url('/') || $requested_url == $this->page_link('', get_option('page_on_front')) ? false : $redirect_url;
408
  }
412
  // modifies the search form since filtering get_search_form won't work if the template uses searchform.php or the search form is hardcoded
413
  // don't use directly e[0] just in case there is somewhere else an element named 's'
414
  // check before if the hidden input has not already been introduced by get_search_form
415
+ // thanks to AndyDeGroo for improving the code for compatility with old browsers
416
  // http://wordpress.org/support/topic/development-of-polylang-version-08?replies=6#post-2645559
417
  if (!$this->search_form_filter) {
418
  $lang = esc_js($this->curlang->slug);
506
  // don't test if there are existing translations before creating the url as it would be very expensive in sql queries
507
  elseif (is_archive()) {
508
  if ($wp_rewrite->using_permalinks()) {
509
+ $filters = array('author_link', 'post_type_archive_link', 'year_link', 'month_link', 'day_link');
 
 
510
 
511
+ // prevents filtering links by current language
512
+ remove_filter('term_link', array(&$this, 'term_link')); // for post format
513
+ foreach ($filters as $filter)
514
+ remove_filter($filter, array(&$this, 'archive_link'));
515
 
516
+ if (is_author())
517
+ $url = $this->add_language_to_link(get_author_posts_url(0, $qvars['author_name']), $language);
518
+
519
  if (is_year())
520
+ $url = $this->add_language_to_link(get_year_link($qvars['year']), $language);
521
 
522
  if (is_month())
523
+ $url = $this->add_language_to_link(get_month_link($qvars['year'], $qvars['monthnum']), $language);
524
 
525
  if (is_day())
526
+ $url = $this->add_language_to_link(get_day_link($qvars['year'], $qvars['monthnum'], $qvars['day']), $language);
527
+
528
+ if (is_post_type_archive())
529
+ $url = $this->add_language_to_link(get_post_type_archive_link($qvars['post_type']), $language);
530
 
531
  if (is_tax('post_format'))
532
+ $url = $this->add_language_to_link(get_post_format_link($qvars['post_format']), $language);
533
+
534
+ // put our language filters again
535
+ add_filter('term_link', array(&$this, 'term_link'), 10, 3);
536
+ foreach ($filters as $filter)
537
+ add_filter($filter, array(&$this, 'archive_link'));
 
 
 
 
 
538
  }
539
  else
540
  $url = $hide ? remove_query_arg('lang') : add_query_arg('lang', $language->slug);
541
  }
542
 
543
  elseif (is_home() || is_tax('language') )
544
+ $url = $this->get_home_url($language);
545
 
546
  return isset($url) ? $url : null;
547
  }
632
  return get_term_link($language, 'language');
633
  }
634
 
635
+ // displays (or returns) the language switcher
636
  function the_languages($args = '') {
637
  $defaults = array(
638
  'dropdown' => 0, // display as list and not as dropdown
682
 
683
  $output = apply_filters('pll_the_languages', $output, $args);
684
 
685
+ if(!$echo)
 
 
686
  return $output;
687
+ echo $output;
688
  }
689
 
690
  // just returns the current language for API
include/post-translations.php CHANGED
@@ -8,7 +8,7 @@
8
 
9
  <tbody>
10
  <?php foreach ($this->get_languages_list() as $language) {
11
- if ($language != $lang) {
12
  $value = $this->get_translation('post', $post_ID, $language);
13
  if (!$value || $value == $post_ID) // $value == $post_ID happens if the post has been (auto)saved before changing the language
14
  $value = '';
8
 
9
  <tbody>
10
  <?php foreach ($this->get_languages_list() as $language) {
11
+ if ($language->term_id != $lang->term_id) {
12
  $value = $this->get_translation('post', $post_ID, $language);
13
  if (!$value || $value == $post_ID) // $value == $post_ID happens if the post has been (auto)saved before changing the language
14
  $value = '';
include/term-translations.php CHANGED
@@ -19,7 +19,7 @@ else {
19
  </tr></thead>
20
  <tbody>
21
  <?php foreach ($this->get_languages_list() as $language) {
22
- if ($language == $lang)
23
  continue;
24
 
25
  // look for any existing translation in this language
19
  </tr></thead>
20
  <tbody>
21
  <?php foreach ($this->get_languages_list() as $language) {
22
+ if ($language->term_id == $lang->term_id)
23
  continue;
24
 
25
  // look for any existing translation in this language
languages/polylang-da_DK.mo ADDED
Binary file
languages/polylang-da_DK.po ADDED
@@ -0,0 +1,379 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: polylang\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-03-27 00:39+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Patrick Hesselberg <Super-patzen@live.dk>\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
+ "Language: \n"
13
+ "Plural-Forms: nplurals=2: nplural=n>1\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:92
21
+ #, php-format
22
+ msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
23
+ msgstr "Du bruger WordPress %s. Polylang kræver mindst WordPress %s."
24
+
25
+ #: ../polylang.php:184
26
+ msgid "Error: Restore of local flags failed!"
27
+ msgstr "Fejl: Gendannelse af lokale flag mislykkedes!"
28
+
29
+ #: ../polylang.php:185
30
+ #, php-format
31
+ msgid "Please move your local flags from %s to %s"
32
+ msgstr "Flyt venligst dine lokale flag fra %s til %s"
33
+
34
+ #: ../include/admin-filters.php:144
35
+ #: ../include/admin-filters.php:573
36
+ msgid "Add new translation"
37
+ msgstr "Tilføj ny oversættelse"
38
+
39
+ #: ../include/admin-filters.php:167
40
+ msgid "Show all languages"
41
+ msgstr "Vis alle sprog"
42
+
43
+ #: ../include/admin-filters.php:180
44
+ #: ../include/admin.php:32
45
+ #: ../include/admin.php:291
46
+ #: ../include/list-table.php:13
47
+ msgid "Languages"
48
+ msgstr "Sprog"
49
+
50
+ #: ../include/admin-filters.php:197
51
+ msgid "Page's language:"
52
+ msgstr "Side's sprog:"
53
+
54
+ #: ../include/admin-filters.php:197
55
+ msgid "Post's language:"
56
+ msgstr "Indlæg's sprog:"
57
+
58
+ #: ../include/admin-filters.php:257
59
+ msgid "(no parent)"
60
+ msgstr "(ingen forælder)"
61
+
62
+ #: ../include/admin-filters.php:511
63
+ #: ../include/admin-filters.php:528
64
+ #: ../include/list-table.php:12
65
+ #: ../include/post-translations.php:4
66
+ #: ../include/term-translations.php:15
67
+ msgid "Language"
68
+ msgstr "Sprog"
69
+
70
+ #: ../include/admin-filters.php:513
71
+ #: ../include/admin-filters.php:531
72
+ msgid "Sets the language"
73
+ msgstr "Indstiller sproget"
74
+
75
+ #: ../include/admin-filters.php:694
76
+ msgid "None"
77
+ msgstr "Ingen"
78
+
79
+ #: ../include/admin-filters.php:711
80
+ msgid "Theme locations and languages"
81
+ msgstr "Tema locations og sprog"
82
+
83
+ #: ../include/admin-filters.php:716
84
+ #, php-format
85
+ msgid "Please go to the %slanguages page%s to set theme locations and languages"
86
+ msgstr "Gå venligst til %ssprog side%s for at sætte tema locations og sprog"
87
+
88
+ #: ../include/admin-filters.php:727
89
+ msgid "The widget is displayed for:"
90
+ msgstr "Widget vises i:"
91
+
92
+ #: ../include/admin-filters.php:758
93
+ msgid "Admin language"
94
+ msgstr "Administrator sprog"
95
+
96
+ #: ../include/admin.php:25
97
+ #: ../include/admin.php:298
98
+ msgid "Settings"
99
+ msgstr "Indstillinger"
100
+
101
+ #: ../include/admin.php:296
102
+ msgid "Menus"
103
+ msgstr "Menuer"
104
+
105
+ #: ../include/admin.php:298
106
+ #: ../include/list-table.php:104
107
+ msgid "Strings translation"
108
+ msgstr "Strings oversættelse"
109
+
110
+ #: ../include/admin.php:316
111
+ msgid "Enter a valid WorPress locale"
112
+ msgstr "Indtast en gyldig Wordpress locale"
113
+
114
+ #: ../include/admin.php:317
115
+ msgid "The language code must be 2 characters long"
116
+ msgstr "Sprogkoden skal være på 2 tegn"
117
+
118
+ #: ../include/admin.php:318
119
+ msgid "The language code must be unique"
120
+ msgstr "Sprogkoden skal være unik"
121
+
122
+ #: ../include/admin.php:319
123
+ msgid "The language must have a name"
124
+ msgstr "Sproget skal have et navn"
125
+
126
+ #: ../include/admin.php:320
127
+ msgid "The language was created, but the WordPress language file was not downloaded. Please install it manually."
128
+ msgstr "Sproget var oprettet, men WordPress sprogfilen blev ikke downloadet. Du skal installere den manuelt."
129
+
130
+ #: ../include/admin.php:475
131
+ msgid "Upgrading language files&#8230;"
132
+ msgstr "Opgradering sprogfiler files&#8230;"
133
+
134
+ #: ../include/admin.php:484
135
+ msgid "Displays language names"
136
+ msgstr "Vis sprog navne"
137
+
138
+ #: ../include/admin.php:485
139
+ msgid "Displays flags"
140
+ msgstr "Vis flag"
141
+
142
+ #: ../include/admin.php:486
143
+ msgid "Forces link to front page"
144
+ msgstr "Tvinger link til forsiden"
145
+
146
+ #: ../include/admin.php:487
147
+ msgid "Hides the current language"
148
+ msgstr "Skjuler det nuværende sprog"
149
+
150
+ #: ../include/admin.php:489
151
+ msgid "Displays a language switcher at the end of the menu"
152
+ msgstr "Viser en sprog skifter ved enden af menuen"
153
+
154
+ #: ../include/admin.php:490
155
+ msgid "Displays as dropdown"
156
+ msgstr "Viser som dropdown"
157
+
158
+ #: ../include/admin.php:499
159
+ msgid "Site Title"
160
+ msgstr "Side Titel"
161
+
162
+ #: ../include/admin.php:500
163
+ msgid "Tagline"
164
+ msgstr "Tagline"
165
+
166
+ #: ../include/admin.php:519
167
+ msgid "Widget title"
168
+ msgstr "Widget titel"
169
+
170
+ #: ../include/base.php:33
171
+ msgid "All languages"
172
+ msgstr "Alle sprog"
173
+
174
+ #: ../include/calendar.php:106
175
+ #, php-format
176
+ msgid "%1$s %2$s"
177
+ msgstr "%1$s %2$s"
178
+
179
+ #: ../include/calendar.php:132
180
+ #: ../include/calendar.php:140
181
+ #, php-format
182
+ msgid "View posts for %1$s %2$s"
183
+ msgstr "Vis indlæg for %1$s %2$s"
184
+
185
+ #: ../include/languages-form.php:33
186
+ msgid "Edit language"
187
+ msgstr "Rediger sprog"
188
+
189
+ #: ../include/languages-form.php:33
190
+ #: ../include/languages-form.php:100
191
+ msgid "Add new language"
192
+ msgstr "Tilføj nyt sprog"
193
+
194
+ #: ../include/languages-form.php:55
195
+ msgid "Choose a language"
196
+ msgstr "Vælg sprog"
197
+
198
+ #: ../include/languages-form.php:63
199
+ msgid "You can choose a language in the list or directly edit it below."
200
+ msgstr "Du kan vælge et sprog fra listen eller redigere det direkte nedenfor."
201
+
202
+ #: ../include/languages-form.php:67
203
+ #: ../include/list-table.php:45
204
+ msgid "Full name"
205
+ msgstr "Fulde navn"
206
+
207
+ #: ../include/languages-form.php:69
208
+ msgid "The name is how it is displayed on your site (for example: English)."
209
+ msgstr "Navnet er hvordan det bliver vist på din side (for eksempel: Engelsk)."
210
+
211
+ #: ../include/languages-form.php:73
212
+ #: ../include/list-table.php:46
213
+ msgid "Locale"
214
+ msgstr "Landestandard"
215
+
216
+ #: ../include/languages-form.php:76
217
+ msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
218
+ msgstr "Wordpress Landestandarden for sproget (for eksempel: da_DK). Du skal installere .mo filen til dette sprog."
219
+
220
+ #: ../include/languages-form.php:80
221
+ msgid "Language code"
222
+ msgstr "Sprogkode"
223
+
224
+ #: ../include/languages-form.php:82
225
+ msgid "2-letters ISO 639-1 language code (for example: en)"
226
+ msgstr "2 bogstaver ISO 639-1 sprogkode (for eksempel: da)"
227
+
228
+ #: ../include/languages-form.php:86
229
+ msgid "Text direction"
230
+ msgstr "Tekst retning"
231
+
232
+ #: ../include/languages-form.php:88
233
+ msgid "left to right"
234
+ msgstr "venstre til højre"
235
+
236
+ #: ../include/languages-form.php:90
237
+ msgid "right to left"
238
+ msgstr "højre til venstre"
239
+
240
+ #: ../include/languages-form.php:91
241
+ msgid "Choose the text direction for the language"
242
+ msgstr "Vælg en tekstretning for sproget"
243
+
244
+ #: ../include/languages-form.php:95
245
+ #: ../include/list-table.php:48
246
+ msgid "Order"
247
+ msgstr "Sorter"
248
+
249
+ #: ../include/languages-form.php:97
250
+ msgid "Position of the language in the language switcher"
251
+ msgstr "Position af sproget i sprog skifteren"
252
+
253
+ #: ../include/languages-form.php:100
254
+ msgid "Update"
255
+ msgstr "Opdater"
256
+
257
+ #: ../include/languages-form.php:136
258
+ msgid "Language switcher"
259
+ msgstr "Sprog skifter"
260
+
261
+ #: ../include/languages-form.php:175
262
+ msgid "Default language"
263
+ msgstr "Standard sprog"
264
+
265
+ #: ../include/languages-form.php:193
266
+ msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
267
+ msgstr "Der er indlæg, sider, kategorier eller tags uden et valgt sprog. Vil du sætte dem til det standard sprog ?"
268
+
269
+ #: ../include/languages-form.php:201
270
+ msgid "Detect browser language"
271
+ msgstr "Find browser sprog"
272
+
273
+ #: ../include/languages-form.php:207
274
+ msgid "When the front page is visited, set the language according to the browser preference"
275
+ msgstr "Når forsiden vises, skal du indstille sprog i overensstemmelse med browseren præference"
276
+
277
+ #: ../include/languages-form.php:214
278
+ msgid "URL modifications"
279
+ msgstr "URL ændringer"
280
+
281
+ #: ../include/languages-form.php:220
282
+ msgid "Keep /language/ in pretty permalinks. Example:"
283
+ msgstr "Hold /sprog/ i pæne permalinks. eksempel:"
284
+
285
+ #: ../include/languages-form.php:228
286
+ msgid "Remove /language/ in pretty permalinks. Example:"
287
+ msgstr "Fjern /sprog/ i pæne permalinks. Eksempel:"
288
+
289
+ #: ../include/languages-form.php:236
290
+ msgid "Hide URL language information for default language"
291
+ msgstr "Skjul URL sprog information for standardsprog"
292
+
293
+ #: ../include/languages-form.php:243
294
+ msgid "Add language information to all URL including posts, pages, categories and post tags (not recommended)"
295
+ msgstr "Tilføj sprog information til alle URL herunder indlæg, sider, kategorier og indlæg tags (anbefales ikke)"
296
+
297
+ #: ../include/list-table.php:26
298
+ #: ../include/post-translations.php:6
299
+ #: ../include/post-translations.php:29
300
+ #: ../include/term-translations.php:18
301
+ #: ../include/term-translations.php:65
302
+ msgid "Edit"
303
+ msgstr "Rediger"
304
+
305
+ #: ../include/list-table.php:27
306
+ msgid "Delete"
307
+ msgstr "Slet"
308
+
309
+ #: ../include/list-table.php:47
310
+ msgid "Code"
311
+ msgstr "Kode"
312
+
313
+ #: ../include/list-table.php:49
314
+ msgid "Flag"
315
+ msgstr "Flag"
316
+
317
+ #: ../include/list-table.php:50
318
+ msgid "Posts"
319
+ msgstr "Indlæg"
320
+
321
+ #: ../include/list-table.php:105
322
+ msgid "Strings translations"
323
+ msgstr "Strings oversættelser"
324
+
325
+ #: ../include/list-table.php:125
326
+ msgid "Name"
327
+ msgstr "Navn"
328
+
329
+ #: ../include/list-table.php:126
330
+ msgid "String"
331
+ msgstr "String"
332
+
333
+ #: ../include/list-table.php:127
334
+ #: ../include/term-translations.php:6
335
+ #: ../include/term-translations.php:11
336
+ msgid "Translations"
337
+ msgstr "Oversættelser"
338
+
339
+ #: ../include/post-translations.php:1
340
+ msgid "ID of pages in other languages:"
341
+ msgstr "ID af sider på andre sprog:"
342
+
343
+ #: ../include/post-translations.php:1
344
+ msgid "ID of posts in other languages:"
345
+ msgstr "ID af indlæg på andre sprog:"
346
+
347
+ #: ../include/post-translations.php:5
348
+ msgid "Page ID"
349
+ msgstr "Side ID"
350
+
351
+ #: ../include/post-translations.php:5
352
+ msgid "Post ID"
353
+ msgstr "Indlæg ID"
354
+
355
+ #: ../include/post-translations.php:34
356
+ #: ../include/term-translations.php:54
357
+ msgid "Add new"
358
+ msgstr "Opret ny"
359
+
360
+ #: ../include/term-translations.php:16
361
+ msgid "Translation"
362
+ msgstr "Oversættelse"
363
+
364
+ #: ../include/term-translations.php:48
365
+ msgid "No untranslated term"
366
+ msgstr "Ingen uoversatte term"
367
+
368
+ #: ../include/widget.php:6
369
+ msgid "Language Switcher"
370
+ msgstr "Sprog Skifter"
371
+
372
+ #: ../include/widget.php:6
373
+ msgid "Displays a language switcher"
374
+ msgstr "Viser en sprog skifter"
375
+
376
+ #: ../include/widget.php:71
377
+ msgid "Title:"
378
+ msgstr "Titel:"
379
+
languages/polylang-es_ES.mo ADDED
Binary file
languages/polylang-es_ES.po ADDED
@@ -0,0 +1,416 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
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: Curro C. <curro.cejudo@me.com>\n"
8
+ "Language-Team: \n"
9
+ "Language: \n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=2: nplural=n>1\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:97
21
+ #, php-format
22
+ msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
23
+ msgstr "Estás usando Wordpress %s. Polylang requiere al menos WordPress %s."
24
+
25
+ #: ../polylang.php:111
26
+ msgid "For some reasons, Polylang could not create a table in your database."
27
+ msgstr "Por alguna razón Polylang no ha creado la tabla en tu base de datos."
28
+
29
+ #: ../polylang.php:193
30
+ msgid "Error: Restore of local flags failed!"
31
+ msgstr "Error: ¡ha fallado la restauración de banderas!"
32
+
33
+ #: ../polylang.php:194
34
+ #, php-format
35
+ msgid "Please move your local flags from %s to %s"
36
+ msgstr "Por favor, mueve tu bandera de %s a %s"
37
+
38
+ #: ../include/widget.php:6
39
+ msgid "Language Switcher"
40
+ msgstr "Cambiador de idioma"
41
+
42
+ #: ../include/widget.php:6
43
+ msgid "Displays a language switcher"
44
+ msgstr "Muestra un cambiador de idoma."
45
+
46
+ #: ../include/widget.php:71
47
+ msgid "Title:"
48
+ msgstr "Título:"
49
+
50
+ #: ../include/admin.php:26
51
+ #: ../include/admin.php:300
52
+ msgid "Settings"
53
+ msgstr "Ajustes:"
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 "Idiomas"
61
+
62
+ #: ../include/admin.php:38
63
+ msgid "About Polylang"
64
+ msgstr "Sobre Polylang"
65
+
66
+ #: ../include/admin.php:297
67
+ msgid "Menus"
68
+ msgstr "Menús"
69
+
70
+ #: ../include/admin.php:299
71
+ #: ../include/list-table.php:104
72
+ msgid "Strings translation"
73
+ msgstr "Traducción de cadenas"
74
+
75
+ #: ../include/admin.php:318
76
+ msgid "Enter a valid WorPress locale"
77
+ msgstr "Introduce una zona idiomática válida de WordPress"
78
+
79
+ #: ../include/admin.php:319
80
+ msgid "The language code must be 2 characters long"
81
+ msgstr "El código idiomático debe ser de 2 caracteres"
82
+
83
+ #: ../include/admin.php:320
84
+ msgid "The language code must be unique"
85
+ msgstr "EL código idiomático debe ser único"
86
+
87
+ #: ../include/admin.php:321
88
+ msgid "The language must have a name"
89
+ msgstr "El dioma debe tener un nombre"
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 "Se ha creado el idiomam pero el archivo de idioma de WordPress no se ha descargado. Por favor, instálalo manualmente."
94
+
95
+ #: ../include/admin.php:475
96
+ msgid "Upgrading language files&#8230;"
97
+ msgstr "Actualizando los archivos de idioma&#8230;"
98
+
99
+ #: ../include/admin.php:486
100
+ msgid "Displays language names"
101
+ msgstr "Muestra los nombres de los idiomas"
102
+
103
+ #: ../include/admin.php:487
104
+ msgid "Displays flags"
105
+ msgstr "Muestra las banderas"
106
+
107
+ #: ../include/admin.php:488
108
+ msgid "Forces link to front page"
109
+ msgstr "Fuerza un enlace a la página principal"
110
+
111
+ #: ../include/admin.php:489
112
+ msgid "Hides the current language"
113
+ msgstr "Oculta el idioma actual"
114
+
115
+ #: ../include/admin.php:491
116
+ msgid "Displays a language switcher at the end of the menu"
117
+ msgstr "Muestra un cambiador de idioma al final del menu"
118
+
119
+ #: ../include/admin.php:492
120
+ msgid "Displays as dropdown"
121
+ msgstr "Muestra como menú desplegable"
122
+
123
+ #: ../include/admin.php:501
124
+ msgid "Site Title"
125
+ msgstr "Título del sitio"
126
+
127
+ #: ../include/admin.php:502
128
+ msgid "Tagline"
129
+ msgstr "Descripción"
130
+
131
+ #: ../include/admin.php:520
132
+ msgid "Widget title"
133
+ msgstr "Título del widget"
134
+
135
+ #: ../include/term-translations.php:6
136
+ #: ../include/term-translations.php:11
137
+ #: ../include/list-table.php:127
138
+ msgid "Translations"
139
+ msgstr "Traducciones"
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"
147
+ msgstr "Idioma"
148
+
149
+ #: ../include/term-translations.php:16
150
+ msgid "Translation"
151
+ msgstr "Traducción"
152
+
153
+ #: ../include/term-translations.php:18
154
+ #: ../include/term-translations.php:65
155
+ #: ../include/list-table.php:26
156
+ #: ../include/post-translations.php:6
157
+ #: ../include/post-translations.php:29
158
+ msgid "Edit"
159
+ msgstr "Editar"
160
+
161
+ #: ../include/term-translations.php:48
162
+ msgid "No untranslated term"
163
+ msgstr "Sin términos no traducidos"
164
+
165
+ #: ../include/term-translations.php:54
166
+ #: ../include/post-translations.php:34
167
+ msgid "Add new"
168
+ msgstr "Añadir nuevo"
169
+
170
+ #: ../include/admin-filters.php:151
171
+ #: ../include/admin-filters.php:600
172
+ msgid "Add new translation"
173
+ msgstr "Añadir nueva traducción"
174
+
175
+ #: ../include/admin-filters.php:174
176
+ msgid "Show all languages"
177
+ msgstr "Mostar todos los idiomas"
178
+
179
+ #: ../include/admin-filters.php:204
180
+ msgid "Page's language:"
181
+ msgstr "Idioma de la página:"
182
+
183
+ #: ../include/admin-filters.php:204
184
+ msgid "Post's language:"
185
+ msgstr "Idioma de la entrada:"
186
+
187
+ #: ../include/admin-filters.php:263
188
+ msgid "(no parent)"
189
+ msgstr "(sin parent)"
190
+
191
+ #: ../include/admin-filters.php:539
192
+ #: ../include/admin-filters.php:557
193
+ msgid "Sets the language"
194
+ msgstr "Establece el idioma"
195
+
196
+ #: ../include/admin-filters.php:721
197
+ msgid "None"
198
+ msgstr "Ninguno"
199
+
200
+ #: ../include/admin-filters.php:738
201
+ msgid "Theme locations and languages"
202
+ msgstr "Idiomas y localizaciones del tema"
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 "Por favor, ve a la %spágina del idioma%s para establecer la zona y el idioma"
208
+
209
+ #: ../include/admin-filters.php:754
210
+ msgid "The widget is displayed for:"
211
+ msgstr "El widget se muestra para:"
212
+
213
+ #: ../include/admin-filters.php:785
214
+ msgid "Admin language"
215
+ msgstr "Idioma del administrador"
216
+
217
+ #: ../include/list-table.php:27
218
+ msgid "Delete"
219
+ msgstr "Eliminar"
220
+
221
+ #: ../include/list-table.php:45
222
+ #: ../include/languages-form.php:70
223
+ msgid "Full name"
224
+ msgstr "Nombre completo"
225
+
226
+ #: ../include/list-table.php:46
227
+ #: ../include/languages-form.php:76
228
+ msgid "Locale"
229
+ msgstr "Localización"
230
+
231
+ #: ../include/list-table.php:47
232
+ msgid "Code"
233
+ msgstr "Código"
234
+
235
+ #: ../include/list-table.php:48
236
+ #: ../include/languages-form.php:98
237
+ msgid "Order"
238
+ msgstr "Orden"
239
+
240
+ #: ../include/list-table.php:49
241
+ msgid "Flag"
242
+ msgstr "Bandera"
243
+
244
+ #: ../include/list-table.php:50
245
+ msgid "Posts"
246
+ msgstr "Entradas"
247
+
248
+ #: ../include/list-table.php:105
249
+ msgid "Strings translations"
250
+ msgstr "Traducciones de cadenas"
251
+
252
+ #: ../include/list-table.php:125
253
+ msgid "Name"
254
+ msgstr "Nombre"
255
+
256
+ #: ../include/list-table.php:126
257
+ msgid "String"
258
+ msgstr "Cadena"
259
+
260
+ #: ../include/calendar.php:106
261
+ #, php-format
262
+ msgid "%1$s %2$s"
263
+ msgstr "%1$s %2$s"
264
+
265
+ #: ../include/calendar.php:132
266
+ #: ../include/calendar.php:140
267
+ #, php-format
268
+ msgid "View posts for %1$s %2$s"
269
+ msgstr "Ver entradas para %1$s %2$s"
270
+
271
+ #: ../include/languages-form.php:36
272
+ msgid "Edit language"
273
+ msgstr "Editar idioma"
274
+
275
+ #: ../include/languages-form.php:36
276
+ #: ../include/languages-form.php:103
277
+ msgid "Add new language"
278
+ msgstr "Añadir nuevo idioma"
279
+
280
+ #: ../include/languages-form.php:58
281
+ msgid "Choose a language"
282
+ msgstr "Elegir un idioma"
283
+
284
+ #: ../include/languages-form.php:66
285
+ msgid "You can choose a language in the list or directly edit it below."
286
+ msgstr "Puedes elegir un idioma de la lista o editarlo directamente abajo."
287
+
288
+ #: ../include/languages-form.php:72
289
+ msgid "The name is how it is displayed on your site (for example: English)."
290
+ msgstr "El nombre es como se muestra en tu sitio (por ejemplo: Español)."
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 "Zona idiomática de Wordpress (por ejemplo: es_ES). Deberás instalar el archivo .mo para este idioma,"
295
+
296
+ #: ../include/languages-form.php:83
297
+ msgid "Language code"
298
+ msgstr "Código idiomático"
299
+
300
+ #: ../include/languages-form.php:85
301
+ msgid "2-letters ISO 639-1 language code (for example: en)"
302
+ msgstr "Código idiomático ISO 639-1 de 2 letras (por ejemplo: es)"
303
+
304
+ #: ../include/languages-form.php:89
305
+ msgid "Text direction"
306
+ msgstr "Dirección de escritura"
307
+
308
+ #: ../include/languages-form.php:91
309
+ msgid "left to right"
310
+ msgstr "De izquierda a derecha"
311
+
312
+ #: ../include/languages-form.php:93
313
+ msgid "right to left"
314
+ msgstr "De derecha a izquierda"
315
+
316
+ #: ../include/languages-form.php:94
317
+ msgid "Choose the text direction for the language"
318
+ msgstr "Elige la dirección de escritura del idioma"
319
+
320
+ #: ../include/languages-form.php:100
321
+ msgid "Position of the language in the language switcher"
322
+ msgstr "Posición del cambiador de idioma"
323
+
324
+ #: ../include/languages-form.php:103
325
+ msgid "Update"
326
+ msgstr "Actualizar"
327
+
328
+ #: ../include/languages-form.php:149
329
+ msgid "Language switcher"
330
+ msgstr "Cambiador de idioma"
331
+
332
+ #: ../include/languages-form.php:188
333
+ msgid "Default language"
334
+ msgstr "Idioma predeterminado"
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 "Hay entradas, páginas, categorías o etiquetas sin idioma establecido. ¿Quieres establecerles idioma predeterminado?"
339
+
340
+ #: ../include/languages-form.php:214
341
+ msgid "Detect browser language"
342
+ msgstr "Detectar el idioma del navegador"
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 "Al visitar la página principal, se establece el idioma según las preferencias del navegador"
347
+
348
+ #: ../include/languages-form.php:227
349
+ msgid "URL modifications"
350
+ msgstr "Modificaciones de URL"
351
+
352
+ #: ../include/languages-form.php:233
353
+ msgid "Keep /language/ in pretty permalinks. Example:"
354
+ msgstr "Mantener /language/ con dirección completa. Ejemplo:"
355
+
356
+ #: ../include/languages-form.php:241
357
+ msgid "Remove /language/ in pretty permalinks. Example:"
358
+ msgstr "Borrar /language/ de la dirección completa. Ejemplo:"
359
+
360
+ #: ../include/languages-form.php:249
361
+ msgid "Hide URL language information for default language"
362
+ msgstr "Ocultar el URL del idioma en el predeterminado"
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 "Añade información del idiona a todos los URL incluyendo entradas, páginas, categorías y etiquetas (no recomendado)"
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 "Redirige la página del idioma (ejemplo: %s) a la página de inicio en el idioma correcto."
372
+
373
+ #: ../include/base.php:38
374
+ msgid "All languages"
375
+ msgstr "Todos los idiomas"
376
+
377
+ #: ../include/post-translations.php:1
378
+ msgid "ID of pages in other languages:"
379
+ msgstr "ID de páginas en otros idiomas:"
380
+
381
+ #: ../include/post-translations.php:1
382
+ msgid "ID of posts in other languages:"
383
+ msgstr "ID de entradas en otros idiomas:"
384
+
385
+ #: ../include/post-translations.php:5
386
+ msgid "Page ID"
387
+ msgstr "ID de página"
388
+
389
+ #: ../include/post-translations.php:5
390
+ msgid "Post ID"
391
+ msgstr "ID de entrada"
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 "Polylang se distributye con una extensa %sdocumentación%s (sólo en inglés). Se incluye información de cómo crear tu sitio multi-idiomático y cómo usarlo en el día a día, un FAQ e información para programadores para adaptar sus plugins y temas."
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 "También encontrarás información útil en los %sforos de soporte%s. Pero no olvides hacer una búsqueda antes de crear un nuevo hilo."
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 "Polylang es gratuito y se distribuye bajo la misma licencia que WordPress, %sGPL%s."
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 "Si quieres saber cómo puedes ayudar al proyecto, lee %sesto%s."
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 "Finalmente, si te gusta este plugin y te ayuda a hacer dinero, el autor agradece enormemente un donativo."
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.8.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.8.2');
28
  define('PLL_MIN_WP_VERSION', '3.1');
29
 
30
  define('POLYLANG_DIR', dirname(__FILE__)); // our directory
@@ -303,8 +303,8 @@ class Polylang extends Polylang_Base {
303
  'update_count_callback' => '_update_post_term_count'));
304
 
305
  // optionaly removes 'language' in permalinks so that we get http://www.myblog/en/ instead of http://www.myblog/language/en/
306
- if ($options['rewrite'])
307
- add_permastruct('language', '%language%', array('with_front' => false));
308
 
309
  load_plugin_textdomain('polylang', false, basename(POLYLANG_DIR).'/languages'); // plugin i18n
310
  }
@@ -343,6 +343,7 @@ class Polylang extends Polylang_Base {
343
  if (($current_filter = current_filter()) == 'language_rewrite_rules')
344
  return array();
345
 
 
346
  $options = get_option('polylang');
347
  $always_rewrite = in_array(str_replace('_rewrite_rules', '', $current_filter), array('date', 'root', 'comments', 'author', 'post_format'));
348
  $newrules = array();
@@ -352,14 +353,14 @@ class Polylang extends Polylang_Base {
352
  $languages[] = $language->slug;
353
 
354
  if (isset($languages))
355
- $slug = $options['rewrite'] ? '('.implode('|', $languages).')/' : 'language/('.implode('|', $languages).')/';
356
 
357
  foreach ($rules as $key => $rule) {
358
  // we don't need the lang parameter for post types and taxonomies
359
  // moreover adding it would create issues for pages and taxonomies
360
  if ($options['force_lang'] && in_array(str_replace('_rewrite_rules', '', $current_filter), array_merge($this->post_types, $this->taxonomies))) {
361
  if (isset($slug))
362
- $newrules[$slug.$key] = str_replace(array('[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '[1]'),
363
  array('[9]', '[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]'), $rule); // hopefully it is sufficient !
364
 
365
  if ($options['hide_default'])
@@ -371,7 +372,7 @@ class Polylang extends Polylang_Base {
371
  // rewrite rules filtered by language
372
  elseif ($always_rewrite || strpos($rule, 'post_type=') || ($current_filter != 'rewrite_rules_array' && $options['force_lang'])) {
373
  if (isset($slug))
374
- $newrules[$slug.$key] = str_replace(array('[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '[1]', '?'),
375
  array('[9]', '[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '?lang=$matches[1]&'), $rule); // hopefully it is sufficient !
376
 
377
  if ($options['hide_default'])
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://wordpress.org/extend/plugins/polylang/
5
+ Version: 0.8.3
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.3');
28
  define('PLL_MIN_WP_VERSION', '3.1');
29
 
30
  define('POLYLANG_DIR', dirname(__FILE__)); // our directory
303
  'update_count_callback' => '_update_post_term_count'));
304
 
305
  // optionaly removes 'language' in permalinks so that we get http://www.myblog/en/ instead of http://www.myblog/language/en/
306
+ // language information always in front of the uri ('with_front' => false)
307
+ add_permastruct('language', $options['rewrite'] ? '%language%' : 'language/%language%', array('with_front' => false));
308
 
309
  load_plugin_textdomain('polylang', false, basename(POLYLANG_DIR).'/languages'); // plugin i18n
310
  }
343
  if (($current_filter = current_filter()) == 'language_rewrite_rules')
344
  return array();
345
 
346
+ global $wp_rewrite;
347
  $options = get_option('polylang');
348
  $always_rewrite = in_array(str_replace('_rewrite_rules', '', $current_filter), array('date', 'root', 'comments', 'author', 'post_format'));
349
  $newrules = array();
353
  $languages[] = $language->slug;
354
 
355
  if (isset($languages))
356
+ $slug = $options['rewrite'] ? $wp_rewrite->root.'('.implode('|', $languages).')/' : $wp_rewrite->root.'language/('.implode('|', $languages).')/';
357
 
358
  foreach ($rules as $key => $rule) {
359
  // we don't need the lang parameter for post types and taxonomies
360
  // moreover adding it would create issues for pages and taxonomies
361
  if ($options['force_lang'] && in_array(str_replace('_rewrite_rules', '', $current_filter), array_merge($this->post_types, $this->taxonomies))) {
362
  if (isset($slug))
363
+ $newrules[$slug.str_replace($wp_rewrite->root, '', $key)] = str_replace(array('[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '[1]'),
364
  array('[9]', '[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]'), $rule); // hopefully it is sufficient !
365
 
366
  if ($options['hide_default'])
372
  // rewrite rules filtered by language
373
  elseif ($always_rewrite || strpos($rule, 'post_type=') || ($current_filter != 'rewrite_rules_array' && $options['force_lang'])) {
374
  if (isset($slug))
375
+ $newrules[$slug.str_replace($wp_rewrite->root, '', $key)] = str_replace(array('[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '[1]', '?'),
376
  array('[9]', '[8]', '[7]', '[6]', '[5]', '[4]', '[3]', '[2]', '?lang=$matches[1]&'), $rule); // hopefully it is sufficient !
377
 
378
  if ($options['hide_default'])
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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.2
8
 
9
  Polylang adds multilingual content management support to WordPress.
10
 
@@ -40,6 +40,8 @@ The plugin admin interface is currently available in:
40
  * Polish contributed by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl)
41
  * Latvian contributed by [@AndyDeGroo](http://twitter.com/AndyDeGroo)
42
  * Italian contributed by [Luca Barbetti](http://wordpress.org/support/profile/lucabarbetti)
 
 
43
 
44
  Special thanks to [@AndyDeGroo](http://twitter.com/AndyDeGroo) and [RavanH](http://4visions.nl/) for their help in debugging and improving Polylang !
45
 
@@ -103,7 +105,7 @@ You can subscribe to the tag ['polylang-dev'](http://wordpress.org/tags/polylang
103
 
104
  = Translate the admin interface =
105
 
106
- Polylang is already available in 10 languages. It's very easy to add a new one ! Download [poedit](http://www.poedit.net/download.php) (available for Windows, Mac OS X and Linux). Rename the file polylang.pot found in the polylang/languages directory into something like polylang-your_locale.po. Open the file with poedit and start translating (keeping strange codes such as %s, %1$s as is). Once done, just save and you will get two files polylang-your_locale.po and polylang-your_locale.mo that you can send to the author. The translation will be included with the next release.
107
 
108
  = Communicate =
109
 
@@ -115,7 +117,22 @@ Every suggestions are welcome.
115
 
116
  == Changelog ==
117
 
118
- = 0.8.2 =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
 
120
  * Add Italian translation contributed by [Luca Barbetti](http://wordpress.org/support/profile/lucabarbetti)
121
  * Improve performance on admin side
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.4
7
+ Stable tag: 0.8.3
8
 
9
  Polylang adds multilingual content management support to WordPress.
10
 
40
  * Polish contributed by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl)
41
  * Latvian contributed by [@AndyDeGroo](http://twitter.com/AndyDeGroo)
42
  * Italian contributed by [Luca Barbetti](http://wordpress.org/support/profile/lucabarbetti)
43
+ * Danish contributed by [Compute]((http://wordpress.org/support/profile/compute)
44
+ * Spanish contributed by Curro
45
 
46
  Special thanks to [@AndyDeGroo](http://twitter.com/AndyDeGroo) and [RavanH](http://4visions.nl/) for their help in debugging and improving Polylang !
47
 
105
 
106
  = Translate the admin interface =
107
 
108
+ Polylang is already available in 12 languages. It's very easy to add a new one ! Download [poedit](http://www.poedit.net/download.php) (available for Windows, Mac OS X and Linux). Rename the file polylang.pot found in the polylang/languages directory into something like polylang-your_locale.po. Open the file with poedit and start translating (keeping strange codes such as %s, %1$s as is). Once done, just save and you will get two files polylang-your_locale.po and polylang-your_locale.mo that you can send to the author. The translation will be included with the next release.
109
 
110
  = Communicate =
111
 
117
 
118
  == Changelog ==
119
 
120
+ = 0.8.3 (2012-04-09) =
121
+
122
+ * Add Danish translation contributed by [Compute]((http://wordpress.org/support/profile/compute)
123
+ * Add Spanish translation contributed by Curro
124
+ * Add the possibility to add a content in a different language than the current one by setting explicitely the lang parameter in the secondary query
125
+ * Add support of PATHINFO permalinks
126
+ * Bug correction: secondary queries not correctly filtered by language
127
+ * Bug correction: wrong archives links when using permalinks with front
128
+ * Bug correction: wrong homepage link when keeping 'language' in permalinks with front
129
+ * Bug correction: flush_rewrite_rules notice when setting up a static front page (introduced in 0.8.2)
130
+ * Bug correction: every post in every language are shown when hitting the homepage with a query string unknown to WP (thanks to Gonçalo Peres)
131
+ * Bug correction: every post in every language are shown on the homepage when PHP adds index.php to the url
132
+ * Tests done with WordPress 3.4 beta 1
133
+
134
+
135
+ = 0.8.2 (2012-03-20) =
136
 
137
  * Add Italian translation contributed by [Luca Barbetti](http://wordpress.org/support/profile/lucabarbetti)
138
  * Improve performance on admin side