Version Description
(2011-12-18) =
- Improved German translation contributed by Christian Ries
- Bug correction: Translated homepage not recognized as home page when it displays posts
- Bug correction: Predefined language list does not work on IE8
- Bug correction: On some installations, "Add New" post doesn't keep intended language
- Bug correction: Fatal error when Polylang is used together with the plugin Tabbed Widgets
- Bug correction: Language Switcher points sometimes to wrong places
Download this release
Release Info
Developer | Chouby |
Plugin | Polylang |
Version | 0.5.1 |
Comparing to | |
See all releases |
Code changes from version 0.5 to 0.5.1
- include/add-term-form.php +5 -1
- include/api.php +4 -4
- include/calendar.php +4 -0
- include/core.php +11 -3
- include/edit-term-form.php +1 -1
- include/post-metabox.php +1 -1
- include/widget.php +6 -1
- js/admin.js +3 -5
- languages/polylang-de_DE.mo +0 -0
- languages/polylang-de_DE.po +42 -45
- polylang.php +2 -2
- readme.txt +13 -4
include/add-term-form.php
CHANGED
@@ -7,7 +7,11 @@
|
|
7 |
if (PLL_DISPLAY_ALL) // for those who want undefined language
|
8 |
echo '<option value="0"></option>';
|
9 |
foreach ($listlanguages as $language) {
|
10 |
-
printf("<option value='%d'%s>%s</option>\n",
|
|
|
|
|
|
|
|
|
11 |
} ?>
|
12 |
</select>
|
13 |
<p><?php _e('Sets the language', 'polylang');?></p>
|
7 |
if (PLL_DISPLAY_ALL) // for those who want undefined language
|
8 |
echo '<option value="0"></option>';
|
9 |
foreach ($listlanguages as $language) {
|
10 |
+
printf("<option value='%d'%s>%s</option>\n",
|
11 |
+
esc_attr($language->term_id),
|
12 |
+
$language->slug == $lang->slug ? ' selected="selected"' : '',
|
13 |
+
esc_html($language->name)
|
14 |
+
);
|
15 |
} ?>
|
16 |
</select>
|
17 |
<p><?php _e('Sets the language', 'polylang');?></p>
|
include/api.php
CHANGED
@@ -3,25 +3,25 @@
|
|
3 |
// template tag: displays the language switcher
|
4 |
function pll_the_languages($args = '') {
|
5 |
global $polylang;
|
6 |
-
return $polylang->the_languages($args);
|
7 |
}
|
8 |
|
9 |
// among the post and its translations, returns the id of the post which is in the language represented by $slug
|
10 |
function pll_get_post($post_id, $slug) {
|
11 |
global $polylang;
|
12 |
-
return $polylang->get_post($post_id, $slug);
|
13 |
}
|
14 |
|
15 |
// among the term and its translations, returns the id of the term which is in the language represented by $slug
|
16 |
function pll_get_term($term_id, $slug) {
|
17 |
global $polylang;
|
18 |
-
return $polylang->get_term($term_id, $slug);
|
19 |
}
|
20 |
|
21 |
// acts as is_front_page but knows about translated front page
|
22 |
function pll_is_front_page() {
|
23 |
global $polylang;
|
24 |
-
return $polylang->is_front_page();
|
25 |
}
|
26 |
|
27 |
?>
|
3 |
// template tag: displays the language switcher
|
4 |
function pll_the_languages($args = '') {
|
5 |
global $polylang;
|
6 |
+
return isset($polylang) ? $polylang->the_languages($args) : '';
|
7 |
}
|
8 |
|
9 |
// among the post and its translations, returns the id of the post which is in the language represented by $slug
|
10 |
function pll_get_post($post_id, $slug) {
|
11 |
global $polylang;
|
12 |
+
return isset($polylang) ? $polylang->get_post($post_id, $slug) : null;
|
13 |
}
|
14 |
|
15 |
// among the term and its translations, returns the id of the term which is in the language represented by $slug
|
16 |
function pll_get_term($term_id, $slug) {
|
17 |
global $polylang;
|
18 |
+
return isset($polylang) ? $polylang->get_term($term_id, $slug) : null;
|
19 |
}
|
20 |
|
21 |
// acts as is_front_page but knows about translated front page
|
22 |
function pll_is_front_page() {
|
23 |
global $polylang;
|
24 |
+
return isset($polylang) ? $polylang->is_front_page() : null;
|
25 |
}
|
26 |
|
27 |
?>
|
include/calendar.php
CHANGED
@@ -26,6 +26,10 @@ class Polylang_Widget_Calendar extends WP_Widget_Calendar {
|
|
26 |
function get_calendar($initial = true, $echo = true) {
|
27 |
global $wpdb, $m, $monthnum, $year, $wp_locale, $posts;
|
28 |
global $polylang; #added#
|
|
|
|
|
|
|
|
|
29 |
$lang = $polylang->get_current_language()->term_taxonomy_id; #added#
|
30 |
|
31 |
$cache = array();
|
26 |
function get_calendar($initial = true, $echo = true) {
|
27 |
global $wpdb, $m, $monthnum, $year, $wp_locale, $posts;
|
28 |
global $polylang; #added#
|
29 |
+
|
30 |
+
if (!isset($polylang)) #added#
|
31 |
+
return; #added#
|
32 |
+
|
33 |
$lang = $polylang->get_current_language()->term_taxonomy_id; #added#
|
34 |
|
35 |
$cache = array();
|
include/core.php
CHANGED
@@ -232,6 +232,12 @@ class Polylang_Core extends Polylang_base {
|
|
232 |
}
|
233 |
}
|
234 |
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
// sets the language for posts page in case the front page displays a static page
|
236 |
if ($this->page_for_posts) {
|
237 |
// If permalinks are used, WordPress does set and use $query->queried_object_id and sets $query->query_vars['page_id'] to 0
|
@@ -264,7 +270,9 @@ class Polylang_Core extends Polylang_base {
|
|
264 |
// filters recent posts to the current language
|
265 |
// FIXME if $qvars['post_type'] == 'nav_menu_item', setting lang breaks custom menus.
|
266 |
// since to get nav_menu_items, get_post is used and no language is linked to nav_menu_items
|
267 |
-
if ($query->is_home && $this->curlang && !isset($qvars['post_type']))
|
|
|
|
|
268 |
$query->set('lang', $this->curlang->slug);
|
269 |
|
270 |
// remove pages query when the language is set unless we do a search
|
@@ -462,7 +470,7 @@ class Polylang_Core extends Polylang_base {
|
|
462 |
$hide = $this->options['default_lang'] == $language->slug && $this->options['hide_default'];
|
463 |
|
464 |
// is_single is set to 1 for attachment but no language is set
|
465 |
-
if (is_single() && !is_attachment() && $id = $this->get_post(
|
466 |
$url = get_permalink($id);
|
467 |
|
468 |
// page for posts
|
@@ -472,7 +480,7 @@ class Polylang_Core extends Polylang_base {
|
|
472 |
)
|
473 |
$url = get_permalink($this->get_post($this->page_for_posts, $language));
|
474 |
|
475 |
-
elseif (is_page() && $id = $this->get_post(
|
476 |
$url = $hide && $id == $this->get_post($this->page_on_front, $language) ?
|
477 |
$this->home :
|
478 |
_get_page_link($id);
|
232 |
}
|
233 |
}
|
234 |
|
235 |
+
// sets is_home on translated home page when it displays posts
|
236 |
+
if (!$this->page_on_front && $query->is_tax && count($query->query) == 1) {
|
237 |
+
$query->is_home = true;
|
238 |
+
$query->is_tax = false;
|
239 |
+
}
|
240 |
+
|
241 |
// sets the language for posts page in case the front page displays a static page
|
242 |
if ($this->page_for_posts) {
|
243 |
// If permalinks are used, WordPress does set and use $query->queried_object_id and sets $query->query_vars['page_id'] to 0
|
270 |
// filters recent posts to the current language
|
271 |
// FIXME if $qvars['post_type'] == 'nav_menu_item', setting lang breaks custom menus.
|
272 |
// since to get nav_menu_items, get_post is used and no language is linked to nav_menu_items
|
273 |
+
// if ($query->is_home && $this->curlang && !isset($qvars['post_type']))
|
274 |
+
// FIXME generalize to all non visible post types
|
275 |
+
if ($query->is_home && $this->curlang && (!isset($qvars['post_type']) || $qvars['post_type'] != 'nav_menu_item'))
|
276 |
$query->set('lang', $this->curlang->slug);
|
277 |
|
278 |
// remove pages query when the language is set unless we do a search
|
470 |
$hide = $this->options['default_lang'] == $language->slug && $this->options['hide_default'];
|
471 |
|
472 |
// is_single is set to 1 for attachment but no language is set
|
473 |
+
if (is_single() && !is_attachment() && $id = $this->get_post($wp_query->queried_object_id, $language))
|
474 |
$url = get_permalink($id);
|
475 |
|
476 |
// page for posts
|
480 |
)
|
481 |
$url = get_permalink($this->get_post($this->page_for_posts, $language));
|
482 |
|
483 |
+
elseif (is_page() && $id = $this->get_post($wp_query->queried_object_id, $language))
|
484 |
$url = $hide && $id == $this->get_post($this->page_on_front, $language) ?
|
485 |
$this->home :
|
486 |
_get_page_link($id);
|
include/edit-term-form.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
printf(
|
12 |
"<option value='%s'%s>%s</option>\n",
|
13 |
esc_attr($language->term_id),
|
14 |
-
$language == $lang ? ' selected="selected"' : '',
|
15 |
esc_html($language->name)
|
16 |
);
|
17 |
} ?>
|
11 |
printf(
|
12 |
"<option value='%s'%s>%s</option>\n",
|
13 |
esc_attr($language->term_id),
|
14 |
+
$language->slug == $lang->slug ? ' selected="selected"' : '',
|
15 |
esc_html($language->name)
|
16 |
);
|
17 |
} ?>
|
include/post-metabox.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
printf(
|
12 |
"<option value='%s'%s>%s</option>\n",
|
13 |
esc_attr($language->slug),
|
14 |
-
$language == $lang ? ' selected="selected"' : '',
|
15 |
esc_html($language->name)
|
16 |
);
|
17 |
} ?>
|
11 |
printf(
|
12 |
"<option value='%s'%s>%s</option>\n",
|
13 |
esc_attr($language->slug),
|
14 |
+
$language->slug == $lang->slug ? ' selected="selected"' : '',
|
15 |
esc_html($language->name)
|
16 |
);
|
17 |
} ?>
|
include/widget.php
CHANGED
@@ -9,10 +9,15 @@ class Polylang_Widget extends WP_Widget {
|
|
9 |
// displays the widget
|
10 |
function widget($args, $instance) {
|
11 |
global $polylang;
|
|
|
|
|
|
|
|
|
|
|
12 |
extract($args);
|
13 |
extract($instance);
|
14 |
|
15 |
-
$title = apply_filters('widget_title', $
|
16 |
|
17 |
echo "$before_widget\n";
|
18 |
if ($title)
|
9 |
// displays the widget
|
10 |
function widget($args, $instance) {
|
11 |
global $polylang;
|
12 |
+
|
13 |
+
// prevents the function to be called from admin side where $polylang is not defined
|
14 |
+
if (!isset($polylang))
|
15 |
+
return;
|
16 |
+
|
17 |
extract($args);
|
18 |
extract($instance);
|
19 |
|
20 |
+
$title = apply_filters('widget_title', $title, $instance, $this->id_base);
|
21 |
|
22 |
echo "$before_widget\n";
|
23 |
if ($title)
|
js/admin.js
CHANGED
@@ -36,7 +36,7 @@ jQuery(document).ready(function($) {
|
|
36 |
jQuery('#post-translations').html(this.data); // translations fields
|
37 |
break;
|
38 |
case 'taxonomy':
|
39 |
-
tax = this.data;
|
40 |
jQuery('#' + tax + 'checklist').html(this.supplemental.all);
|
41 |
jQuery('#' + tax + 'checklist-pop').html(this.supplemental.populars);
|
42 |
jQuery('#new' + tax + '_parent').replaceWith(this.supplemental.dropdown);
|
@@ -101,10 +101,8 @@ jQuery(document).ready(function($) {
|
|
101 |
// languages form
|
102 |
jQuery('#lang_list').change(function() {
|
103 |
value = jQuery(this).attr('value');
|
104 |
-
slug
|
105 |
-
|
106 |
-
jQuery('input[name="slug"]').val(slug);
|
107 |
-
jQuery('input[name="description"]').val(locale);
|
108 |
jQuery('input[name="name"]').val($("select option:selected").text());
|
109 |
});
|
110 |
|
36 |
jQuery('#post-translations').html(this.data); // translations fields
|
37 |
break;
|
38 |
case 'taxonomy':
|
39 |
+
var tax = this.data;
|
40 |
jQuery('#' + tax + 'checklist').html(this.supplemental.all);
|
41 |
jQuery('#' + tax + 'checklist-pop').html(this.supplemental.populars);
|
42 |
jQuery('#new' + tax + '_parent').replaceWith(this.supplemental.dropdown);
|
101 |
// languages form
|
102 |
jQuery('#lang_list').change(function() {
|
103 |
value = jQuery(this).attr('value');
|
104 |
+
jQuery('input[name="slug"]').val(value.substr(0, 2));
|
105 |
+
jQuery('input[name="description"]').val(value.substr(3, 5));
|
|
|
|
|
106 |
jQuery('input[name="name"]').val($("select option:selected").text());
|
107 |
});
|
108 |
|
languages/polylang-de_DE.mo
CHANGED
Binary file
|
languages/polylang-de_DE.po
CHANGED
@@ -4,7 +4,7 @@ msgstr ""
|
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2011-12-05 20:53+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator:
|
8 |
"Language-Team: \n"
|
9 |
"Language: \n"
|
10 |
"MIME-Version: 1.0\n"
|
@@ -20,32 +20,32 @@ msgstr ""
|
|
20 |
# @ polylang
|
21 |
#: ../polylang.php:169
|
22 |
msgid "Error: Upgrade directory doesn't exist!"
|
23 |
-
msgstr ""
|
24 |
|
25 |
# @ polylang
|
26 |
#: ../polylang.php:170
|
27 |
msgid "Please create"
|
28 |
-
msgstr ""
|
29 |
|
30 |
# @ polylang
|
31 |
#: ../polylang.php:177
|
32 |
msgid "Error: Backup of local flags failed!"
|
33 |
-
msgstr ""
|
34 |
|
35 |
# @ polylang
|
36 |
#: ../polylang.php:178
|
37 |
msgid "Please backup"
|
38 |
-
msgstr ""
|
39 |
|
40 |
# @ polylang
|
41 |
#: ../polylang.php:193
|
42 |
msgid "Error: Restore of local flags failed!"
|
43 |
-
msgstr ""
|
44 |
|
45 |
# @ polylang
|
46 |
#: ../polylang.php:194
|
47 |
msgid "Please restore your local flags"
|
48 |
-
msgstr ""
|
49 |
|
50 |
# @ polylang
|
51 |
#: ../include/edit-term-form.php:6
|
@@ -66,12 +66,12 @@ msgstr "definiert die Sprache"
|
|
66 |
# @ polylang
|
67 |
#: ../include/widget.php:6
|
68 |
msgid "Language Switcher"
|
69 |
-
msgstr "
|
70 |
|
71 |
# @ polylang
|
72 |
#: ../include/widget.php:6
|
73 |
msgid "Displays a language switcher"
|
74 |
-
msgstr "
|
75 |
|
76 |
# @ polylang
|
77 |
#: ../include/widget.php:62
|
@@ -82,13 +82,13 @@ msgstr "Titel :"
|
|
82 |
#: ../include/widget.php:65
|
83 |
#: ../include/admin.php:236
|
84 |
msgid "Displays language names"
|
85 |
-
msgstr "
|
86 |
|
87 |
# @ polylang
|
88 |
#: ../include/widget.php:66
|
89 |
#: ../include/admin.php:237
|
90 |
msgid "Displays flags"
|
91 |
-
msgstr "
|
92 |
|
93 |
# @ polylang
|
94 |
#: ../include/widget.php:67
|
@@ -99,7 +99,7 @@ msgstr "Als Auswahlbox darstellen"
|
|
99 |
#: ../include/widget.php:68
|
100 |
#: ../include/admin.php:238
|
101 |
msgid "Forces link to front page"
|
102 |
-
msgstr "
|
103 |
|
104 |
# @ default
|
105 |
# @ polylang
|
@@ -123,19 +123,18 @@ msgstr "Menüs"
|
|
123 |
|
124 |
# @ polylang
|
125 |
#: ../include/admin.php:225
|
126 |
-
#, fuzzy
|
127 |
msgid "Enter a valid WorPress locale"
|
128 |
-
msgstr "
|
129 |
|
130 |
# @ polylang
|
131 |
#: ../include/admin.php:226
|
132 |
msgid "The language code must be 2 characters long"
|
133 |
-
msgstr "Der Sprachcode muss 2 Buchstaben
|
134 |
|
135 |
# @ polylang
|
136 |
#: ../include/admin.php:227
|
137 |
msgid "The language code must be unique"
|
138 |
-
msgstr "
|
139 |
|
140 |
# @ polylang
|
141 |
#: ../include/admin.php:228
|
@@ -145,17 +144,17 @@ msgstr "Die Sprache muss einen Namen haben"
|
|
145 |
# @ polylang
|
146 |
#: ../include/admin.php:235
|
147 |
msgid "Displays a language switcher at the end of the menu"
|
148 |
-
msgstr "
|
149 |
|
150 |
# @ polylang
|
151 |
#: ../include/post-metabox.php:5
|
152 |
msgid "Page's language:"
|
153 |
-
msgstr "Sprache
|
154 |
|
155 |
# @ polylang
|
156 |
#: ../include/post-metabox.php:5
|
157 |
msgid "Post's language:"
|
158 |
-
msgstr "Sprache
|
159 |
|
160 |
# @ polylang
|
161 |
#: ../include/term-translations.php:6
|
@@ -183,23 +182,23 @@ msgstr "Hinzufügen"
|
|
183 |
# @ polylang
|
184 |
#: ../include/admin-filters.php:123
|
185 |
msgid "Show all languages"
|
186 |
-
msgstr "
|
187 |
|
188 |
# @ polylang
|
189 |
#: ../include/admin-filters.php:400
|
190 |
msgid "Theme locations and languages"
|
191 |
-
msgstr "
|
192 |
|
193 |
# @ polylang
|
194 |
#: ../include/admin-filters.php:405
|
195 |
#, php-format
|
196 |
msgid "Please go to the %slanguages page%s to set theme locations and languages"
|
197 |
-
msgstr "Du solltest
|
198 |
|
199 |
# @ polylang
|
200 |
#: ../include/admin-filters.php:416
|
201 |
msgid "The widget is displayed for:"
|
202 |
-
msgstr "
|
203 |
|
204 |
# @ polylang
|
205 |
#: ../include/admin-filters.php:417
|
@@ -220,9 +219,8 @@ msgstr "Name"
|
|
220 |
# @ polylang
|
221 |
#: ../include/list-table.php:53
|
222 |
#: ../include/languages-form.php:72
|
223 |
-
#, fuzzy
|
224 |
msgid "Locale"
|
225 |
-
msgstr "
|
226 |
|
227 |
# @ polylang
|
228 |
#: ../include/list-table.php:54
|
@@ -232,7 +230,7 @@ msgstr "Code"
|
|
232 |
# @ polylang
|
233 |
#: ../include/list-table.php:55
|
234 |
msgid "Flag"
|
235 |
-
msgstr "
|
236 |
|
237 |
# @ polylang
|
238 |
#: ../include/list-table.php:56
|
@@ -244,14 +242,14 @@ msgstr "Artikel"
|
|
244 |
#, php-format
|
245 |
msgctxt "calendar caption"
|
246 |
msgid "%1$s %2$s"
|
247 |
-
msgstr ""
|
248 |
|
249 |
# @ default
|
250 |
#: ../include/calendar.php:125
|
251 |
#: ../include/calendar.php:133
|
252 |
#, php-format
|
253 |
msgid "View posts for %1$s %2$s"
|
254 |
-
msgstr ""
|
255 |
|
256 |
# @ polylang
|
257 |
#: ../include/languages-form.php:33
|
@@ -267,22 +265,22 @@ msgstr "Neue Sprache hinzufügen"
|
|
267 |
# @ polylang
|
268 |
#: ../include/languages-form.php:54
|
269 |
msgid "Choose a language"
|
270 |
-
msgstr "
|
271 |
|
272 |
# @ polylang
|
273 |
#: ../include/languages-form.php:62
|
274 |
msgid "You can choose a language in the list or directly edit it below."
|
275 |
-
msgstr "Du kannst eine Sprache in der Liste auswählen oder sie unten bearbeiten"
|
276 |
|
277 |
# @ polylang
|
278 |
#: ../include/languages-form.php:68
|
279 |
msgid "The name is how it is displayed on your site (for example: English)."
|
280 |
-
msgstr "Dieser Name wird dann auf der Website angezeigt (
|
281 |
|
282 |
# @ polylang
|
283 |
#: ../include/languages-form.php:74
|
284 |
msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
|
285 |
-
msgstr "Wordpress
|
286 |
|
287 |
# @ polylang
|
288 |
#: ../include/languages-form.php:78
|
@@ -292,7 +290,7 @@ msgstr "Sprachcode"
|
|
292 |
# @ polylang
|
293 |
#: ../include/languages-form.php:80
|
294 |
msgid "2-letters ISO 639-1 language code (for example: en)"
|
295 |
-
msgstr "2 Buchstaben ISO 639-1 Sprachcode (
|
296 |
|
297 |
# @ default
|
298 |
#: ../include/languages-form.php:83
|
@@ -302,38 +300,37 @@ msgstr "Aktualisieren"
|
|
302 |
# @ polylang
|
303 |
#: ../include/languages-form.php:131
|
304 |
msgid "Language switcher"
|
305 |
-
msgstr "
|
306 |
|
307 |
# @ polylang
|
308 |
#: ../include/languages-form.php:158
|
309 |
msgid "Default language"
|
310 |
-
msgstr "
|
311 |
|
312 |
# @ polylang
|
313 |
#: ../include/languages-form.php:187
|
314 |
-
#, fuzzy
|
315 |
msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
|
316 |
-
msgstr "Es gibt Artikel, Seite, Kategorien oder Schlagwörter ohne
|
317 |
|
318 |
# @ polylang
|
319 |
#: ../include/languages-form.php:195
|
320 |
msgid "Detect browser language"
|
321 |
-
msgstr "
|
322 |
|
323 |
# @ polylang
|
324 |
#: ../include/languages-form.php:201
|
325 |
msgid "When the front page is visited, set the language according to the browser preference"
|
326 |
-
msgstr "
|
327 |
|
328 |
# @ polylang
|
329 |
#: ../include/languages-form.php:208
|
330 |
msgid "URL modifications"
|
331 |
-
msgstr "URL
|
332 |
|
333 |
# @ polylang
|
334 |
#: ../include/languages-form.php:214
|
335 |
msgid "Keep /language/ in pretty permalinks. Example:"
|
336 |
-
msgstr "/language/ in Permalinks behalten. Zum Beispiel :"
|
337 |
|
338 |
# @ polylang
|
339 |
#: ../include/languages-form.php:222
|
@@ -348,22 +345,22 @@ msgstr "URL Informationen für die Standardsprache verstecken"
|
|
348 |
# @ polylang
|
349 |
#: ../include/post-translations.php:1
|
350 |
msgid "ID of pages in other languages:"
|
351 |
-
msgstr "ID
|
352 |
|
353 |
# @ polylang
|
354 |
#: ../include/post-translations.php:1
|
355 |
msgid "ID of posts in other languages:"
|
356 |
-
msgstr "ID
|
357 |
|
358 |
# @ polylang
|
359 |
#: ../include/post-translations.php:5
|
360 |
msgid "Page ID"
|
361 |
-
msgstr "ID
|
362 |
|
363 |
# @ polylang
|
364 |
#: ../include/post-translations.php:5
|
365 |
msgid "Post ID"
|
366 |
-
msgstr "ID
|
367 |
|
368 |
# @ polylang
|
369 |
#: ../include/personal-options.php:5
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2011-12-05 20:53+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Christian Ries <christian_ries@internet.lu>\n"
|
8 |
"Language-Team: \n"
|
9 |
"Language: \n"
|
10 |
"MIME-Version: 1.0\n"
|
20 |
# @ polylang
|
21 |
#: ../polylang.php:169
|
22 |
msgid "Error: Upgrade directory doesn't exist!"
|
23 |
+
msgstr "Fehler: Upgrade-Verzeichnis existiert nicht!"
|
24 |
|
25 |
# @ polylang
|
26 |
#: ../polylang.php:170
|
27 |
msgid "Please create"
|
28 |
+
msgstr "Bitte erzeugen"
|
29 |
|
30 |
# @ polylang
|
31 |
#: ../polylang.php:177
|
32 |
msgid "Error: Backup of local flags failed!"
|
33 |
+
msgstr "Fehler: Sicherungskopie der lokalen Fahnen fehlgeschlagen!"
|
34 |
|
35 |
# @ polylang
|
36 |
#: ../polylang.php:178
|
37 |
msgid "Please backup"
|
38 |
+
msgstr "Bitte machen Sie eine Sicherheitskopie ihrer Daten"
|
39 |
|
40 |
# @ polylang
|
41 |
#: ../polylang.php:193
|
42 |
msgid "Error: Restore of local flags failed!"
|
43 |
+
msgstr "Fehler: Wiederherstellung der lokalen Fahnen fehlgeschlagen!"
|
44 |
|
45 |
# @ polylang
|
46 |
#: ../polylang.php:194
|
47 |
msgid "Please restore your local flags"
|
48 |
+
msgstr "Bitte stellen Sie ihre lokalen Fahnen wieder her."
|
49 |
|
50 |
# @ polylang
|
51 |
#: ../include/edit-term-form.php:6
|
66 |
# @ polylang
|
67 |
#: ../include/widget.php:6
|
68 |
msgid "Language Switcher"
|
69 |
+
msgstr "Sprachenumschalter"
|
70 |
|
71 |
# @ polylang
|
72 |
#: ../include/widget.php:6
|
73 |
msgid "Displays a language switcher"
|
74 |
+
msgstr "Zeigt einen Sprachenumschalter"
|
75 |
|
76 |
# @ polylang
|
77 |
#: ../include/widget.php:62
|
82 |
#: ../include/widget.php:65
|
83 |
#: ../include/admin.php:236
|
84 |
msgid "Displays language names"
|
85 |
+
msgstr "Darstellung der Namen der Sprachen"
|
86 |
|
87 |
# @ polylang
|
88 |
#: ../include/widget.php:66
|
89 |
#: ../include/admin.php:237
|
90 |
msgid "Displays flags"
|
91 |
+
msgstr "Darstellung der Fahnen"
|
92 |
|
93 |
# @ polylang
|
94 |
#: ../include/widget.php:67
|
99 |
#: ../include/widget.php:68
|
100 |
#: ../include/admin.php:238
|
101 |
msgid "Forces link to front page"
|
102 |
+
msgstr "Erzwingt einen Link zur Startseite"
|
103 |
|
104 |
# @ default
|
105 |
# @ polylang
|
123 |
|
124 |
# @ polylang
|
125 |
#: ../include/admin.php:225
|
|
|
126 |
msgid "Enter a valid WorPress locale"
|
127 |
+
msgstr "Bitte geben Sie eine gültige Sprachdatei an"
|
128 |
|
129 |
# @ polylang
|
130 |
#: ../include/admin.php:226
|
131 |
msgid "The language code must be 2 characters long"
|
132 |
+
msgstr "Der Sprachcode muss 2 Buchstaben betragen"
|
133 |
|
134 |
# @ polylang
|
135 |
#: ../include/admin.php:227
|
136 |
msgid "The language code must be unique"
|
137 |
+
msgstr "Der Sprachcode muss eindeutig sein"
|
138 |
|
139 |
# @ polylang
|
140 |
#: ../include/admin.php:228
|
144 |
# @ polylang
|
145 |
#: ../include/admin.php:235
|
146 |
msgid "Displays a language switcher at the end of the menu"
|
147 |
+
msgstr "Zeigt einen Sprachenumschalter am Ende des Menüs"
|
148 |
|
149 |
# @ polylang
|
150 |
#: ../include/post-metabox.php:5
|
151 |
msgid "Page's language:"
|
152 |
+
msgstr "Sprache der Seite :"
|
153 |
|
154 |
# @ polylang
|
155 |
#: ../include/post-metabox.php:5
|
156 |
msgid "Post's language:"
|
157 |
+
msgstr "Sprache des Artikels :"
|
158 |
|
159 |
# @ polylang
|
160 |
#: ../include/term-translations.php:6
|
182 |
# @ polylang
|
183 |
#: ../include/admin-filters.php:123
|
184 |
msgid "Show all languages"
|
185 |
+
msgstr "Alle Sprachen anzeigen"
|
186 |
|
187 |
# @ polylang
|
188 |
#: ../include/admin-filters.php:400
|
189 |
msgid "Theme locations and languages"
|
190 |
+
msgstr "Verortung der Vorlage und Sprachen"
|
191 |
|
192 |
# @ polylang
|
193 |
#: ../include/admin-filters.php:405
|
194 |
#, php-format
|
195 |
msgid "Please go to the %slanguages page%s to set theme locations and languages"
|
196 |
+
msgstr "Du solltest zur %sSprachenseite%s gehen, um die Verortung der Vorlage und die Sprachen einzustellen."
|
197 |
|
198 |
# @ polylang
|
199 |
#: ../include/admin-filters.php:416
|
200 |
msgid "The widget is displayed for:"
|
201 |
+
msgstr "Zeigt das Widget für :"
|
202 |
|
203 |
# @ polylang
|
204 |
#: ../include/admin-filters.php:417
|
219 |
# @ polylang
|
220 |
#: ../include/list-table.php:53
|
221 |
#: ../include/languages-form.php:72
|
|
|
222 |
msgid "Locale"
|
223 |
+
msgstr "Sprachdatei"
|
224 |
|
225 |
# @ polylang
|
226 |
#: ../include/list-table.php:54
|
230 |
# @ polylang
|
231 |
#: ../include/list-table.php:55
|
232 |
msgid "Flag"
|
233 |
+
msgstr "Fahne"
|
234 |
|
235 |
# @ polylang
|
236 |
#: ../include/list-table.php:56
|
242 |
#, php-format
|
243 |
msgctxt "calendar caption"
|
244 |
msgid "%1$s %2$s"
|
245 |
+
msgstr "%1$s %2$s"
|
246 |
|
247 |
# @ default
|
248 |
#: ../include/calendar.php:125
|
249 |
#: ../include/calendar.php:133
|
250 |
#, php-format
|
251 |
msgid "View posts for %1$s %2$s"
|
252 |
+
msgstr "Siehe Artikel für %1$s %2$s"
|
253 |
|
254 |
# @ polylang
|
255 |
#: ../include/languages-form.php:33
|
265 |
# @ polylang
|
266 |
#: ../include/languages-form.php:54
|
267 |
msgid "Choose a language"
|
268 |
+
msgstr "Sprache auswählen"
|
269 |
|
270 |
# @ polylang
|
271 |
#: ../include/languages-form.php:62
|
272 |
msgid "You can choose a language in the list or directly edit it below."
|
273 |
+
msgstr "Du kannst eine Sprache in der Liste auswählen oder sie unten direkt bearbeiten."
|
274 |
|
275 |
# @ polylang
|
276 |
#: ../include/languages-form.php:68
|
277 |
msgid "The name is how it is displayed on your site (for example: English)."
|
278 |
+
msgstr "Dieser Name wird dann auf der Website angezeigt (beispielsweise : Deutsch)"
|
279 |
|
280 |
# @ polylang
|
281 |
#: ../include/languages-form.php:74
|
282 |
msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
|
283 |
+
msgstr "Wordpress Sprachdatei für die Sprache (beispielweise : de_DE). Du musst die .mo-Datei für diese Sprache installieren."
|
284 |
|
285 |
# @ polylang
|
286 |
#: ../include/languages-form.php:78
|
290 |
# @ polylang
|
291 |
#: ../include/languages-form.php:80
|
292 |
msgid "2-letters ISO 639-1 language code (for example: en)"
|
293 |
+
msgstr "2 Buchstaben ISO 639-1 Sprachcode (beispielsweise : de)"
|
294 |
|
295 |
# @ default
|
296 |
#: ../include/languages-form.php:83
|
300 |
# @ polylang
|
301 |
#: ../include/languages-form.php:131
|
302 |
msgid "Language switcher"
|
303 |
+
msgstr "Sprachenumschalter"
|
304 |
|
305 |
# @ polylang
|
306 |
#: ../include/languages-form.php:158
|
307 |
msgid "Default language"
|
308 |
+
msgstr "Standardsprache"
|
309 |
|
310 |
# @ polylang
|
311 |
#: ../include/languages-form.php:187
|
|
|
312 |
msgid "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?"
|
313 |
+
msgstr "Es gibt Artikel, Seite, Kategorien oder Schlagwörter ohne Spracheinstellung. Willst du alle auf die Standardsprache einstellen ?"
|
314 |
|
315 |
# @ polylang
|
316 |
#: ../include/languages-form.php:195
|
317 |
msgid "Detect browser language"
|
318 |
+
msgstr "Browsersprache erkennen"
|
319 |
|
320 |
# @ polylang
|
321 |
#: ../include/languages-form.php:201
|
322 |
msgid "When the front page is visited, set the language according to the browser preference"
|
323 |
+
msgstr "Beim Besuch der Startseite erscheint sie in der Standardsprache des Browsers"
|
324 |
|
325 |
# @ polylang
|
326 |
#: ../include/languages-form.php:208
|
327 |
msgid "URL modifications"
|
328 |
+
msgstr "URL-Veränderungen"
|
329 |
|
330 |
# @ polylang
|
331 |
#: ../include/languages-form.php:214
|
332 |
msgid "Keep /language/ in pretty permalinks. Example:"
|
333 |
+
msgstr "/language/ in schönen Permalinks behalten. Zum Beispiel :"
|
334 |
|
335 |
# @ polylang
|
336 |
#: ../include/languages-form.php:222
|
345 |
# @ polylang
|
346 |
#: ../include/post-translations.php:1
|
347 |
msgid "ID of pages in other languages:"
|
348 |
+
msgstr "ID der Seiten in anderen Sprachen :"
|
349 |
|
350 |
# @ polylang
|
351 |
#: ../include/post-translations.php:1
|
352 |
msgid "ID of posts in other languages:"
|
353 |
+
msgstr "ID der Artikel in anderen Sprachen :"
|
354 |
|
355 |
# @ polylang
|
356 |
#: ../include/post-translations.php:5
|
357 |
msgid "Page ID"
|
358 |
+
msgstr "ID der Seite"
|
359 |
|
360 |
# @ polylang
|
361 |
#: ../include/post-translations.php:5
|
362 |
msgid "Post ID"
|
363 |
+
msgstr "Artikel-ID"
|
364 |
|
365 |
# @ polylang
|
366 |
#: ../include/personal-options.php:5
|
polylang.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Polylang
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/polylang/
|
5 |
-
Version: 0.5
|
6 |
Author: F. Demarle
|
7 |
Description: Adds multilingual capability to Wordpress
|
8 |
*/
|
@@ -23,7 +23,7 @@ Description: Adds multilingual capability to Wordpress
|
|
23 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
24 |
*/
|
25 |
|
26 |
-
define('POLYLANG_VERSION', '0.5');
|
27 |
|
28 |
define('POLYLANG_DIR', dirname(__FILE__));
|
29 |
define('PLL_INC', POLYLANG_DIR.'/include');
|
2 |
/*
|
3 |
Plugin Name: Polylang
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/polylang/
|
5 |
+
Version: 0.5.1
|
6 |
Author: F. Demarle
|
7 |
Description: Adds multilingual capability to Wordpress
|
8 |
*/
|
23 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
24 |
*/
|
25 |
|
26 |
+
define('POLYLANG_VERSION', '0.5.1');
|
27 |
|
28 |
define('POLYLANG_DIR', dirname(__FILE__));
|
29 |
define('PLL_INC', POLYLANG_DIR.'/include');
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: bilingual, language, i18n, international, l10n, localization, multilingual, multisite, translate, translation, widget
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.3
|
7 |
-
Stable tag: 0.5
|
8 |
|
9 |
Polylang adds multilingual support to WordPress. You set a language for each post and it will be displayed only when browsing this language.
|
10 |
|
@@ -35,14 +35,14 @@ The plugin admin interface is currently available in:
|
|
35 |
|
36 |
* English
|
37 |
* French
|
38 |
-
* German
|
39 |
* Russian contributed by [yoyurec](http://yoyurec.in.ua)
|
40 |
|
41 |
Other translators are welcome !
|
42 |
|
43 |
= Notes =
|
44 |
|
45 |
-
* The tests have been made with WordPress from version 3.1 up to 3.3
|
46 |
* Your server must run PHP5
|
47 |
* You must deactivate other multilingual plugins before activating Polylang, otherwise, you may get unexpected results !
|
48 |
* Unlike some other plugins, if you deactivate Polylang, your blog will go on working as smoothly as possible. All your posts, pages, category and post tags would be accessible (without language filter of course...).
|
@@ -97,6 +97,15 @@ Yes. You have to use PNG or JPG files and name them with the WordPress locale. F
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
= 0.5 (2011-12-07) =
|
101 |
|
102 |
* Add multisite support
|
@@ -122,7 +131,7 @@ Yes. You have to use PNG or JPG files and name them with the WordPress locale. F
|
|
122 |
|
123 |
= 0.4.3 (2011-11-19) =
|
124 |
|
125 |
-
* Add Russian translation contributed by [yoyurec](http://
|
126 |
* Bug correction: Impossible to suppress the language name in the language switcher widget settings
|
127 |
* Bug correction: Post's page does not work when using a static front page
|
128 |
* Bug correction: Flags in local_flags directory are removed after an automatic upgrade (now works for an upgrade from 0.4.3+ to a higher version)
|
4 |
Tags: bilingual, language, i18n, international, l10n, localization, multilingual, multisite, translate, translation, widget
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.3
|
7 |
+
Stable tag: 0.5.1
|
8 |
|
9 |
Polylang adds multilingual support to WordPress. You set a language for each post and it will be displayed only when browsing this language.
|
10 |
|
35 |
|
36 |
* English
|
37 |
* French
|
38 |
+
* German contributed by [Christian Ries](http://www.singbyfoot.lu)
|
39 |
* Russian contributed by [yoyurec](http://yoyurec.in.ua)
|
40 |
|
41 |
Other translators are welcome !
|
42 |
|
43 |
= Notes =
|
44 |
|
45 |
+
* The tests have been made with WordPress from version 3.1 up to 3.3. The plugin does not work with WordPress 3.0.5 and older.
|
46 |
* Your server must run PHP5
|
47 |
* You must deactivate other multilingual plugins before activating Polylang, otherwise, you may get unexpected results !
|
48 |
* Unlike some other plugins, if you deactivate Polylang, your blog will go on working as smoothly as possible. All your posts, pages, category and post tags would be accessible (without language filter of course...).
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 0.5.1 (2011-12-18) =
|
101 |
+
|
102 |
+
* Improved German translation contributed by [Christian Ries](http://www.singbyfoot.lu)
|
103 |
+
* Bug correction: Translated homepage not recognized as home page when it displays posts
|
104 |
+
* Bug correction: Predefined language list does not work on IE8
|
105 |
+
* Bug correction: On some installations, "Add New" post doesn't keep intended language
|
106 |
+
* Bug correction: Fatal error when Polylang is used together with the plugin Tabbed Widgets
|
107 |
+
* Bug correction: Language Switcher points sometimes to wrong places
|
108 |
+
|
109 |
= 0.5 (2011-12-07) =
|
110 |
|
111 |
* Add multisite support
|
131 |
|
132 |
= 0.4.3 (2011-11-19) =
|
133 |
|
134 |
+
* Add Russian translation contributed by [yoyurec](http://yoyurec.in.ua)
|
135 |
* Bug correction: Impossible to suppress the language name in the language switcher widget settings
|
136 |
* Bug correction: Post's page does not work when using a static front page
|
137 |
* Bug correction: Flags in local_flags directory are removed after an automatic upgrade (now works for an upgrade from 0.4.3+ to a higher version)
|