Polylang - Version 1.8.1

Version Description

(2016-01-31) =

  • Update the list of Facebook locales used for Opengraph support with Yoast SEO and Jetpack
  • fix: secondary query with translated post type and untranslated taxonomy mixes languages (introduced in 1.8)
  • fix: issue with paged static front page when hiding the default language in url
  • fix: potential issue with cache after synchronizations
  • fix: trailing slash added to canonical home url outputed by Yoast SEO when using default permalinks
Download this release

Release Info

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

Code changes from version 1.8 to 1.8.1

admin/admin-nav-menu.php CHANGED
@@ -276,17 +276,32 @@ class PLL_Admin_Nav_Menu extends PLL_Nav_Menu {
276
  * @param int nav menu id
277
  */
278
  function delete_nav_menu( $term_id ) {
279
- foreach ( $this->options['nav_menus'] as $theme => $locations ) {
280
- foreach ( $locations as $loc => $languages ) {
281
- foreach ( $languages as $lang => $menu_id ) {
282
- if ( $menu_id === $term_id ) {
283
- unset( $this->options['nav_menus'][ $theme ][ $loc ][ $lang ] );
 
 
284
  }
285
  }
286
  }
 
 
287
  }
 
288
 
289
- update_option( 'polylang', $this->options );
 
 
 
 
 
 
 
 
 
 
290
  }
291
 
292
  /*
@@ -312,8 +327,8 @@ class PLL_Admin_Nav_Menu extends PLL_Nav_Menu {
312
  }
313
 
314
  if ( ! empty( $menus ) ) {
315
- $menus = implode( ',', $menus );
316
- add_filter( 'option_nav_menu_options', create_function( '$a', "\$a['auto_add'] = array_intersect( \$a['auto_add'], array( $menus ) ); return \$a;" ) );
317
  }
318
  }
319
  }
276
  * @param int nav menu id
277
  */
278
  function delete_nav_menu( $term_id ) {
279
+ if ( isset( $this->options['nav_menus'] ) ) {
280
+ foreach ( $this->options['nav_menus'] as $theme => $locations ) {
281
+ foreach ( $locations as $loc => $languages ) {
282
+ foreach ( $languages as $lang => $menu_id ) {
283
+ if ( $menu_id === $term_id ) {
284
+ unset( $this->options['nav_menus'][ $theme ][ $loc ][ $lang ] );
285
+ }
286
  }
287
  }
288
  }
289
+
290
+ update_option( 'polylang', $this->options );
291
  }
292
+ }
293
 
294
+ /*
295
+ * filters the option nav_menu_options for auto added pages to menu
296
+ *
297
+ * @since 0.9.4
298
+ *
299
+ * @param array $options
300
+ * @return array Modified options
301
+ */
302
+ public function nav_menu_options( $options ) {
303
+ $options['auto_add'] = array_intersect( $options['auto_add'], array( $this->auto_add_menus ) );
304
+ return $options;
305
  }
306
 
307
  /*
327
  }
328
 
329
  if ( ! empty( $menus ) ) {
330
+ $this->auto_add_menus = implode( ',', $menus );
331
+ add_filter( 'option_nav_menu_options', array( &$this, 'nav_menu_options' ) );
332
  }
333
  }
334
  }
frontend/frontend-filters.php CHANGED
@@ -44,7 +44,7 @@ class PLL_Frontend_Filters extends PLL_Filters{
44
  }
45
 
46
  // translates biography
47
- add_filter( 'get_user_metadata', array( &$this, 'get_user_metadata' ), 10, 3 );
48
 
49
  // set posts and terms language when created from frontend ( ex with P2 theme )
50
  add_action( 'save_post', array( &$this, 'save_post' ), 200, 2 );
@@ -179,10 +179,11 @@ class PLL_Frontend_Filters extends PLL_Filters{
179
  * @param null $null
180
  * @param int $id user id
181
  * @param string $meta_key
 
182
  * @return null|string
183
  */
184
- public function get_user_metadata( $null, $id, $meta_key ) {
185
- return 'description' == $meta_key && $this->curlang->slug != $this->options['default_lang'] ? get_user_meta( $id, 'description_'.$this->curlang->slug, true ) : $null;
186
  }
187
 
188
  /*
44
  }
45
 
46
  // translates biography
47
+ add_filter( 'get_user_metadata', array( &$this, 'get_user_metadata' ), 10, 4 );
48
 
49
  // set posts and terms language when created from frontend ( ex with P2 theme )
50
  add_action( 'save_post', array( &$this, 'save_post' ), 200, 2 );
179
  * @param null $null
180
  * @param int $id user id
181
  * @param string $meta_key
182
+ * @param bool $single Whether to return only the first value of the specified $meta_key
183
  * @return null|string
184
  */
185
+ public function get_user_metadata( $null, $id, $meta_key, $single ) {
186
+ return 'description' === $meta_key && $this->curlang->slug !== $this->options['default_lang'] ? get_user_meta( $id, 'description_'.$this->curlang->slug, $single ) : $null;
187
  }
188
 
189
  /*
frontend/frontend-static-pages.php CHANGED
@@ -194,7 +194,7 @@ class PLL_Frontend_Static_Pages extends PLL_Static_Pages {
194
  }
195
 
196
  // redirect the language page to the homepage when using a static front page
197
- elseif ( $this->options['redirect_lang'] && ( count( $query->query ) == 1 || ( is_paged() && count( $query->query ) == 2 ) ) && is_tax( 'language' ) ) {
198
  $lang = $this->model->get_language( get_query_var( 'lang' ) );
199
  $query->set( 'page_id', $lang->page_on_front );
200
  $query->is_singular = $query->is_page = true;
194
  }
195
 
196
  // redirect the language page to the homepage when using a static front page
197
+ elseif ( ( $this->options['redirect_lang'] || $this->options['hide_default'] ) && ( count( $query->query ) == 1 || ( is_paged() && count( $query->query ) == 2 ) ) && is_tax( 'language' ) ) {
198
  $lang = $this->model->get_language( get_query_var( 'lang' ) );
199
  $query->set( 'page_id', $lang->page_on_front );
200
  $query->is_singular = $query->is_page = true;
frontend/frontend.php CHANGED
@@ -105,15 +105,27 @@ class PLL_Frontend extends PLL_Base {
105
  public function parse_query( $query ) {
106
  $qv = $query->query_vars;
107
 
108
- // to avoid returning an empty result if the query includes either a translated taxonomy in a different language or a non-translated taxonomy
109
- $has_tax = isset( $query->tax_query->queries ) && $this->have_unfiltered_taxonomy( $query->tax_query->queries );
110
 
111
  // allow filtering recent posts and secondary queries by the current language
112
  // take care not to break queries for non visible post types such as nav_menu_items
113
  // do not filter if lang is set to an empty value
114
  // do not filter single page and translated taxonomies to avoid conflicts
115
- if ( ! empty( $this->curlang ) && ! isset( $qv['lang'] ) && ! $has_tax && empty( $qv['page_id'] ) && empty( $qv['pagename'] ) && ( empty( $qv['post_type'] ) || $this->model->is_translated_post_type( $qv['post_type'] ) ) ) {
116
- $this->choose_lang->set_lang_query_var( $query, $this->curlang );
 
 
 
 
 
 
 
 
 
 
 
 
117
  }
118
 
119
  // modifies query vars when the language is queried
@@ -181,14 +193,14 @@ class PLL_Frontend extends PLL_Base {
181
  * @param array $tax_queries
182
  * @return bool
183
  */
184
- protected function have_unfiltered_taxonomy( $tax_queries ) {
185
  foreach ( $tax_queries as $tax_query ) {
186
- if ( isset( $tax_query['taxonomy'] ) && ! $this->model->is_filtered_taxonomy( $tax_query['taxonomy'] ) && ! ( isset( $tax_query['operator'] ) && 'NOT IN' === $tax_query['operator'] ) ) {
187
  return true;
188
  }
189
 
190
  // nested queries
191
- elseif ( is_array( $tax_query ) && $this->have_unfiltered_taxonomy( $tax_query ) ) {
192
  return true;
193
  }
194
  }
105
  public function parse_query( $query ) {
106
  $qv = $query->query_vars;
107
 
108
+ // to avoid returning an empty result if the query includes a translated taxonomy in a different language
109
+ $has_tax = isset( $query->tax_query->queries ) && $this->have_translated_taxonomy( $query->tax_query->queries );
110
 
111
  // allow filtering recent posts and secondary queries by the current language
112
  // take care not to break queries for non visible post types such as nav_menu_items
113
  // do not filter if lang is set to an empty value
114
  // do not filter single page and translated taxonomies to avoid conflicts
115
+ if ( ! empty( $this->curlang ) && ! isset( $qv['lang'] ) && ! $has_tax && empty( $qv['page_id'] ) && empty( $qv['pagename'] ) ) {
116
+ $taxonomies = $this->get_queried_taxonomies( $query );
117
+
118
+ if ( $taxonomies && ( empty( $qv['post_type'] ) || 'any' === $qv['post_type'] ) ) {
119
+ foreach ( $taxonomies as $taxonomy ) {
120
+ $tax_object = get_taxonomy( $taxonomy );
121
+ if ( $this->model->is_translated_post_type( $tax_object->object_type ) ) {
122
+ $this->choose_lang->set_lang_query_var( $query, $this->curlang );
123
+ break;
124
+ }
125
+ }
126
+ } elseif ( empty( $qv['post_type'] ) || $this->model->is_translated_post_type( $qv['post_type'] ) ) {
127
+ $this->choose_lang->set_lang_query_var( $query, $this->curlang );
128
+ }
129
  }
130
 
131
  // modifies query vars when the language is queried
193
  * @param array $tax_queries
194
  * @return bool
195
  */
196
+ protected function have_translated_taxonomy( $tax_queries ) {
197
  foreach ( $tax_queries as $tax_query ) {
198
+ if ( isset( $tax_query['taxonomy'] ) && $this->model->is_translated_taxonomy( $tax_query['taxonomy'] ) && ! ( isset( $tax_query['operator'] ) && 'NOT IN' === $tax_query['operator'] ) ) {
199
  return true;
200
  }
201
 
202
  // nested queries
203
+ elseif ( is_array( $tax_query ) && $this->have_translated_taxonomy( $tax_query ) ) {
204
  return true;
205
  }
206
  }
include/links-domain.php CHANGED
@@ -65,7 +65,7 @@ class PLL_Links_Domain extends PLL_Links_Permalinks {
65
  * @return string language slug
66
  */
67
  public function get_language_from_url() {
68
- return ( $lang = array_search( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . parse_url( $this->home, PHP_URL_PATH ), $this->options['domains'] ) ) ? $lang : $this->options['default_lang'];
69
  }
70
 
71
  /*
65
  * @return string language slug
66
  */
67
  public function get_language_from_url() {
68
+ return ( $lang = array_search( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . parse_url( $this->home, PHP_URL_PATH ), $this->options['domains'] ) ) ? $lang : '';
69
  }
70
 
71
  /*
include/links-permalinks.php CHANGED
@@ -36,7 +36,7 @@ abstract class PLL_Links_Permalinks extends PLL_Links_Model {
36
  * @return string modified url
37
  */
38
  public function remove_paged_from_link( $url ) {
39
- return preg_replace( '#\/page\/[0-9]+\/#', '/', $url ); // FIXME trailing slash ?
40
  }
41
 
42
  /*
@@ -49,7 +49,7 @@ abstract class PLL_Links_Permalinks extends PLL_Links_Model {
49
  * @return string modified url
50
  */
51
  public function add_paged_to_link( $url, $page ) {
52
- return trailingslashit( $url ) . 'page/' . $page; // FIXME trailing slash ?
53
  }
54
 
55
  /*
36
  * @return string modified url
37
  */
38
  public function remove_paged_from_link( $url ) {
39
+ return preg_replace( '#\/page\/[0-9]+\/?#', $this->use_trailing_slashes ? '/' : '', $url );
40
  }
41
 
42
  /*
49
  * @return string modified url
50
  */
51
  public function add_paged_to_link( $url, $page ) {
52
+ return user_trailingslashit( trailingslashit( $url ) . 'page/' . $page, 'paged' );
53
  }
54
 
55
  /*
include/mo.php CHANGED
@@ -14,7 +14,8 @@ class PLL_MO extends MO {
14
  */
15
  public function __construct() {
16
  if ( ! post_type_exists( 'polylang_mo' ) ) {
17
- register_post_type( 'polylang_mo', array( 'rewrite' => false, 'query_var' => false, '_pll' => true ) );
 
18
  }
19
  }
20
 
14
  */
15
  public function __construct() {
16
  if ( ! post_type_exists( 'polylang_mo' ) ) {
17
+ $labels = array( 'name' => __( 'Strings translations', 'polylang' ) );
18
+ register_post_type( 'polylang_mo', array( 'labels' => $labels, 'rewrite' => false, 'query_var' => false, '_pll' => true ) );
19
  }
20
  }
21
 
languages/polylang-ca.mo DELETED
Binary file
languages/polylang-ca.po DELETED
@@ -1,592 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: polylang\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: \n"
6
- "PO-Revision-Date: \n"
7
- "Last-Translator: Núria Martínez Berenguer <nuria.trad@gmail.com>\n"
8
- "Language-Team: \n"
9
- "Language: ca\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-Generator: Poedit 1.6.3\n"
18
- "X-Poedit-SearchPath-0: ..\n"
19
- "X-Poedit-SearchPath-1: ../include\n"
20
-
21
- #: admin/view-about.php:3
22
- #, php-format
23
- msgid ""
24
- "Polylang is provided with an extensive %sdocumentation%s (in English only). "
25
- "It includes information on how to set up your multilingual site and use it "
26
- "on a daily basis, a FAQ, as well as a documentation for programmers to adapt "
27
- "their plugins and themes."
28
- msgstr ""
29
- "Polylang es distribueix amb una %sdocumentació%s extensa (només en anglès). "
30
- "Inclou informació de com crear un lloc web multilingüe i com fer-ne un ús "
31
- "diari, una pàgina de preguntes freqüents, així com informació per tal que "
32
- "els programadors puguin adaptar-ne els plugins i temes."
33
-
34
- #: admin/view-about.php:9
35
- #, php-format
36
- msgid ""
37
- "You will also find useful information in the %ssupport forum%s. However "
38
- "don't forget to make a search before posting a new topic."
39
- msgstr ""
40
- "També trobaràs informació d'interès als %sfòrums de suport%s. Però abans de "
41
- "crear un nou tema, no oblidis fer-ne una cerca."
42
-
43
- #: admin/view-about.php:16
44
- #, php-format
45
- msgid ""
46
- "Polylang is free of charge and is released under the same license as "
47
- "WordPress, the %sGPL%s."
48
- msgstr ""
49
- "Polylang és gratuit i es distribueix sota la mateixa llicència que "
50
- "WordPress, %sGPL%s."
51
-
52
- #: admin/view-about.php:22
53
- #, php-format
54
- msgid "If you wonder how you can help the project, just %sread this%s."
55
- msgstr "Si vols saber com ajudar al projecte, llegeix %saixò%s."
56
-
57
- #: admin/view-about.php:27
58
- msgid ""
59
- "Finally if you like this plugin or if it helps your business, donations to "
60
- "the author are greatly appreciated."
61
- msgstr ""
62
- "Finalment, si t'agrada aquest plugin i el trobes útil per al teu negoci, "
63
- "pots fer-ne un donatiu. L'autor t'ho agrairà enormement."
64
-
65
- #: admin/admin-filters-post.php:115 admin/admin.php:90 admin/settings.php:70
66
- #: admin/settings.php:97 include/model.php:561
67
- msgid "Languages"
68
- msgstr "Idiomes"
69
-
70
- #: include/switcher.php:22
71
- msgid "Displays language names"
72
- msgstr "Mostra els noms dels idiomes"
73
-
74
- #: include/switcher.php:23
75
- msgid "Displays flags"
76
- msgstr "Mostra les banderes"
77
-
78
- #: include/switcher.php:24
79
- msgid "Forces link to front page"
80
- msgstr "Força un enllaç cap a la pàgina principal"
81
-
82
- #: include/switcher.php:25
83
- msgid "Hides the current language"
84
- msgstr "Oculta l'idioma actual"
85
-
86
- #: include/switcher.php:30
87
- msgid "Displays as dropdown"
88
- msgstr "Mostra com a menú desplegable"
89
-
90
- #: admin/admin.php:267
91
- msgid "Filters content by language"
92
- msgstr "Filters content by language"
93
-
94
- #: admin/admin.php:258
95
- msgid "Show all languages"
96
- msgstr "Mostra tots els idiomes"
97
-
98
- #: admin/admin-filters-columns.php:140 admin/admin-filters-columns.php:230
99
- msgid "Add new translation"
100
- msgstr "Afegeix traducció nova"
101
-
102
- #: admin/admin-filters-columns.php:173 admin/admin-filters-media.php:55
103
- #: admin/admin-filters-post.php:141 admin/admin-filters-term.php:75
104
- #: admin/admin-filters-term.php:122 include/model.php:562
105
- msgid "Language"
106
- msgstr "Idioma"
107
-
108
- #: admin/table-string.php:112 admin/view-translations-media.php:5
109
- #: admin/view-translations-post.php:5 admin/view-translations-term.php:6
110
- #: admin/view-translations-term.php:11
111
- msgid "Translations"
112
- msgstr "Traduccions"
113
-
114
- #: admin/admin-filters-term.php:82 admin/admin-filters-term.php:130
115
- msgid "Sets the language"
116
- msgstr "Estableix l'idioma"
117
-
118
- #: admin/admin-filters.php:52
119
- msgid "The widget is displayed for:"
120
- msgstr "El widget es mostra per a:"
121
-
122
- #: admin/admin-filters.php:55 include/model.php:563
123
- msgid "All languages"
124
- msgstr "Tots els idiomes"
125
-
126
- #: admin/admin-filters.php:123
127
- msgid "Admin language"
128
- msgstr "Idioma de l'administrador"
129
-
130
- #: admin/admin-filters.php:126
131
- msgid "WordPress default"
132
- msgstr "Opció per defecte de WordPress"
133
-
134
- #: admin/admin.php:167 admin/settings.php:102
135
- msgid "Settings"
136
- msgstr "Paràmetres"
137
-
138
- #: admin/admin-filters.php:160 admin/admin-filters.php:169
139
- msgid "Upgrading language files&#8230;"
140
- msgstr "S'estan actualitzant els arxius d'idioma&#8230;"
141
-
142
- #: admin/settings.php:62
143
- msgid "About Polylang"
144
- msgstr "Sobre Polylang"
145
-
146
- #: admin/settings.php:78
147
- msgid "Strings translations"
148
- msgstr "Traduccions de cadenes"
149
-
150
- #: admin/settings.php:101
151
- msgid "Strings translation"
152
- msgstr "Traducció de cadenes"
153
-
154
- #: admin/admin-model.php:244
155
- msgid "Enter a valid WordPress locale"
156
- msgstr "Introdueix un codi d'idioma i regió vàlid de WordPress"
157
-
158
- #: admin/admin-model.php:252
159
- msgid "The language code must be unique"
160
- msgstr "El codi d'idioma ha de ser únic"
161
-
162
- #: admin/admin-model.php:256
163
- msgid "The language must have a name"
164
- msgstr "L'idioma ha de tenir un nom"
165
-
166
- #: admin/admin.php:367 admin/settings.php:180
167
- msgid ""
168
- "The language was created, but the WordPress language file was not "
169
- "downloaded. Please install it manually."
170
- msgstr ""
171
- "S'ha creat l'idioma, però l'arxiu d'aquest idioma de WordPress no s'ha "
172
- "descarregat. Si us plau, instal·la'l manualment."
173
-
174
- #: admin/admin-strings.php:59
175
- msgid "Widget title"
176
- msgstr "Títol del widget"
177
-
178
- # @ polylang
179
- #: admin/settings.php:319
180
- msgid "Taxonomies"
181
- msgstr "Taxonomies"
182
-
183
- # @ polylang
184
- #: admin/settings.php:320
185
- msgid "Custom fields"
186
- msgstr "Camps personalitzats"
187
-
188
- # @ polylang
189
- #: admin/settings.php:321
190
- msgid "Comment status"
191
- msgstr "Estat del comentari"
192
-
193
- # @ polylang
194
- #: admin/settings.php:322
195
- msgid "Ping status"
196
- msgstr "Estat dels pings"
197
-
198
- # @ polylang
199
- #: admin/settings.php:323
200
- msgid "Sticky posts"
201
- msgstr "Entrades adherides (sticky)"
202
-
203
- # @ polylang
204
- #: admin/settings.php:324
205
- msgid "Published date"
206
- msgstr "Data de publicació"
207
-
208
- # @ polylang
209
- #: admin/settings.php:325
210
- msgid "Post format"
211
- msgstr "Format de l'entrada"
212
-
213
- #: admin/settings.php:326
214
- msgid "Page parent"
215
- msgstr "Pàgina mare"
216
-
217
- # @ polylang
218
- #: admin/settings.php:327
219
- msgid "Page template"
220
- msgstr "Plantilla de la pàgina"
221
-
222
- #: admin/settings.php:328
223
- msgid "Page order"
224
- msgstr "Ordre de la pàgina"
225
-
226
- # @ polylang
227
- #: admin/settings.php:329
228
- msgid "Featured image"
229
- msgstr "Imatge destacada"
230
-
231
- #: admin/view-tab-lang.php:21
232
- msgid "Edit language"
233
- msgstr "Edita idioma"
234
-
235
- #: admin/view-tab-lang.php:21 admin/view-tab-lang.php:96
236
- msgid "Add new language"
237
- msgstr "Afegeix idioma"
238
-
239
- #: admin/view-tab-lang.php:37
240
- msgid "Choose a language"
241
- msgstr "Tria idioma"
242
-
243
- #: admin/view-tab-lang.php:51
244
- msgid "You can choose a language in the list or directly edit it below."
245
- msgstr "Pots triar un idioma de la llista o editar-lo directament a sota"
246
-
247
- #: admin/table-languages.php:74 admin/view-tab-lang.php:55
248
- msgid "Full name"
249
- msgstr "Nom complet"
250
-
251
- #: admin/view-tab-lang.php:57
252
- msgid "The name is how it is displayed on your site (for example: English)."
253
- msgstr "El nom és el que apareix al teu lloc web (per exemple: català)"
254
-
255
- #: admin/table-languages.php:75 admin/view-tab-lang.php:61
256
- msgid "Locale"
257
- msgstr "Codi d'idioma i regió (locale)"
258
-
259
- #: admin/view-tab-lang.php:66
260
- msgid ""
261
- "WordPress Locale for the language (for example: en_US). You will need to "
262
- "install the .mo file for this language."
263
- msgstr ""
264
- "Codi d'idioma i regió de WordPress (per exemple: ca_ES). Hauràs d'instal·lar "
265
- "l'arxiu .mo per a aquest idioma"
266
-
267
- #: admin/view-tab-lang.php:70
268
- msgid "Language code"
269
- msgstr "Codi d'idioma"
270
-
271
- #: admin/view-tab-lang.php:76
272
- msgid "Text direction"
273
- msgstr "Direcció del text"
274
-
275
- #: admin/view-tab-lang.php:80
276
- msgid "left to right"
277
- msgstr "d'esquerra a dreta"
278
-
279
- #: admin/view-tab-lang.php:85
280
- msgid "right to left"
281
- msgstr "de dreta a esquerra"
282
-
283
- #: admin/view-tab-lang.php:87
284
- msgid "Choose the text direction for the language"
285
- msgstr "Tria la direcció del text de l'idioma "
286
-
287
- #: admin/table-languages.php:77 admin/view-tab-lang.php:91
288
- msgid "Order"
289
- msgstr "Ordre"
290
-
291
- #: admin/view-tab-lang.php:93
292
- msgid "Position of the language in the language switcher"
293
- msgstr "Posició al selector d'idioma"
294
-
295
- #: admin/admin-nav-menu.php:54 admin/admin-nav-menu.php:92
296
- #: admin/admin-nav-menu.php:95 admin/admin-nav-menu.php:126
297
- #: admin/admin-nav-menu.php:188 install/upgrade.php:301
298
- msgid "Language switcher"
299
- msgstr "Selector d'idioma"
300
-
301
- #: admin/view-tab-strings.php:8
302
- msgid "Search translations"
303
- msgstr "Cerca traduccions"
304
-
305
- #: admin/view-tab-strings.php:11
306
- msgid "Clean strings translation database"
307
- msgstr "Neteja la base de dades de traduccions de cadenes"
308
-
309
- #: admin/view-tab-settings.php:14
310
- msgid "Default language"
311
- msgstr "Idioma predeterminat"
312
-
313
- #: admin/view-tab-settings.php:29
314
- msgid ""
315
- "There are posts, pages, categories or tags without language set. Do you want "
316
- "to set them all to default language ?"
317
- msgstr ""
318
- "Hi ha entrades, pàgines, categories o etiquetes sense idioma establert. Per "
319
- "establir-hi l'idioma predeterminat, marca aquesta casella."
320
-
321
- #: admin/view-tab-settings.php:149
322
- msgid "Detect browser language"
323
- msgstr "Detecta l'idioma del navegador"
324
-
325
- #: admin/view-tab-settings.php:155
326
- msgid ""
327
- "When the front page is visited, set the language according to the browser "
328
- "preference"
329
- msgstr ""
330
- "Estableix l'idioma d'acord amb les preferències del navegador quan es visita "
331
- "la pàgina principal"
332
-
333
- #: admin/view-tab-settings.php:37
334
- msgid "URL modifications"
335
- msgstr "Modificacions d'URL"
336
-
337
- #: admin/view-tab-settings.php:93
338
- msgid "Hide URL language information for default language"
339
- msgstr "Oculta la informació d'idioma de l'URL a l'idioma predeterminat"
340
-
341
- # @ polylang
342
- #: admin/view-tab-settings.php:162
343
- msgid "Media"
344
- msgstr "Mitjans"
345
-
346
- # @ polylang
347
- #: admin/view-tab-settings.php:168
348
- msgid "Activate languages and translations for media"
349
- msgstr "Activa idiomes i traduccions per als mitjans"
350
-
351
- #: admin/view-tab-settings.php:215
352
- msgid "Synchronization"
353
- msgstr "Sincronització"
354
-
355
- # @ polylang
356
- #: admin/view-tab-settings.php:176
357
- msgid "Custom post types"
358
- msgstr "Tipus d'entrada personalitzats"
359
-
360
- # @ polylang
361
- #: admin/view-tab-settings.php:189
362
- msgid "Activate languages and translations for custom post types."
363
- msgstr "Activa idiomes i traduccions per a tipus d'entrada personalitzats."
364
-
365
- # @ polylang
366
- #: admin/view-tab-settings.php:196
367
- msgid "Custom taxonomies"
368
- msgstr "Taxonomies personalitzades"
369
-
370
- # @ polylang
371
- #: admin/view-tab-settings.php:209
372
- msgid "Activate languages and translations for custom taxonomies."
373
- msgstr "Activa idiomes i traduccions per a taxonomies personalitzades."
374
-
375
- #: admin/admin-filters-post.php:433 admin/admin-filters-term.php:642
376
- #: admin/table-languages.php:54 admin/view-translations-media.php:21
377
- msgid "Edit"
378
- msgstr "Edita"
379
-
380
- #: admin/table-languages.php:60 admin/table-string.php:168
381
- msgid "Delete"
382
- msgstr "Elimina"
383
-
384
- #: admin/table-languages.php:76
385
- msgid "Code"
386
- msgstr "Codi"
387
-
388
- #: admin/table-languages.php:78
389
- msgid "Flag"
390
- msgstr "Bandera"
391
-
392
- #: admin/table-languages.php:79
393
- msgid "Posts"
394
- msgstr "Entrades"
395
-
396
- #: admin/table-string.php:110
397
- msgid "Name"
398
- msgstr "Nom"
399
-
400
- #: admin/table-string.php:111
401
- msgid "String"
402
- msgstr "Cadena"
403
-
404
- #: admin/view-translations-media.php:30 admin/view-translations-post.php:21
405
- #: admin/view-translations-term.php:30
406
- msgid "Add new"
407
- msgstr "Afegeix"
408
-
409
- #: include/widget-languages.php:16
410
- msgid "Language Switcher"
411
- msgstr "Selector d'idioma"
412
-
413
- #: include/widget-languages.php:16
414
- msgid "Displays a language switcher"
415
- msgstr "Mostra un selector d'idioma"
416
-
417
- #: include/widget-languages.php:75
418
- msgid "Title:"
419
- msgstr "Títol:"
420
-
421
- # @ polylang
422
- #. translators: plugin header field 'Description'
423
- #: polylang.php:0
424
- msgid "Adds multilingual capability to WordPress"
425
- msgstr "Afegeix capacitat multilingüística a WordPress"
426
-
427
- #: install/install.php:24
428
- #, php-format
429
- msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
430
- msgstr ""
431
- "Estàs fent servir WordPress %s. Polylang requereix, com a mínim, WordPress "
432
- "%s."
433
-
434
- # @ polylang
435
- #: install/upgrade.php:76
436
- msgid ""
437
- "Polylang has been deactivated because you upgraded from a too old version."
438
- msgstr ""
439
- "S'ha desactivat Polylang perquè l'has actualitzat des d'una versió massa "
440
- "antiga."
441
-
442
- # @ polylang
443
- #: install/upgrade.php:78
444
- #, php-format
445
- msgid "Please upgrade first to %s before ugrading to %s."
446
- msgstr "Actualitza'l primer a %s abans d'actualizar-lo a %s."
447
-
448
- # @ polylang
449
- #: admin/table-string.php:109
450
- msgid "Group"
451
- msgstr "Grup"
452
-
453
- # @ polylang
454
- #: admin/table-string.php:187
455
- msgid "View all groups"
456
- msgstr "Mostra tots els grups"
457
-
458
- # @ polylang
459
- #: admin/table-languages.php:59
460
- msgid "You are about to permanently delete this language. Are you sure?"
461
- msgstr ""
462
- "Estàs a punt d'esborrar aquest idioma de manera permanent. N'estàs segur?"
463
-
464
- # @ polylang
465
- #: admin/view-tab-strings.php:12
466
- msgid ""
467
- "Use this to remove unused strings from database, for example after a plugin "
468
- "has been uninstalled."
469
- msgstr ""
470
- "Fes servir aquesta opció per treure de la base de dades cadenes que no es "
471
- "fan servir, per exemple, després de desinstal·lar un plugin."
472
-
473
- # @ polylang
474
- #: admin/view-tab-settings.php:226
475
- msgid ""
476
- "The synchronization options allow to maintain exact same values (or "
477
- "translations in the case of taxonomies and page parent) of meta content "
478
- "between the translations of a post or page."
479
- msgstr ""
480
- "Les opcions de sincronització permeten mantenir exactament els mateixos "
481
- "valors (o traduccions en cas de taxonomies y pàgines mare) de contingut meta "
482
- "entre les traduccions d'una entrada o pàgina."
483
-
484
- #: admin/admin-model.php:248
485
- msgid "The language code contains invalid characters"
486
- msgstr "El codi d'idioma conté caràcters invàlids"
487
-
488
- # @ polylang
489
- #: admin/view-tab-settings.php:43
490
- msgid "The language is set from content"
491
- msgstr "L'idioma s'extreu del contingut"
492
-
493
- #: admin/view-tab-settings.php:46
494
- msgid "Posts, pages, categories and tags urls are not modified."
495
- msgstr "L'url de les entrades, pàgines, categories i etiquetes no es modifica."
496
-
497
- #: admin/view-tab-settings.php:51
498
- msgid "The language is set from the directory name in pretty permalinks"
499
- msgstr "L'idioma s'extreu del nom del directori dels enllaços amigables"
500
-
501
- # @ polylang
502
- #: admin/view-tab-settings.php:54 admin/view-tab-settings.php:63
503
- #: admin/view-tab-settings.php:110 admin/view-tab-settings.php:119
504
- msgid "Example:"
505
- msgstr "Exemple:"
506
-
507
- #: admin/view-tab-settings.php:60
508
- msgid "The language is set from the subdomain name in pretty permalinks"
509
- msgstr "L'idioma s'extreu del nom del subdomini dels enllaços amigables"
510
-
511
- # @ polylang
512
- #: admin/view-tab-settings.php:69
513
- msgid "The language is set from different domains"
514
- msgstr "L'idioma s'extreu a partir dels diversos dominis"
515
-
516
- #: admin/view-tab-settings.php:107
517
- msgid "Remove /language/ in pretty permalinks"
518
- msgstr "Esborra la part /idioma/ dels enllaços amigables"
519
-
520
- #: admin/view-tab-settings.php:116
521
- msgid "Keep /language/ in pretty permalinks"
522
- msgstr "Mantén /idioma/ dels enllaços amigables"
523
-
524
- # @ polylang
525
- #: admin/view-tab-settings.php:131
526
- msgid ""
527
- "The front page url contains the language code instead of the page name or "
528
- "page id"
529
- msgstr ""
530
- "L'url de la pàgina principal conté el codi d'idioma en comptes del nom o id "
531
- "de la pàgina"
532
-
533
- # @ polylang
534
- #: admin/view-tab-settings.php:139
535
- #, php-format
536
- msgid "Example: %s instead of %s"
537
- msgstr "Exemple: %s en comptes de %s"
538
-
539
- #: admin/admin-model.php:38
540
- msgid "Impossible to add the language."
541
- msgstr "No es pot afegir l'idioma."
542
-
543
- # @ polylang
544
- #: admin/admin-model.php:66
545
- msgid "Language added."
546
- msgstr "S'ha afegit l'idioma"
547
-
548
- # @ polylang
549
- #: admin/admin-model.php:146
550
- msgid "Language deleted."
551
- msgstr "S'ha esborrat l'idioma."
552
-
553
- # @ polylang
554
- #: admin/admin-model.php:227
555
- msgid "Language updated."
556
- msgstr "S'ha actualitzat l'idioma."
557
-
558
- # @ polylang
559
- #: admin/settings.php:239
560
- msgid "Translations updated."
561
- msgstr "S'ha actualitzat la traducció."
562
-
563
- #: admin/view-tab-lang.php:72
564
- msgid "Language code - preferably 2-letters ISO 639-1 (for example: en)"
565
- msgstr ""
566
- "Codi d'idioma - preferiblement de dues lletres segons la norma ISO 639-1 "
567
- "(per exemple: ca)"
568
-
569
- # @ polylang
570
- #: admin/admin-filters.php:203
571
- msgid "The chosen static front page must be translated in all languages."
572
- msgstr ""
573
- "La pàgina d'inici estàtica que has triat s'ha de traduir a tots els idiomes."
574
-
575
- #: admin/admin-strings.php:60
576
- msgid "Widget text"
577
- msgstr "Text del widget"
578
-
579
- # @ polylang
580
- #: admin/settings.php:52
581
- msgid "Recommended plugins"
582
- msgstr "Connectors recomanats"
583
-
584
- # @ polylang
585
- #: admin/view-tab-settings.php:51
586
- msgid "The language is set from the code in the URL"
587
- msgstr "L'idioma s'extreu del codi de l'URL"
588
-
589
- # @ polylang
590
- #: include/switcher.php:26
591
- msgid "Hides languages with no translation"
592
- msgstr "Amaga idiomes que no tinguin traducció"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/polylang-de_DE.mo DELETED
Binary file
languages/polylang-de_DE.po DELETED
@@ -1,679 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: polylang\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: \n"
6
- "PO-Revision-Date: \n"
7
- "Last-Translator: \n"
8
- "Language-Team: \n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
15
- "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
16
- "X-Poedit-Basepath: .\n"
17
- "X-Textdomain-Support: yes\n"
18
- "X-Generator: Poedit 1.5.7\n"
19
- "Language: de_DE\n"
20
- "X-Poedit-SearchPath-0: ..\n"
21
-
22
- # @ polylang
23
- #: admin/view-about.php:3
24
- #, php-format
25
- msgid ""
26
- "Polylang is provided with an extensive %sdocumentation%s (in English only). "
27
- "It includes information on how to set up your multilingual site and use it "
28
- "on a daily basis, a FAQ, as well as a documentation for programmers to adapt "
29
- "their plugins and themes."
30
- msgstr ""
31
- "Polylang wird mit einer detaillierten %sdocumentation%s ausgeliefert (nur in "
32
- "Englisch). Sie beinhaltet wie man eine mehrsprachige Webseite einrichtet und "
33
- "wie man sie tagtäglich pflegt, eine FAQ und eine Dokumentation für "
34
- "Programmierer um ihre Plugins und Themen anpassen zu können."
35
-
36
- # @ polylang
37
- #: admin/view-about.php:9
38
- #, php-format
39
- msgid ""
40
- "You will also find useful information in the %ssupport forum%s. However "
41
- "don't forget to make a search before posting a new topic."
42
- msgstr ""
43
- "Sie finden ebenfalls nützliche Informationen im %ssupport forum%s. Vergessen "
44
- "Sie nicht eine Suche durchzuführen, bevor Sie ein neues Thema beginnen."
45
-
46
- # @ polylang
47
- #: admin/view-about.php:16
48
- #, php-format
49
- msgid ""
50
- "Polylang is free of charge and is released under the same license as "
51
- "WordPress, the %sGPL%s."
52
- msgstr ""
53
- "Polylang ist kostenlos und wird unter derselben Lizenz veröffentlicht wie "
54
- "WordPress, die %sGPL%s."
55
-
56
- # @ polylang
57
- #: admin/view-about.php:22
58
- #, php-format
59
- msgid "If you wonder how you can help the project, just %sread this%s."
60
- msgstr ""
61
- "Wenn Sie sich Fragen, wie Sie das Projekt unterstützen können, dann %sread "
62
- "this%s."
63
-
64
- # @ polylang
65
- #: admin/view-about.php:27
66
- msgid ""
67
- "Finally if you like this plugin or if it helps your business, donations to "
68
- "the author are greatly appreciated."
69
- msgstr ""
70
- "Schliesslich wenn Sie dieses Plugin mögen oder es für Ihr Unternehmen "
71
- "nützlich ist, werden Spenden an den Autor gerne und dankend angenommen."
72
-
73
- # @ polylang
74
- #: admin/admin-filters-post.php:115 admin/admin.php:90 admin/settings.php:70
75
- #: admin/settings.php:97 include/model.php:561
76
- msgid "Languages"
77
- msgstr "Sprachen"
78
-
79
- # @ polylang
80
- #: include/switcher.php:22
81
- msgid "Displays language names"
82
- msgstr "Darstellung der Namen der Sprachen"
83
-
84
- # @ polylang
85
- #: include/switcher.php:23
86
- msgid "Displays flags"
87
- msgstr "Darstellung der Fahnen"
88
-
89
- # @ polylang
90
- #: include/switcher.php:24
91
- msgid "Forces link to front page"
92
- msgstr "Erzwingt einen Link zur Startseite"
93
-
94
- # @ polylang
95
- #: include/switcher.php:25
96
- msgid "Hides the current language"
97
- msgstr "Versteckt die aktuelle Sprache"
98
-
99
- # @ polylang
100
- #: include/switcher.php:30
101
- msgid "Displays as dropdown"
102
- msgstr "Als Auswahlbox darstellen"
103
-
104
- # @ polylang
105
- #: admin/admin.php:267
106
- msgid "Filters content by language"
107
- msgstr "Filtriert Inhalte nach der Sprache"
108
-
109
- # @ polylang
110
- #: admin/admin.php:258
111
- msgid "Show all languages"
112
- msgstr "Alle Sprachen anzeigen"
113
-
114
- # @ polylang
115
- #: admin/admin-filters-columns.php:140 admin/admin-filters-columns.php:230
116
- msgid "Add new translation"
117
- msgstr "Neue Übersetzung hinzufügen"
118
-
119
- # @ polylang
120
- #: admin/admin-filters-columns.php:173 admin/admin-filters-media.php:55
121
- #: admin/admin-filters-post.php:141 admin/admin-filters-term.php:75
122
- #: admin/admin-filters-term.php:122 include/model.php:562
123
- msgid "Language"
124
- msgstr "Sprache"
125
-
126
- # @ polylang
127
- #: admin/table-string.php:112 admin/view-translations-media.php:5
128
- #: admin/view-translations-post.php:5 admin/view-translations-term.php:6
129
- #: admin/view-translations-term.php:11
130
- msgid "Translations"
131
- msgstr "Übersetzungen"
132
-
133
- # @ polylang
134
- #: admin/admin-filters-term.php:82 admin/admin-filters-term.php:130
135
- msgid "Sets the language"
136
- msgstr "definiert die Sprache"
137
-
138
- # @ polylang
139
- #: admin/admin-filters.php:52
140
- msgid "The widget is displayed for:"
141
- msgstr "Zeigt das Widget für :"
142
-
143
- # @ polylang
144
- #: admin/admin-filters.php:55 include/model.php:563
145
- msgid "All languages"
146
- msgstr "Alle Sprachen"
147
-
148
- # @ polylang
149
- #: admin/admin-filters.php:123
150
- msgid "Admin language"
151
- msgstr "Adminsprache"
152
-
153
- #: admin/admin-filters.php:126
154
- msgid "WordPress default"
155
- msgstr "WordPress Standard-Einstellung"
156
-
157
- # @ default
158
- # @ polylang
159
- #: admin/admin.php:167 admin/settings.php:102
160
- msgid "Settings"
161
- msgstr "Einstellungen"
162
-
163
- # @ polylang
164
- #: admin/admin-filters.php:160 admin/admin-filters.php:169
165
- msgid "Upgrading language files&#8230;"
166
- msgstr "Sprachdateien werden aktualisiert&#8230;"
167
-
168
- # @ polylang
169
- #: admin/settings.php:62
170
- msgid "About Polylang"
171
- msgstr "Über Polylang"
172
-
173
- # @ polylang
174
- #: admin/settings.php:78
175
- msgid "Strings translations"
176
- msgstr "Übersetungen von Sätzen"
177
-
178
- # @ polylang
179
- #: admin/settings.php:101
180
- msgid "Strings translation"
181
- msgstr "Übersetzung von Sätzen"
182
-
183
- # @ polylang
184
- #: admin/admin-model.php:244
185
- msgid "Enter a valid WordPress locale"
186
- msgstr "Bitte geben Sie eine gültige Sprachdatei an"
187
-
188
- # @ polylang
189
- #: admin/admin-model.php:252
190
- msgid "The language code must be unique"
191
- msgstr "Der Sprachcode muss eindeutig sein"
192
-
193
- # @ polylang
194
- #: admin/admin-model.php:256
195
- msgid "The language must have a name"
196
- msgstr "Die Sprache muss einen Namen haben"
197
-
198
- # @ polylang
199
- #: admin/admin.php:367 admin/settings.php:180
200
- msgid ""
201
- "The language was created, but the WordPress language file was not "
202
- "downloaded. Please install it manually."
203
- msgstr ""
204
- "Die Sprache wurde erstellt, aber die WordPress Sprachdatei wurde nicht "
205
- "heruntergeladen. Bitte händisch installieren."
206
-
207
- # @ polylang
208
- #: admin/admin-strings.php:59
209
- msgid "Widget title"
210
- msgstr "Titel des Widgets"
211
-
212
- # @ polylang
213
- #: admin/settings.php:319
214
- msgid "Taxonomies"
215
- msgstr "Taxonomien"
216
-
217
- # @ polylang
218
- #: admin/settings.php:320
219
- msgid "Custom fields"
220
- msgstr "Benutzerdefinierte Felder"
221
-
222
- # @ polylang
223
- #: admin/settings.php:321
224
- msgid "Comment status"
225
- msgstr "Kommentarstatus"
226
-
227
- # @ polylang
228
- #: admin/settings.php:322
229
- msgid "Ping status"
230
- msgstr "Ping-Status"
231
-
232
- # @ polylang
233
- #: admin/settings.php:323
234
- msgid "Sticky posts"
235
- msgstr "Prioritäre Artikel"
236
-
237
- # @ polylang
238
- #: admin/settings.php:324
239
- msgid "Published date"
240
- msgstr "Erscheinungsdatum"
241
-
242
- # @ polylang
243
- #: admin/settings.php:325
244
- msgid "Post format"
245
- msgstr "Artikelformat"
246
-
247
- # @ default
248
- #: admin/settings.php:326
249
- msgid "Page parent"
250
- msgstr "Elternseite"
251
-
252
- # @ polylang
253
- #: admin/settings.php:327
254
- msgid "Page template"
255
- msgstr "Seitenvorlage"
256
-
257
- # @ polylang
258
- #: admin/settings.php:328
259
- msgid "Page order"
260
- msgstr "Reihenfolge der Seiten"
261
-
262
- # @ polylang
263
- #: admin/settings.php:329
264
- msgid "Featured image"
265
- msgstr "Vorgestelltes Bild"
266
-
267
- # @ polylang
268
- #: admin/view-tab-lang.php:21
269
- msgid "Edit language"
270
- msgstr "Sprache bearbeiten"
271
-
272
- # @ polylang
273
- #: admin/view-tab-lang.php:21 admin/view-tab-lang.php:96
274
- msgid "Add new language"
275
- msgstr "Neue Sprache hinzufügen"
276
-
277
- # @ polylang
278
- #: admin/view-tab-lang.php:37
279
- msgid "Choose a language"
280
- msgstr "Sprache auswählen"
281
-
282
- # @ polylang
283
- #: admin/view-tab-lang.php:51
284
- msgid "You can choose a language in the list or directly edit it below."
285
- msgstr ""
286
- "Du kannst eine Sprache in der Liste auswählen oder sie unten direkt "
287
- "bearbeiten."
288
-
289
- # @ polylang
290
- #: admin/table-languages.php:74 admin/view-tab-lang.php:55
291
- msgid "Full name"
292
- msgstr "Name"
293
-
294
- # @ polylang
295
- #: admin/view-tab-lang.php:57
296
- msgid "The name is how it is displayed on your site (for example: English)."
297
- msgstr ""
298
- "Dieser Name wird dann auf der Website angezeigt (beispielsweise : Deutsch)"
299
-
300
- # @ polylang
301
- #: admin/table-languages.php:75 admin/view-tab-lang.php:61
302
- msgid "Locale"
303
- msgstr "Sprachdatei"
304
-
305
- # @ polylang
306
- #: admin/view-tab-lang.php:66
307
- msgid ""
308
- "WordPress Locale for the language (for example: en_US). You will need to "
309
- "install the .mo file for this language."
310
- msgstr ""
311
- "WordPress Sprachdatei für die Sprache (beispielweise : de_DE). Du musst die ."
312
- "mo-Datei für diese Sprache installieren."
313
-
314
- # @ polylang
315
- #: admin/view-tab-lang.php:70
316
- msgid "Language code"
317
- msgstr "Sprachcode"
318
-
319
- # @ polylang
320
- #: admin/view-tab-lang.php:76
321
- msgid "Text direction"
322
- msgstr "Textrichtung"
323
-
324
- # @ polylang
325
- #: admin/view-tab-lang.php:80
326
- msgid "left to right"
327
- msgstr "von links nach rechts"
328
-
329
- # @ polylang
330
- #: admin/view-tab-lang.php:85
331
- msgid "right to left"
332
- msgstr "von rechts nach links"
333
-
334
- # @ polylang
335
- #: admin/view-tab-lang.php:87
336
- msgid "Choose the text direction for the language"
337
- msgstr "Wählen Sie die Textrichtung für die Sprache aus"
338
-
339
- # @ polylang
340
- #: admin/table-languages.php:77 admin/view-tab-lang.php:91
341
- msgid "Order"
342
- msgstr "Reihenfolge"
343
-
344
- # @ polylang
345
- #: admin/view-tab-lang.php:93
346
- msgid "Position of the language in the language switcher"
347
- msgstr "Position der Sprache im Sprachenumschalter"
348
-
349
- # @ polylang
350
- #: admin/admin-nav-menu.php:54 admin/admin-nav-menu.php:92
351
- #: admin/admin-nav-menu.php:95 admin/admin-nav-menu.php:126
352
- #: admin/admin-nav-menu.php:188 install/upgrade.php:301
353
- msgid "Language switcher"
354
- msgstr "Sprachenumschalter"
355
-
356
- # @ polylang
357
- #: admin/view-tab-strings.php:8
358
- msgid "Search translations"
359
- msgstr "Übersetzungen suchen"
360
-
361
- # @ polylang
362
- #: admin/view-tab-strings.php:11
363
- msgid "Clean strings translation database"
364
- msgstr "Datenbank der übersetzten Textbausteine säubern"
365
-
366
- # @ polylang
367
- #: admin/view-tab-settings.php:14
368
- msgid "Default language"
369
- msgstr "Standardsprache"
370
-
371
- # @ polylang
372
- #: admin/view-tab-settings.php:29
373
- msgid ""
374
- "There are posts, pages, categories or tags without language set. Do you want "
375
- "to set them all to default language ?"
376
- msgstr ""
377
- "Es gibt Artikel, Seite, Kategorien oder Schlagwörter ohne Spracheinstellung. "
378
- "Willst du alle auf die Standardsprache einstellen ?"
379
-
380
- # @ polylang
381
- #: admin/view-tab-settings.php:149
382
- msgid "Detect browser language"
383
- msgstr "Browsersprache erkennen"
384
-
385
- # @ polylang
386
- #: admin/view-tab-settings.php:155
387
- msgid ""
388
- "When the front page is visited, set the language according to the browser "
389
- "preference"
390
- msgstr ""
391
- "Beim Besuch der Startseite erscheint sie in der Standardsprache des Browsers"
392
-
393
- # @ polylang
394
- #: admin/view-tab-settings.php:37
395
- msgid "URL modifications"
396
- msgstr "URL-Veränderungen"
397
-
398
- # @ polylang
399
- #: admin/view-tab-settings.php:93
400
- msgid "Hide URL language information for default language"
401
- msgstr "URL Informationen für die Standardsprache verstecken"
402
-
403
- # @ polylang
404
- #: admin/view-tab-settings.php:162
405
- msgid "Media"
406
- msgstr "Medien"
407
-
408
- # @ polylang
409
- #: admin/view-tab-settings.php:168
410
- msgid "Activate languages and translations for media"
411
- msgstr "Sprachen und Übersetzungen für Medien aktivieren"
412
-
413
- #: admin/view-tab-settings.php:215
414
- msgid "Synchronization"
415
- msgstr "Synchronisierung"
416
-
417
- # @ polylang
418
- #: admin/view-tab-settings.php:176
419
- msgid "Custom post types"
420
- msgstr "Benutzerdefinierte Artikeltypen"
421
-
422
- # @ polylang
423
- #: admin/view-tab-settings.php:189
424
- msgid "Activate languages and translations for custom post types."
425
- msgstr ""
426
- "Sprachen und Übersetzungen für benutzerdefinierte Artikeltypen aktivieren"
427
-
428
- # @ polylang
429
- #: admin/view-tab-settings.php:196
430
- msgid "Custom taxonomies"
431
- msgstr "Benutzerdefinierte Taxonomien"
432
-
433
- # @ polylang
434
- #: admin/view-tab-settings.php:209
435
- msgid "Activate languages and translations for custom taxonomies."
436
- msgstr ""
437
- "Sprachen und Übersetzungen für benutzerdefinierte Taxonomien aktivieren"
438
-
439
- # @ polylang
440
- #: admin/admin-filters-post.php:433 admin/admin-filters-term.php:642
441
- #: admin/table-languages.php:54 admin/view-translations-media.php:21
442
- msgid "Edit"
443
- msgstr "Bearbeiten"
444
-
445
- # @ polylang
446
- #: admin/table-languages.php:60 admin/table-string.php:168
447
- msgid "Delete"
448
- msgstr "Löschen"
449
-
450
- # @ polylang
451
- #: admin/table-languages.php:76
452
- msgid "Code"
453
- msgstr "Code"
454
-
455
- # @ polylang
456
- #: admin/table-languages.php:78
457
- msgid "Flag"
458
- msgstr "Fahne"
459
-
460
- # @ polylang
461
- #: admin/table-languages.php:79
462
- msgid "Posts"
463
- msgstr "Artikel"
464
-
465
- # @ polylang
466
- #: admin/table-string.php:110
467
- msgid "Name"
468
- msgstr "Name"
469
-
470
- # @ polylang
471
- #: admin/table-string.php:111
472
- msgid "String"
473
- msgstr "Zeichenfolge"
474
-
475
- # @ polylang
476
- #: admin/view-translations-media.php:30 admin/view-translations-post.php:21
477
- #: admin/view-translations-term.php:30
478
- msgid "Add new"
479
- msgstr "Hinzufügen"
480
-
481
- # @ polylang
482
- #: include/widget-languages.php:16
483
- msgid "Language Switcher"
484
- msgstr "Sprachenumschalter"
485
-
486
- # @ polylang
487
- #: include/widget-languages.php:16
488
- msgid "Displays a language switcher"
489
- msgstr "Zeigt einen Sprachenumschalter"
490
-
491
- # @ polylang
492
- #: include/widget-languages.php:75
493
- msgid "Title:"
494
- msgstr "Titel :"
495
-
496
- # @ polylang
497
- #. translators: plugin header field 'Description'
498
- #: polylang.php:0
499
- msgid "Adds multilingual capability to WordPress"
500
- msgstr "Ergänzt WordPress um Mehrsprachigkeit"
501
-
502
- # @ polylang
503
- #: install/install.php:24
504
- #, php-format
505
- msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
506
- msgstr "Sie benutzen WordPress %s. Polylang benötigt mindestens WordPress %s."
507
-
508
- # @ polylang
509
- #: install/upgrade.php:76
510
- msgid ""
511
- "Polylang has been deactivated because you upgraded from a too old version."
512
- msgstr ""
513
- "Polylang wurde deaktiviert, weil Sie von einer zu alten Version aktualisiert "
514
- "haben."
515
-
516
- # @ polylang
517
- #: install/upgrade.php:78
518
- #, php-format
519
- msgid "Please upgrade first to %s before ugrading to %s."
520
- msgstr ""
521
- "Bitte aktualisieren Sie zuerst nach %s bevor Sie nach %s aktualisieren."
522
-
523
- # @ polylang
524
- #: admin/table-string.php:109
525
- msgid "Group"
526
- msgstr "Gruppe"
527
-
528
- # @ polylang
529
- #: admin/table-string.php:187
530
- msgid "View all groups"
531
- msgstr "Alle Gruppen anzeigen"
532
-
533
- # @ polylang
534
- #: admin/table-languages.php:59
535
- msgid "You are about to permanently delete this language. Are you sure?"
536
- msgstr "Sie sind dabei, diese Sprache definitiv zu löschen. Sind Sie sicher?"
537
-
538
- # @ polylang
539
- #: admin/view-tab-strings.php:12
540
- msgid ""
541
- "Use this to remove unused strings from database, for example after a plugin "
542
- "has been uninstalled."
543
- msgstr ""
544
- "Verwenden Sie diese Option, um nicht verwendete Zeichenfolgen aus der "
545
- "Datenbank zu entfernen, beispielsweise nachdem ein Plugin deinstalliert "
546
- "wurde."
547
-
548
- # @ polylang
549
- #: admin/view-tab-settings.php:226
550
- msgid ""
551
- "The synchronization options allow to maintain exact same values (or "
552
- "translations in the case of taxonomies and page parent) of meta content "
553
- "between the translations of a post or page."
554
- msgstr ""
555
- "Die Synchronisierungs-Optionen ermöglichen es, exakt gleiche Werte (oder "
556
- "Übersetzungen im Falle von Taxonomien und Elternseiten) der Metainhalte "
557
- "beizubehalten zwischen den Übersetzungen eines Artikels oder einer Seite."
558
-
559
- # @ polylang
560
- #: admin/admin-model.php:248
561
- msgid "The language code contains invalid characters"
562
- msgstr "Die Sprachenkodierung enthält ungültige Zeichen"
563
-
564
- # @ polylang
565
- #: admin/view-tab-settings.php:43
566
- msgid "The language is set from content"
567
- msgstr "Die Sprache ist von verschiedenen Domains aus gesetzt"
568
-
569
- # @ polylang
570
- #: admin/view-tab-settings.php:46
571
- msgid "Posts, pages, categories and tags urls are not modified."
572
- msgstr ""
573
- "Die URLs von Artikeln, Seiten, Kategorien und Tags werden nicht geändert."
574
-
575
- # @ polylang
576
- #: admin/view-tab-settings.php:51
577
- msgid "The language is set from the directory name in pretty permalinks"
578
- msgstr ""
579
- "Die Sprache wird aus dem Verzeichnis-Namen in wohlgeformte Permalinks "
580
- "eingestellt"
581
-
582
- # @ polylang
583
- #: admin/view-tab-settings.php:54 admin/view-tab-settings.php:63
584
- #: admin/view-tab-settings.php:110 admin/view-tab-settings.php:119
585
- msgid "Example:"
586
- msgstr "Beispiel:"
587
-
588
- # @ polylang
589
- #: admin/view-tab-settings.php:60
590
- msgid "The language is set from the subdomain name in pretty permalinks"
591
- msgstr ""
592
- "Die Sprache wird aus dem Subdomain-Namen in wohlgeformte Permalinks "
593
- "eingestellt"
594
-
595
- # @ polylang
596
- #: admin/view-tab-settings.php:69
597
- msgid "The language is set from different domains"
598
- msgstr "Die Sprache wird durch verschiedene Domains eingestellt"
599
-
600
- # @ polylang
601
- #: admin/view-tab-settings.php:107
602
- msgid "Remove /language/ in pretty permalinks"
603
- msgstr "/sprache/ aus wohlgeformten Permalinks entfernen"
604
-
605
- # @ polylang
606
- #: admin/view-tab-settings.php:116
607
- msgid "Keep /language/ in pretty permalinks"
608
- msgstr "/sprache/ in wohlgeformten Permalinks beibehalten"
609
-
610
- # @ polylang
611
- #: admin/view-tab-settings.php:131
612
- msgid ""
613
- "The front page url contains the language code instead of the page name or "
614
- "page id"
615
- msgstr ""
616
- "Die URL der Titelseite enthält den Sprachcode statt dem Seiten-Namen oder "
617
- "der Seiten-ID"
618
-
619
- # @ polylang
620
- #: admin/view-tab-settings.php:139
621
- #, php-format
622
- msgid "Example: %s instead of %s"
623
- msgstr "Beispiel: %s anstatt %s"
624
-
625
- # @ polylang
626
- #: admin/admin-model.php:38
627
- msgid "Impossible to add the language."
628
- msgstr "Unmöglich, die Sprache hinzuzufügen."
629
-
630
- # @ polylang
631
- #: admin/admin-model.php:66
632
- msgid "Language added."
633
- msgstr " Sprache hinzugefügt."
634
-
635
- # @ polylang
636
- #: admin/admin-model.php:146
637
- msgid "Language deleted."
638
- msgstr "Sprache gelöscht."
639
-
640
- # @ polylang
641
- #: admin/admin-model.php:227
642
- msgid "Language updated."
643
- msgstr "Sprache aktualisiert."
644
-
645
- # @ polylang
646
- #: admin/settings.php:239
647
- msgid "Translations updated."
648
- msgstr "Übersetzungen aktualisiert."
649
-
650
- # @ polylang
651
- #: admin/view-tab-lang.php:72
652
- msgid "Language code - preferably 2-letters ISO 639-1 (for example: en)"
653
- msgstr "Sprachcode - vorzugsweise 2 Buchstaben ISO 639-1 (zum Beispiel: de)"
654
-
655
- # @ polylang
656
- #: admin/admin-filters.php:203
657
- msgid "The chosen static front page must be translated in all languages."
658
- msgstr ""
659
- "Die gewählte statische Startseite muss in alle Sprachen übersetzt werden."
660
-
661
- # @ polylang
662
- #: admin/admin-strings.php:60
663
- msgid "Widget text"
664
- msgstr "Text des Widgets"
665
-
666
- # @ polylang
667
- #: admin/settings.php:52
668
- msgid "Recommended plugins"
669
- msgstr "Empfohlene Plugins"
670
-
671
- # @ polylang
672
- #: admin/view-tab-settings.php:51
673
- msgid "The language is set from the code in the URL"
674
- msgstr "Die Sprache wird über dem Code in der URL übermittelt"
675
-
676
- # @ polylang
677
- #: include/switcher.php:26
678
- msgid "Hides languages with no translation"
679
- msgstr "Sprachen ohne Übersetzung werden nicht angezeit"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/polylang-pt_BR.mo DELETED
Binary file
languages/polylang-pt_BR.po DELETED
@@ -1,670 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Polylang v1.6beta1\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2015-02-18 14:51-0300\n"
7
- "Last-Translator: Henrique Vianna <hvianna@gmail.com>\n"
8
- "Language-Team: Henrique Vianna <contato@henriquevianna.com>\n"
9
- "Language: pt_BR\n"
10
- "MIME-Version: 1.0\n"
11
- "Content-Type: text/plain; charset=UTF-8\n"
12
- "Content-Transfer-Encoding: 8bit\n"
13
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
16
- "_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-Textdomain-Support: yes\n"
19
- "X-Generator: Poedit 1.7.1\n"
20
- "X-Poedit-SearchPath-0: .\n"
21
-
22
- # @ polylang
23
- #: admin/view-about.php:3
24
- #, php-format
25
- msgid ""
26
- "Polylang is provided with an extensive %sdocumentation%s (in English only). "
27
- "It includes information on how to set up your multilingual site and use it "
28
- "on a daily basis, a FAQ, as well as a documentation for programmers to adapt "
29
- "their plugins and themes."
30
- msgstr ""
31
- "Polylang é fornecido com uma extensa %sdocumentação%s (somente em inglês). "
32
- "Estão incluídas informações para configurar seu site multilíngue e usá-lo "
33
- "diariamente, uma FAQ, bem como uma documentação para programadores adaptarem "
34
- "seus plugins e temas."
35
-
36
- # @ polylang
37
- #: admin/view-about.php:9
38
- #, php-format
39
- msgid ""
40
- "You will also find useful information in the %ssupport forum%s. However "
41
- "don't forget to make a search before posting a new topic."
42
- msgstr ""
43
- "Você também encontrará informações úteis no %sfórum de suporte%s. Entretanto "
44
- "não esqueça de fazer uma busca antes de postar um novo tópico."
45
-
46
- # @ polylang
47
- #: admin/view-about.php:16
48
- #, php-format
49
- msgid ""
50
- "Polylang is free of charge and is released under the same license as "
51
- "WordPress, the %sGPL%s."
52
- msgstr ""
53
- "Polylang é gratuito e distribuído sob a mesma licença que o WordPress, a "
54
- "%sGPL%s."
55
-
56
- # @ polylang
57
- #: admin/view-about.php:22
58
- #, php-format
59
- msgid "If you wonder how you can help the project, just %sread this%s."
60
- msgstr "Se você quer saber como pode ajudar o projeto, %sleia isto%s."
61
-
62
- # @ polylang
63
- #: admin/view-about.php:27
64
- msgid ""
65
- "Finally if you like this plugin or if it helps your business, donations to "
66
- "the author are greatly appreciated."
67
- msgstr ""
68
- "Finalmente, se você gosta deste plugin ou se ele ajuda seus negócios, "
69
- "doações para o autor são muito apreciadas."
70
-
71
- # @ polylang
72
- #: admin/admin-filters-post.php:115 admin/admin.php:90 admin/settings.php:70
73
- #: admin/settings.php:97 include/model.php:561
74
- msgid "Languages"
75
- msgstr "Idiomas"
76
-
77
- # @ polylang
78
- #: include/switcher.php:22
79
- msgid "Displays language names"
80
- msgstr "Exibir nomes de idiomas"
81
-
82
- # @ polylang
83
- #: include/switcher.php:23
84
- msgid "Displays flags"
85
- msgstr "Exibir bandeiras"
86
-
87
- # @ polylang
88
- #: include/switcher.php:24
89
- msgid "Forces link to front page"
90
- msgstr "Forçar link para a página inicial"
91
-
92
- # @ polylang
93
- #: include/switcher.php:25
94
- msgid "Hides the current language"
95
- msgstr "Ocultar o idioma atual"
96
-
97
- # @ polylang
98
- #: include/switcher.php:30
99
- msgid "Displays as dropdown"
100
- msgstr "Exibir como lista suspensa"
101
-
102
- # @ polylang
103
- #: admin/admin.php:267
104
- msgid "Filters content by language"
105
- msgstr "Filtra conteúdo por idioma"
106
-
107
- # @ polylang
108
- #: admin/admin.php:258
109
- msgid "Show all languages"
110
- msgstr "Exibir todos os idiomas"
111
-
112
- # @ polylang
113
- #: admin/admin-filters-columns.php:140 admin/admin-filters-columns.php:230
114
- msgid "Add new translation"
115
- msgstr "Adicionar nova tradução"
116
-
117
- # @ polylang
118
- #: admin/admin-filters-columns.php:173 admin/admin-filters-media.php:55
119
- #: admin/admin-filters-post.php:141 admin/admin-filters-term.php:75
120
- #: admin/admin-filters-term.php:122 include/model.php:562
121
- msgid "Language"
122
- msgstr "Idioma"
123
-
124
- # @ polylang
125
- #: admin/table-string.php:112 admin/view-translations-media.php:5
126
- #: admin/view-translations-post.php:5 admin/view-translations-term.php:6
127
- #: admin/view-translations-term.php:11
128
- msgid "Translations"
129
- msgstr "Traduções"
130
-
131
- # @ polylang
132
- #: admin/admin-filters-term.php:82 admin/admin-filters-term.php:130
133
- msgid "Sets the language"
134
- msgstr "Define o idioma"
135
-
136
- # @ polylang
137
- #: admin/admin-filters.php:52
138
- msgid "The widget is displayed for:"
139
- msgstr "O widget é exibido para:"
140
-
141
- # @ polylang
142
- #: admin/admin-filters.php:55 include/model.php:563
143
- msgid "All languages"
144
- msgstr "Todos os idiomas"
145
-
146
- # @ polylang
147
- #: admin/admin-filters.php:123
148
- msgid "Admin language"
149
- msgstr "Idioma do admin"
150
-
151
- # @ polylang
152
- #: admin/admin-filters.php:126
153
- msgid "WordPress default"
154
- msgstr "Padrão do WordPress"
155
-
156
- # @ polylang
157
- #: admin/admin.php:167 admin/settings.php:102
158
- msgid "Settings"
159
- msgstr "Configurações"
160
-
161
- # @ polylang
162
- #: admin/admin-filters.php:160 admin/admin-filters.php:169
163
- msgid "Upgrading language files&#8230;"
164
- msgstr "Atualizando arquivos de idioma&#8230;"
165
-
166
- # @ polylang
167
- #: admin/settings.php:62
168
- msgid "About Polylang"
169
- msgstr "Sobre Polylang"
170
-
171
- # @ polylang
172
- #: admin/settings.php:78
173
- msgid "Strings translations"
174
- msgstr "Traduções de textos"
175
-
176
- # @ polylang
177
- #: admin/settings.php:101
178
- msgid "Strings translation"
179
- msgstr "Tradução de textos"
180
-
181
- # @ polylang
182
- #: admin/admin-model.php:244
183
- msgid "Enter a valid WordPress locale"
184
- msgstr "Informe um locale válido do WordPress"
185
-
186
- # @ polylang
187
- #: admin/admin-model.php:252
188
- msgid "The language code must be unique"
189
- msgstr "O código do idioma deve ser único"
190
-
191
- # @ polylang
192
- #: admin/admin-model.php:256
193
- msgid "The language must have a name"
194
- msgstr "O idioma deve ter um nome"
195
-
196
- # @ polylang
197
- #: admin/admin.php:367 admin/settings.php:180
198
- msgid ""
199
- "The language was created, but the WordPress language file was not "
200
- "downloaded. Please install it manually."
201
- msgstr ""
202
- "O idioma foi criado, mas o arquivo de idioma do WordPress não foi baixado. "
203
- "Por favor instale-o manualmente."
204
-
205
- # @ polylang
206
- #: admin/admin-strings.php:59
207
- msgid "Widget title"
208
- msgstr "Título do widget"
209
-
210
- # @ polylang
211
- #: admin/settings.php:319
212
- msgid "Taxonomies"
213
- msgstr "Taxonomias"
214
-
215
- # @ polylang
216
- #: admin/settings.php:320
217
- msgid "Custom fields"
218
- msgstr "Campos personalizados"
219
-
220
- # @ polylang
221
- #: admin/settings.php:321
222
- msgid "Comment status"
223
- msgstr "Status de comentários"
224
-
225
- # @ polylang
226
- #: admin/settings.php:322
227
- msgid "Ping status"
228
- msgstr "Status de ping"
229
-
230
- # @ polylang
231
- #: admin/settings.php:323
232
- msgid "Sticky posts"
233
- msgstr "Posts fixos"
234
-
235
- # @ polylang
236
- #: admin/settings.php:324
237
- msgid "Published date"
238
- msgstr "Data de publicação"
239
-
240
- # @ polylang
241
- #: admin/settings.php:325
242
- msgid "Post format"
243
- msgstr "Formato de post"
244
-
245
- # @ polylang
246
- #: admin/settings.php:326
247
- msgid "Page parent"
248
- msgstr "Página mãe"
249
-
250
- # @ polylang
251
- #: admin/settings.php:327
252
- msgid "Page template"
253
- msgstr "Modelo de página"
254
-
255
- # @ polylang
256
- #: admin/settings.php:328
257
- msgid "Page order"
258
- msgstr "Ordem de página"
259
-
260
- # @ polylang
261
- #: admin/settings.php:329
262
- msgid "Featured image"
263
- msgstr "Imagem destacada"
264
-
265
- # @ polylang
266
- #: admin/view-tab-lang.php:21
267
- msgid "Edit language"
268
- msgstr "Editar idioma"
269
-
270
- # @ polylang
271
- #: admin/view-tab-lang.php:21 admin/view-tab-lang.php:96
272
- msgid "Add new language"
273
- msgstr "Adicionar novo idioma"
274
-
275
- # @ polylang
276
- #: admin/view-tab-lang.php:37
277
- msgid "Choose a language"
278
- msgstr "Escolha um idioma"
279
-
280
- # @ polylang
281
- #: admin/view-tab-lang.php:51
282
- msgid "You can choose a language in the list or directly edit it below."
283
- msgstr "Você pode escolher um idioma da lista ou editá-lo diretamente abaixo."
284
-
285
- # @ polylang
286
- #: admin/table-languages.php:74 admin/view-tab-lang.php:55
287
- msgid "Full name"
288
- msgstr "Nome completo"
289
-
290
- # @ polylang
291
- #: admin/view-tab-lang.php:57
292
- msgid "The name is how it is displayed on your site (for example: English)."
293
- msgstr "O nome como é exibido em seu site (por exemplo: English)."
294
-
295
- # @ polylang
296
- #: admin/table-languages.php:75 admin/view-tab-lang.php:61
297
- msgid "Locale"
298
- msgstr "Locale"
299
-
300
- # @ polylang
301
- #: admin/view-tab-lang.php:66
302
- msgid ""
303
- "WordPress Locale for the language (for example: en_US). You will need to "
304
- "install the .mo file for this language."
305
- msgstr ""
306
- "Locale do WordPress para o idioma (por exemplo: en_US). Você precisará "
307
- "instalar o arquivo .mo para esse idioma."
308
-
309
- # @ polylang
310
- #: admin/view-tab-lang.php:70
311
- msgid "Language code"
312
- msgstr "Código do idioma"
313
-
314
- # @ polylang
315
- #: admin/view-tab-lang.php:76
316
- msgid "Text direction"
317
- msgstr "Direção do texto"
318
-
319
- # @ polylang
320
- #: admin/view-tab-lang.php:80
321
- msgid "left to right"
322
- msgstr "esquerda para direita"
323
-
324
- # @ polylang
325
- #: admin/view-tab-lang.php:85
326
- msgid "right to left"
327
- msgstr "direita para esquerda"
328
-
329
- # @ polylang
330
- #: admin/view-tab-lang.php:87
331
- msgid "Choose the text direction for the language"
332
- msgstr "Escolha a direção do texto para o idioma"
333
-
334
- # @ polylang
335
- #: admin/table-languages.php:77 admin/view-tab-lang.php:91
336
- msgid "Order"
337
- msgstr "Ordem"
338
-
339
- # @ polylang
340
- #: admin/view-tab-lang.php:93
341
- msgid "Position of the language in the language switcher"
342
- msgstr "Posição do idioma no seletor de idioma"
343
-
344
- # @ polylang
345
- #: admin/admin-nav-menu.php:54 admin/admin-nav-menu.php:92
346
- #: admin/admin-nav-menu.php:95 admin/admin-nav-menu.php:126
347
- #: admin/admin-nav-menu.php:188 install/upgrade.php:301
348
- msgid "Language switcher"
349
- msgstr "Seletor de idioma"
350
-
351
- # @ polylang
352
- #: admin/view-tab-strings.php:8
353
- msgid "Search translations"
354
- msgstr "Buscar traduções"
355
-
356
- # @ polylang
357
- #: admin/view-tab-strings.php:11
358
- msgid "Clean strings translation database"
359
- msgstr "Limpar base de dados de traduções"
360
-
361
- # @ polylang
362
- #: admin/view-tab-settings.php:14
363
- msgid "Default language"
364
- msgstr "Idioma padrão"
365
-
366
- # @ polylang
367
- #: admin/view-tab-settings.php:29
368
- msgid ""
369
- "There are posts, pages, categories or tags without language set. Do you want "
370
- "to set them all to default language ?"
371
- msgstr ""
372
- "Existem posts, páginas, categorias ou tags sem um idioma definido. Deseja "
373
- "configurar todos para o idioma padrão?"
374
-
375
- # @ polylang
376
- #: admin/view-tab-settings.php:149
377
- msgid "Detect browser language"
378
- msgstr "Detectar idioma do navegador"
379
-
380
- # @ polylang
381
- #: admin/view-tab-settings.php:155
382
- msgid ""
383
- "When the front page is visited, set the language according to the browser "
384
- "preference"
385
- msgstr ""
386
- "Ao visitar a página inicial, definir o idioma de acordo com as preferências "
387
- "do navegador"
388
-
389
- # @ polylang
390
- #: admin/view-tab-settings.php:37
391
- msgid "URL modifications"
392
- msgstr "Modificações de URL"
393
-
394
- # @ polylang
395
- #: admin/view-tab-settings.php:93
396
- msgid "Hide URL language information for default language"
397
- msgstr "Não exibir informação de idioma no URL para o idioma padrão"
398
-
399
- # @ polylang
400
- #: admin/view-tab-settings.php:162
401
- msgid "Media"
402
- msgstr "Mídia"
403
-
404
- # @ polylang
405
- #: admin/view-tab-settings.php:168
406
- msgid "Activate languages and translations for media"
407
- msgstr "Ativar idiomas e traduções para mídia"
408
-
409
- # @ polylang
410
- #: admin/view-tab-settings.php:215
411
- msgid "Synchronization"
412
- msgstr "Sincronização"
413
-
414
- # @ polylang
415
- #: admin/view-tab-settings.php:176
416
- msgid "Custom post types"
417
- msgstr "Tipos de post personalizados"
418
-
419
- # @ polylang
420
- #: admin/view-tab-settings.php:189
421
- msgid "Activate languages and translations for custom post types."
422
- msgstr "Ativar idiomas e traduções para tipos de post personalizados."
423
-
424
- # @ polylang
425
- #: admin/view-tab-settings.php:196
426
- msgid "Custom taxonomies"
427
- msgstr "Taxonomias personalizadas"
428
-
429
- # @ polylang
430
- #: admin/view-tab-settings.php:209
431
- msgid "Activate languages and translations for custom taxonomies."
432
- msgstr "Habilita idiomas e traduções para taxonomias personalizadas."
433
-
434
- # @ polylang
435
- #: admin/admin-filters-post.php:433 admin/admin-filters-term.php:642
436
- #: admin/table-languages.php:54 admin/view-translations-media.php:21
437
- msgid "Edit"
438
- msgstr "Editar"
439
-
440
- # @ polylang
441
- #: admin/table-languages.php:60 admin/table-string.php:168
442
- msgid "Delete"
443
- msgstr "Excluir"
444
-
445
- # @ polylang
446
- #: admin/table-languages.php:76
447
- msgid "Code"
448
- msgstr "Código"
449
-
450
- # @ polylang
451
- #: admin/table-languages.php:78
452
- msgid "Flag"
453
- msgstr "Bandeira"
454
-
455
- # @ polylang
456
- #: admin/table-languages.php:79
457
- msgid "Posts"
458
- msgstr "Posts"
459
-
460
- # @ polylang
461
- #: admin/table-string.php:110
462
- msgid "Name"
463
- msgstr "Nome"
464
-
465
- # @ polylang
466
- #: admin/table-string.php:111
467
- msgid "String"
468
- msgstr "Texto"
469
-
470
- # @ polylang
471
- #: admin/view-translations-media.php:30 admin/view-translations-post.php:21
472
- #: admin/view-translations-term.php:30
473
- msgid "Add new"
474
- msgstr "Adicionar novo"
475
-
476
- # @ polylang
477
- #: include/widget-languages.php:16
478
- msgid "Language Switcher"
479
- msgstr "Seletor de Idioma"
480
-
481
- # @ polylang
482
- #: include/widget-languages.php:16
483
- msgid "Displays a language switcher"
484
- msgstr "Exibe um seletor de idioma"
485
-
486
- # @ polylang
487
- #: include/widget-languages.php:75
488
- msgid "Title:"
489
- msgstr "Título:"
490
-
491
- # @ polylang
492
- #. translators: plugin header field 'Description'
493
- #: polylang.php:0
494
- msgid "Adds multilingual capability to WordPress"
495
- msgstr "Adiciona capacidade multilíngue ao WordPress"
496
-
497
- # @ polylang
498
- #: install/install.php:24
499
- #, php-format
500
- msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
501
- msgstr ""
502
- "Você está usando o WordPress %s. Polylang requer pelo menos o WordPress %s."
503
-
504
- # @ polylang
505
- #: install/upgrade.php:76
506
- msgid ""
507
- "Polylang has been deactivated because you upgraded from a too old version."
508
- msgstr ""
509
- "Polylang foi desativado porque você fez atualização de uma versão muito "
510
- "antiga."
511
-
512
- # @ polylang
513
- #: install/upgrade.php:78
514
- #, php-format
515
- msgid "Please upgrade first to %s before ugrading to %s."
516
- msgstr "Por favor atualize primeiro para %s antes de atualizar para %s."
517
-
518
- # @ polylang
519
- #: admin/table-string.php:109
520
- msgid "Group"
521
- msgstr "Grupo"
522
-
523
- # @ polylang
524
- #: admin/table-string.php:187
525
- msgid "View all groups"
526
- msgstr "Ver todos os grupos"
527
-
528
- # @ polylang
529
- #: admin/table-languages.php:59
530
- msgid "You are about to permanently delete this language. Are you sure?"
531
- msgstr "Você está prestes a excluir permanentemente esse idioma. Tem certeza?"
532
-
533
- # @ polylang
534
- #: admin/view-tab-strings.php:12
535
- msgid ""
536
- "Use this to remove unused strings from database, for example after a plugin "
537
- "has been uninstalled."
538
- msgstr ""
539
- "Use isto para remover da base de dados textos não utilizados, por exemplo "
540
- "após desinstalar um plugin."
541
-
542
- # @ polylang
543
- #: admin/view-tab-settings.php:226
544
- msgid ""
545
- "The synchronization options allow to maintain exact same values (or "
546
- "translations in the case of taxonomies and page parent) of meta content "
547
- "between the translations of a post or page."
548
- msgstr ""
549
- "As opções de sincronização permitem manter exatamente os mesmos valores (ou "
550
- "traduções, no caso de taxonomias e página mãe) de meta conteúdo entre as "
551
- "traduções de um post ou página."
552
-
553
- # @ polylang
554
- #: admin/admin-model.php:248
555
- msgid "The language code contains invalid characters"
556
- msgstr "O código do idioma contém caracteres inválidos"
557
-
558
- # @ polylang
559
- #: admin/view-tab-settings.php:43
560
- msgid "The language is set from content"
561
- msgstr "O idioma é definido pelo conteúdo"
562
-
563
- # @ polylang
564
- #: admin/view-tab-settings.php:46
565
- msgid "Posts, pages, categories and tags urls are not modified."
566
- msgstr "URLs de posts, páginas, categorias e tags não são modificados."
567
-
568
- # @ polylang
569
- #: admin/view-tab-settings.php:51
570
- msgid "The language is set from the directory name in pretty permalinks"
571
- msgstr "O idioma é definido pelo nome de diretório nos links permanentes"
572
-
573
- # @ polylang
574
- #: admin/view-tab-settings.php:54 admin/view-tab-settings.php:63
575
- #: admin/view-tab-settings.php:110 admin/view-tab-settings.php:119
576
- msgid "Example:"
577
- msgstr "Exemplo:"
578
-
579
- # @ polylang
580
- #: admin/view-tab-settings.php:60
581
- msgid "The language is set from the subdomain name in pretty permalinks"
582
- msgstr "O idioma é definido pelo nome de subdomínio nos links permanentes"
583
-
584
- # @ polylang
585
- #: admin/view-tab-settings.php:69
586
- msgid "The language is set from different domains"
587
- msgstr "O idioma é definido por domínios diferentes"
588
-
589
- # @ polylang
590
- #: admin/view-tab-settings.php:107
591
- msgid "Remove /language/ in pretty permalinks"
592
- msgstr "Remover /language/ dos links permanentes"
593
-
594
- # @ polylang
595
- #: admin/view-tab-settings.php:116
596
- msgid "Keep /language/ in pretty permalinks"
597
- msgstr "Manter /language/ nos links permanentes"
598
-
599
- # @ polylang
600
- #: admin/view-tab-settings.php:131
601
- msgid ""
602
- "The front page url contains the language code instead of the page name or "
603
- "page id"
604
- msgstr ""
605
- "O URL da página inicial contém o código do idioma ao invés do nome ou id da "
606
- "página"
607
-
608
- # @ polylang
609
- #: admin/view-tab-settings.php:139
610
- #, php-format
611
- msgid "Example: %s instead of %s"
612
- msgstr "Exemplo: %s ao invés de %s"
613
-
614
- # @ polylang
615
- #: admin/admin-model.php:38
616
- msgid "Impossible to add the language."
617
- msgstr "Impossível adicionar o idioma."
618
-
619
- # @ polylang
620
- #: admin/admin-model.php:66
621
- msgid "Language added."
622
- msgstr "Idioma adicionado."
623
-
624
- # @ polylang
625
- #: admin/admin-model.php:146
626
- msgid "Language deleted."
627
- msgstr "Idioma excluído."
628
-
629
- # @ polylang
630
- #: admin/admin-model.php:227
631
- msgid "Language updated."
632
- msgstr "Idioma atualizado."
633
-
634
- # @ polylang
635
- #: admin/settings.php:239
636
- msgid "Translations updated."
637
- msgstr "Traduções atualizadas."
638
-
639
- # @ polylang
640
- #: admin/view-tab-lang.php:72
641
- msgid "Language code - preferably 2-letters ISO 639-1 (for example: en)"
642
- msgstr ""
643
- "Código do idioma - de preferência 2 letras padrão ISO 639-1 (por exemplo: en)"
644
-
645
- # @ polylang
646
- #: admin/admin-filters.php:203
647
- msgid "The chosen static front page must be translated in all languages."
648
- msgstr ""
649
- "A página inicial estática selecionada deve ser traduzida para todos os "
650
- "idiomas."
651
-
652
- # @ polylang
653
- #: admin/admin-strings.php:60
654
- msgid "Widget text"
655
- msgstr "Texto do widget"
656
-
657
- # @ polylang
658
- #: admin/settings.php:52
659
- msgid "Recommended plugins"
660
- msgstr "Plugins recomendados"
661
-
662
- # @ polylang
663
- #: admin/view-tab-settings.php:51
664
- msgid "The language is set from the code in the URL"
665
- msgstr "O idioma é definido pelo código no URL"
666
-
667
- # @ polylang
668
- #: include/switcher.php:26
669
- msgid "Hides languages with no translation"
670
- msgstr "Oculta idiomas sem tradução"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lingotek/lingotek.php CHANGED
@@ -11,12 +11,13 @@ if ( ! defined( 'ABSPATH' ) ) {
11
  */
12
  class PLL_Lingotek {
13
  const LINGOTEK = 'lingotek-translation/lingotek.php';
 
14
  /*
15
- * constructor
16
  *
17
  * @since 1.7.7
18
  */
19
- public function __construct() {
20
  $options = get_option( 'polylang' );
21
 
22
  // the Lingotek tab
@@ -290,4 +291,4 @@ class PLL_Lingotek {
290
  }
291
  }
292
 
293
- add_action( 'admin_init', create_function( '', 'new PLL_Lingotek();' ) );
11
  */
12
  class PLL_Lingotek {
13
  const LINGOTEK = 'lingotek-translation/lingotek.php';
14
+
15
  /*
16
+ * Init
17
  *
18
  * @since 1.7.7
19
  */
20
+ public function init() {
21
  $options = get_option( 'polylang' );
22
 
23
  // the Lingotek tab
291
  }
292
  }
293
 
294
+ add_action( 'admin_init', array( new PLL_Lingotek(), 'init' ) );
modules/plugins/plugins-compat.php CHANGED
@@ -286,7 +286,7 @@ class PLL_Plugins_Compat {
286
  * @return $url
287
  */
288
  public function wpseo_canonical( $url ) {
289
- return is_front_page( $url ) ? trailingslashit( $url ) : $url;
290
  }
291
 
292
  /*
@@ -470,42 +470,56 @@ class PLL_Plugins_Compat {
470
  }
471
 
472
  /*
473
- * correspondance between WordPress locales and Facebook locales
474
- * @see http://wpcentral.io/internationalization/
475
  * @see https://www.facebook.com/translations/FacebookLocales.xml
476
  *
 
477
  * @since 1.6
478
  *
479
  * @param object $language
480
- * @return bool|string
481
  */
482
  static public function get_fb_locale( $language ) {
483
  static $facebook_locales = array(
484
  'af' => 'af_ZA',
 
 
485
  'ar' => 'ar_AR',
 
 
 
486
  'az' => 'az_AZ',
487
  'bel' => 'be_BY',
488
  'bg_BG' => 'bg_BG',
489
  'bn_BD' => 'bn_IN',
 
490
  'bs_BA' => 'bs_BA',
491
  'ca' => 'ca_ES',
492
- 'ckb' => 'ku_TR',
 
 
493
  'cs_CZ' => 'cs_CZ',
494
  'cy' => 'cy_GB',
495
  'da_DK' => 'da_DK',
 
496
  'de_DE' => 'de_DE',
497
  'de_DE_formal' => 'de_DE',
498
  'el' => 'el_GR',
499
- 'en_US' => 'en_US',
 
500
  'en_GB' => 'en_GB',
 
 
 
501
  'eo' => 'eo_EO',
502
- 'es_CL' => 'es_LA',
503
- 'es_CO' => 'es_LA',
504
- 'es_MX' => 'es_LA',
 
505
  'es_PE' => 'es_LA',
506
- 'es_PR' => 'es_LA',
507
- 'es_VE' => 'es_LA',
508
  'es_ES' => 'es_ES',
 
509
  'et' => 'et_EE',
510
  'eu' => 'eu_ES',
511
  'fa_IR' => 'fa_IR',
@@ -513,11 +527,12 @@ class PLL_Plugins_Compat {
513
  'fo' => 'fo_FO',
514
  'fr_CA' => 'fr_CA',
515
  'fr_FR' => 'fr_FR',
 
516
  'fy' => 'fy_NL',
517
  'ga' => 'ga_IE',
518
  'gl_ES' => 'gl_ES',
519
  'gn' => 'gn_PY',
520
- 'gu_IN' => 'gu_IN',
521
  'he_IL' => 'he_IL',
522
  'hi_IN' => 'hi_IN',
523
  'hr' => 'hr_HR',
@@ -529,21 +544,33 @@ class PLL_Plugins_Compat {
529
  'ja' => 'ja_JP',
530
  'jv_ID' => 'jv_ID',
531
  'ka_GE' => 'ka_GE',
 
532
  'kk' => 'kk_KZ',
533
  'km' => 'km_kH',
534
  'kn' => 'kn_IN',
535
  'ko_KR' => 'ko_KR',
 
 
 
 
 
 
536
  'lt_LT' => 'lt_LT',
537
  'lv' => 'lv_LV',
 
538
  'mk_MK' => 'mk_MK',
539
  'ml_IN' => 'ml_IN',
540
  'mn' => 'mn_MN',
541
  'mr' => 'mr_IN',
 
542
  'ms_MY' => 'ms_MY',
 
543
  'ne_NP' => 'ne_NP',
544
  'nb_NO' => 'nb_NO',
 
545
  'nl_NL' => 'nl_NL',
546
  'nn_NO' => 'nn_NO',
 
547
  'pa_IN' => 'pa_IN',
548
  'pl_PL' => 'pl_PL',
549
  'ps' => 'ps_AF',
@@ -551,24 +578,34 @@ class PLL_Plugins_Compat {
551
  'pt_PT' => 'pt_PT',
552
  'ps' => 'ps_AF',
553
  'ro_RO' => 'ro_RO',
 
554
  'ru_RU' => 'ru_RU',
 
555
  'si_LK' => 'si_LK',
556
  'sk_SK' => 'sk_SK',
557
  'sl_SI' => 'sl_SI',
 
558
  'sq' => 'sq_AL',
559
  'sr_RS' => 'sr_RS',
 
560
  'sv_SE' => 'sv_SE',
561
  'sw' => 'sw_KE',
 
 
562
  'ta_IN' => 'ta_IN',
563
  'te' => 'te_IN',
564
  'tg' => 'tg_TJ',
565
  'th' => 'th_TH',
566
- 'ph' => 'tl_PH',
 
567
  'tr_TR' => 'tr_TR',
 
 
568
  'uk' => 'uk_UA',
569
  'ur' => 'ur_PK',
570
  'uz_UZ' => 'uz_UZ',
571
  'vi' => 'vi_VN',
 
572
  'zh_CN' => 'zh_CN',
573
  'zh_HK' => 'zh_HK',
574
  'zh_TW' => 'zh_TW',
286
  * @return $url
287
  */
288
  public function wpseo_canonical( $url ) {
289
+ return is_front_page( $url ) && get_option( 'permalink_structure' ) ? trailingslashit( $url ) : $url;
290
  }
291
 
292
  /*
470
  }
471
 
472
  /*
473
+ * Correspondance between WordPress locales and Facebook locales
474
+ * @see https://translate.wordpress.org/
475
  * @see https://www.facebook.com/translations/FacebookLocales.xml
476
  *
477
+ * @since 1.8.1 Update the list of locales
478
  * @since 1.6
479
  *
480
  * @param object $language
481
+ * @return bool|string Facebook locale, false if no correspondance found
482
  */
483
  static public function get_fb_locale( $language ) {
484
  static $facebook_locales = array(
485
  'af' => 'af_ZA',
486
+ 'ak' => 'ak_GH',
487
+ 'am' => 'am_ET',
488
  'ar' => 'ar_AR',
489
+ 'arq' => 'ar_AR',
490
+ 'ary' => 'ar_AR',
491
+ 'as' => 'as_IN',
492
  'az' => 'az_AZ',
493
  'bel' => 'be_BY',
494
  'bg_BG' => 'bg_BG',
495
  'bn_BD' => 'bn_IN',
496
+ 'bre' => 'br_FR',
497
  'bs_BA' => 'bs_BA',
498
  'ca' => 'ca_ES',
499
+ 'ceb' => 'cx_PH',
500
+ 'ckb' => 'cb_IQ',
501
+ 'co' => 'co_FR',
502
  'cs_CZ' => 'cs_CZ',
503
  'cy' => 'cy_GB',
504
  'da_DK' => 'da_DK',
505
+ 'de_CH' => 'de_DE',
506
  'de_DE' => 'de_DE',
507
  'de_DE_formal' => 'de_DE',
508
  'el' => 'el_GR',
509
+ 'en_AU' => 'en_US',
510
+ 'en_CA' => 'en_US',
511
  'en_GB' => 'en_GB',
512
+ 'en_NZ' => 'en_US',
513
+ 'en_US' => 'en_US',
514
+ 'en_ZA' => 'en_US',
515
  'eo' => 'eo_EO',
516
+ 'es_AR' => 'es_LA',
517
+ 'es_CL' => 'es_CL',
518
+ 'es_CO' => 'es_CO',
519
+ 'es_MX' => 'es_MX',
520
  'es_PE' => 'es_LA',
 
 
521
  'es_ES' => 'es_ES',
522
+ 'es_VE' => 'es_VE',
523
  'et' => 'et_EE',
524
  'eu' => 'eu_ES',
525
  'fa_IR' => 'fa_IR',
527
  'fo' => 'fo_FO',
528
  'fr_CA' => 'fr_CA',
529
  'fr_FR' => 'fr_FR',
530
+ 'fuc' => 'ff_NG',
531
  'fy' => 'fy_NL',
532
  'ga' => 'ga_IE',
533
  'gl_ES' => 'gl_ES',
534
  'gn' => 'gn_PY',
535
+ 'gu' => 'gu_IN',
536
  'he_IL' => 'he_IL',
537
  'hi_IN' => 'hi_IN',
538
  'hr' => 'hr_HR',
544
  'ja' => 'ja_JP',
545
  'jv_ID' => 'jv_ID',
546
  'ka_GE' => 'ka_GE',
547
+ 'kin' => 'rw_RW',
548
  'kk' => 'kk_KZ',
549
  'km' => 'km_kH',
550
  'kn' => 'kn_IN',
551
  'ko_KR' => 'ko_KR',
552
+ 'ku' => 'ku_TR',
553
+ 'ky_KY' => 'ky_KG',
554
+ 'la' => 'la_Va',
555
+ 'li' => 'li_NL',
556
+ 'lin' => 'ln_CD',
557
+ 'lo' => 'lo_LA',
558
  'lt_LT' => 'lt_LT',
559
  'lv' => 'lv_LV',
560
+ 'mg_MG' => 'mg_MG',
561
  'mk_MK' => 'mk_MK',
562
  'ml_IN' => 'ml_IN',
563
  'mn' => 'mn_MN',
564
  'mr' => 'mr_IN',
565
+ 'mri' => 'mi_NZ',
566
  'ms_MY' => 'ms_MY',
567
+ 'my_MM' => 'my_MM',
568
  'ne_NP' => 'ne_NP',
569
  'nb_NO' => 'nb_NO',
570
+ 'nl_BE' => 'nl_BE',
571
  'nl_NL' => 'nl_NL',
572
  'nn_NO' => 'nn_NO',
573
+ 'ory' => 'or_IN',
574
  'pa_IN' => 'pa_IN',
575
  'pl_PL' => 'pl_PL',
576
  'ps' => 'ps_AF',
578
  'pt_PT' => 'pt_PT',
579
  'ps' => 'ps_AF',
580
  'ro_RO' => 'ro_RO',
581
+ 'roh' => 'rm_CH',
582
  'ru_RU' => 'ru_RU',
583
+ 'sa_IN' => 'sa_IN',
584
  'si_LK' => 'si_LK',
585
  'sk_SK' => 'sk_SK',
586
  'sl_SI' => 'sl_SI',
587
+ 'so_SO' => 'so_SO',
588
  'sq' => 'sq_AL',
589
  'sr_RS' => 'sr_RS',
590
+ 'srd' => 'sc_IT',
591
  'sv_SE' => 'sv_SE',
592
  'sw' => 'sw_KE',
593
+ 'szl' => 'sz_PL',
594
+ 'ta_LK' => 'ta_IN',
595
  'ta_IN' => 'ta_IN',
596
  'te' => 'te_IN',
597
  'tg' => 'tg_TJ',
598
  'th' => 'th_TH',
599
+ 'tl' => 'tl_PH',
600
+ 'tuk' => 'tk_TM',
601
  'tr_TR' => 'tr_TR',
602
+ 'tt_RU' => 'tt_RU',
603
+ 'tzm' => 'tz_MA',
604
  'uk' => 'uk_UA',
605
  'ur' => 'ur_PK',
606
  'uz_UZ' => 'uz_UZ',
607
  'vi' => 'vi_VN',
608
+ 'yor' => 'yo_NG',
609
  'zh_CN' => 'zh_CN',
610
  'zh_HK' => 'zh_HK',
611
  'zh_TW' => 'zh_TW',
modules/sync/admin-sync.php CHANGED
@@ -50,11 +50,7 @@ class PLL_Admin_Sync {
50
  * @param object $post current post object
51
  */
52
  public function add_meta_boxes( $post_type, $post ) {
53
- if ( 'post-new.php' == $GLOBALS['pagenow'] && isset( $_GET['from_post'], $_GET['new_lang'] ) ) {
54
- if ( ! $this->model->is_translated_post_type( $post->post_type ) ) {
55
- return;
56
- }
57
-
58
  // capability check already done in post-new.php
59
  $from_post_id = (int) $_GET['from_post'];
60
  $lang = $this->model->get_language( $_GET['new_lang'] );
@@ -212,12 +208,12 @@ class PLL_Admin_Sync {
212
  }
213
 
214
  if ( in_array( 'post_date', $this->options['sync'] ) ) {
215
- $post_arr['post_date_gmt'] = $post->post_date_gmt;
216
  }
217
 
218
  // synchronize terms and metas in translations
219
  foreach ( $translations as $lang => $tr_id ) {
220
- if ( ! $tr_id ) {
221
  continue;
222
  }
223
 
@@ -243,8 +239,10 @@ class PLL_Admin_Sync {
243
  }
244
 
245
  // update all the row at once
 
246
  if ( ! empty( $tr_arr ) ) {
247
  $wpdb->update( $wpdb->posts, $tr_arr, array( 'ID' => $tr_id ) );
 
248
  }
249
  }
250
  }
@@ -292,25 +290,25 @@ class PLL_Admin_Sync {
292
 
293
  // synchronize parent in translations
294
  // calling clean_term_cache *after* this is mandatory otherwise the $taxonomy_children option is not correctly updated
295
- // but clean_term_cache can be called ( efficiently ) only one time due to static array which prevents to update the option more than once
296
  // this is the reason to use the edit_term filter and not edited_term
297
  // take care that $_POST contains the only valid values for the current term
298
  // FIXME can I synchronize parent without using $_POST instead?
299
  if ( isset( $_POST['term_tr_lang'] ) ) {
300
  foreach ( $_POST['term_tr_lang'] as $lang => $tr_id ) {
301
- if ( ! $tr_id ) {
302
- continue;
303
- }
 
304
 
305
- if ( isset( $_POST['parent'] ) && -1 != $_POST['parent'] ) { // since WP 3.1
306
- $term_parent = $this->model->term->get_translation( (int) $_POST['parent'], $lang );
307
- }
 
 
308
 
309
- global $wpdb;
310
- $wpdb->update( $wpdb->term_taxonomy,
311
- array( 'parent' => isset( $term_parent ) ? $term_parent : 0 ),
312
- array( 'term_taxonomy_id' => get_term( (int) $tr_id, $taxonomy )->term_taxonomy_id )
313
- );
314
  }
315
  }
316
  }
50
  * @param object $post current post object
51
  */
52
  public function add_meta_boxes( $post_type, $post ) {
53
+ if ( 'post-new.php' == $GLOBALS['pagenow'] && isset( $_GET['from_post'], $_GET['new_lang'] ) && $this->model->is_translated_post_type( $post->post_type ) ) {
 
 
 
 
54
  // capability check already done in post-new.php
55
  $from_post_id = (int) $_GET['from_post'];
56
  $lang = $this->model->get_language( $_GET['new_lang'] );
208
  }
209
 
210
  if ( in_array( 'post_date', $this->options['sync'] ) ) {
211
+ $postarr['post_date_gmt'] = $post->post_date_gmt;
212
  }
213
 
214
  // synchronize terms and metas in translations
215
  foreach ( $translations as $lang => $tr_id ) {
216
+ if ( ! $tr_id || $tr_id === $post_id ) {
217
  continue;
218
  }
219
 
239
  }
240
 
241
  // update all the row at once
242
+ // don't use wp_update_post to avoid infinite loop
243
  if ( ! empty( $tr_arr ) ) {
244
  $wpdb->update( $wpdb->posts, $tr_arr, array( 'ID' => $tr_id ) );
245
+ clean_post_cache( $tr_id );
246
  }
247
  }
248
  }
290
 
291
  // synchronize parent in translations
292
  // calling clean_term_cache *after* this is mandatory otherwise the $taxonomy_children option is not correctly updated
293
+ // before WP 3.9 clean_term_cache could be called ( efficiently ) only one time due to static array which prevented to update the option more than once
294
  // this is the reason to use the edit_term filter and not edited_term
295
  // take care that $_POST contains the only valid values for the current term
296
  // FIXME can I synchronize parent without using $_POST instead?
297
  if ( isset( $_POST['term_tr_lang'] ) ) {
298
  foreach ( $_POST['term_tr_lang'] as $lang => $tr_id ) {
299
+ if ( $tr_id ) {
300
+ if ( isset( $_POST['parent'] ) && -1 != $_POST['parent'] ) { // since WP 3.1
301
+ $term_parent = $this->model->term->get_translation( (int) $_POST['parent'], $lang );
302
+ }
303
 
304
+ global $wpdb;
305
+ $wpdb->update( $wpdb->term_taxonomy,
306
+ array( 'parent' => isset( $term_parent ) ? $term_parent : 0 ),
307
+ array( 'term_taxonomy_id' => get_term( (int) $tr_id, $taxonomy )->term_taxonomy_id )
308
+ );
309
 
310
+ clean_term_cache( $tr_id, $taxonomy ); // OK since WP 3.9
311
+ }
 
 
 
312
  }
313
  }
314
  }
modules/wpml/wpml-config.php CHANGED
@@ -88,7 +88,15 @@ class PLL_WPML_Config {
88
  $tagCount = array();
89
 
90
  while ( isset( $this->values[ $this->index ] ) ) {
91
- extract( $this->values[ $this->index ] );
 
 
 
 
 
 
 
 
92
  $this->index++;
93
 
94
  if ( 'close' == $type ) {
88
  $tagCount = array();
89
 
90
  while ( isset( $this->values[ $this->index ] ) ) {
91
+ $tag = $this->values[ $this->index ]['tag'];
92
+ $type = $this->values[ $this->index ]['type'];
93
+ if ( isset( $this->values[ $this->index ]['attributes'] ) ) {
94
+ $attributes = $this->values[ $this->index ]['attributes'];
95
+ }
96
+ if ( isset( $this->values[ $this->index ]['value'] ) ) {
97
+ $value = $this->values[ $this->index ]['value'];
98
+ }
99
+
100
  $this->index++;
101
 
102
  if ( 'close' == $type ) {
polylang.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
- Version: 1.8
6
  Author: Frédéric Demarle
7
  Author uri: http://polylang.wordpress.com
8
  Description: Adds multilingual capability to WordPress
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
34
  exit; // don't access directly
35
  };
36
 
37
- define( 'POLYLANG_VERSION', '1.8' );
38
  define( 'PLL_MIN_WP_VERSION', '4.0' );
39
 
40
  define( 'POLYLANG_FILE', __FILE__ ); // this file
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
+ Version: 1.8.1
6
  Author: Frédéric Demarle
7
  Author uri: http://polylang.wordpress.com
8
  Description: Adds multilingual capability to WordPress
34
  exit; // don't access directly
35
  };
36
 
37
+ define( 'POLYLANG_VERSION', '1.8.1' );
38
  define( 'PLL_MIN_WP_VERSION', '4.0' );
39
 
40
  define( 'POLYLANG_FILE', __FILE__ ); // this file
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
5
  Requires at least: 4.0
6
  Tested up to: 4.4
7
- Stable tag: 1.8
8
  License: GPLv2 or later
9
 
10
  Making WordPress multilingual
@@ -71,6 +71,14 @@ See http://polylang.wordpress.com/documentation/contribute/
71
 
72
  == Changelog ==
73
 
 
 
 
 
 
 
 
 
74
  = 1.8 (2016-01-19) =
75
 
76
  * Minimum WordPress version is now 4.0
4
  Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
5
  Requires at least: 4.0
6
  Tested up to: 4.4
7
+ Stable tag: 1.8.1
8
  License: GPLv2 or later
9
 
10
  Making WordPress multilingual
71
 
72
  == Changelog ==
73
 
74
+ = 1.8.1 (2016-01-31) =
75
+
76
+ * Update the list of Facebook locales used for Opengraph support with Yoast SEO and Jetpack
77
+ * fix: secondary query with translated post type and untranslated taxonomy mixes languages (introduced in 1.8)
78
+ * fix: issue with paged static front page when hiding the default language in url
79
+ * fix: potential issue with cache after synchronizations
80
+ * fix: trailing slash added to canonical home url outputed by Yoast SEO when using default permalinks
81
+
82
  = 1.8 (2016-01-19) =
83
 
84
  * Minimum WordPress version is now 4.0
settings/settings.php CHANGED
@@ -40,7 +40,7 @@ class PLL_Settings extends PLL_Admin_Base {
40
  add_action( 'load-settings_page_mlang', array( &$this, 'load_page' ) );
41
 
42
  // saves per-page value in screen option
43
- add_filter( 'set-screen-option', create_function( '$s, $o, $v', 'return $v;' ), 10, 3 );
44
  }
45
 
46
  /*
@@ -74,6 +74,15 @@ class PLL_Settings extends PLL_Admin_Base {
74
  add_submenu_page( 'options-general.php', $title = __( 'Languages', 'polylang' ), $title, 'manage_options', 'mlang', array( $this, 'languages_page' ) );
75
  }
76
 
 
 
 
 
 
 
 
 
 
77
  /*
78
  * adds screen options and the about box in the languages admin panel
79
  *
@@ -83,26 +92,11 @@ class PLL_Settings extends PLL_Admin_Base {
83
  // test of $this->active_tab avoids displaying the automatically generated screen options on other tabs
84
  switch ( $this->active_tab ) {
85
  case 'lang':
86
- ob_start();
87
- include( PLL_SETTINGS_INC.'/view-recommended.php' );
88
- $content = trim( ob_get_contents() );
89
- ob_end_clean();
90
-
91
- if ( strlen( $content ) > 0 ) {
92
- add_meta_box(
93
- 'pll-recommended',
94
- __( 'Recommended plugins', 'polylang' ),
95
- create_function( '', "echo '$content';" ),
96
- 'settings_page_mlang',
97
- 'normal'
98
- );
99
- }
100
-
101
  if ( ! defined( 'PLL_DISPLAY_ABOUT' ) || PLL_DISPLAY_ABOUT ) {
102
  add_meta_box(
103
  'pll-about-box',
104
  __( 'About Polylang', 'polylang' ),
105
- create_function( '', "include( PLL_SETTINGS_INC.'/view-about.php' );" ),
106
  'settings_page_mlang',
107
  'normal'
108
  );
@@ -127,6 +121,21 @@ class PLL_Settings extends PLL_Admin_Base {
127
  }
128
  }
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  /*
131
  * diplays the 3 tabs pages: languages, strings translations, settings
132
  * also manages user input for these pages
@@ -139,7 +148,7 @@ class PLL_Settings extends PLL_Admin_Base {
139
 
140
  // only if at least one language has been created
141
  if ( $listlanguages = $this->model->get_languages_list() ) {
142
- $tabs['strings'] = __( 'Strings translation','polylang' );
143
  $tabs['settings'] = __( 'Settings', 'polylang' );
144
  }
145
 
40
  add_action( 'load-settings_page_mlang', array( &$this, 'load_page' ) );
41
 
42
  // saves per-page value in screen option
43
+ add_filter( 'set-screen-option', array( &$this, 'set_screen_option' ), 10, 3 );
44
  }
45
 
46
  /*
74
  add_submenu_page( 'options-general.php', $title = __( 'Languages', 'polylang' ), $title, 'manage_options', 'mlang', array( $this, 'languages_page' ) );
75
  }
76
 
77
+ /*
78
+ * Loads the about metabox
79
+ *
80
+ * @since 0.8
81
+ */
82
+ public function metabox_about() {
83
+ include( PLL_SETTINGS_INC.'/view-about.php' );
84
+ }
85
+
86
  /*
87
  * adds screen options and the about box in the languages admin panel
88
  *
92
  // test of $this->active_tab avoids displaying the automatically generated screen options on other tabs
93
  switch ( $this->active_tab ) {
94
  case 'lang':
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  if ( ! defined( 'PLL_DISPLAY_ABOUT' ) || PLL_DISPLAY_ABOUT ) {
96
  add_meta_box(
97
  'pll-about-box',
98
  __( 'About Polylang', 'polylang' ),
99
+ array( &$this, 'metabox_about' ),
100
  'settings_page_mlang',
101
  'normal'
102
  );
121
  }
122
  }
123
 
124
+ /*
125
+ * Save the "Views/Uploads per page" option set by this user
126
+ *
127
+ * @since 0.9.5
128
+ *
129
+ * @param mixed $status false or value returned by previous filter
130
+ * @param string $option Name of the option being changed
131
+ * @param string $value Value of the option
132
+ *
133
+ * @return string New value if this is our option, otherwise nothing
134
+ */
135
+ public function set_screen_option( $status, $option, $value ) {
136
+ return 'pll_strings_per_page' === $option ? $value : $status;
137
+ }
138
+
139
  /*
140
  * diplays the 3 tabs pages: languages, strings translations, settings
141
  * also manages user input for these pages
148
 
149
  // only if at least one language has been created
150
  if ( $listlanguages = $this->model->get_languages_list() ) {
151
+ $tabs['strings'] = __( 'Strings translations', 'polylang' );
152
  $tabs['settings'] = __( 'Settings', 'polylang' );
153
  }
154
 
settings/view-recommended.php DELETED
@@ -1 +0,0 @@
1
-
 
settings/view-tab-lang.php CHANGED
@@ -23,14 +23,14 @@ if ( ! defined( 'ABSPATH' ) ) {
23
  <div class="col-wrap">
24
 
25
  <div class="form-wrap">
26
- <h3><?php echo 'edit' == $action ? __( 'Edit language', 'polylang' ) : __( 'Add new language', 'polylang' ); ?></h3><?php
27
 
28
  // displays the add ( or edit ) language form
29
  // adds noheader=true in the action url to allow using wp_redirect when processing the form ?>
30
  <form id="add-lang" method="post" action="options-general.php?page=mlang&amp;noheader=true" class="validate"><?php
31
  wp_nonce_field( 'add-lang', '_wpnonce_add-lang' );
32
 
33
- if ( 'edit' == $action ) {?>
34
  <input type="hidden" name="pll_action" value="update" />
35
  <input type="hidden" name="lang_id" value="<?php echo esc_attr( $edit_lang->term_id );?>" /><?php
36
  } else { ?>
@@ -60,7 +60,7 @@ if ( ! defined( 'ABSPATH' ) ) {
60
  <label for="lang_name"><?php _e( 'Full name', 'polylang' );?></label><?php
61
  printf(
62
  '<input name="name" id="lang_name" type="text" value="%s" size="40" aria-required="true" />',
63
- 'edit' == $action ? esc_attr( $edit_lang->name ) : ''
64
  );?>
65
  <p><?php _e( 'The name is how it is displayed on your site (for example: English).', 'polylang' );?></p>
66
  </div>
@@ -69,7 +69,7 @@ if ( ! defined( 'ABSPATH' ) ) {
69
  <label for="lang_locale"><?php _e( 'Locale', 'polylang' );?></label><?php
70
  printf(
71
  '<input name="locale" id="lang_locale" type="text" value="%s" size="40" aria-required="true" />',
72
- 'edit' == $action ? esc_attr( $edit_lang->locale ) : ''
73
  );?>
74
  <p><?php _e( 'WordPress Locale for the language (for example: en_US). You will need to install the .mo file for this language.', 'polylang' );?></p>
75
  </div>
@@ -78,7 +78,7 @@ if ( ! defined( 'ABSPATH' ) ) {
78
  <label for="lang_slug"><?php _e( 'Language code', 'polylang' );?></label><?php
79
  printf(
80
  '<input name="slug" id="lang_slug" type="text" value="%s" size="40"/>',
81
- 'edit' == $action ? esc_attr( $edit_lang->slug ) : ''
82
  );?>
83
  <p><?php _e( 'Language code - preferably 2-letters ISO 639-1 (for example: en)', 'polylang' );?></p>
84
  </div>
@@ -87,12 +87,12 @@ if ( ! defined( 'ABSPATH' ) ) {
87
  <legend><?php _e( 'Text direction', 'polylang' );?></legend><?php
88
  printf(
89
  '<label><input name="rtl" type="radio" value="0" %s /> %s</label>',
90
- 'edit' == $action && $edit_lang->is_rtl ? '' : 'checked="checked"',
91
  __( 'left to right', 'polylang' )
92
  );
93
  printf(
94
  '<label><input name="rtl" type="radio" value="1" %s /> %s</label>',
95
- 'edit' == $action && $edit_lang->is_rtl ? 'checked="checked"' : '',
96
  __( 'right to left', 'polylang' )
97
  );?>
98
  <p><?php _e( 'Choose the text direction for the language', 'polylang' );?></p>
@@ -119,18 +119,18 @@ if ( ! defined( 'ABSPATH' ) ) {
119
  <label for="lang_order"><?php _e( 'Order', 'polylang' );?></label><?php
120
  printf(
121
  '<input name="term_group" id="lang_order" type="text" value="%d" />',
122
- 'edit' == $action ? esc_attr( $edit_lang->term_group ) : ''
123
  );?>
124
  <p><?php _e( 'Position of the language in the language switcher', 'polylang' );?></p>
125
  </div><?php
126
 
127
- if ( 'edit' == $action ) {
128
  do_action( 'pll_language_edit_form_fields', $edit_lang );
129
  } else {
130
  do_action( 'pll_language_add_form_fields' );
131
  }
132
 
133
- submit_button( 'edit' == $action ? __( 'Update' ) : __( 'Add new language', 'polylang' ) ); // since WP 3.1 ?>
134
 
135
  </form>
136
  </div><!-- form-wrap -->
23
  <div class="col-wrap">
24
 
25
  <div class="form-wrap">
26
+ <h3><?php echo ! empty( $edit_lang ) ? __( 'Edit language', 'polylang' ) : __( 'Add new language', 'polylang' ); ?></h3><?php
27
 
28
  // displays the add ( or edit ) language form
29
  // adds noheader=true in the action url to allow using wp_redirect when processing the form ?>
30
  <form id="add-lang" method="post" action="options-general.php?page=mlang&amp;noheader=true" class="validate"><?php
31
  wp_nonce_field( 'add-lang', '_wpnonce_add-lang' );
32
 
33
+ if ( ! empty( $edit_lang ) ) {?>
34
  <input type="hidden" name="pll_action" value="update" />
35
  <input type="hidden" name="lang_id" value="<?php echo esc_attr( $edit_lang->term_id );?>" /><?php
36
  } else { ?>
60
  <label for="lang_name"><?php _e( 'Full name', 'polylang' );?></label><?php
61
  printf(
62
  '<input name="name" id="lang_name" type="text" value="%s" size="40" aria-required="true" />',
63
+ ! empty( $edit_lang ) ? esc_attr( $edit_lang->name ) : ''
64
  );?>
65
  <p><?php _e( 'The name is how it is displayed on your site (for example: English).', 'polylang' );?></p>
66
  </div>
69
  <label for="lang_locale"><?php _e( 'Locale', 'polylang' );?></label><?php
70
  printf(
71
  '<input name="locale" id="lang_locale" type="text" value="%s" size="40" aria-required="true" />',
72
+ ! empty( $edit_lang ) ? esc_attr( $edit_lang->locale ) : ''
73
  );?>
74
  <p><?php _e( 'WordPress Locale for the language (for example: en_US). You will need to install the .mo file for this language.', 'polylang' );?></p>
75
  </div>
78
  <label for="lang_slug"><?php _e( 'Language code', 'polylang' );?></label><?php
79
  printf(
80
  '<input name="slug" id="lang_slug" type="text" value="%s" size="40"/>',
81
+ ! empty( $edit_lang ) ? esc_attr( $edit_lang->slug ) : ''
82
  );?>
83
  <p><?php _e( 'Language code - preferably 2-letters ISO 639-1 (for example: en)', 'polylang' );?></p>
84
  </div>
87
  <legend><?php _e( 'Text direction', 'polylang' );?></legend><?php
88
  printf(
89
  '<label><input name="rtl" type="radio" value="0" %s /> %s</label>',
90
+ ! empty( $edit_lang ) && $edit_lang->is_rtl ? '' : 'checked="checked"',
91
  __( 'left to right', 'polylang' )
92
  );
93
  printf(
94
  '<label><input name="rtl" type="radio" value="1" %s /> %s</label>',
95
+ ! empty( $edit_lang ) && $edit_lang->is_rtl ? 'checked="checked"' : '',
96
  __( 'right to left', 'polylang' )
97
  );?>
98
  <p><?php _e( 'Choose the text direction for the language', 'polylang' );?></p>
119
  <label for="lang_order"><?php _e( 'Order', 'polylang' );?></label><?php
120
  printf(
121
  '<input name="term_group" id="lang_order" type="text" value="%d" />',
122
+ ! empty( $edit_lang ) ? esc_attr( $edit_lang->term_group ) : ''
123
  );?>
124
  <p><?php _e( 'Position of the language in the language switcher', 'polylang' );?></p>
125
  </div><?php
126
 
127
+ if ( ! empty( $edit_lang ) ) {
128
  do_action( 'pll_language_edit_form_fields', $edit_lang );
129
  } else {
130
  do_action( 'pll_language_add_form_fields' );
131
  }
132
 
133
+ submit_button( ! empty( $edit_lang ) ? __( 'Update' ) : __( 'Add new language', 'polylang' ) ); // since WP 3.1 ?>
134
 
135
  </form>
136
  </div><!-- form-wrap -->