Buffer, Blogger, NoTimeline and XMPP addon are deprecated #3

Merged
tobias merged 4 commits from tobias/deprecated-addons:20211127-buffer_blogger_notimeline_xmpp into master 2021-11-28 08:10:22 +01:00
33 changed files with 647 additions and 0 deletions
Showing only changes of commit 483e8e9755 - Show all commits

View file

@ -0,0 +1,30 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: notimeline.php:48
msgid "No Timeline Settings"
msgstr ""
#: notimeline.php:50
msgid "Disable Archive selector on profile wall"
msgstr ""
#: notimeline.php:56
msgid "Save Settings"
msgstr ""

View file

@ -0,0 +1,32 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# Farida Khalaf <faridakhalaf@hotmail.com>, 2021
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
"PO-Revision-Date: 2021-02-22 00:46+0000\n"
"Last-Translator: Farida Khalaf <faridakhalaf@hotmail.com>\n"
"Language-Team: Arabic (http://www.transifex.com/Friendica/friendica/language/ar/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ar\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
#: notimeline.php:48
msgid "No Timeline Settings"
msgstr "لا يوجد إعدادات للتسلسل  الزمني"
#: notimeline.php:50
msgid "Disable Archive selector on profile wall"
msgstr "تعطيل محدد الأرشيف على جدار الملف الشخصي"
#: notimeline.php:56
msgid "Save Settings"
msgstr "حفظ الإعدادات"

View file

@ -0,0 +1,10 @@
<?php
if(! function_exists("string_plural_select_ar")) {
function string_plural_select_ar($n){
$n = intval($n);
if ($n==0) { return 0; } else if ($n==1) { return 1; } else if ($n==2) { return 2; } else if ($n%100>=3 && $n%100<=10) { return 3; } else if ($n%100>=11 && $n%100<=99) { return 4; } else { return 5; }
}}
$a->strings['No Timeline Settings'] = 'لا يوجد إعدادات للتسلسل  الزمني';
$a->strings['Disable Archive selector on profile wall'] = 'تعطيل محدد الأرشيف على جدار الملف الشخصي';
$a->strings['Save Settings'] = 'حفظ الإعدادات';

View file

@ -0,0 +1,6 @@
<?php
$a->strings["No Timeline settings updated."] = "No s'han actualitzat els ajustos de la línia de temps";
$a->strings["No Timeline Settings"] = "No hi han ajustos de la línia de temps";
$a->strings["Disable Archive selector on profile wall"] = "Desactivar el selector d'arxius del mur de perfils";
$a->strings["Submit"] = "Enviar";

View file

@ -0,0 +1,36 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# Michal Šupler <msupler@gmail.com>, 2014-2015
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
"PO-Revision-Date: 2015-02-11 19:38+0000\n"
"Last-Translator: Michal Šupler <msupler@gmail.com>\n"
"Language-Team: Czech (http://www.transifex.com/projects/p/friendica/language/cs/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: cs\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#: notimeline.php:32
msgid "No Timeline settings updated."
msgstr "Nastavení No Timeline aktualizováno."
#: notimeline.php:56
msgid "No Timeline Settings"
msgstr "Nastavení No Timeline"
#: notimeline.php:58
msgid "Disable Archive selector on profile wall"
msgstr "Znemožnit použití archivu na této profilové zdi."
#: notimeline.php:64
msgid "Submit"
msgstr "Odeslat"

View file

@ -0,0 +1,11 @@
<?php
if(! function_exists("string_plural_select_cs")) {
function string_plural_select_cs($n){
$n = intval($n);
if (($n==1)) { return 0; } else if (($n>=2 && $n<=4)) { return 1; } else { return 2; }
}}
$a->strings['No Timeline settings updated.'] = 'Nastavení No Timeline aktualizováno.';
$a->strings['No Timeline Settings'] = 'Nastavení No Timeline';
$a->strings['Disable Archive selector on profile wall'] = 'Znemožnit použití archivu na této profilové zdi.';
$a->strings['Submit'] = 'Odeslat';

View file

@ -0,0 +1,37 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# Andreas H., 2014
# Ulf Rompe <transifex.com@rompe.org>, 2019
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
"PO-Revision-Date: 2019-02-18 15:06+0000\n"
"Last-Translator: Ulf Rompe <transifex.com@rompe.org>\n"
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: notimeline.php:32
msgid "No Timeline settings updated."
msgstr "Keine Timeline-Einstellungen aktualisiert."
#: notimeline.php:56
msgid "No Timeline Settings"
msgstr "Keine Timeline-Einstellungen"
#: notimeline.php:58
msgid "Disable Archive selector on profile wall"
msgstr "Deaktiviere Archiv-Auswahl auf deiner Pinnwand"
#: notimeline.php:64
msgid "Submit"
msgstr "Senden"

View file

@ -0,0 +1,11 @@
<?php
if(! function_exists("string_plural_select_de")) {
function string_plural_select_de($n){
$n = intval($n);
return intval($n != 1);
}}
$a->strings['No Timeline settings updated.'] = 'Keine Timeline-Einstellungen aktualisiert.';
$a->strings['No Timeline Settings'] = 'Keine Timeline-Einstellungen';
$a->strings['Disable Archive selector on profile wall'] = 'Deaktiviere Archiv-Auswahl auf deiner Pinnwand';
$a->strings['Submit'] = 'Senden';

View file

@ -0,0 +1,6 @@
<?php
$a->strings["No Timeline settings updated."] = "No Timeline agordojn ĝisdatigita.";
$a->strings["No Timeline Settings"] = "No Timeline Agordoj";
$a->strings["Disable Archive selector on profile wall"] = "Malaktivigi la Arkivo elektilo sur la profilmuro";
$a->strings["Submit"] = "Sendi";

View file

@ -0,0 +1,33 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# Albert, 2016
# Senex Petrovic <javierruizo@hotmail.com>, 2021
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
"PO-Revision-Date: 2021-04-06 01:47+0000\n"
"Last-Translator: Senex Petrovic <javierruizo@hotmail.com>\n"
"Language-Team: Spanish (http://www.transifex.com/Friendica/friendica/language/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: notimeline.php:48
msgid "No Timeline Settings"
msgstr "No hay ajustes de Línea de Tiempo"
#: notimeline.php:50
msgid "Disable Archive selector on profile wall"
msgstr "Deshabilitar el selector Archivo en el muro de perfil"
#: notimeline.php:56
msgid "Save Settings"
msgstr "Grabar ajustes"

View file

@ -0,0 +1,10 @@
<?php
if(! function_exists("string_plural_select_es")) {
function string_plural_select_es($n){
$n = intval($n);
return intval($n != 1);
}}
$a->strings['No Timeline Settings'] = 'No hay ajustes de Línea de Tiempo';
$a->strings['Disable Archive selector on profile wall'] = 'Deshabilitar el selector Archivo en el muro de perfil';
$a->strings['Save Settings'] = 'Grabar ajustes';

View file

@ -0,0 +1,37 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# Kris, 2018
# Kris, 2018
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
"PO-Revision-Date: 2018-04-08 16:10+0000\n"
"Last-Translator: Kris\n"
"Language-Team: Finnish (Finland) (http://www.transifex.com/Friendica/friendica/language/fi_FI/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: fi_FI\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: notimeline.php:32
msgid "No Timeline settings updated."
msgstr "No Timeline -asetukset päivitetty"
#: notimeline.php:56
msgid "No Timeline Settings"
msgstr "No Timeline -asetukset"
#: notimeline.php:58
msgid "Disable Archive selector on profile wall"
msgstr ""
#: notimeline.php:64
msgid "Submit"
msgstr "Lähetä"

View file

@ -0,0 +1,10 @@
<?php
if(! function_exists("string_plural_select_fi_fi")) {
function string_plural_select_fi_fi($n){
$n = intval($n);
return intval($n != 1);
}}
$a->strings['No Timeline settings updated.'] = 'No Timeline -asetukset päivitetty';
$a->strings['No Timeline Settings'] = 'No Timeline -asetukset';
$a->strings['Submit'] = 'Lähetä';

View file

@ -0,0 +1,6 @@
<?php
$a->strings["No Timeline settings updated."] = "Pas de mise à jour de paramètres du calendrier.";
$a->strings["No Timeline Settings"] = "Pas de paramètres de calendrier";
$a->strings["Disable Archive selector on profile wall"] = "Désactiver le sélecteur d'archives sur le mur";
$a->strings["Submit"] = "Envoyer";

View file

@ -0,0 +1,32 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# Balázs Úr, 2020-2021
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
"PO-Revision-Date: 2021-03-25 22:50+0000\n"
"Last-Translator: Balázs Úr\n"
"Language-Team: Hungarian (http://www.transifex.com/Friendica/friendica/language/hu/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: hu\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: notimeline.php:48
msgid "No Timeline Settings"
msgstr "Nincs idővonal beállításai"
#: notimeline.php:50
msgid "Disable Archive selector on profile wall"
msgstr "Archiválás kiválasztó letiltása a profil falán"
#: notimeline.php:56
msgid "Save Settings"
msgstr "Beállítások mentése"

View file

@ -0,0 +1,10 @@
<?php
if(! function_exists("string_plural_select_hu")) {
function string_plural_select_hu($n){
$n = intval($n);
return intval($n != 1);
}}
$a->strings['No Timeline Settings'] = 'Nincs idővonal beállításai';
$a->strings['Disable Archive selector on profile wall'] = 'Archiválás kiválasztó letiltása a profil falán';
$a->strings['Save Settings'] = 'Beállítások mentése';

View file

@ -0,0 +1,6 @@
<?php
$a->strings["No Timeline settings updated."] = "";
$a->strings["No Timeline Settings"] = "";
$a->strings["Disable Archive selector on profile wall"] = "";
$a->strings["Submit"] = "Senda inn";

View file

@ -0,0 +1,36 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# fabrixxm <fabrix.xm@gmail.com>, 2014-2015
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
"PO-Revision-Date: 2017-09-20 06:08+0000\n"
"Last-Translator: fabrixxm <fabrix.xm@gmail.com>\n"
"Language-Team: Italian (http://www.transifex.com/Friendica/friendica/language/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: notimeline.php:32
msgid "No Timeline settings updated."
msgstr "Impostazioni \"No Timeline\" aggiornate."
#: notimeline.php:56
msgid "No Timeline Settings"
msgstr "Impostazioni \"No Timeline\""
#: notimeline.php:58
msgid "Disable Archive selector on profile wall"
msgstr "Disabilita il selettore dell'archivio sulla pagina del profilo"
#: notimeline.php:64
msgid "Submit"
msgstr "Invia"

View file

@ -0,0 +1,11 @@
<?php
if(! function_exists("string_plural_select_it")) {
function string_plural_select_it($n){
$n = intval($n);
return intval($n != 1);
}}
$a->strings['No Timeline settings updated.'] = 'Impostazioni "No Timeline" aggiornate.';
$a->strings['No Timeline Settings'] = 'Impostazioni "No Timeline"';
$a->strings['Disable Archive selector on profile wall'] = 'Disabilita il selettore dell\'archivio sulla pagina del profilo';
$a->strings['Submit'] = 'Invia';

View file

@ -0,0 +1,6 @@
<?php
$a->strings["No Timeline settings updated."] = "";
$a->strings["No Timeline Settings"] = "";
$a->strings["Disable Archive selector on profile wall"] = "";
$a->strings["Submit"] = "Lagre";

View file

@ -0,0 +1,36 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# Jeroen De Meerleer <me@jeroened.be>, 2018
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
"PO-Revision-Date: 2018-08-24 13:48+0000\n"
"Last-Translator: Jeroen De Meerleer <me@jeroened.be>\n"
"Language-Team: Dutch (http://www.transifex.com/Friendica/friendica/language/nl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: notimeline.php:32
msgid "No Timeline settings updated."
msgstr "Geen tijdlijn instellingen opgeslagen"
#: notimeline.php:56
msgid "No Timeline Settings"
msgstr "No Timeline instellingen"
#: notimeline.php:58
msgid "Disable Archive selector on profile wall"
msgstr ""
#: notimeline.php:64
msgid "Submit"
msgstr ""

View file

@ -0,0 +1,9 @@
<?php
if(! function_exists("string_plural_select_nl")) {
function string_plural_select_nl($n){
$n = intval($n);
return intval($n != 1);
}}
$a->strings['No Timeline settings updated.'] = 'Geen tijdlijn instellingen opgeslagen';
$a->strings['No Timeline Settings'] = 'No Timeline instellingen';

View file

@ -0,0 +1,36 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# Waldemar Stoczkowski <waldemar.stoczkowski@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
"PO-Revision-Date: 2018-03-31 19:17+0000\n"
"Last-Translator: Waldemar Stoczkowski <waldemar.stoczkowski@gmail.com>\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"
"Content-Transfer-Encoding: 8bit\n"
"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"
#: notimeline.php:32
msgid "No Timeline settings updated."
msgstr "Nie zaktualizowano ustawień osi czasu."
#: notimeline.php:56
msgid "No Timeline Settings"
msgstr "Brak ustawień osi czasu"
#: notimeline.php:58
msgid "Disable Archive selector on profile wall"
msgstr "Wyłącz selektor Archiwum na ścianie profilowej"
#: notimeline.php:64
msgid "Submit"
msgstr "Wyślij"

View file

@ -0,0 +1,11 @@
<?php
if(! function_exists("string_plural_select_pl")) {
function string_plural_select_pl($n){
$n = intval($n);
if ($n==1) { return 0; } else if (($n%10>=2 && $n%10<=4) && ($n%100<12 || $n%100>14)) { return 1; } else if ($n!=1 && ($n%10>=0 && $n%10<=1) || ($n%10>=5 && $n%10<=9) || ($n%100>=12 && $n%100<=14)) { return 2; } else { return 3; }
}}
$a->strings['No Timeline settings updated.'] = 'Nie zaktualizowano ustawień osi czasu.';
$a->strings['No Timeline Settings'] = 'Brak ustawień osi czasu';
$a->strings['Disable Archive selector on profile wall'] = 'Wyłącz selektor Archiwum na ścianie profilowej';
$a->strings['Submit'] = 'Wyślij';

View file

@ -0,0 +1,6 @@
<?php
$a->strings["No Timeline settings updated."] = "";
$a->strings["No Timeline Settings"] = "";
$a->strings["Disable Archive selector on profile wall"] = "";
$a->strings["Submit"] = "Enviar";

View file

@ -0,0 +1,36 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# Doru DEACONU <dumitrudeaconu@yahoo.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
"PO-Revision-Date: 2014-11-27 14:16+0000\n"
"Last-Translator: Doru DEACONU <dumitrudeaconu@yahoo.com>\n"
"Language-Team: Romanian (Romania) (http://www.transifex.com/projects/p/friendica/language/ro_RO/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ro_RO\n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
#: notimeline.php:32
msgid "No Timeline settings updated."
msgstr "Configurările pentru Lipsă Cronologie, au fost actualizate."
#: notimeline.php:56
msgid "No Timeline Settings"
msgstr "Configurări pentru Lipsă Cronologie"
#: notimeline.php:58
msgid "Disable Archive selector on profile wall"
msgstr "Dezactivare selector Arhivă din peretele de profil"
#: notimeline.php:64
msgid "Submit"
msgstr "Trimite"

View file

@ -0,0 +1,11 @@
<?php
if(! function_exists("string_plural_select_ro")) {
function string_plural_select_ro($n){
$n = intval($n);
if ($n==1) { return 0; } else if ((($n%100>19)||(($n%100==0)&&($n!=0)))) { return 2; } else { return 1; }
}}
$a->strings['No Timeline settings updated.'] = 'Configurările pentru Lipsă Cronologie, au fost actualizate.';
$a->strings['No Timeline Settings'] = 'Configurări pentru Lipsă Cronologie';
$a->strings['Disable Archive selector on profile wall'] = 'Dezactivare selector Arhivă din peretele de profil';
$a->strings['Submit'] = 'Trimite';

View file

@ -0,0 +1,6 @@
<?php
$a->strings["No Timeline settings updated."] = "";
$a->strings["No Timeline Settings"] = "";
$a->strings["Disable Archive selector on profile wall"] = "";
$a->strings["Submit"] = "Подтвердить";

View file

@ -0,0 +1,3 @@
<?php
$a->strings["Submit"] = "Spara";

View file

@ -0,0 +1,36 @@
# ADDON notimeline
# Copyright (C)
# This file is distributed under the same license as the Friendica notimeline addon package.
#
#
# Translators:
# 朱陈锬 <tangenters@outlook.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
"PO-Revision-Date: 2018-06-16 09:44+0000\n"
"Last-Translator: 朱陈锬 <tangenters@outlook.com>\n"
"Language-Team: Chinese (China) (http://www.transifex.com/Friendica/friendica/language/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: notimeline.php:32
msgid "No Timeline settings updated."
msgstr "时间轴设置未更新。"
#: notimeline.php:56
msgid "No Timeline Settings"
msgstr "无时间轴设置"
#: notimeline.php:58
msgid "Disable Archive selector on profile wall"
msgstr ""
#: notimeline.php:64
msgid "Submit"
msgstr "提交"

View file

@ -0,0 +1,10 @@
<?php
if(! function_exists("string_plural_select_zh_cn")) {
function string_plural_select_zh_cn($n){
$n = intval($n);
return intval(0);
}}
$a->strings['No Timeline settings updated.'] = '时间轴设置未更新。';
$a->strings['No Timeline Settings'] = '无时间轴设置';
$a->strings['Submit'] = '提交';

14
notimeline/notimeline.css Normal file
View file

@ -0,0 +1,14 @@
#notimeline-label {
float: left;
width: 200px;
margin-bottom: 25px;
}
#notimeline-checkbox {
float: left;
}

57
notimeline/notimeline.php Normal file
View file

@ -0,0 +1,57 @@
<?php
/**
* Name: Notimeline
* Description: Disable "Archives" widget on profile page
* Version: 1.0
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
* Status: Unsupported
*
*/
use Friendica\Core\Hook;
use Friendica\DI;
function notimeline_install()
{
Hook::register('addon_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
Hook::register('addon_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
}
function notimeline_settings_post($a, $post)
{
if (!local_user() || empty($_POST['notimeline-submit'])) {
return;
}
DI::pConfig()->set(local_user(), 'system', 'no_wall_archive_widget', intval($_POST['notimeline']));
}
function notimeline_settings(&$a, &$s)
{
if (! local_user()) {
return;
}
/* Add our stylesheet to the page so we can make our settings look nice */
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/notimeline/notimeline.css' . '" media="all" />' . "\r\n";
/* Get the current state of our config variable */
$notimeline = DI::pConfig()->get(local_user(), 'system', 'no_wall_archive_widget', false);
$notimeline_checked = (($notimeline) ? ' checked="checked" ' : '');
/* Add some HTML to the existing form */
$s .= '<div class="settings-block">';
$s .= '<h3>' . DI::l10n()->t('No Timeline Settings') . '</h3>';
$s .= '<div id="notimeline-wrapper">';
$s .= '<label id="notimeline-label" for="notimeline-checkbox">' . DI::l10n()->t('Disable Archive selector on profile wall') . '</label>';
$s .= '<input id="notimeline-checkbox" type="checkbox" name="notimeline" value="1" ' . $notimeline_checked . '/>';
$s .= '</div><div class="clear"></div>';
/* provide a submit button */
$s .= '<div class="settings-submit-wrapper" ><input type="submit" name="notimeline-submit" class="settings-submit" value="' . DI::l10n()->t('Save Settings') . '" /></div></div>';
}