From 5d207f0b163a213c5d142bedf7f1461566baef02 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 15 Mar 2019 09:52:16 +0100 Subject: [PATCH 1/4] PL translation update blackout THX waldis --- blackout/lang/pl/messages.po | 50 +++++++++++++++++++++++------------- blackout/lang/pl/strings.php | 6 +++-- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/blackout/lang/pl/messages.po b/blackout/lang/pl/messages.po index 3d9c7ac9..5cb661d8 100644 --- a/blackout/lang/pl/messages.po +++ b/blackout/lang/pl/messages.po @@ -4,15 +4,15 @@ # # # Translators: -# Waldemar Stoczkowski , 2018 -# Waldemar Stoczkowski , 2018 +# Waldemar Stoczkowski, 2018-2019 +# Waldemar Stoczkowski, 2018 msgid "" msgstr "" "Project-Id-Version: friendica\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-06-22 13:18+0200\n" -"PO-Revision-Date: 2018-08-04 10:57+0000\n" -"Last-Translator: Waldemar Stoczkowski \n" +"POT-Creation-Date: 2019-03-12 09:26+0100\n" +"PO-Revision-Date: 2019-03-14 19:55+0000\n" +"Last-Translator: Waldemar Stoczkowski\n" "Language-Team: Polish (http://www.transifex.com/Friendica/friendica/language/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -20,34 +20,48 @@ msgstr "" "Language: pl\n" "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" -#: blackout.php:99 +#: blackout.php:101 +msgid "" +"The end-date is prior to the start-date of the blackout, you should fix this" +msgstr "Data zakończenia jest przed datą rozpoczęcia, powinieneś to naprawić" + +#: blackout.php:103 +#, php-format +msgid "" +"Please double check that the current settings for the blackout. Begin will " +"be %s and it will end %s." +msgstr "" + +#: blackout.php:106 msgid "Save Settings" msgstr "Zapisz ustawienia" -#: blackout.php:100 +#: blackout.php:107 msgid "Redirect URL" msgstr "Przekierowanie URL" -#: blackout.php:100 +#: blackout.php:107 msgid "all your visitors from the web will be redirected to this URL" msgstr "wszyscy Twoi goście z internetu zostaną przekierowani na ten adres URL" -#: blackout.php:101 +#: blackout.php:108 msgid "Begin of the Blackout" msgstr "Rozpocznij Blackout" -#: blackout.php:101 +#: blackout.php:108 msgid "" -"format is YYYY year, MM month, DD day, " -"hh hour and mm minute" -msgstr "Format to RRRR rok, MM miesiąc, DD dzień, hhgodzina i mm minuty" +"Format is YYYY-MM-DD hh:mm; YYYY year, MM month, " +"DD day, hh hour and mm minute." +msgstr "" -#: blackout.php:102 +#: blackout.php:109 msgid "End of the Blackout" msgstr "Koniec Blackout" -#: blackout.php:108 +#: blackout.php:111 msgid "" -"The end-date is prior to the start-date of the blackout, you should fix " -"this." -msgstr "Data końcowa jest wcześniejsza niż data rozpoczęcia blackoutu, powinieneś to naprawić." +"Note: The redirect will be active from the moment you press" +" the submit button. Users currently logged in will not be " +"thrown out but can't login again after logging out should the blackout is " +"still in place." +msgstr "" diff --git a/blackout/lang/pl/strings.php b/blackout/lang/pl/strings.php index 9a322497..bcfdb7db 100644 --- a/blackout/lang/pl/strings.php +++ b/blackout/lang/pl/strings.php @@ -6,10 +6,12 @@ function string_plural_select_pl($n){ return ($n==1 ? 0 : ($n%10>=2 && $n%10<=4) && ($n%100<12 || $n%100>14) ? 1 : $n!=1 && ($n%10>=0 && $n%10<=1) || ($n%10>=5 && $n%10<=9) || ($n%100>=12 && $n%100<=14) ? 2 : 3);; }} ; +$a->strings["The end-date is prior to the start-date of the blackout, you should fix this"] = "Data zakończenia jest przed datą rozpoczęcia, powinieneś to naprawić"; +$a->strings["Please double check that the current settings for the blackout. Begin will be %s and it will end %s."] = ""; $a->strings["Save Settings"] = "Zapisz ustawienia"; $a->strings["Redirect URL"] = "Przekierowanie URL"; $a->strings["all your visitors from the web will be redirected to this URL"] = "wszyscy Twoi goście z internetu zostaną przekierowani na ten adres URL"; $a->strings["Begin of the Blackout"] = "Rozpocznij Blackout"; -$a->strings["format is YYYY year, MM month, DD day, hh hour and mm minute"] = "Format to RRRR rok, MM miesiąc, DD dzień, hhgodzina i mm minuty"; +$a->strings["Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."] = ""; $a->strings["End of the Blackout"] = "Koniec Blackout"; -$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "Data końcowa jest wcześniejsza niż data rozpoczęcia blackoutu, powinieneś to naprawić."; +$a->strings["Note: The redirect will be active from the moment you press the submit button. Users currently logged in will not be thrown out but can't login again after logging out should the blackout is still in place."] = ""; -- 2.43.5 From fe578cc4ce722e8c2fb7d9f72b96579400edfc1c Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 20 Mar 2019 06:17:04 +0000 Subject: [PATCH 2/4] Avoid notices in buffer addon --- buffer/buffer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buffer/buffer.php b/buffer/buffer.php index 869260d3..84ea0be8 100644 --- a/buffer/buffer.php +++ b/buffer/buffer.php @@ -114,10 +114,10 @@ function buffer_connect(App $a) $buffer = new BufferApp($client_id, $client_secret, $callback_url); if (!$buffer->ok) { - $o .= 'Connect to Buffer!'; + $o = 'Connect to Buffer!'; } else { Logger::log("buffer_connect: authenticated"); - $o .= L10n::t("You are now authenticated to buffer. "); + $o = L10n::t("You are now authenticated to buffer. "); $o .= '
' . L10n::t("return to the connector page") . ''; PConfig::set(local_user(), 'buffer','access_token', $buffer->access_token); } @@ -236,8 +236,8 @@ function buffer_settings_post(App $a, array &$b) PConfig::set(local_user(), 'buffer', 'post' , false); PConfig::set(local_user(), 'buffer', 'post_by_default', false); } else { - PConfig::set(local_user(), 'buffer', 'post' , intval($_POST['buffer'])); - PConfig::set(local_user(), 'buffer', 'post_by_default', intval($_POST['buffer_bydefault'])); + PConfig::set(local_user(), 'buffer', 'post' , intval(defaults($_POST, 'buffer', false))); + PConfig::set(local_user(), 'buffer', 'post_by_default', intval(defaults($_POST, 'buffer_bydefault', false))); } } } -- 2.43.5 From 789f84e702a7c450c595fe995a24cebf703e6642 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 22 Mar 2019 01:15:32 +0100 Subject: [PATCH 3/4] added SV translation of advancedcontentfilter --- advancedcontentfilter/lang/sv/messages.po | 175 ++++++++++++++++++++++ advancedcontentfilter/lang/sv/strings.php | 41 +++++ 2 files changed, 216 insertions(+) create mode 100644 advancedcontentfilter/lang/sv/messages.po create mode 100644 advancedcontentfilter/lang/sv/strings.php diff --git a/advancedcontentfilter/lang/sv/messages.po b/advancedcontentfilter/lang/sv/messages.po new file mode 100644 index 00000000..bd69e232 --- /dev/null +++ b/advancedcontentfilter/lang/sv/messages.po @@ -0,0 +1,175 @@ +# ADDON advancedcontentfilter +# Copyright (C) +# This file is distributed under the same license as the Friendica advancedcontentfilter addon package. +# +# +# Translators: +# Torbjörn Andersson , 2019 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-17 04:04+0200\n" +"PO-Revision-Date: 2018-05-24 06:41+0000\n" +"Last-Translator: Torbjörn Andersson , 2019\n" +"Language-Team: Swedish (https://www.transifex.com/Friendica/teams/12172/sv/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: sv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: advancedcontentfilter.php:134 +#, php-format +msgid "Filtered by rule: %s" +msgstr "" + +#: advancedcontentfilter.php:147 advancedcontentfilter.php:204 +msgid "Advanced Content Filter" +msgstr "Avancerat innehållsfiter" + +#: advancedcontentfilter.php:203 +msgid "Back to Addon Settings" +msgstr "TIllbaka till Tilläggsinställningar" + +#: advancedcontentfilter.php:205 +msgid "Add a Rule" +msgstr "Lägg till en regel" + +#: advancedcontentfilter.php:206 +msgid "Help" +msgstr "Hjälp" + +#: advancedcontentfilter.php:207 +msgid "" +"Add and manage your personal content filter rules in this screen. Rules have" +" a name and an arbitrary expression that will be matched against post data. " +"For a complete reference of the available operations and variables, check " +"the help page." +msgstr "" +"Lägg till och hantera dina personliga regler för innehållsfilter i det här " +"fönstret. Regler har ett namn och ett valfritt uttryck och kommer jämföras " +"mot inläggets innehåll. Förteckning av alla operander och variabler finns " +"att hitta på hjälpsidan." + +#: advancedcontentfilter.php:208 +msgid "Your rules" +msgstr "Dina regler" + +#: advancedcontentfilter.php:209 +msgid "" +"You have no rules yet! Start adding one by clicking on the button above next" +" to the title." +msgstr "" +"Du har inga regler än! Lägg till regler genom att klicka på knappen ovanför," +" bredvid överskriften." + +#: advancedcontentfilter.php:210 +msgid "Disabled" +msgstr "Inaktiverad" + +#: advancedcontentfilter.php:211 +msgid "Enabled" +msgstr "Aktiverad" + +#: advancedcontentfilter.php:212 +msgid "Disable this rule" +msgstr "Inaktivera den här regeln" + +#: advancedcontentfilter.php:213 +msgid "Enable this rule" +msgstr "Aktivera den här regeln" + +#: advancedcontentfilter.php:214 +msgid "Edit this rule" +msgstr "Redigera den här regeln" + +#: advancedcontentfilter.php:215 +msgid "Edit the rule" +msgstr "Redigera den här regeln" + +#: advancedcontentfilter.php:216 +msgid "Save this rule" +msgstr "Spara den här regeln" + +#: advancedcontentfilter.php:217 +msgid "Delete this rule" +msgstr "Ta bort den här regeln" + +#: advancedcontentfilter.php:218 +msgid "Rule" +msgstr "Regel" + +#: advancedcontentfilter.php:219 +msgid "Close" +msgstr "Stäng" + +#: advancedcontentfilter.php:220 +msgid "Add new rule" +msgstr "Lägg till ny regel" + +#: advancedcontentfilter.php:221 +msgid "Rule Name" +msgstr "Regelnamn" + +#: advancedcontentfilter.php:222 +msgid "Rule Expression" +msgstr "Regeluttryck" + +#: advancedcontentfilter.php:223 +msgid "" +"

Examples:

  • author_link == "
    +"'https://friendica.mrpetovan.com/profile/hypolite'
  • tags
" +msgstr "" +"

Exempel:

  • author_link == "
    +"'https://friendica.mrpetovan.com/profile/hypolite'
  • taggar
" + +#: advancedcontentfilter.php:224 +msgid "Cancel" +msgstr "Avbryt" + +#: advancedcontentfilter.php:290 advancedcontentfilter.php:301 +#: advancedcontentfilter.php:312 advancedcontentfilter.php:346 +#: advancedcontentfilter.php:375 advancedcontentfilter.php:396 +msgid "You must be logged in to use this method" +msgstr "Du måste vara inloggad för att använda den här funktionen" + +#: advancedcontentfilter.php:316 advancedcontentfilter.php:350 +#: advancedcontentfilter.php:379 +msgid "Invalid form security token, please refresh the page." +msgstr "" + +#: advancedcontentfilter.php:328 +msgid "The rule name and expression are required." +msgstr "" + +#: advancedcontentfilter.php:340 +msgid "Rule successfully added" +msgstr "" + +#: advancedcontentfilter.php:354 advancedcontentfilter.php:383 +msgid "Rule doesn't exist or doesn't belong to you." +msgstr "" + +#: advancedcontentfilter.php:369 +msgid "Rule successfully updated" +msgstr "" + +#: advancedcontentfilter.php:390 +msgid "Rule successfully deleted" +msgstr "" + +#: advancedcontentfilter.php:400 +msgid "Missing argument: guid." +msgstr "" + +#: advancedcontentfilter.php:406 +#, php-format +msgid "Unknown post with guid: %s" +msgstr "" + +#: src/middlewares.php:28 +msgid "Method not found" +msgstr "" diff --git a/advancedcontentfilter/lang/sv/strings.php b/advancedcontentfilter/lang/sv/strings.php new file mode 100644 index 00000000..bb6c3eda --- /dev/null +++ b/advancedcontentfilter/lang/sv/strings.php @@ -0,0 +1,41 @@ +strings["Filtered by rule: %s"] = ""; +$a->strings["Advanced Content Filter"] = "Avancerat innehållsfiter"; +$a->strings["Back to Addon Settings"] = "TIllbaka till Tilläggsinställningar"; +$a->strings["Add a Rule"] = "Lägg till en regel"; +$a->strings["Help"] = "Hjälp"; +$a->strings["Add and manage your personal content filter rules in this screen. Rules have a name and an arbitrary expression that will be matched against post data. For a complete reference of the available operations and variables, check the help page."] = "Lägg till och hantera dina personliga regler för innehållsfilter i det här fönstret. Regler har ett namn och ett valfritt uttryck och kommer jämföras mot inläggets innehåll. Förteckning av alla operander och variabler finns att hitta på hjälpsidan."; +$a->strings["Your rules"] = "Dina regler"; +$a->strings["You have no rules yet! Start adding one by clicking on the button above next to the title."] = "Du har inga regler än! Lägg till regler genom att klicka på knappen ovanför, bredvid överskriften."; +$a->strings["Disabled"] = "Inaktiverad"; +$a->strings["Enabled"] = "Aktiverad"; +$a->strings["Disable this rule"] = "Inaktivera den här regeln"; +$a->strings["Enable this rule"] = "Aktivera den här regeln"; +$a->strings["Edit this rule"] = "Redigera den här regeln"; +$a->strings["Edit the rule"] = "Redigera den här regeln"; +$a->strings["Save this rule"] = "Spara den här regeln"; +$a->strings["Delete this rule"] = "Ta bort den här regeln"; +$a->strings["Rule"] = "Regel"; +$a->strings["Close"] = "Stäng"; +$a->strings["Add new rule"] = "Lägg till ny regel"; +$a->strings["Rule Name"] = "Regelnamn"; +$a->strings["Rule Expression"] = "Regeluttryck"; +$a->strings["

Examples:

  • author_link == 'https://friendica.mrpetovan.com/profile/hypolite'
  • tags
"] = "

Exempel:

  • author_link == 'https://friendica.mrpetovan.com/profile/hypolite'
  • taggar
"; +$a->strings["Cancel"] = "Avbryt"; +$a->strings["You must be logged in to use this method"] = "Du måste vara inloggad för att använda den här funktionen"; +$a->strings["Invalid form security token, please refresh the page."] = ""; +$a->strings["The rule name and expression are required."] = ""; +$a->strings["Rule successfully added"] = ""; +$a->strings["Rule doesn't exist or doesn't belong to you."] = ""; +$a->strings["Rule successfully updated"] = ""; +$a->strings["Rule successfully deleted"] = ""; +$a->strings["Missing argument: guid."] = ""; +$a->strings["Unknown post with guid: %s"] = ""; +$a->strings["Method not found"] = ""; -- 2.43.5 From af7e7ac511471f0371b003941f6d546ff2e6619d Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 22 Mar 2019 01:17:40 +0100 Subject: [PATCH 4/4] added SV translation of langfilter --- langfilter/lang/sv/messages.po | 81 ++++++++++++++++++++++++++++++++++ langfilter/lang/sv/strings.php | 20 +++++++++ 2 files changed, 101 insertions(+) create mode 100644 langfilter/lang/sv/messages.po create mode 100644 langfilter/lang/sv/strings.php diff --git a/langfilter/lang/sv/messages.po b/langfilter/lang/sv/messages.po new file mode 100644 index 00000000..9ce3a202 --- /dev/null +++ b/langfilter/lang/sv/messages.po @@ -0,0 +1,81 @@ +# ADDON langfilter +# Copyright (C) +# This file is distributed under the same license as the Friendica langfilter addon package. +# +# +# Translators: +# Tim Stahel , 2019 +# Torbjörn Andersson , 2019 +msgid "" +msgstr "" +"Project-Id-Version: friendica\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-01 11:11-0400\n" +"PO-Revision-Date: 2019-03-21 18:01+0000\n" +"Last-Translator: Torbjörn Andersson \n" +"Language-Team: Swedish (http://www.transifex.com/Friendica/friendica/language/sv/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: sv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: langfilter.php:58 +msgid "Language Filter" +msgstr "Språkfilter" + +#: langfilter.php:59 +msgid "" +"This addon tries to identify the language posts are writen in. If it does " +"not match any language specifed below, posts will be hidden by collapsing " +"them." +msgstr "Detta tillägg försöker identifiera vilket språk inlägg är skrivna i. Om det inte matchar ett språk specifierat nedan så göms inlägg genom att kollapsa dem." + +#: langfilter.php:60 +msgid "Use the language filter" +msgstr "Använd språkfiltret" + +#: langfilter.php:61 +msgid "Able to read" +msgstr "Kan läsa" + +#: langfilter.php:61 +msgid "" +"List of abbreviations (iso2 codes) for languages you speak, comma separated." +" For example \"de,it\"." +msgstr "Lista av förkortningar (iso2 koder) för spåk du pratar, separerade av kommatecken. Exempel: \"de, it\"." + +#: langfilter.php:62 +msgid "Minimum confidence in language detection" +msgstr "Minsta förtroende i språkigenkänning" + +#: langfilter.php:62 +msgid "" +"Minimum confidence in language detection being correct, from 0 to 100. Posts" +" will not be filtered when the confidence of language detection is below " +"this percent value." +msgstr "Minsta förtroende i att språkigenkänningen är korrekt, från 0 till 100.\nInlägg filtreras inte när förtroendet i språkigenkänningen är under detta procentvärde." + +#: langfilter.php:63 +msgid "Minimum length of message body" +msgstr "Minsta längd på meddelandetext" + +#: langfilter.php:63 +msgid "" +"Minimum number of characters in message body for filter to be used. Posts " +"shorter than this will not be filtered. Note: Language detection is " +"unreliable for short content (<200 characters)." +msgstr "Minsta antal tecken i meddelande text för att ett filter ska användas. Inlägg kortare än detta kommer inte filtreras. Notera: Språkigenkänning är inte tillförlitligt på korta texter (<200 tecken)." + +#: langfilter.php:64 +msgid "Save Settings" +msgstr "Spara inställningar" + +#: langfilter.php:105 +msgid "Language Filter Settings saved." +msgstr "Inställningar för språkfilter sparade." + +#: langfilter.php:182 +#, php-format +msgid "Filtered language: %s" +msgstr "Filtrerat språk: %s" diff --git a/langfilter/lang/sv/strings.php b/langfilter/lang/sv/strings.php new file mode 100644 index 00000000..3274e98b --- /dev/null +++ b/langfilter/lang/sv/strings.php @@ -0,0 +1,20 @@ +strings["Language Filter"] = "Språkfilter"; +$a->strings["This addon tries to identify the language posts are writen in. If it does not match any language specifed below, posts will be hidden by collapsing them."] = "Detta tillägg försöker identifiera vilket språk inlägg är skrivna i. Om det inte matchar ett språk specifierat nedan så göms inlägg genom att kollapsa dem."; +$a->strings["Use the language filter"] = "Använd språkfiltret"; +$a->strings["Able to read"] = "Kan läsa"; +$a->strings["List of abbreviations (iso2 codes) for languages you speak, comma separated. For example \"de,it\"."] = "Lista av förkortningar (iso2 koder) för spåk du pratar, separerade av kommatecken. Exempel: \"de, it\"."; +$a->strings["Minimum confidence in language detection"] = "Minsta förtroende i språkigenkänning"; +$a->strings["Minimum confidence in language detection being correct, from 0 to 100. Posts will not be filtered when the confidence of language detection is below this percent value."] = "Minsta förtroende i att språkigenkänningen är korrekt, från 0 till 100.\nInlägg filtreras inte när förtroendet i språkigenkänningen är under detta procentvärde."; +$a->strings["Minimum length of message body"] = "Minsta längd på meddelandetext"; +$a->strings["Minimum number of characters in message body for filter to be used. Posts shorter than this will not be filtered. Note: Language detection is unreliable for short content (<200 characters)."] = "Minsta antal tecken i meddelande text för att ett filter ska användas. Inlägg kortare än detta kommer inte filtreras. Notera: Språkigenkänning är inte tillförlitligt på korta texter (<200 tecken)."; +$a->strings["Save Settings"] = "Spara inställningar"; +$a->strings["Language Filter Settings saved."] = "Inställningar för språkfilter sparade."; +$a->strings["Filtered language: %s"] = "Filtrerat språk: %s"; -- 2.43.5