Version Description
(2013-01-28) =
- Add Swedish translation contributed by matsii
- Add 2 new API functions : 'pll_is_translated_post_type' and 'pll_is_translated_taxonomy'
- Bug correction: when using a static front page, the posts page is not filtered by language (introduced in 1.0)
- Bug correction: disable translation for hard coded menu as it creates more problems than it solves (introduced in 1.0)
Download this release
Release Info
Developer | Chouby |
Plugin | Polylang |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.1
- include/api.php +17 -0
- include/base.php +3 -2
- include/core.php +3 -2
- languages/polylang-sv_SE.mo +0 -0
- languages/polylang-sv_SE.po +578 -0
- polylang.php +2 -3
- readme.txt +10 -3
include/api.php
CHANGED
@@ -76,3 +76,20 @@ function pll__($string) {
|
|
76 |
function pll_e($string) {
|
77 |
_e($string, 'pll_string');
|
78 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
function pll_e($string) {
|
77 |
_e($string, 'pll_string');
|
78 |
}
|
79 |
+
|
80 |
+
/*
|
81 |
+
* returns true if Polylang manages languages and translation for this post type
|
82 |
+
*/
|
83 |
+
function pll_is_translated_post_type($post_type) {
|
84 |
+
global $polylang;
|
85 |
+
return isset($polylang) && in_array($post_type, $polylang->post_types);
|
86 |
+
}
|
87 |
+
|
88 |
+
/*
|
89 |
+
* returns true if Polylang manages languages and translation for this taxonomy
|
90 |
+
*/
|
91 |
+
function pll_is_translated_taxonomy($tax) {
|
92 |
+
global $polylang;
|
93 |
+
return isset($polylang) && in_array($tax, $polylang->taxonomies);
|
94 |
+
}
|
95 |
+
|
include/base.php
CHANGED
@@ -2,11 +2,12 @@
|
|
2 |
|
3 |
// setups basic functions used for admin and frontend
|
4 |
abstract class Polylang_Base {
|
|
|
|
|
|
|
5 |
protected $options;
|
6 |
protected $home;
|
7 |
protected $strings = array(); // strings to translate
|
8 |
-
protected $post_types; // post types to filter by language
|
9 |
-
protected $taxonomies; // taxonomies to filter by language
|
10 |
|
11 |
// used to cache results
|
12 |
// FIXME use wp_cache ?
|
2 |
|
3 |
// setups basic functions used for admin and frontend
|
4 |
abstract class Polylang_Base {
|
5 |
+
public $post_types; // post types to filter by language
|
6 |
+
public $taxonomies; // taxonomies to filter by language
|
7 |
+
|
8 |
protected $options;
|
9 |
protected $home;
|
10 |
protected $strings = array(); // strings to translate
|
|
|
|
|
11 |
|
12 |
// used to cache results
|
13 |
// FIXME use wp_cache ?
|
include/core.php
CHANGED
@@ -483,7 +483,7 @@ class Polylang_Core extends Polylang_base {
|
|
483 |
$this->page_for_posts = $page_id;
|
484 |
$this->curlang = $this->get_post_language($page_id);
|
485 |
$query->set('lang', $this->curlang->slug);
|
486 |
-
$query->is_singular = $query->is_page =
|
487 |
$query->is_home = $query->is_posts_page = true;
|
488 |
}
|
489 |
}
|
@@ -827,6 +827,7 @@ class Polylang_Core extends Polylang_base {
|
|
827 |
function wp_nav_menu_args($args) {
|
828 |
$menu_lang = get_option('polylang_nav_menus');
|
829 |
|
|
|
830 |
// attempt to find a theme location if the theme registered one but calls wp_nav_menu only with a harcoded menu
|
831 |
if (!$args['theme_location'] && $args['menu']) {
|
832 |
$menu = wp_get_nav_menu_object($args['menu']);
|
@@ -839,7 +840,7 @@ class Polylang_Core extends Polylang_base {
|
|
839 |
// attempt to find a theme location if the theme registered one (only one!) but calls wp_nav_menu without it
|
840 |
if (!$args['theme_location'] && ($menus = get_registered_nav_menus()) && count($menus) == 1)
|
841 |
$args['theme_location'] = key($menus);
|
842 |
-
|
843 |
if ($args['theme_location'] && isset($menu_lang[$args['theme_location']][$this->curlang->slug]))
|
844 |
$args['menu'] = $menu_lang[$args['theme_location']][$this->curlang->slug];
|
845 |
|
483 |
$this->page_for_posts = $page_id;
|
484 |
$this->curlang = $this->get_post_language($page_id);
|
485 |
$query->set('lang', $this->curlang->slug);
|
486 |
+
$query->is_singular = $query->is_page = false;
|
487 |
$query->is_home = $query->is_posts_page = true;
|
488 |
}
|
489 |
}
|
827 |
function wp_nav_menu_args($args) {
|
828 |
$menu_lang = get_option('polylang_nav_menus');
|
829 |
|
830 |
+
/* FIXME breaks more than it solves
|
831 |
// attempt to find a theme location if the theme registered one but calls wp_nav_menu only with a harcoded menu
|
832 |
if (!$args['theme_location'] && $args['menu']) {
|
833 |
$menu = wp_get_nav_menu_object($args['menu']);
|
840 |
// attempt to find a theme location if the theme registered one (only one!) but calls wp_nav_menu without it
|
841 |
if (!$args['theme_location'] && ($menus = get_registered_nav_menus()) && count($menus) == 1)
|
842 |
$args['theme_location'] = key($menus);
|
843 |
+
*/
|
844 |
if ($args['theme_location'] && isset($menu_lang[$args['theme_location']][$this->curlang->slug]))
|
845 |
$args['menu'] = $menu_lang[$args['theme_location']][$this->curlang->slug];
|
846 |
|
languages/polylang-sv_SE.mo
ADDED
Binary file
|
languages/polylang-sv_SE.po
ADDED
@@ -0,0 +1,578 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: Mats Stolpe <mats.stolpe@anvia.fi>\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: nplural=n>1;\n"
|
13 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
14 |
+
"X-Poedit-KeywordsList: _e;__;_x\n"
|
15 |
+
"X-Poedit-Basepath: .\n"
|
16 |
+
"X-Generator: Poedit 1.5.4\n"
|
17 |
+
"X-Poedit-SearchPath-0: ..\n"
|
18 |
+
"X-Poedit-SearchPath-1: ../include\n"
|
19 |
+
|
20 |
+
#: include/about.php:3
|
21 |
+
#, php-format
|
22 |
+
msgid ""
|
23 |
+
"Polylang is provided with an extensive %sdocumentation%s (in English only). "
|
24 |
+
"It includes information on how to set up your multilingual site and use it "
|
25 |
+
"on a daily basis, a FAQ, as well as a documentation for programmers to adapt "
|
26 |
+
"their plugins and themes."
|
27 |
+
msgstr ""
|
28 |
+
"Polylang är försedd med en omfattande %sdokumentation%s (endast på "
|
29 |
+
"Engelska). Den innehåller information om hur du konfigurerar en flerspråkig "
|
30 |
+
"hemsida och hur du dagligen kan använda dig av den, en FAQ, därtill en "
|
31 |
+
"dokumentation som visar hur programmerare kan anpassa sina tillägg och teman "
|
32 |
+
"till Polylang"
|
33 |
+
|
34 |
+
#: include/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 |
+
"Du kan också hitta hjälpsam information vid %ssupport forumet%s. Glöm dock "
|
41 |
+
"inte att göra en sökning före du gör en ny tråd"
|
42 |
+
|
43 |
+
#: include/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 är gratis och det är publicerat under samma licens som WordPress "
|
50 |
+
"%sGPL%s."
|
51 |
+
|
52 |
+
#: include/about.php:22
|
53 |
+
#, php-format
|
54 |
+
msgid "If you wonder how you can help the project, just %sread this%s."
|
55 |
+
msgstr ""
|
56 |
+
"Om du undrar på vilket sätt du kan hjälpa detta projekt, %släs detta%s."
|
57 |
+
|
58 |
+
#: include/about.php:27
|
59 |
+
msgid ""
|
60 |
+
"Finally if you like this plugin or if it helps your business, donations to "
|
61 |
+
"the author are greatly appreciated."
|
62 |
+
msgstr ""
|
63 |
+
"Slutligen, ifall du tycker om detta tillägg eller om det hjälper din "
|
64 |
+
"verksamhet , donationer till skaparen är mycket uppskattade "
|
65 |
+
|
66 |
+
#: include/admin-base.php:55 include/admin-base.php:185
|
67 |
+
#: include/admin-filters.php:250 include/admin.php:23 include/admin.php:318
|
68 |
+
#: include/list-table.php:46 polylang.php:270
|
69 |
+
msgid "Languages"
|
70 |
+
msgstr "Språk"
|
71 |
+
|
72 |
+
#: include/admin-base.php:154
|
73 |
+
msgid "Displays language names"
|
74 |
+
msgstr "Visar språkens namn"
|
75 |
+
|
76 |
+
#: include/admin-base.php:155
|
77 |
+
msgid "Displays flags"
|
78 |
+
msgstr "Visa flaggor"
|
79 |
+
|
80 |
+
#: include/admin-base.php:156
|
81 |
+
msgid "Forces link to front page"
|
82 |
+
msgstr "Tvingar länk till framsidan"
|
83 |
+
|
84 |
+
#: include/admin-base.php:157
|
85 |
+
msgid "Hides the current language"
|
86 |
+
msgstr "Gömmer aktuellt språk"
|
87 |
+
|
88 |
+
#: include/admin-base.php:161
|
89 |
+
msgid "Displays a language switcher at the end of the menu"
|
90 |
+
msgstr "Visa språkval i slutet på menyn"
|
91 |
+
|
92 |
+
#: include/admin-base.php:162
|
93 |
+
msgid "Displays as dropdown"
|
94 |
+
msgstr "Visa som rullgardinsmeny"
|
95 |
+
|
96 |
+
#: include/admin-base.php:186
|
97 |
+
msgid "Filters content by language"
|
98 |
+
msgstr "Filtrerar innehåll efter språk"
|
99 |
+
|
100 |
+
#: include/admin-base.php:193
|
101 |
+
msgid "Show all languages"
|
102 |
+
msgstr "Visa för att språk"
|
103 |
+
|
104 |
+
#: include/admin-filters.php:188 include/admin-filters.php:884
|
105 |
+
msgid "Add new translation"
|
106 |
+
msgstr "Lägg till översättning"
|
107 |
+
|
108 |
+
#: include/admin-filters.php:216 include/admin-filters.php:274
|
109 |
+
#: include/admin-filters.php:608 include/admin-filters.php:824
|
110 |
+
#: include/admin-filters.php:842 include/list-table.php:45
|
111 |
+
#: include/media-translations.php:5 include/media-translations.php:43
|
112 |
+
#: include/post-translations.php:8 include/term-translations.php:15
|
113 |
+
#: polylang.php:271
|
114 |
+
msgid "Language"
|
115 |
+
msgstr "Språk"
|
116 |
+
|
117 |
+
#: include/admin-filters.php:623 include/admin-filters.php:658
|
118 |
+
#: include/list-table.php:120 include/media-translations.php:40
|
119 |
+
#: include/term-translations.php:6 include/term-translations.php:11
|
120 |
+
msgid "Translations"
|
121 |
+
msgstr "Översättningar"
|
122 |
+
|
123 |
+
#: include/admin-filters.php:826 include/admin-filters.php:845
|
124 |
+
msgid "Sets the language"
|
125 |
+
msgstr "Ställer in språk"
|
126 |
+
|
127 |
+
#: include/admin-filters.php:1078
|
128 |
+
msgid "Theme locations and languages"
|
129 |
+
msgstr "Temats platser och språk"
|
130 |
+
|
131 |
+
#: include/admin-filters.php:1084
|
132 |
+
#, php-format
|
133 |
+
msgid ""
|
134 |
+
"Please go to the %slanguages page%s to set theme locations and languages"
|
135 |
+
msgstr "Gå till %sspråksidan%s för att ställa in temans platser och språk"
|
136 |
+
|
137 |
+
#: include/admin-filters.php:1102
|
138 |
+
msgid "The widget is displayed for:"
|
139 |
+
msgstr "Widgeten visas för:"
|
140 |
+
|
141 |
+
#: include/admin-filters.php:1106 polylang.php:272
|
142 |
+
msgid "All languages"
|
143 |
+
msgstr "Alla språk"
|
144 |
+
|
145 |
+
#: include/admin-filters.php:1130
|
146 |
+
msgid "Admin language"
|
147 |
+
msgstr "Administratörens språk"
|
148 |
+
|
149 |
+
#: include/admin-filters.php:1135
|
150 |
+
msgid "Wordpress default"
|
151 |
+
msgstr "Wordpress standard"
|
152 |
+
|
153 |
+
#: include/admin-filters.php:1161 include/admin.php:326
|
154 |
+
msgid "Settings"
|
155 |
+
msgstr "Inställningar"
|
156 |
+
|
157 |
+
#: include/admin-filters.php:1167
|
158 |
+
msgid "Upgrading language files…"
|
159 |
+
msgstr "Uppgraderar språkfiler…"
|
160 |
+
|
161 |
+
#: include/admin.php:22
|
162 |
+
msgid "About Polylang"
|
163 |
+
msgstr "Om Polylang"
|
164 |
+
|
165 |
+
#: include/admin.php:27 include/list-table.php:92
|
166 |
+
msgid "Strings translations"
|
167 |
+
msgstr "Textsträngars översättningar"
|
168 |
+
|
169 |
+
#: include/admin.php:323
|
170 |
+
msgid "Menus"
|
171 |
+
msgstr "Menyer"
|
172 |
+
|
173 |
+
#: include/admin.php:325 include/list-table.php:91
|
174 |
+
msgid "Strings translation"
|
175 |
+
msgstr "Textsträngars översättningar"
|
176 |
+
|
177 |
+
#: include/admin.php:345
|
178 |
+
msgid "Enter a valid WorPress locale"
|
179 |
+
msgstr "Ange ett giltigt Wordpress språk"
|
180 |
+
|
181 |
+
#: include/admin.php:346
|
182 |
+
msgid "The language code must be 2 characters long"
|
183 |
+
msgstr "Språkkoden måste vara 2 bokstäver lång"
|
184 |
+
|
185 |
+
#: include/admin.php:347
|
186 |
+
msgid "The language code must be unique"
|
187 |
+
msgstr "Språkoden måste vara unik"
|
188 |
+
|
189 |
+
#: include/admin.php:348
|
190 |
+
msgid "The language must have a name"
|
191 |
+
msgstr "Språket måste ha ett namn"
|
192 |
+
|
193 |
+
#: include/admin.php:349
|
194 |
+
msgid ""
|
195 |
+
"The language was created, but the WordPress language file was not "
|
196 |
+
"downloaded. Please install it manually."
|
197 |
+
msgstr ""
|
198 |
+
"Språket lades till, men WordPress språkfilen laddades inte ner. Installera "
|
199 |
+
"den manuellt."
|
200 |
+
|
201 |
+
#: include/admin.php:468
|
202 |
+
msgid "Widget title"
|
203 |
+
msgstr "Widget rubrik"
|
204 |
+
|
205 |
+
# @ polylang
|
206 |
+
#: include/base.php:339
|
207 |
+
msgid "Taxonomies"
|
208 |
+
msgstr "Taxonomier"
|
209 |
+
|
210 |
+
# @ polylang
|
211 |
+
#: include/base.php:340
|
212 |
+
msgid "Custom fields"
|
213 |
+
msgstr "Anpassade fält"
|
214 |
+
|
215 |
+
# @ polylang
|
216 |
+
#: include/base.php:341
|
217 |
+
msgid "Comment status"
|
218 |
+
msgstr "Kommentarens status"
|
219 |
+
|
220 |
+
# @ polylang
|
221 |
+
#: include/base.php:342
|
222 |
+
msgid "Ping status"
|
223 |
+
msgstr "Ping status"
|
224 |
+
|
225 |
+
# @ polylang
|
226 |
+
#: include/base.php:343
|
227 |
+
msgid "Sticky posts"
|
228 |
+
msgstr "Sticky posts"
|
229 |
+
|
230 |
+
# @ polylang
|
231 |
+
#: include/base.php:344
|
232 |
+
msgid "Published date"
|
233 |
+
msgstr "Publiceringsdatum"
|
234 |
+
|
235 |
+
# @ polylang
|
236 |
+
#: include/base.php:345
|
237 |
+
msgid "Post format"
|
238 |
+
msgstr "Artikelns format"
|
239 |
+
|
240 |
+
#: include/base.php:346
|
241 |
+
msgid "Page parent"
|
242 |
+
msgstr "Sidans förälder"
|
243 |
+
|
244 |
+
# @ polylang
|
245 |
+
#: include/base.php:347
|
246 |
+
msgid "Page template"
|
247 |
+
msgstr "Sidans mall"
|
248 |
+
|
249 |
+
#: include/base.php:348
|
250 |
+
msgid "Page order"
|
251 |
+
msgstr "Sidans ordning"
|
252 |
+
|
253 |
+
# @ polylang
|
254 |
+
#: include/base.php:349
|
255 |
+
msgid "Featured image"
|
256 |
+
msgstr "Artikelbild"
|
257 |
+
|
258 |
+
#: include/languages-form.php:43
|
259 |
+
msgid "Edit language"
|
260 |
+
msgstr "Redigera språk"
|
261 |
+
|
262 |
+
#: include/languages-form.php:43 include/languages-form.php:124
|
263 |
+
msgid "Add new language"
|
264 |
+
msgstr "Lägg till nytt språk"
|
265 |
+
|
266 |
+
#: include/languages-form.php:65
|
267 |
+
msgid "Choose a language"
|
268 |
+
msgstr "Välj språk"
|
269 |
+
|
270 |
+
#: include/languages-form.php:79
|
271 |
+
msgid "You can choose a language in the list or directly edit it below."
|
272 |
+
msgstr "Du kan välja ett språk ifrån listan eller själva redigera det nedanför"
|
273 |
+
|
274 |
+
#: include/languages-form.php:83 include/list-table.php:63
|
275 |
+
msgid "Full name"
|
276 |
+
msgstr "Fullständigt namn"
|
277 |
+
|
278 |
+
#: include/languages-form.php:85
|
279 |
+
msgid "The name is how it is displayed on your site (for example: English)."
|
280 |
+
msgstr "Hur namnet visas på din sida (t.ex Engelska)"
|
281 |
+
|
282 |
+
#: include/languages-form.php:89 include/list-table.php:64
|
283 |
+
msgid "Locale"
|
284 |
+
msgstr "Lokal"
|
285 |
+
|
286 |
+
#: include/languages-form.php:94
|
287 |
+
msgid ""
|
288 |
+
"Wordpress Locale for the language (for example: en_US). You will need to "
|
289 |
+
"install the .mo file for this language."
|
290 |
+
msgstr ""
|
291 |
+
"Wordpress lokal för språket (t.ex: en_US). Du kommer att behöva installera ."
|
292 |
+
"mo filen för detta språk"
|
293 |
+
|
294 |
+
#: include/languages-form.php:98
|
295 |
+
msgid "Language code"
|
296 |
+
msgstr "Språkkod"
|
297 |
+
|
298 |
+
#: include/languages-form.php:100
|
299 |
+
msgid "2-letters ISO 639-1 language code (for example: en)"
|
300 |
+
msgstr "2-boktäver ISO 639-1 språkkod (exempel: en)"
|
301 |
+
|
302 |
+
#: include/languages-form.php:104
|
303 |
+
msgid "Text direction"
|
304 |
+
msgstr "Textriktning"
|
305 |
+
|
306 |
+
#: include/languages-form.php:108
|
307 |
+
msgid "left to right"
|
308 |
+
msgstr "från vänster til höger"
|
309 |
+
|
310 |
+
#: include/languages-form.php:113
|
311 |
+
msgid "right to left"
|
312 |
+
msgstr "från höger till vänster"
|
313 |
+
|
314 |
+
#: include/languages-form.php:115
|
315 |
+
msgid "Choose the text direction for the language"
|
316 |
+
msgstr "Välj textrikting för språket"
|
317 |
+
|
318 |
+
#: include/languages-form.php:119 include/list-table.php:66
|
319 |
+
msgid "Order"
|
320 |
+
msgstr "Ordning"
|
321 |
+
|
322 |
+
#: include/languages-form.php:121
|
323 |
+
msgid "Position of the language in the language switcher"
|
324 |
+
msgstr "Språkets position i språkväljaren"
|
325 |
+
|
326 |
+
#: include/languages-form.php:180
|
327 |
+
msgid "Language switcher"
|
328 |
+
msgstr "Språkväljare"
|
329 |
+
|
330 |
+
#: include/languages-form.php:206
|
331 |
+
msgid "Search translations"
|
332 |
+
msgstr "Sök översättningar"
|
333 |
+
|
334 |
+
#: include/languages-form.php:215
|
335 |
+
msgid "Clean strings translation database"
|
336 |
+
msgstr "Töm sträng översättningar i databasen"
|
337 |
+
|
338 |
+
#: include/languages-form.php:231
|
339 |
+
msgid "Default language"
|
340 |
+
msgstr "Standardspråk"
|
341 |
+
|
342 |
+
#: include/languages-form.php:243
|
343 |
+
msgid ""
|
344 |
+
"There are posts, pages, categories or tags without language set. Do you want "
|
345 |
+
"to set them all to default language ?"
|
346 |
+
msgstr ""
|
347 |
+
"Det finns artiklar, sidor, kategorier eller taggar utan ett valt språk. Vill "
|
348 |
+
"du stäla in dem till standard språket?"
|
349 |
+
|
350 |
+
#: include/languages-form.php:251
|
351 |
+
msgid "Detect browser language"
|
352 |
+
msgstr "Upptäck webbläsarens språk"
|
353 |
+
|
354 |
+
#: include/languages-form.php:257
|
355 |
+
msgid ""
|
356 |
+
"When the front page is visited, set the language according to the browser "
|
357 |
+
"preference"
|
358 |
+
msgstr "När förstasidan besöks, välj språk enligt webbläsarens inställning "
|
359 |
+
|
360 |
+
#: include/languages-form.php:264
|
361 |
+
msgid "URL modifications"
|
362 |
+
msgstr "URL ändringar"
|
363 |
+
|
364 |
+
#: include/languages-form.php:270
|
365 |
+
msgid ""
|
366 |
+
"The language is set from content. Posts, pages, categories and tags urls are "
|
367 |
+
"not modified."
|
368 |
+
msgstr ""
|
369 |
+
"Språket bestäms utav innehåll. Artiklars, sidors, kategoriers och taggars "
|
370 |
+
"url-adresser ändras inte."
|
371 |
+
|
372 |
+
#: include/languages-form.php:278
|
373 |
+
msgid ""
|
374 |
+
"The language code, for example /en/, is added to all urls when using pretty "
|
375 |
+
"permalinks."
|
376 |
+
msgstr ""
|
377 |
+
"Språkod, exempel /en/, läggs till i url-adresser vid använding av vackra "
|
378 |
+
"permalänkar."
|
379 |
+
|
380 |
+
#: include/languages-form.php:287
|
381 |
+
msgid "Remove /language/ in pretty permalinks. Example:"
|
382 |
+
msgstr "Ta bort /language/ i vackra permalänkar. Exempel:"
|
383 |
+
|
384 |
+
#: include/languages-form.php:296
|
385 |
+
msgid "Keep /language/ in pretty permalinks. Example:"
|
386 |
+
msgstr "Behåll /language/ i vackra permalänkgar. Exempel:"
|
387 |
+
|
388 |
+
#: include/languages-form.php:305
|
389 |
+
msgid "Hide URL language information for default language"
|
390 |
+
msgstr "Göm språket i URL för standard språk"
|
391 |
+
|
392 |
+
#: include/languages-form.php:315
|
393 |
+
#, php-format
|
394 |
+
msgid ""
|
395 |
+
"When using static front page, redirect the language page (example: %s) to "
|
396 |
+
"the front page in the right language"
|
397 |
+
msgstr ""
|
398 |
+
"När det används en statisk startsida, omdirigera språksidan(exempelvis: %s) "
|
399 |
+
"till rätt språks startsida"
|
400 |
+
|
401 |
+
# @ polylang
|
402 |
+
#: include/languages-form.php:324
|
403 |
+
msgid "Media"
|
404 |
+
msgstr "Media"
|
405 |
+
|
406 |
+
# @ polylang
|
407 |
+
#: include/languages-form.php:330
|
408 |
+
msgid "Activate languages and translations for media"
|
409 |
+
msgstr "Akviera språk och översättningar för media"
|
410 |
+
|
411 |
+
#: include/languages-form.php:337
|
412 |
+
msgid "Synchronization"
|
413 |
+
msgstr "Synkronisering"
|
414 |
+
|
415 |
+
# @ polylang
|
416 |
+
#: include/languages-form.php:351
|
417 |
+
msgid "Custom post types"
|
418 |
+
msgstr "Anpassade artikel modeller"
|
419 |
+
|
420 |
+
# @ polylang
|
421 |
+
#: include/languages-form.php:364
|
422 |
+
msgid "Activate languages and translations for custom post types."
|
423 |
+
msgstr "Aktivera språk och översättningar för artiklar av anpassade modeller"
|
424 |
+
|
425 |
+
# @ polylang
|
426 |
+
#: include/languages-form.php:372
|
427 |
+
msgid "Custom taxonomies"
|
428 |
+
msgstr "Anpassade klassificeringar"
|
429 |
+
|
430 |
+
# @ polylang
|
431 |
+
#: include/languages-form.php:385
|
432 |
+
msgid "Activate languages and translations for custom taxonomies."
|
433 |
+
msgstr "Aktivera språk och översättningar för anpassade klassificeringar"
|
434 |
+
|
435 |
+
#: include/list-table.php:55 include/media-translations.php:22
|
436 |
+
#: include/media-translations.php:60 include/post-translations.php:10
|
437 |
+
#: include/post-translations.php:33 include/term-translations.php:18
|
438 |
+
#: include/term-translations.php:80
|
439 |
+
msgid "Edit"
|
440 |
+
msgstr "Redigera"
|
441 |
+
|
442 |
+
#: include/list-table.php:56
|
443 |
+
msgid "Delete"
|
444 |
+
msgstr "Ta bort"
|
445 |
+
|
446 |
+
#: include/list-table.php:65
|
447 |
+
msgid "Code"
|
448 |
+
msgstr "Kod"
|
449 |
+
|
450 |
+
#: include/list-table.php:67
|
451 |
+
msgid "Flag"
|
452 |
+
msgstr "Flagga"
|
453 |
+
|
454 |
+
#: include/list-table.php:68
|
455 |
+
msgid "Posts"
|
456 |
+
msgstr "Artiklar"
|
457 |
+
|
458 |
+
#: include/list-table.php:118
|
459 |
+
msgid "Name"
|
460 |
+
msgstr "Namn"
|
461 |
+
|
462 |
+
#: include/list-table.php:119
|
463 |
+
msgid "String"
|
464 |
+
msgstr "Sträng"
|
465 |
+
|
466 |
+
#: include/media-translations.php:6 include/media-translations.php:44
|
467 |
+
#: include/term-translations.php:16
|
468 |
+
msgid "Translation"
|
469 |
+
msgstr "Översättning"
|
470 |
+
|
471 |
+
#: include/media-translations.php:31 include/media-translations.php:68
|
472 |
+
#: include/post-translations.php:38 include/term-translations.php:60
|
473 |
+
msgid "Add new"
|
474 |
+
msgstr "Lägg till"
|
475 |
+
|
476 |
+
#: include/post-translations.php:5
|
477 |
+
msgid "ID of pages in other languages:"
|
478 |
+
msgstr "Sidans ID på andra språk:"
|
479 |
+
|
480 |
+
#: include/post-translations.php:5
|
481 |
+
msgid "ID of posts in other languages:"
|
482 |
+
msgstr "Artikelns ID på andra språk:"
|
483 |
+
|
484 |
+
#: include/post-translations.php:9
|
485 |
+
msgid "Page ID"
|
486 |
+
msgstr "Sidans ID"
|
487 |
+
|
488 |
+
#: include/post-translations.php:9
|
489 |
+
msgid "Post ID"
|
490 |
+
msgstr "Artikelns ID"
|
491 |
+
|
492 |
+
#: include/term-translations.php:48
|
493 |
+
msgid "No untranslated term"
|
494 |
+
msgstr "Inga term översättningar saknas"
|
495 |
+
|
496 |
+
#: include/widget.php:6
|
497 |
+
msgid "Language Switcher"
|
498 |
+
msgstr "Språkval"
|
499 |
+
|
500 |
+
#: include/widget.php:6
|
501 |
+
msgid "Displays a language switcher"
|
502 |
+
msgstr "Visa språkval"
|
503 |
+
|
504 |
+
#: include/widget.php:69
|
505 |
+
msgid "Title:"
|
506 |
+
msgstr "Rubrik:"
|
507 |
+
|
508 |
+
# @ polylang
|
509 |
+
#. translators: plugin header field 'Description'
|
510 |
+
#: polylang.php:0
|
511 |
+
msgid "Adds multilingual capability to WordPress"
|
512 |
+
msgstr "Tillsätter flerspråksstöd till WordPress"
|
513 |
+
|
514 |
+
#: polylang.php:118
|
515 |
+
#, php-format
|
516 |
+
msgid "You are using WordPress %s. Polylang requires at least WordPress %s."
|
517 |
+
msgstr "Du använder Wordpress %s. Polylang kräver åtminstone WordPress %s."
|
518 |
+
|
519 |
+
#: polylang.php:159
|
520 |
+
msgid "For some reasons, Polylang could not create a table in your database."
|
521 |
+
msgstr "Av någon orsak så kunde inte Polylang skapa en tabell i din databas"
|
522 |
+
|
523 |
+
# @ polylang
|
524 |
+
#: polylang.php:220
|
525 |
+
msgid ""
|
526 |
+
"Polylang has been deactivated because you upgraded from a too old version."
|
527 |
+
msgstr ""
|
528 |
+
"Polylang har blivit inaktiverat pga du uppgraderade ifrån en för gammal "
|
529 |
+
"version"
|
530 |
+
|
531 |
+
# @ polylang
|
532 |
+
#: polylang.php:222
|
533 |
+
#, php-format
|
534 |
+
msgid "Please upgrade first to %s before ugrading to %s."
|
535 |
+
msgstr "Uppdatera först till %s före du uppdaterar till %s."
|
536 |
+
|
537 |
+
#~ msgid "Error: Restore of local flags failed!"
|
538 |
+
#~ msgstr "Virhe: Paikallisten lippujen palautus epäonnistui!"
|
539 |
+
|
540 |
+
#~ msgid "Please move your local flags from %s to %s"
|
541 |
+
#~ msgstr "Siirrä paikalliset lippusi kansiosta %s kansioon %s"
|
542 |
+
|
543 |
+
#~ msgid "%1$s %2$s"
|
544 |
+
#~ msgstr "%1$s %2$s"
|
545 |
+
|
546 |
+
#~ msgid "View posts for %1$s %2$s"
|
547 |
+
#~ msgstr "Näytä artikkelit %1$s %2$s"
|
548 |
+
|
549 |
+
#~ msgid "Site Title"
|
550 |
+
#~ msgstr "Sivuston otsikko"
|
551 |
+
|
552 |
+
#~ msgid "Tagline"
|
553 |
+
#~ msgstr "Kuvaus"
|
554 |
+
|
555 |
+
#~ msgid "— No Change —"
|
556 |
+
#~ msgstr "— Ei muutosta —"
|
557 |
+
|
558 |
+
#~ msgid "Page's language:"
|
559 |
+
#~ msgstr "Sivun kieli:"
|
560 |
+
|
561 |
+
#~ msgid "Post's language:"
|
562 |
+
#~ msgstr "Artikkelin kieli:"
|
563 |
+
|
564 |
+
#~ msgid "None"
|
565 |
+
#~ msgstr "Ei mitään"
|
566 |
+
|
567 |
+
#~ msgid "Update"
|
568 |
+
#~ msgstr "Päivitä"
|
569 |
+
|
570 |
+
#~ msgid ""
|
571 |
+
#~ "Allow to synchronize categories, tags, featured image and other metas "
|
572 |
+
#~ "between translations of a post or page"
|
573 |
+
#~ msgstr ""
|
574 |
+
#~ "Salli kategorioiden, tagien, artikkelikuvan ja muiden meta-tietojen "
|
575 |
+
#~ "synkronointi artikkelin tai sivun käännösten välillä"
|
576 |
+
|
577 |
+
#~ msgid "Search"
|
578 |
+
#~ msgstr "Hae"
|
polylang.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Polylang
|
4 |
Plugin URI: http://polylang.wordpress.com/
|
5 |
-
Version: 1.0
|
6 |
Author: F. Demarle
|
7 |
Description: Adds multilingual capability to WordPress
|
8 |
Text Domain: polylang
|
@@ -29,7 +29,7 @@ Domain Path: /languages
|
|
29 |
*
|
30 |
*/
|
31 |
|
32 |
-
define('POLYLANG_VERSION', '1.0');
|
33 |
define('PLL_MIN_WP_VERSION', '3.1');
|
34 |
|
35 |
define('POLYLANG_DIR', dirname(__FILE__)); // our directory
|
@@ -76,7 +76,6 @@ class Polylang extends Polylang_Base {
|
|
76 |
add_action('wpmu_new_blog', array(&$this, 'wpmu_new_blog'));
|
77 |
|
78 |
// manages plugin upgrade
|
79 |
-
add_filter('upgrader_post_install', array(&$this, 'post_upgrade'));
|
80 |
add_action('admin_init', array(&$this, 'admin_init'));
|
81 |
|
82 |
// plugin and widget initialization
|
2 |
/*
|
3 |
Plugin Name: Polylang
|
4 |
Plugin URI: http://polylang.wordpress.com/
|
5 |
+
Version: 1.0.1
|
6 |
Author: F. Demarle
|
7 |
Description: Adds multilingual capability to WordPress
|
8 |
Text Domain: polylang
|
29 |
*
|
30 |
*/
|
31 |
|
32 |
+
define('POLYLANG_VERSION', '1.0.1');
|
33 |
define('PLL_MIN_WP_VERSION', '3.1');
|
34 |
|
35 |
define('POLYLANG_DIR', dirname(__FILE__)); // our directory
|
76 |
add_action('wpmu_new_blog', array(&$this, 'wpmu_new_blog'));
|
77 |
|
78 |
// manages plugin upgrade
|
|
|
79 |
add_action('admin_init', array(&$this, 'admin_init'));
|
80 |
|
81 |
// plugin and widget initialization
|
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, i18n, international, l10n, localization
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 1.0
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Polylang adds multilingual content management support to WordPress.
|
@@ -24,7 +24,7 @@ You write posts, pages and create categories and post tags as usual, and then de
|
|
24 |
|
25 |
= Translators =
|
26 |
|
27 |
-
The plugin admin interface is currently available in
|
28 |
|
29 |
|
30 |
Other [contributions](http://wordpress.org/extend/plugins/polylang/other_notes/) are welcome !
|
@@ -75,7 +75,7 @@ You can subscribe to the tag ['polylang-dev'](http://wordpress.org/tags/polylang
|
|
75 |
|
76 |
= Translate the admin interface =
|
77 |
|
78 |
-
Polylang is already available in
|
79 |
|
80 |
= Communicate =
|
81 |
|
@@ -92,6 +92,13 @@ If you are using a version older than 0.8, please ugrade to 0.9.8 before ugradin
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
= 1.0 (2013-01-24) =
|
96 |
|
97 |
* Add Hungarian translation contributed by Csaba Erdei
|
4 |
Tags: multilingual, bilingual, translate, translation, language, multilanguage, i18n, international, l10n, localization
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 1.0.1
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Polylang adds multilingual content management support to WordPress.
|
24 |
|
25 |
= Translators =
|
26 |
|
27 |
+
The plugin admin interface is currently available in 23 languages: English, French, German contributed by [Christian Ries](http://www.singbyfoot.lu), Russian contributed by [yoyurec](http://yoyurec.in.ua) and unostar, Greek contributed by [theodotos](http://www.ubuntucy.org), Dutch contributed by [AlbertGn](http://wordpress.org/support/profile/albertgn), Hebrew contributed by [ArielK](http://www.arielk.net), Polish contributed by [Peter Paciorkiewicz](http://www.paciorkiewicz.pl), Latvian contributed by [@AndyDeGroo](http://twitter.com/AndyDeGroo), Italian contributed by [Luca Barbetti](http://wordpress.org/support/profile/lucabarbetti), Danish contributed by [Compute](http://wordpress.org/support/profile/compute), Spanish contributed by Curro, Portuguese contributed by [Vitor Carvalho](http://vcarvalho.com/), Lithuanian contributed by [Naglis Jonaitis](http://najo.lt/), Turkish contributed by [darchws](http://darch.ws/), Finnish contributed by [Jani Alha](http://www.wysiwyg.fi), Bulgarian contributed by [pavelsof](http://wordpress.org/support/profile/pavelsof), Belarusian contributed by [Alexander Markevitch](http://fourfeathers.by/), Afrikaans contributed by [Kobus Joubert](http://translate3d.com/), Hungarian contributed by Csaba Erdei, Norwegian contributed by [Tom Boersma](http://www.oransje.com/), Slovak contributed by [Branco (WebHostingGeeks.com)](http://webhostinggeeks.com/user-reviews/), Swedish contributed by [matsii](http://wordpress.org/support/profile/matsii)
|
28 |
|
29 |
|
30 |
Other [contributions](http://wordpress.org/extend/plugins/polylang/other_notes/) are welcome !
|
75 |
|
76 |
= Translate the admin interface =
|
77 |
|
78 |
+
Polylang is already available in 23 languages. It's very easy to add a new one! Download [poedit](http://www.poedit.net/download.php) (available for Windows, Mac OS X and Linux). Rename the file polylang.pot found in the polylang/languages directory into something like polylang-your_locale.po. Open the file with poedit and start translating (keeping strange codes such as %s, %1$s as is). Once done, just save and you will get two files polylang-your_locale.po and polylang-your_locale.mo that you can send to the author. The translation will be included with the next release and will be covered by the same license as Polylang (GPLv2 or later).
|
79 |
|
80 |
= Communicate =
|
81 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.0.1 (2013-01-28) =
|
96 |
+
|
97 |
+
* Add Swedish translation contributed by [matsii](http://wordpress.org/support/profile/matsii)
|
98 |
+
* Add 2 new API functions : 'pll_is_translated_post_type' and 'pll_is_translated_taxonomy'
|
99 |
+
* Bug correction: when using a static front page, the posts page is not filtered by language (introduced in 1.0)
|
100 |
+
* Bug correction: disable translation for hard coded menu as it creates more problems than it solves (introduced in 1.0)
|
101 |
+
|
102 |
= 1.0 (2013-01-24) =
|
103 |
|
104 |
* Add Hungarian translation contributed by Csaba Erdei
|