mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-10-11 01:12:58 +00:00
Merge branch '3.6-rc'
This commit is contained in:
commit
39dd3dffe0
733 changed files with 10943 additions and 8237 deletions
|
@ -22,7 +22,7 @@ msgid "Planets Settings"
|
|||
msgstr ""
|
||||
|
||||
#: planets.php:152
|
||||
msgid "Enable Planets Plugin"
|
||||
msgid "Enable Planets Addon"
|
||||
msgstr ""
|
||||
|
||||
#: planets.php:158
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Planets Settings"] = "Ajustos de Planet";
|
||||
$a->strings["Enable Planets Plugin"] = "Activa Plugin de Planet";
|
||||
$a->strings["Enable Planets Addon"] = "Activa Addon de Planet";
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
|
|
|
@ -24,8 +24,8 @@ msgid "Planets Settings"
|
|||
msgstr "Planets Nastavení"
|
||||
|
||||
#: planets.php:152
|
||||
msgid "Enable Planets Plugin"
|
||||
msgstr "Povolit Planets plugin"
|
||||
msgid "Enable Planets Addon"
|
||||
msgstr "Povolit Planets addon"
|
||||
|
||||
#: planets.php:158
|
||||
msgid "Submit"
|
||||
|
|
|
@ -6,5 +6,5 @@ function string_plural_select_cs($n){
|
|||
}}
|
||||
;
|
||||
$a->strings["Planets Settings"] = "Planets Nastavení";
|
||||
$a->strings["Enable Planets Plugin"] = "Povolit Planets plugin";
|
||||
$a->strings["Enable Planets Addon"] = "Povolit Planets addon";
|
||||
$a->strings["Submit"] = "Odeslat";
|
||||
|
|
|
@ -25,8 +25,8 @@ msgid "Planets Settings"
|
|||
msgstr "Planeten Einstellungen"
|
||||
|
||||
#: planets.php:152
|
||||
msgid "Enable Planets Plugin"
|
||||
msgstr "Planeten-Plugin aktivieren"
|
||||
msgid "Enable Planets Addon"
|
||||
msgstr "Planeten-Addon aktivieren"
|
||||
|
||||
#: planets.php:158
|
||||
msgid "Submit"
|
||||
|
|
|
@ -6,5 +6,5 @@ function string_plural_select_de($n){
|
|||
}}
|
||||
;
|
||||
$a->strings["Planets Settings"] = "Planeten Einstellungen";
|
||||
$a->strings["Enable Planets Plugin"] = "Planeten-Plugin aktivieren";
|
||||
$a->strings["Enable Planets Addon"] = "Planeten-Addon aktivieren";
|
||||
$a->strings["Submit"] = "Senden";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Planets Settings"] = "Agordo pri Planets";
|
||||
$a->strings["Enable Planets Plugin"] = "Ŝalti la Planets kromprogamon";
|
||||
$a->strings["Enable Planets Addon"] = "Ŝalti la Planets kromprogamon";
|
||||
$a->strings["Submit"] = "Sendi";
|
||||
|
|
|
@ -24,8 +24,8 @@ msgid "Planets Settings"
|
|||
msgstr "Ajustes de Planets"
|
||||
|
||||
#: planets.php:152
|
||||
msgid "Enable Planets Plugin"
|
||||
msgstr "Habilite el plugin Planets"
|
||||
msgid "Enable Planets Addon"
|
||||
msgstr "Habilite eladdonPlanets"
|
||||
|
||||
#: planets.php:158
|
||||
msgid "Submit"
|
||||
|
|
|
@ -6,5 +6,5 @@ function string_plural_select_es($n){
|
|||
}}
|
||||
;
|
||||
$a->strings["Planets Settings"] = "Ajustes de Planets";
|
||||
$a->strings["Enable Planets Plugin"] = "Habilite el plugin Planets";
|
||||
$a->strings["Enable Planets Addon"] = "Habilite el addon Planets";
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Planets Settings"] = "Réglages des Planets";
|
||||
$a->strings["Enable Planets Plugin"] = "Activer Planets";
|
||||
$a->strings["Enable Planets Addon"] = "Activer Planets";
|
||||
$a->strings["Submit"] = "Envoyer";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Planets Settings"] = "";
|
||||
$a->strings["Enable Planets Plugin"] = "";
|
||||
$a->strings["Enable Planets Addon"] = "";
|
||||
$a->strings["Submit"] = "Senda inn";
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
#
|
||||
#
|
||||
# Translators:
|
||||
# fabrixxm <fabrix.xm@gmail.com>, 2014-2015
|
||||
# fabrixxm <fabrix.xm@gmail.com>, 2014-2015,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: 2015-08-31 10:22+0000\n"
|
||||
"PO-Revision-Date: 2018-03-19 13:25+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"
|
||||
|
@ -24,8 +24,8 @@ msgid "Planets Settings"
|
|||
msgstr "Impostazioni \"Pianeti\""
|
||||
|
||||
#: planets.php:152
|
||||
msgid "Enable Planets Plugin"
|
||||
msgstr "Abilita il plugin \"Pianeti\""
|
||||
msgid "Enable Planets Addon"
|
||||
msgstr "Abilita il componente aggiuntivo Pianeti"
|
||||
|
||||
#: planets.php:158
|
||||
msgid "Submit"
|
||||
|
|
|
@ -6,5 +6,5 @@ function string_plural_select_it($n){
|
|||
}}
|
||||
;
|
||||
$a->strings["Planets Settings"] = "Impostazioni \"Pianeti\"";
|
||||
$a->strings["Enable Planets Plugin"] = "Abilita il plugin \"Pianeti\"";
|
||||
$a->strings["Enable Planets Addon"] = "Abilita il componente aggiuntivo Pianeti";
|
||||
$a->strings["Submit"] = "Invia";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Planets Settings"] = "";
|
||||
$a->strings["Enable Planets Plugin"] = "";
|
||||
$a->strings["Enable Planets Addon"] = "";
|
||||
$a->strings["Submit"] = "Lagre";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Planets Settings"] = "";
|
||||
$a->strings["Enable Planets Plugin"] = "";
|
||||
$a->strings["Enable Planets Addon"] = "";
|
||||
$a->strings["Submit"] = "Potwierdź";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Planets Settings"] = "Configuração dos planetas";
|
||||
$a->strings["Enable Planets Plugin"] = "Habilita configuração dos planetas";
|
||||
$a->strings["Enable Planets Addon"] = "Habilita configuração dos planetas";
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
|
|
|
@ -24,7 +24,7 @@ msgid "Planets Settings"
|
|||
msgstr "Configurări Planets"
|
||||
|
||||
#: planets.php:152
|
||||
msgid "Enable Planets Plugin"
|
||||
msgid "Enable Planets Addon"
|
||||
msgstr "Activare Modul Planets"
|
||||
|
||||
#: planets.php:158
|
||||
|
|
|
@ -6,5 +6,5 @@ function string_plural_select_ro($n){
|
|||
}}
|
||||
;
|
||||
$a->strings["Planets Settings"] = "Configurări Planets";
|
||||
$a->strings["Enable Planets Plugin"] = "Activare Modul Planets";
|
||||
$a->strings["Enable Planets Addon"] = "Activare Modul Planets";
|
||||
$a->strings["Submit"] = "Trimite";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Planets Settings"] = "";
|
||||
$a->strings["Enable Planets Plugin"] = "";
|
||||
$a->strings["Enable Planets Addon"] = "";
|
||||
$a->strings["Submit"] = "Подтвердить";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Planets Settings"] = "行星设置";
|
||||
$a->strings["Enable Planets Plugin"] = "使行星插件可用";
|
||||
$a->strings["Enable Planets Addon"] = "使行星插件可用";
|
||||
$a->strings["Submit"] = "提交";
|
||||
|
|
|
@ -1,34 +1,36 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: Random Planet, Empirial Version
|
||||
* Description: Sample Friendica plugin/addon. Set a random planet from the Emprire when posting.
|
||||
* Description: Sample Friendica addon. Set a random planet from the Emprire when posting.
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
* Author: Tony Baldwin <https://free-haven.org/profile/tony>
|
||||
*/
|
||||
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function planets_install() {
|
||||
|
||||
/**
|
||||
*
|
||||
* Our demo plugin will attach in three places.
|
||||
*
|
||||
* Our demo addon will attach in three places.
|
||||
* The first is just prior to storing a local post.
|
||||
*
|
||||
*/
|
||||
|
||||
register_hook('post_local', 'addon/planets/planets.php', 'planets_post_hook');
|
||||
Addon::registerHook('post_local', 'addon/planets/planets.php', 'planets_post_hook');
|
||||
|
||||
/**
|
||||
*
|
||||
* Then we'll attach into the plugin settings page, and also the
|
||||
* Then we'll attach into the addon settings page, and also the
|
||||
* settings post hook so that we can create and update
|
||||
* user preferences.
|
||||
*
|
||||
*/
|
||||
|
||||
register_hook('plugin_settings', 'addon/planets/planets.php', 'planets_settings');
|
||||
register_hook('plugin_settings_post', 'addon/planets/planets.php', 'planets_settings_post');
|
||||
Addon::registerHook('addon_settings', 'addon/planets/planets.php', 'planets_settings');
|
||||
Addon::registerHook('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post');
|
||||
|
||||
logger("installed planets");
|
||||
}
|
||||
|
@ -44,9 +46,9 @@ function planets_uninstall() {
|
|||
*
|
||||
*/
|
||||
|
||||
unregister_hook('post_local', 'addon/planets/planets.php', 'planets_post_hook');
|
||||
unregister_hook('plugin_settings', 'addon/planets/planets.php', 'planets_settings');
|
||||
unregister_hook('plugin_settings_post', 'addon/planets/planets.php', 'planets_settings_post');
|
||||
Addon::unregisterHook('post_local', 'addon/planets/planets.php', 'planets_post_hook');
|
||||
Addon::unregisterHook('addon_settings', 'addon/planets/planets.php', 'planets_settings');
|
||||
Addon::unregisterHook('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post');
|
||||
|
||||
|
||||
logger("removed planets");
|
||||
|
@ -61,7 +63,7 @@ function planets_post_hook($a, &$item) {
|
|||
* An item was posted on the local system.
|
||||
* We are going to look for specific items:
|
||||
* - A status post by a profile owner
|
||||
* - The profile owner must have allowed our plugin
|
||||
* - The profile owner must have allowed our addon
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -122,7 +124,7 @@ function planets_settings_post($a,$post) {
|
|||
|
||||
/**
|
||||
*
|
||||
* Called from the Plugin Setting form.
|
||||
* Called from the Addon Setting form.
|
||||
* Add our own settings info to the page.
|
||||
*
|
||||
*/
|
||||
|
@ -147,22 +149,22 @@ function planets_settings(&$a,&$s) {
|
|||
/* Add some HTML to the existing form */
|
||||
|
||||
$s .= '<span id="settings_planets_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_planets_expanded\'); openClose(\'settings_planets_inflated\');">';
|
||||
$s .= '<h3>' . t('Planets') . '</h3>';
|
||||
$s .= '<h3>' . L10n::t('Planets') . '</h3>';
|
||||
$s .= '</span>';
|
||||
$s .= '<div id="settings_planets_expanded" class="settings-block" style="display: none;">';
|
||||
$s .= '<span class="fakelink" onclick="openClose(\'settings_planets_expanded\'); openClose(\'settings_planets_inflated\');">';
|
||||
$s .= '<h3>' . t('Planets') . '</h3>';
|
||||
$s .= '<h3>' . L10n::t('Planets') . '</h3>';
|
||||
$s .= '</span>';
|
||||
|
||||
$s .= '<div class="settings-block">';
|
||||
$s .= '<h3>' . t('Planets Settings') . '</h3>';
|
||||
$s .= '<h3>' . L10n::t('Planets Settings') . '</h3>';
|
||||
$s .= '<div id="planets-enable-wrapper">';
|
||||
$s .= '<label id="planets-enable-label" for="planets-checkbox">' . t('Enable Planets Plugin') . '</label>';
|
||||
$s .= '<label id="planets-enable-label" for="planets-checkbox">' . L10n::t('Enable Planets Addon') . '</label>';
|
||||
$s .= '<input id="planets-checkbox" type="checkbox" name="planets" value="1" ' . $checked . '/>';
|
||||
$s .= '</div><div class="clear"></div></div>';
|
||||
|
||||
/* provide a submit button */
|
||||
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" name="planets-submit" class="settings-submit" value="' . t('Save Settings') . '" /></div></div>';
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" name="planets-submit" class="settings-submit" value="' . L10n::t('Save Settings') . '" /></div></div>';
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue