Version Description
- Bug correction: authors pages are not filtered by language
- Bug correction: language pages use the archive template
- Bug correction: database error for comments on posts and pages
- Bug correction: "Add new" translation for pages creates a post instead of a page
- Bug correction: the search query does not look into pages
release: October 20th, 2011
Download this release
Release Info
Developer | Chouby |
Plugin | Polylang |
Version | 0.3.2 |
Comparing to | |
See all releases |
Code changes from version 0.3.1 to 0.3.2
- admin.php +2 -1
- polylang-de_DE.mo +0 -0
- polylang-de_DE.po +70 -62
- polylang-fr_FR.mo +0 -0
- polylang-fr_FR.po +70 -62
- polylang.php +45 -10
- polylang.pot +70 -62
- post-translations.php +3 -3
- readme.txt +12 -2
admin.php
CHANGED
@@ -343,8 +343,9 @@ class Polylang_Admin extends Polylang_Base {
|
|
343 |
|
344 |
$lang = $this->get_language($_POST['lang']);
|
345 |
$post_ID = $_POST['post_id'];
|
|
|
346 |
|
347 |
-
if ($lang)
|
348 |
include(POLYLANG_DIR.'/post-translations.php');
|
349 |
|
350 |
die();
|
343 |
|
344 |
$lang = $this->get_language($_POST['lang']);
|
345 |
$post_ID = $_POST['post_id'];
|
346 |
+
$post_type = get_post_type($post_ID);
|
347 |
|
348 |
+
if ($lang && !is_wp_error($lang))
|
349 |
include(POLYLANG_DIR.'/post-translations.php');
|
350 |
|
351 |
die();
|
polylang-de_DE.mo
CHANGED
Binary file
|
polylang-de_DE.po
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: polylang\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-10-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: F. Demarle\n"
|
8 |
"Language-Team: \n"
|
@@ -14,184 +14,192 @@ msgstr ""
|
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
"X-Poedit-KeywordsList: _e;__;_c\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
-
"X-Poedit-SearchPath-0:
|
18 |
-
|
19 |
-
#:
|
20 |
-
#:
|
21 |
-
#:
|
22 |
-
#:
|
23 |
-
#:
|
24 |
-
#:
|
25 |
-
#:
|
26 |
msgid "Language"
|
27 |
msgstr "Sprache"
|
28 |
|
29 |
-
#:
|
30 |
-
#:
|
31 |
msgid "Sets the language"
|
32 |
msgstr "definiert die Sprache"
|
33 |
|
34 |
-
#:
|
35 |
msgid "Displays a language switcher"
|
36 |
msgstr "Zeige die Sprachenliste"
|
37 |
|
38 |
-
#:
|
39 |
msgid "Language Switcher"
|
40 |
msgstr "Sprachenliste"
|
41 |
|
42 |
-
#:
|
43 |
msgid "Settings"
|
44 |
msgstr "Einstellungen"
|
45 |
|
46 |
-
#:
|
47 |
-
#:
|
48 |
-
#:
|
49 |
-
#:
|
50 |
-
#:
|
51 |
msgid "Languages"
|
52 |
msgstr "Sprachen"
|
53 |
|
54 |
-
#:
|
55 |
msgid "Show all languages"
|
56 |
msgstr "Zeige alle Sprachen"
|
57 |
|
58 |
-
#:
|
59 |
msgid "Theme locations and languages"
|
60 |
msgstr "Anordnung im Theme und Sprachen"
|
61 |
|
62 |
-
#:
|
63 |
#, php-format
|
64 |
msgid "Please go to the %slanguages page%s to set theme locations and languages"
|
65 |
msgstr "Du solltest zu der %sSprachen Seite%s gehen, um Anordnung im Theme und Sprachen zu definieren."
|
66 |
|
67 |
-
#:
|
68 |
msgid "The widget is displayed for:"
|
69 |
msgstr "Zeigen das Widget für :"
|
70 |
|
71 |
-
#:
|
72 |
msgid "All languages"
|
73 |
msgstr "Alle Sprachen"
|
74 |
|
75 |
-
#:
|
76 |
msgid "Page's language:"
|
77 |
msgstr "Sprache für die Seite :"
|
78 |
|
79 |
-
#:
|
80 |
msgid "Post's language:"
|
81 |
msgstr "Sprache für die Artikel :"
|
82 |
|
83 |
-
#:
|
84 |
-
#:
|
85 |
msgid "Translations"
|
86 |
msgstr "Übersetzungen"
|
87 |
|
88 |
-
#:
|
89 |
msgid "Translation"
|
90 |
msgstr "Übersetzung"
|
91 |
|
92 |
-
#:
|
93 |
-
#:
|
94 |
-
#:
|
95 |
-
#:
|
96 |
-
#:
|
97 |
msgid "Edit"
|
98 |
msgstr "Bearbeiten"
|
99 |
|
100 |
-
#:
|
101 |
-
#:
|
102 |
msgid "Add new"
|
103 |
msgstr "Hinzufügen"
|
104 |
|
105 |
-
#:
|
106 |
msgid "Delete"
|
107 |
msgstr "Löschen"
|
108 |
|
109 |
-
#:
|
110 |
-
#:
|
111 |
msgid "Full name"
|
112 |
msgstr "Name"
|
113 |
|
114 |
-
#:
|
115 |
-
#:
|
116 |
#, fuzzy
|
117 |
msgid "Locale"
|
118 |
msgstr "Locale"
|
119 |
|
120 |
-
#:
|
121 |
msgid "Code"
|
122 |
msgstr "Code"
|
123 |
|
124 |
-
#:
|
125 |
msgid "Posts"
|
126 |
msgstr "Artikel"
|
127 |
|
128 |
-
#:
|
129 |
msgid "Edit language"
|
130 |
msgstr "Sprache bearbeiten"
|
131 |
|
132 |
-
#:
|
133 |
-
#:
|
134 |
msgid "Add new language"
|
135 |
msgstr "Neue Sprache hinzufügen"
|
136 |
|
137 |
-
#:
|
138 |
msgid "The name is how it is displayed on your site (for example: English)."
|
139 |
msgstr "Dieser Name wird dann auf der Website angezeigt (beispielweise : Deutsch)"
|
140 |
|
141 |
-
#:
|
142 |
msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
|
143 |
msgstr "Wordpress Locale für die Sprache (beispielweise : de_DE). Du musst die .mo Datei für diese Sprache installieren."
|
144 |
|
145 |
-
#:
|
146 |
msgid "Language code"
|
147 |
msgstr "Sprache code"
|
148 |
|
149 |
-
#:
|
150 |
msgid "2-letters ISO 639-1 language code (for example: en)"
|
151 |
msgstr "2 Buchstaben ISO 639-1 sprache code (beispielweise : de)"
|
152 |
|
153 |
-
#:
|
154 |
msgid "Update"
|
155 |
msgstr "Aktualisieren"
|
156 |
|
157 |
-
#:
|
158 |
msgid "Menus"
|
159 |
msgstr "Menüs"
|
160 |
|
161 |
-
#:
|
162 |
msgid "Theme location"
|
163 |
msgstr "Anordnung im Theme"
|
164 |
|
165 |
-
#:
|
166 |
msgid "Options"
|
167 |
msgstr "Einstellungen"
|
168 |
|
169 |
-
#:
|
170 |
msgid "Keep /language/ in pretty permalinks"
|
171 |
msgstr "/language/ in Permalinks behalten"
|
172 |
|
173 |
-
#:
|
174 |
msgid "Remove /language/ in pretty permalinks"
|
175 |
msgstr "/language/ in Permalinks entfernen"
|
176 |
|
177 |
-
#:
|
178 |
#, fuzzy
|
179 |
msgid "The front page default language is : "
|
180 |
msgstr "Die Sprache für die Startseite ist :"
|
181 |
|
182 |
-
#:
|
183 |
msgid "set by the browser preference"
|
184 |
msgstr "durch den Browser Einstellung definiert"
|
185 |
|
186 |
-
#:
|
187 |
msgid "otherwise: "
|
188 |
msgstr "sonst :"
|
189 |
|
190 |
-
#:
|
|
|
|
|
|
|
|
|
191 |
msgid "ID of posts in other languages:"
|
192 |
msgstr "ID für die Artikel in andere Sprache :"
|
193 |
|
194 |
-
#:
|
|
|
|
|
|
|
|
|
195 |
msgid "Post ID"
|
196 |
msgstr "ID für die Artikel"
|
197 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: polylang\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-10-19 20:41+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: F. Demarle\n"
|
8 |
"Language-Team: \n"
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
"X-Poedit-KeywordsList: _e;__;_c\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
|
19 |
+
#: edit-term-form.php:6
|
20 |
+
#: admin.php:277
|
21 |
+
#: admin.php:453
|
22 |
+
#: term-translations.php:16
|
23 |
+
#: add-term-form.php:3
|
24 |
+
#: list-table.php:12
|
25 |
+
#: post-translations.php:5
|
26 |
msgid "Language"
|
27 |
msgstr "Sprache"
|
28 |
|
29 |
+
#: edit-term-form.php:18
|
30 |
+
#: add-term-form.php:10
|
31 |
msgid "Sets the language"
|
32 |
msgstr "definiert die Sprache"
|
33 |
|
34 |
+
#: widget.php:5
|
35 |
msgid "Displays a language switcher"
|
36 |
msgstr "Zeige die Sprachenliste"
|
37 |
|
38 |
+
#: widget.php:6
|
39 |
msgid "Language Switcher"
|
40 |
msgstr "Sprachenliste"
|
41 |
|
42 |
+
#: admin.php:86
|
43 |
msgid "Settings"
|
44 |
msgstr "Einstellungen"
|
45 |
|
46 |
+
#: admin.php:93
|
47 |
+
#: admin.php:322
|
48 |
+
#: admin.php:323
|
49 |
+
#: list-table.php:13
|
50 |
+
#: languages-form.php:14
|
51 |
msgid "Languages"
|
52 |
msgstr "Sprachen"
|
53 |
|
54 |
+
#: admin.php:313
|
55 |
msgid "Show all languages"
|
56 |
msgstr "Zeige alle Sprachen"
|
57 |
|
58 |
+
#: admin.php:549
|
59 |
msgid "Theme locations and languages"
|
60 |
msgstr "Anordnung im Theme und Sprachen"
|
61 |
|
62 |
+
#: admin.php:554
|
63 |
#, php-format
|
64 |
msgid "Please go to the %slanguages page%s to set theme locations and languages"
|
65 |
msgstr "Du solltest zu der %sSprachen Seite%s gehen, um Anordnung im Theme und Sprachen zu definieren."
|
66 |
|
67 |
+
#: admin.php:567
|
68 |
msgid "The widget is displayed for:"
|
69 |
msgstr "Zeigen das Widget für :"
|
70 |
|
71 |
+
#: admin.php:570
|
72 |
msgid "All languages"
|
73 |
msgstr "Alle Sprachen"
|
74 |
|
75 |
+
#: post-metabox.php:3
|
76 |
msgid "Page's language:"
|
77 |
msgstr "Sprache für die Seite :"
|
78 |
|
79 |
+
#: post-metabox.php:3
|
80 |
msgid "Post's language:"
|
81 |
msgstr "Sprache für die Artikel :"
|
82 |
|
83 |
+
#: term-translations.php:6
|
84 |
+
#: term-translations.php:10
|
85 |
msgid "Translations"
|
86 |
msgstr "Übersetzungen"
|
87 |
|
88 |
+
#: term-translations.php:16
|
89 |
msgid "Translation"
|
90 |
msgstr "Übersetzung"
|
91 |
|
92 |
+
#: term-translations.php:16
|
93 |
+
#: term-translations.php:77
|
94 |
+
#: list-table.php:32
|
95 |
+
#: post-translations.php:7
|
96 |
+
#: post-translations.php:29
|
97 |
msgid "Edit"
|
98 |
msgstr "Bearbeiten"
|
99 |
|
100 |
+
#: term-translations.php:63
|
101 |
+
#: post-translations.php:34
|
102 |
msgid "Add new"
|
103 |
msgstr "Hinzufügen"
|
104 |
|
105 |
+
#: list-table.php:33
|
106 |
msgid "Delete"
|
107 |
msgstr "Löschen"
|
108 |
|
109 |
+
#: list-table.php:50
|
110 |
+
#: languages-form.php:46
|
111 |
msgid "Full name"
|
112 |
msgstr "Name"
|
113 |
|
114 |
+
#: list-table.php:51
|
115 |
+
#: languages-form.php:52
|
116 |
#, fuzzy
|
117 |
msgid "Locale"
|
118 |
msgstr "Locale"
|
119 |
|
120 |
+
#: list-table.php:52
|
121 |
msgid "Code"
|
122 |
msgstr "Code"
|
123 |
|
124 |
+
#: list-table.php:53
|
125 |
msgid "Posts"
|
126 |
msgstr "Artikel"
|
127 |
|
128 |
+
#: languages-form.php:29
|
129 |
msgid "Edit language"
|
130 |
msgstr "Sprache bearbeiten"
|
131 |
|
132 |
+
#: languages-form.php:29
|
133 |
+
#: languages-form.php:66
|
134 |
msgid "Add new language"
|
135 |
msgstr "Neue Sprache hinzufügen"
|
136 |
|
137 |
+
#: languages-form.php:48
|
138 |
msgid "The name is how it is displayed on your site (for example: English)."
|
139 |
msgstr "Dieser Name wird dann auf der Website angezeigt (beispielweise : Deutsch)"
|
140 |
|
141 |
+
#: languages-form.php:54
|
142 |
msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
|
143 |
msgstr "Wordpress Locale für die Sprache (beispielweise : de_DE). Du musst die .mo Datei für diese Sprache installieren."
|
144 |
|
145 |
+
#: languages-form.php:58
|
146 |
msgid "Language code"
|
147 |
msgstr "Sprache code"
|
148 |
|
149 |
+
#: languages-form.php:60
|
150 |
msgid "2-letters ISO 639-1 language code (for example: en)"
|
151 |
msgstr "2 Buchstaben ISO 639-1 sprache code (beispielweise : de)"
|
152 |
|
153 |
+
#: languages-form.php:64
|
154 |
msgid "Update"
|
155 |
msgstr "Aktualisieren"
|
156 |
|
157 |
+
#: languages-form.php:78
|
158 |
msgid "Menus"
|
159 |
msgstr "Menüs"
|
160 |
|
161 |
+
#: languages-form.php:86
|
162 |
msgid "Theme location"
|
163 |
msgstr "Anordnung im Theme"
|
164 |
|
165 |
+
#: languages-form.php:131
|
166 |
msgid "Options"
|
167 |
msgstr "Einstellungen"
|
168 |
|
169 |
+
#: languages-form.php:144
|
170 |
msgid "Keep /language/ in pretty permalinks"
|
171 |
msgstr "/language/ in Permalinks behalten"
|
172 |
|
173 |
+
#: languages-form.php:155
|
174 |
msgid "Remove /language/ in pretty permalinks"
|
175 |
msgstr "/language/ in Permalinks entfernen"
|
176 |
|
177 |
+
#: languages-form.php:162
|
178 |
#, fuzzy
|
179 |
msgid "The front page default language is : "
|
180 |
msgstr "Die Sprache für die Startseite ist :"
|
181 |
|
182 |
+
#: languages-form.php:167
|
183 |
msgid "set by the browser preference"
|
184 |
msgstr "durch den Browser Einstellung definiert"
|
185 |
|
186 |
+
#: languages-form.php:170
|
187 |
msgid "otherwise: "
|
188 |
msgstr "sonst :"
|
189 |
|
190 |
+
#: post-translations.php:2
|
191 |
+
msgid "ID of pages in other languages:"
|
192 |
+
msgstr "ID für die Seiten in andere Sprache :"
|
193 |
+
|
194 |
+
#: post-translations.php:2
|
195 |
msgid "ID of posts in other languages:"
|
196 |
msgstr "ID für die Artikel in andere Sprache :"
|
197 |
|
198 |
+
#: post-translations.php:6
|
199 |
+
msgid "Page ID"
|
200 |
+
msgstr "ID für die Seite"
|
201 |
+
|
202 |
+
#: post-translations.php:6
|
203 |
msgid "Post ID"
|
204 |
msgstr "ID für die Artikel"
|
205 |
|
polylang-fr_FR.mo
CHANGED
Binary file
|
polylang-fr_FR.po
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: polylang\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-10-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: F. Demarle\n"
|
8 |
"Language-Team: \n"
|
@@ -14,183 +14,191 @@ msgstr ""
|
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
"X-Poedit-KeywordsList: _e;__;_c\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
-
"X-Poedit-SearchPath-0:
|
18 |
-
|
19 |
-
#:
|
20 |
-
#:
|
21 |
-
#:
|
22 |
-
#:
|
23 |
-
#:
|
24 |
-
#:
|
25 |
-
#:
|
26 |
msgid "Language"
|
27 |
msgstr "Langue"
|
28 |
|
29 |
-
#:
|
30 |
-
#:
|
31 |
msgid "Sets the language"
|
32 |
msgstr "Définit la langue"
|
33 |
|
34 |
-
#:
|
35 |
msgid "Displays a language switcher"
|
36 |
msgstr "Affiche la liste des langues "
|
37 |
|
38 |
-
#:
|
39 |
msgid "Language Switcher"
|
40 |
msgstr "Liste des langues"
|
41 |
|
42 |
-
#:
|
43 |
msgid "Settings"
|
44 |
msgstr "Réglages"
|
45 |
|
46 |
-
#:
|
47 |
-
#:
|
48 |
-
#:
|
49 |
-
#:
|
50 |
-
#:
|
51 |
msgid "Languages"
|
52 |
msgstr "Langues"
|
53 |
|
54 |
-
#:
|
55 |
msgid "Show all languages"
|
56 |
msgstr "Afficher toutes les langues"
|
57 |
|
58 |
-
#:
|
59 |
msgid "Theme locations and languages"
|
60 |
msgstr "Emplacements du thème et langues"
|
61 |
|
62 |
-
#:
|
63 |
#, php-format
|
64 |
msgid "Please go to the %slanguages page%s to set theme locations and languages"
|
65 |
msgstr "Aller à la %spage langues%s pour définir les emplacements du thème et les langues "
|
66 |
|
67 |
-
#:
|
68 |
msgid "The widget is displayed for:"
|
69 |
msgstr "Afficher le widget pour :"
|
70 |
|
71 |
-
#:
|
72 |
msgid "All languages"
|
73 |
msgstr "Toutes les langues"
|
74 |
|
75 |
-
#:
|
76 |
msgid "Page's language:"
|
77 |
msgstr "Langue de la page"
|
78 |
|
79 |
-
#:
|
80 |
msgid "Post's language:"
|
81 |
msgstr "Langue de l'article"
|
82 |
|
83 |
-
#:
|
84 |
-
#:
|
85 |
msgid "Translations"
|
86 |
msgstr "Traductions"
|
87 |
|
88 |
-
#:
|
89 |
msgid "Translation"
|
90 |
msgstr "Traduction"
|
91 |
|
92 |
-
#:
|
93 |
-
#:
|
94 |
-
#:
|
95 |
-
#:
|
96 |
-
#:
|
97 |
msgid "Edit"
|
98 |
msgstr "Modifier"
|
99 |
|
100 |
-
#:
|
101 |
-
#:
|
102 |
msgid "Add new"
|
103 |
msgstr "Ajouter"
|
104 |
|
105 |
-
#:
|
106 |
msgid "Delete"
|
107 |
msgstr "Supprimer"
|
108 |
|
109 |
-
#:
|
110 |
-
#:
|
111 |
msgid "Full name"
|
112 |
msgstr "Nom"
|
113 |
|
114 |
-
#:
|
115 |
-
#:
|
116 |
#, fuzzy
|
117 |
msgid "Locale"
|
118 |
msgstr "Locale"
|
119 |
|
120 |
-
#:
|
121 |
msgid "Code"
|
122 |
msgstr "Code"
|
123 |
|
124 |
-
#:
|
125 |
msgid "Posts"
|
126 |
msgstr "Articles"
|
127 |
|
128 |
-
#:
|
129 |
msgid "Edit language"
|
130 |
msgstr "Modifier la langue"
|
131 |
|
132 |
-
#:
|
133 |
-
#:
|
134 |
msgid "Add new language"
|
135 |
msgstr "Ajouter une nouvelle langue"
|
136 |
|
137 |
-
#:
|
138 |
msgid "The name is how it is displayed on your site (for example: English)."
|
139 |
msgstr "Le nom est utilisé un peu partout sur le site (par exemple : Français)"
|
140 |
|
141 |
-
#:
|
142 |
msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
|
143 |
msgstr "Code Wordpress pour la langue (par exemple : fr_FR). Vous aurez besoin d'installer les fichiers .mo correspondant"
|
144 |
|
145 |
-
#:
|
146 |
msgid "Language code"
|
147 |
msgstr "Code de la langue"
|
148 |
|
149 |
-
#:
|
150 |
msgid "2-letters ISO 639-1 language code (for example: en)"
|
151 |
msgstr "Code ISO 639-1 à 2 lettres (par exemple : fr)"
|
152 |
|
153 |
-
#:
|
154 |
msgid "Update"
|
155 |
msgstr "Mettre à jour"
|
156 |
|
157 |
-
#:
|
158 |
msgid "Menus"
|
159 |
msgstr "Menus"
|
160 |
|
161 |
-
#:
|
162 |
msgid "Theme location"
|
163 |
msgstr "Emplacement du thème"
|
164 |
|
165 |
-
#:
|
166 |
msgid "Options"
|
167 |
msgstr "Options"
|
168 |
|
169 |
-
#:
|
170 |
msgid "Keep /language/ in pretty permalinks"
|
171 |
msgstr "Conserve /language/ dans les permaliens"
|
172 |
|
173 |
-
#:
|
174 |
msgid "Remove /language/ in pretty permalinks"
|
175 |
msgstr "Supprime /language/ dans les permaliens"
|
176 |
|
177 |
-
#:
|
178 |
msgid "The front page default language is : "
|
179 |
msgstr "La langue par défaut de la page d'accueil est :"
|
180 |
|
181 |
-
#:
|
182 |
msgid "set by the browser preference"
|
183 |
msgstr "définie par les préférences du navigateur"
|
184 |
|
185 |
-
#:
|
186 |
msgid "otherwise: "
|
187 |
msgstr "sinon :"
|
188 |
|
189 |
-
#:
|
|
|
|
|
|
|
|
|
190 |
msgid "ID of posts in other languages:"
|
191 |
msgstr "ID des articles dans les autres langues"
|
192 |
|
193 |
-
#:
|
|
|
|
|
|
|
|
|
194 |
msgid "Post ID"
|
195 |
msgstr "ID de l'article"
|
196 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: polylang\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-10-19 20:40+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: F. Demarle\n"
|
8 |
"Language-Team: \n"
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
"X-Poedit-KeywordsList: _e;__;_c\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
|
19 |
+
#: edit-term-form.php:6
|
20 |
+
#: admin.php:277
|
21 |
+
#: admin.php:453
|
22 |
+
#: term-translations.php:16
|
23 |
+
#: add-term-form.php:3
|
24 |
+
#: list-table.php:12
|
25 |
+
#: post-translations.php:5
|
26 |
msgid "Language"
|
27 |
msgstr "Langue"
|
28 |
|
29 |
+
#: edit-term-form.php:18
|
30 |
+
#: add-term-form.php:10
|
31 |
msgid "Sets the language"
|
32 |
msgstr "Définit la langue"
|
33 |
|
34 |
+
#: widget.php:5
|
35 |
msgid "Displays a language switcher"
|
36 |
msgstr "Affiche la liste des langues "
|
37 |
|
38 |
+
#: widget.php:6
|
39 |
msgid "Language Switcher"
|
40 |
msgstr "Liste des langues"
|
41 |
|
42 |
+
#: admin.php:86
|
43 |
msgid "Settings"
|
44 |
msgstr "Réglages"
|
45 |
|
46 |
+
#: admin.php:93
|
47 |
+
#: admin.php:322
|
48 |
+
#: admin.php:323
|
49 |
+
#: list-table.php:13
|
50 |
+
#: languages-form.php:14
|
51 |
msgid "Languages"
|
52 |
msgstr "Langues"
|
53 |
|
54 |
+
#: admin.php:313
|
55 |
msgid "Show all languages"
|
56 |
msgstr "Afficher toutes les langues"
|
57 |
|
58 |
+
#: admin.php:549
|
59 |
msgid "Theme locations and languages"
|
60 |
msgstr "Emplacements du thème et langues"
|
61 |
|
62 |
+
#: admin.php:554
|
63 |
#, php-format
|
64 |
msgid "Please go to the %slanguages page%s to set theme locations and languages"
|
65 |
msgstr "Aller à la %spage langues%s pour définir les emplacements du thème et les langues "
|
66 |
|
67 |
+
#: admin.php:567
|
68 |
msgid "The widget is displayed for:"
|
69 |
msgstr "Afficher le widget pour :"
|
70 |
|
71 |
+
#: admin.php:570
|
72 |
msgid "All languages"
|
73 |
msgstr "Toutes les langues"
|
74 |
|
75 |
+
#: post-metabox.php:3
|
76 |
msgid "Page's language:"
|
77 |
msgstr "Langue de la page"
|
78 |
|
79 |
+
#: post-metabox.php:3
|
80 |
msgid "Post's language:"
|
81 |
msgstr "Langue de l'article"
|
82 |
|
83 |
+
#: term-translations.php:6
|
84 |
+
#: term-translations.php:10
|
85 |
msgid "Translations"
|
86 |
msgstr "Traductions"
|
87 |
|
88 |
+
#: term-translations.php:16
|
89 |
msgid "Translation"
|
90 |
msgstr "Traduction"
|
91 |
|
92 |
+
#: term-translations.php:16
|
93 |
+
#: term-translations.php:77
|
94 |
+
#: list-table.php:32
|
95 |
+
#: post-translations.php:7
|
96 |
+
#: post-translations.php:29
|
97 |
msgid "Edit"
|
98 |
msgstr "Modifier"
|
99 |
|
100 |
+
#: term-translations.php:63
|
101 |
+
#: post-translations.php:34
|
102 |
msgid "Add new"
|
103 |
msgstr "Ajouter"
|
104 |
|
105 |
+
#: list-table.php:33
|
106 |
msgid "Delete"
|
107 |
msgstr "Supprimer"
|
108 |
|
109 |
+
#: list-table.php:50
|
110 |
+
#: languages-form.php:46
|
111 |
msgid "Full name"
|
112 |
msgstr "Nom"
|
113 |
|
114 |
+
#: list-table.php:51
|
115 |
+
#: languages-form.php:52
|
116 |
#, fuzzy
|
117 |
msgid "Locale"
|
118 |
msgstr "Locale"
|
119 |
|
120 |
+
#: list-table.php:52
|
121 |
msgid "Code"
|
122 |
msgstr "Code"
|
123 |
|
124 |
+
#: list-table.php:53
|
125 |
msgid "Posts"
|
126 |
msgstr "Articles"
|
127 |
|
128 |
+
#: languages-form.php:29
|
129 |
msgid "Edit language"
|
130 |
msgstr "Modifier la langue"
|
131 |
|
132 |
+
#: languages-form.php:29
|
133 |
+
#: languages-form.php:66
|
134 |
msgid "Add new language"
|
135 |
msgstr "Ajouter une nouvelle langue"
|
136 |
|
137 |
+
#: languages-form.php:48
|
138 |
msgid "The name is how it is displayed on your site (for example: English)."
|
139 |
msgstr "Le nom est utilisé un peu partout sur le site (par exemple : Français)"
|
140 |
|
141 |
+
#: languages-form.php:54
|
142 |
msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
|
143 |
msgstr "Code Wordpress pour la langue (par exemple : fr_FR). Vous aurez besoin d'installer les fichiers .mo correspondant"
|
144 |
|
145 |
+
#: languages-form.php:58
|
146 |
msgid "Language code"
|
147 |
msgstr "Code de la langue"
|
148 |
|
149 |
+
#: languages-form.php:60
|
150 |
msgid "2-letters ISO 639-1 language code (for example: en)"
|
151 |
msgstr "Code ISO 639-1 à 2 lettres (par exemple : fr)"
|
152 |
|
153 |
+
#: languages-form.php:64
|
154 |
msgid "Update"
|
155 |
msgstr "Mettre à jour"
|
156 |
|
157 |
+
#: languages-form.php:78
|
158 |
msgid "Menus"
|
159 |
msgstr "Menus"
|
160 |
|
161 |
+
#: languages-form.php:86
|
162 |
msgid "Theme location"
|
163 |
msgstr "Emplacement du thème"
|
164 |
|
165 |
+
#: languages-form.php:131
|
166 |
msgid "Options"
|
167 |
msgstr "Options"
|
168 |
|
169 |
+
#: languages-form.php:144
|
170 |
msgid "Keep /language/ in pretty permalinks"
|
171 |
msgstr "Conserve /language/ dans les permaliens"
|
172 |
|
173 |
+
#: languages-form.php:155
|
174 |
msgid "Remove /language/ in pretty permalinks"
|
175 |
msgstr "Supprime /language/ dans les permaliens"
|
176 |
|
177 |
+
#: languages-form.php:162
|
178 |
msgid "The front page default language is : "
|
179 |
msgstr "La langue par défaut de la page d'accueil est :"
|
180 |
|
181 |
+
#: languages-form.php:167
|
182 |
msgid "set by the browser preference"
|
183 |
msgstr "définie par les préférences du navigateur"
|
184 |
|
185 |
+
#: languages-form.php:170
|
186 |
msgid "otherwise: "
|
187 |
msgstr "sinon :"
|
188 |
|
189 |
+
#: post-translations.php:2
|
190 |
+
msgid "ID of pages in other languages:"
|
191 |
+
msgstr "ID des pages dans les autres langues"
|
192 |
+
|
193 |
+
#: post-translations.php:2
|
194 |
msgid "ID of posts in other languages:"
|
195 |
msgstr "ID des articles dans les autres langues"
|
196 |
|
197 |
+
#: post-translations.php:6
|
198 |
+
msgid "Page ID"
|
199 |
+
msgstr "ID de la page"
|
200 |
+
|
201 |
+
#: post-translations.php:6
|
202 |
msgid "Post ID"
|
203 |
msgstr "ID de l'article"
|
204 |
|
polylang.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Polylang
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/polylang/
|
5 |
-
Version: 0.3.
|
6 |
Author: F. Demarle
|
7 |
Description: Adds multilingual capability to Wordpress
|
8 |
*/
|
@@ -79,7 +79,7 @@ class Polylang extends Polylang_Base {
|
|
79 |
add_filter('get_pages', array(&$this, 'get_pages'), 10, 2);
|
80 |
|
81 |
// filters the comments according to the current language
|
82 |
-
add_filter('comments_clauses', array(&$this, 'comments_clauses'));
|
83 |
|
84 |
// rewrites feed links to filter them by language
|
85 |
add_filter('feed_link', array(&$this, 'feed_link'), 10, 2);
|
@@ -89,6 +89,9 @@ class Polylang extends Polylang_Base {
|
|
89 |
add_filter('getarchives_where', array(&$this, 'posts_where'));
|
90 |
add_filter('get_archives_link', array(&$this, 'get_archives_link'));
|
91 |
|
|
|
|
|
|
|
92 |
// rewrites next and previous post links to filter them by language
|
93 |
add_filter('get_previous_post_join', array(&$this, 'posts_join'));
|
94 |
add_filter('get_next_post_join', array(&$this, 'posts_join'));
|
@@ -319,7 +322,8 @@ class Polylang extends Polylang_Base {
|
|
319 |
if($this->curlang)
|
320 |
return $this->curlang;
|
321 |
|
322 |
-
|
|
|
323 |
return $this->get_preferred_language();
|
324 |
|
325 |
if (is_admin()) {
|
@@ -421,9 +425,21 @@ class Polylang extends Polylang_Base {
|
|
421 |
if ($query->is_home && $this->curlang && !isset($qvars['post_type']))
|
422 |
$query->set('lang', $this->curlang->slug);
|
423 |
|
424 |
-
// remove pages query when the language is set
|
425 |
-
|
426 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
}
|
428 |
|
429 |
function wp_head() {
|
@@ -524,9 +540,10 @@ class Polylang extends Polylang_Base {
|
|
524 |
return $pages;
|
525 |
}
|
526 |
|
527 |
-
// filters the comments according to the current language
|
528 |
-
function comments_clauses($clauses) {
|
529 |
-
if
|
|
|
530 |
global $wpdb;
|
531 |
$clauses['join'] .= " INNER JOIN $wpdb->term_relationships AS tr ON tr.object_id = ID";
|
532 |
$clauses['join'] .= " INNER JOIN $wpdb->term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id";
|
@@ -589,10 +606,28 @@ class Polylang extends Polylang_Base {
|
|
589 |
return $link_html;
|
590 |
}
|
591 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
592 |
// returns the url of the translation (if exists) of the current page
|
593 |
function get_translation_url($language) {
|
594 |
|
595 |
-
|
|
|
|
|
596 |
$id = $this->get_post(get_the_ID(), $language);
|
597 |
if ($id)
|
598 |
$url = get_permalink($id);
|
2 |
/*
|
3 |
Plugin Name: Polylang
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/polylang/
|
5 |
+
Version: 0.3.2
|
6 |
Author: F. Demarle
|
7 |
Description: Adds multilingual capability to Wordpress
|
8 |
*/
|
79 |
add_filter('get_pages', array(&$this, 'get_pages'), 10, 2);
|
80 |
|
81 |
// filters the comments according to the current language
|
82 |
+
add_filter('comments_clauses', array(&$this, 'comments_clauses'), 10, 2);
|
83 |
|
84 |
// rewrites feed links to filter them by language
|
85 |
add_filter('feed_link', array(&$this, 'feed_link'), 10, 2);
|
89 |
add_filter('getarchives_where', array(&$this, 'posts_where'));
|
90 |
add_filter('get_archives_link', array(&$this, 'get_archives_link'));
|
91 |
|
92 |
+
// rewrites author links to filter them by language
|
93 |
+
add_filter('author_link', array(&$this, 'author_link'));
|
94 |
+
|
95 |
// rewrites next and previous post links to filter them by language
|
96 |
add_filter('get_previous_post_join', array(&$this, 'posts_join'));
|
97 |
add_filter('get_next_post_join', array(&$this, 'posts_join'));
|
322 |
if($this->curlang)
|
323 |
return $this->curlang;
|
324 |
|
325 |
+
// no language set for 404 and attachment
|
326 |
+
if (is_404() || is_attachment())
|
327 |
return $this->get_preferred_language();
|
328 |
|
329 |
if (is_admin()) {
|
425 |
if ($query->is_home && $this->curlang && !isset($qvars['post_type']))
|
426 |
$query->set('lang', $this->curlang->slug);
|
427 |
|
428 |
+
// remove pages query when the language is set unless we do a search
|
429 |
+
// FIXME is only search broken by this ?
|
430 |
+
if (isset($qvars['lang']) && $qvars['lang'] && !isset($qvars['post_type']) && !is_search())
|
431 |
+
$query->set('post_type', 'post');
|
432 |
+
|
433 |
+
// unset the is_archive flag for language pages to prevent loading the archive template
|
434 |
+
// keep archive flag for comment feed otherwise the language filter does not work
|
435 |
+
if ( isset($qvars['lang']) && $qvars['lang'] && !is_post_type_archive() && !is_date() && !is_author() && !is_category() && !is_tag() && !is_comment_feed())
|
436 |
+
$query->is_archive = false;
|
437 |
+
|
438 |
+
// unset the is_tax flag for authors pages
|
439 |
+
// FIXME Probably I should do this for other cases
|
440 |
+
if ( isset($qvars['lang']) && $qvars['lang'] && is_author() )
|
441 |
+
$query->is_tax = false;
|
442 |
+
|
443 |
}
|
444 |
|
445 |
function wp_head() {
|
540 |
return $pages;
|
541 |
}
|
542 |
|
543 |
+
// filters the comments according to the current language mainly for the recent comments widget
|
544 |
+
function comments_clauses($clauses, $comment_query) {
|
545 |
+
// first test if wp_posts.ID already available in the query
|
546 |
+
if ($this->curlang && strpos($clauses['join'], '.ID')) {
|
547 |
global $wpdb;
|
548 |
$clauses['join'] .= " INNER JOIN $wpdb->term_relationships AS tr ON tr.object_id = ID";
|
549 |
$clauses['join'] .= " INNER JOIN $wpdb->term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id";
|
606 |
return $link_html;
|
607 |
}
|
608 |
|
609 |
+
// modifies the author link to add the language parameter
|
610 |
+
function author_link($link) {
|
611 |
+
if ($this->curlang) {
|
612 |
+
global $wp_rewrite;
|
613 |
+
$options = get_option('polylang');
|
614 |
+
$home = home_url();
|
615 |
+
if ($wp_rewrite->using_permalinks()) {
|
616 |
+
$options['rewrite'] ? $base = '/' : $base = '/language/';
|
617 |
+
$link = esc_url(str_replace($home, $home.$base.$this->curlang->slug, $link));
|
618 |
+
}
|
619 |
+
else
|
620 |
+
$link = esc_url(str_replace($home.'/?', $home.'/?lang='.$this->curlang->slug.'&', $link));
|
621 |
+
}
|
622 |
+
return $link;
|
623 |
+
}
|
624 |
+
|
625 |
// returns the url of the translation (if exists) of the current page
|
626 |
function get_translation_url($language) {
|
627 |
|
628 |
+
// posts
|
629 |
+
// is_single is set to 1 for attachment but no language is set
|
630 |
+
if ( is_single() && !is_attachment() ) {
|
631 |
$id = $this->get_post(get_the_ID(), $language);
|
632 |
if ($id)
|
633 |
$url = get_permalink($id);
|
polylang.pot
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: polylang\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-10-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: F. Demarle\n"
|
8 |
"Language-Team: \n"
|
@@ -14,182 +14,190 @@ msgstr ""
|
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
"X-Poedit-KeywordsList: _e;__;_c\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
-
"X-Poedit-SearchPath-0:
|
18 |
-
|
19 |
-
#:
|
20 |
-
#:
|
21 |
-
#:
|
22 |
-
#:
|
23 |
-
#:
|
24 |
-
#:
|
25 |
-
#:
|
26 |
msgid "Language"
|
27 |
msgstr ""
|
28 |
|
29 |
-
#:
|
30 |
-
#:
|
31 |
msgid "Sets the language"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#:
|
35 |
msgid "Displays a language switcher"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#:
|
39 |
msgid "Language Switcher"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#:
|
43 |
msgid "Settings"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#:
|
47 |
-
#:
|
48 |
-
#:
|
49 |
-
#:
|
50 |
-
#:
|
51 |
msgid "Languages"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#:
|
55 |
msgid "Show all languages"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#:
|
59 |
msgid "Theme locations and languages"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#:
|
63 |
#, php-format
|
64 |
msgid "Please go to the %slanguages page%s to set theme locations and languages"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#:
|
68 |
msgid "The widget is displayed for:"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#:
|
72 |
msgid "All languages"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#:
|
76 |
msgid "Page's language:"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#:
|
80 |
msgid "Post's language:"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#:
|
84 |
-
#:
|
85 |
msgid "Translations"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#:
|
89 |
msgid "Translation"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#:
|
93 |
-
#:
|
94 |
-
#:
|
95 |
-
#:
|
96 |
-
#:
|
97 |
msgid "Edit"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#:
|
101 |
-
#:
|
102 |
msgid "Add new"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#:
|
106 |
msgid "Delete"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#:
|
110 |
-
#:
|
111 |
msgid "Full name"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#:
|
115 |
-
#:
|
116 |
msgid "Locale"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#:
|
120 |
msgid "Code"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#:
|
124 |
msgid "Posts"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#:
|
128 |
msgid "Edit language"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#:
|
132 |
-
#:
|
133 |
msgid "Add new language"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#:
|
137 |
msgid "The name is how it is displayed on your site (for example: English)."
|
138 |
msgstr ""
|
139 |
|
140 |
-
#:
|
141 |
msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
|
142 |
msgstr ""
|
143 |
|
144 |
-
#:
|
145 |
msgid "Language code"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#:
|
149 |
msgid "2-letters ISO 639-1 language code (for example: en)"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#:
|
153 |
msgid "Update"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#:
|
157 |
msgid "Menus"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#:
|
161 |
msgid "Theme location"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#:
|
165 |
msgid "Options"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#:
|
169 |
msgid "Keep /language/ in pretty permalinks"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#:
|
173 |
msgid "Remove /language/ in pretty permalinks"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#:
|
177 |
msgid "The front page default language is : "
|
178 |
msgstr ""
|
179 |
|
180 |
-
#:
|
181 |
msgid "set by the browser preference"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#:
|
185 |
msgid "otherwise: "
|
186 |
msgstr ""
|
187 |
|
188 |
-
#:
|
|
|
|
|
|
|
|
|
189 |
msgid "ID of posts in other languages:"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#:
|
|
|
|
|
|
|
|
|
193 |
msgid "Post ID"
|
194 |
msgstr ""
|
195 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: polylang\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-10-19 20:43+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: F. Demarle\n"
|
8 |
"Language-Team: \n"
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
"X-Poedit-KeywordsList: _e;__;_c\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
|
19 |
+
#: edit-term-form.php:6
|
20 |
+
#: admin.php:277
|
21 |
+
#: admin.php:453
|
22 |
+
#: term-translations.php:16
|
23 |
+
#: add-term-form.php:3
|
24 |
+
#: list-table.php:12
|
25 |
+
#: post-translations.php:5
|
26 |
msgid "Language"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: edit-term-form.php:18
|
30 |
+
#: add-term-form.php:10
|
31 |
msgid "Sets the language"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: widget.php:5
|
35 |
msgid "Displays a language switcher"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: widget.php:6
|
39 |
msgid "Language Switcher"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: admin.php:86
|
43 |
msgid "Settings"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: admin.php:93
|
47 |
+
#: admin.php:322
|
48 |
+
#: admin.php:323
|
49 |
+
#: list-table.php:13
|
50 |
+
#: languages-form.php:14
|
51 |
msgid "Languages"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: admin.php:313
|
55 |
msgid "Show all languages"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: admin.php:549
|
59 |
msgid "Theme locations and languages"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: admin.php:554
|
63 |
#, php-format
|
64 |
msgid "Please go to the %slanguages page%s to set theme locations and languages"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: admin.php:567
|
68 |
msgid "The widget is displayed for:"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: admin.php:570
|
72 |
msgid "All languages"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: post-metabox.php:3
|
76 |
msgid "Page's language:"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: post-metabox.php:3
|
80 |
msgid "Post's language:"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: term-translations.php:6
|
84 |
+
#: term-translations.php:10
|
85 |
msgid "Translations"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: term-translations.php:16
|
89 |
msgid "Translation"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: term-translations.php:16
|
93 |
+
#: term-translations.php:77
|
94 |
+
#: list-table.php:32
|
95 |
+
#: post-translations.php:7
|
96 |
+
#: post-translations.php:29
|
97 |
msgid "Edit"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: term-translations.php:63
|
101 |
+
#: post-translations.php:34
|
102 |
msgid "Add new"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: list-table.php:33
|
106 |
msgid "Delete"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: list-table.php:50
|
110 |
+
#: languages-form.php:46
|
111 |
msgid "Full name"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: list-table.php:51
|
115 |
+
#: languages-form.php:52
|
116 |
msgid "Locale"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: list-table.php:52
|
120 |
msgid "Code"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: list-table.php:53
|
124 |
msgid "Posts"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: languages-form.php:29
|
128 |
msgid "Edit language"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: languages-form.php:29
|
132 |
+
#: languages-form.php:66
|
133 |
msgid "Add new language"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: languages-form.php:48
|
137 |
msgid "The name is how it is displayed on your site (for example: English)."
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: languages-form.php:54
|
141 |
msgid "Wordpress Locale for the language (for example: en_US). You will need to install the .mo file for this language."
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: languages-form.php:58
|
145 |
msgid "Language code"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: languages-form.php:60
|
149 |
msgid "2-letters ISO 639-1 language code (for example: en)"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: languages-form.php:64
|
153 |
msgid "Update"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: languages-form.php:78
|
157 |
msgid "Menus"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: languages-form.php:86
|
161 |
msgid "Theme location"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: languages-form.php:131
|
165 |
msgid "Options"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: languages-form.php:144
|
169 |
msgid "Keep /language/ in pretty permalinks"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: languages-form.php:155
|
173 |
msgid "Remove /language/ in pretty permalinks"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: languages-form.php:162
|
177 |
msgid "The front page default language is : "
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: languages-form.php:167
|
181 |
msgid "set by the browser preference"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: languages-form.php:170
|
185 |
msgid "otherwise: "
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: post-translations.php:2
|
189 |
+
msgid "ID of pages in other languages:"
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: post-translations.php:2
|
193 |
msgid "ID of posts in other languages:"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: post-translations.php:6
|
197 |
+
msgid "Page ID"
|
198 |
+
msgstr ""
|
199 |
+
|
200 |
+
#: post-translations.php:6
|
201 |
msgid "Post ID"
|
202 |
msgstr ""
|
203 |
|
post-translations.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php // FIXME inline CSS ! ?>
|
2 |
-
<p><em><?php _e('ID of posts in other languages:', 'polylang');?></em></p>
|
3 |
<table style="width: 100%; text-align: left; font-size: 11px; margin: 0 6px;">
|
4 |
<thead><tr>
|
5 |
<th><?php _e('Language', 'polylang');?></th>
|
6 |
-
<th><?php _e('Post ID', 'polylang');?></th>
|
7 |
<th><?php _e('Edit', 'polylang');?></th>
|
8 |
</tr></thead>
|
9 |
|
@@ -30,7 +30,7 @@
|
|
30 |
) :
|
31 |
sprintf(
|
32 |
'<a href="%s">%s</a>',
|
33 |
-
esc_url(admin_url('post-new.php?from_post='. $post_ID . '&new_lang='
|
34 |
__('Add new','polylang')
|
35 |
);?>
|
36 |
<td style="font-size: 11px;"><?php echo $link ?><td><?php
|
1 |
<?php // FIXME inline CSS ! ?>
|
2 |
+
<p><em><?php $post_type == 'page' ? _e('ID of pages in other languages:', 'polylang') : _e('ID of posts in other languages:', 'polylang');?></em></p>
|
3 |
<table style="width: 100%; text-align: left; font-size: 11px; margin: 0 6px;">
|
4 |
<thead><tr>
|
5 |
<th><?php _e('Language', 'polylang');?></th>
|
6 |
+
<th><?php $post_type == 'page' ? _e('Page ID', 'polylang') : _e('Post ID', 'polylang');?></th>
|
7 |
<th><?php _e('Edit', 'polylang');?></th>
|
8 |
</tr></thead>
|
9 |
|
30 |
) :
|
31 |
sprintf(
|
32 |
'<a href="%s">%s</a>',
|
33 |
+
esc_url(admin_url('post-new.php?post_type=' . $post_type . '&from_post=' . $post_ID . '&new_lang=' . $language->slug)),
|
34 |
__('Add new','polylang')
|
35 |
);?>
|
36 |
<td style="font-size: 11px;"><?php echo $link ?><td><?php
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Chouby
|
|
3 |
Tags: bilingual, multilingual, language, i18n, l10n, international, translate, translation, widget
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 3.2.1
|
6 |
-
Stable tag: 0.3.
|
7 |
|
8 |
Adds multilingual support to WordPress.
|
9 |
|
@@ -24,7 +24,7 @@ You write posts, pages and create categories and post tags as usual. You just ha
|
|
24 |
* The following widgets are automatically in the right language : archives, categories, pages, recent comments, recent posts, tag cloud (calendar not supported yet)
|
25 |
* All widgets can be displayed or not, depending on the language
|
26 |
* Simple language switcher provided as a widget
|
27 |
-
* The plugin backend is currently available in English, French
|
28 |
|
29 |
= Notes =
|
30 |
|
@@ -89,6 +89,16 @@ You MUST define a language for all your categories and post tags otherwise they
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
= 0.3.1 =
|
93 |
|
94 |
* Bug correction: the widget settings cannot be saved when activating Polylang
|
3 |
Tags: bilingual, multilingual, language, i18n, l10n, international, translate, translation, widget
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 3.2.1
|
6 |
+
Stable tag: 0.3.2
|
7 |
|
8 |
Adds multilingual support to WordPress.
|
9 |
|
24 |
* The following widgets are automatically in the right language : archives, categories, pages, recent comments, recent posts, tag cloud (calendar not supported yet)
|
25 |
* All widgets can be displayed or not, depending on the language
|
26 |
* Simple language switcher provided as a widget
|
27 |
+
* The plugin backend is currently available in English, French and German
|
28 |
|
29 |
= Notes =
|
30 |
|
89 |
|
90 |
== Changelog ==
|
91 |
|
92 |
+
= 0.3.2 =
|
93 |
+
|
94 |
+
* Bug correction: authors pages are not filtered by language
|
95 |
+
* Bug correction: language pages use the archive template
|
96 |
+
* Bug correction: database error for comments on posts and pages
|
97 |
+
* Bug correction: "Add new" translation for pages creates a post instead of a page
|
98 |
+
* Bug correction: the search query does not look into pages
|
99 |
+
|
100 |
+
release: October 20th, 2011
|
101 |
+
|
102 |
= 0.3.1 =
|
103 |
|
104 |
* Bug correction: the widget settings cannot be saved when activating Polylang
|