diff --git a/.editorconfig b/.editorconfig
deleted file mode 100644
index 7692ac78..00000000
--- a/.editorconfig
+++ /dev/null
@@ -1,10 +0,0 @@
-# editorconfig tool configuration
-# see http://editorconfig.org for docs
-
-root = true
-
-[*]
-charset = utf-8
-end_of_line = lf
-trim_trailing_whitespaces = true
-indent_style = tab
diff --git a/README.md b/README.md
index 20278f68..21c0ed52 100644
--- a/README.md
+++ b/README.md
@@ -6,20 +6,22 @@ You can add these addons to the /addon directory of your Friendica installation
After uploading the addons to your server, you need to activate the desired addons in the Admin panel. Addons not activated have no effect on your node.
+You can find more addons in the [Friendica Addon listing](https://addons.friendi.ca) in cases the addon developers have choosen not to include them here.
+
## Connectors
-Among these addons there are also the [connectors](https://github.com/friendica/friendica/blob/stable/doc/Connectors.md) for various other networks (e.g. Twitter, pump.io, Google+) that are needed for communication when the protocol is not supported by Friendica core (DFRN, OStatus and Diaspora).
+Among these addons there are also the [connectors](https://github.com/friendica/friendica/blob/master/doc/Connectors.md) for various other networks (e.g. Twitter, pump.io, Google+) that are needed for communication when the protocol is not supported by Friendica core (DFRN, OStatus and Diaspora).
For communication with contacts in networks supporting those (e.g. GNU social, Diaspora and red#matrix) you just need to access the page configuration in the Admin panel and enable them. For networks where communication is only possible the API access to a remote account, you need to activate the fitting connectors.
## Development
The addon interface of Friendica is very flexible and powerful, so if you are missing functionality, your chances are high it may be added with an addon.
-See the [documentation](https://github.com/friendica/friendica/blob/stable/doc/Addons.md) for more information on the addon development.
+See the [documentation](https://github.com/friendica/friendica/blob/master/doc/Addons.md) for more information on the addon development.
## Translation
Addons can be translated like any other part of Friendica.
Translation for addons is done at [the Transifex Friendica page](https://www.transifex.com/Friendica/friendica/dashboard/).
-Read more about the workflow in the [Friendica translation documentation](https://github.com/friendica/friendica/blob/stable/doc/translations.md#addon).
+Read more about the workflow in the [Friendica translation documentation](https://github.com/friendica/friendica/blob/master/doc/translations.md#addon).
diff --git a/advancedcontentfilter/advancedcontentfilter.php b/advancedcontentfilter/advancedcontentfilter.php
index c539075b..dbbfb2e2 100644
--- a/advancedcontentfilter/advancedcontentfilter.php
+++ b/advancedcontentfilter/advancedcontentfilter.php
@@ -36,15 +36,16 @@
use Friendica\App;
use Friendica\BaseModule;
use Friendica\Content\Text\Markdown;
+use Friendica\Core\Cache;
use Friendica\Core\Hook;
+use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\Database\DBStructure;
-use Friendica\DI;
use Friendica\Model\Item;
-use Friendica\Model\Tag;
-use Friendica\Module\Security\Login;
+use Friendica\Model\Term;
+use Friendica\Module\Login;
use Friendica\Network\HTTPException;
use Friendica\Util\DateTimeFormat;
use Psr\Http\Message\ResponseInterface;
@@ -59,12 +60,18 @@ function advancedcontentfilter_install(App $a)
Hook::register('prepare_body_content_filter', __FILE__, 'advancedcontentfilter_prepare_body_content_filter');
Hook::register('addon_settings' , __FILE__, 'advancedcontentfilter_addon_settings');
- Hook::add('dbstructure_definition' , __FILE__, 'advancedcontentfilter_dbstructure_definition');
DBStructure::update($a->getBasePath(), false, true);
Logger::log("installed advancedcontentfilter");
}
+function advancedcontentfilter_uninstall()
+{
+ Hook::unregister('dbstructure_definition' , __FILE__, 'advancedcontentfilter_dbstructure_definition');
+ Hook::unregister('prepare_body_content_filter', __FILE__, 'advancedcontentfilter_prepare_body_content_filter');
+ Hook::unregister('addon_settings' , __FILE__, 'advancedcontentfilter_addon_settings');
+}
+
/*
* Hooks
*/
@@ -106,15 +113,13 @@ function advancedcontentfilter_prepare_body_content_filter(App $a, &$hook_data)
$vars[str_replace('-', '_', $key)] = $value;
}
- $rules = DI::cache()->get('rules_' . local_user());
+ $rules = Cache::get('rules_' . local_user());
if (!isset($rules)) {
$rules = DBA::toArray(DBA::select(
'advancedcontentfilter_rules',
['name', 'expression', 'serialized'],
['uid' => local_user(), 'active' => true]
));
-
- DI::cache()->set('rules_' . local_user(), $rules);
}
if ($rules) {
@@ -132,7 +137,7 @@ function advancedcontentfilter_prepare_body_content_filter(App $a, &$hook_data)
}
if ($found) {
- $hook_data['filter_reasons'][] = DI::l10n()->t('Filtered by rule: %s', $rule['name']);
+ $hook_data['filter_reasons'][] = L10n::t('Filtered by rule: %s', $rule['name']);
break;
}
}
@@ -146,7 +151,7 @@ function advancedcontentfilter_addon_settings(App $a, &$s)
return;
}
- $advancedcontentfilter = DI::l10n()->t('Advanced Content Filter');
+ $advancedcontentfilter = L10n::t('Advanced Content Filter');
$s .= <<
@@ -202,27 +207,27 @@ function advancedcontentfilter_content(App $a)
$t = Renderer::getMarkupTemplate('settings.tpl', 'addon/advancedcontentfilter/');
return Renderer::replaceMacros($t, [
'$messages' => [
- 'backtosettings' => DI::l10n()->t('Back to Addon Settings'),
- 'title' => DI::l10n()->t('Advanced Content Filter'),
- 'add_a_rule' => DI::l10n()->t('Add a Rule'),
- 'help' => DI::l10n()->t('Help'),
- 'intro' => DI::l10n()->t('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.'),
- 'your_rules' => DI::l10n()->t('Your rules'),
- 'no_rules' => DI::l10n()->t('You have no rules yet! Start adding one by clicking on the button above next to the title.'),
- 'disabled' => DI::l10n()->t('Disabled'),
- 'enabled' => DI::l10n()->t('Enabled'),
- 'disable_this_rule' => DI::l10n()->t('Disable this rule'),
- 'enable_this_rule' => DI::l10n()->t('Enable this rule'),
- 'edit_this_rule' => DI::l10n()->t('Edit this rule'),
- 'edit_the_rule' => DI::l10n()->t('Edit the rule'),
- 'save_this_rule' => DI::l10n()->t('Save this rule'),
- 'delete_this_rule' => DI::l10n()->t('Delete this rule'),
- 'rule' => DI::l10n()->t('Rule'),
- 'close' => DI::l10n()->t('Close'),
- 'addtitle' => DI::l10n()->t('Add new rule'),
- 'rule_name' => DI::l10n()->t('Rule Name'),
- 'rule_expression' => DI::l10n()->t('Rule Expression'),
- 'cancel' => DI::l10n()->t('Cancel'),
+ 'backtosettings' => L10n::t('Back to Addon Settings'),
+ 'title' => L10n::t('Advanced Content Filter'),
+ 'add_a_rule' => L10n::t('Add a Rule'),
+ 'help' => L10n::t('Help'),
+ 'intro' => L10n::t('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.'),
+ 'your_rules' => L10n::t('Your rules'),
+ 'no_rules' => L10n::t('You have no rules yet! Start adding one by clicking on the button above next to the title.'),
+ 'disabled' => L10n::t('Disabled'),
+ 'enabled' => L10n::t('Enabled'),
+ 'disable_this_rule' => L10n::t('Disable this rule'),
+ 'enable_this_rule' => L10n::t('Enable this rule'),
+ 'edit_this_rule' => L10n::t('Edit this rule'),
+ 'edit_the_rule' => L10n::t('Edit the rule'),
+ 'save_this_rule' => L10n::t('Save this rule'),
+ 'delete_this_rule' => L10n::t('Delete this rule'),
+ 'rule' => L10n::t('Rule'),
+ 'close' => L10n::t('Close'),
+ 'addtitle' => L10n::t('Add new rule'),
+ 'rule_name' => L10n::t('Rule Name'),
+ 'rule_expression' => L10n::t('Rule Expression'),
+ 'cancel' => L10n::t('Cancel'),
],
'$current_theme' => $a->getCurrentTheme(),
'$rules' => advancedcontentfilter_get_rules(),
@@ -289,7 +294,7 @@ function advancedcontentfilter_build_fields($data)
function advancedcontentfilter_get_rules()
{
if (!local_user()) {
- throw new HTTPException\UnauthorizedException(DI::l10n()->t('You must be logged in to use this method'));
+ throw new HTTPException\UnauthorizedException(L10n::t('You must be logged in to use this method'));
}
$rules = DBA::toArray(DBA::select('advancedcontentfilter_rules', [], ['uid' => local_user()]));
@@ -300,7 +305,7 @@ function advancedcontentfilter_get_rules()
function advancedcontentfilter_get_rules_id(ServerRequestInterface $request, ResponseInterface $response, $args)
{
if (!local_user()) {
- throw new HTTPException\UnauthorizedException(DI::l10n()->t('You must be logged in to use this method'));
+ throw new HTTPException\UnauthorizedException(L10n::t('You must be logged in to use this method'));
}
$rule = DBA::selectFirst('advancedcontentfilter_rules', [], ['id' => $args['id'], 'uid' => local_user()]);
@@ -311,11 +316,11 @@ function advancedcontentfilter_get_rules_id(ServerRequestInterface $request, Res
function advancedcontentfilter_post_rules(ServerRequestInterface $request)
{
if (!local_user()) {
- throw new HTTPException\UnauthorizedException(DI::l10n()->t('You must be logged in to use this method'));
+ throw new HTTPException\UnauthorizedException(L10n::t('You must be logged in to use this method'));
}
if (!BaseModule::checkFormSecurityToken()) {
- throw new HTTPException\BadRequestException(DI::l10n()->t('Invalid form security token, please refresh the page.'));
+ throw new HTTPException\BadRequestException(L10n::t('Invalid form security token, please refresh the page.'));
}
$data = json_decode($request->getBody(), true);
@@ -323,37 +328,37 @@ function advancedcontentfilter_post_rules(ServerRequestInterface $request)
try {
$fields = advancedcontentfilter_build_fields($data);
} catch (Exception $e) {
- throw new HTTPException\BadRequestException($e->getMessage(), $e);
+ throw new HTTPException\BadRequestException($e->getMessage(), 0, $e);
}
if (empty($fields['name']) || empty($fields['expression'])) {
- throw new HTTPException\BadRequestException(DI::l10n()->t('The rule name and expression are required.'));
+ throw new HTTPException\BadRequestException(L10n::t('The rule name and expression are required.'));
}
$fields['uid'] = local_user();
$fields['created'] = DateTimeFormat::utcNow();
if (!DBA::insert('advancedcontentfilter_rules', $fields)) {
- throw new HTTPException\ServiceUnavailableException(DBA::errorMessage());
+ throw new HTTPException\ServiceUnavaiableException(DBA::errorMessage());
}
$rule = DBA::selectFirst('advancedcontentfilter_rules', [], ['id' => DBA::lastInsertId()]);
- return json_encode(['message' => DI::l10n()->t('Rule successfully added'), 'rule' => $rule]);
+ return json_encode(['message' => L10n::t('Rule successfully added'), 'rule' => $rule]);
}
function advancedcontentfilter_put_rules_id(ServerRequestInterface $request, ResponseInterface $response, $args)
{
if (!local_user()) {
- throw new HTTPException\UnauthorizedException(DI::l10n()->t('You must be logged in to use this method'));
+ throw new HTTPException\UnauthorizedException(L10n::t('You must be logged in to use this method'));
}
if (!BaseModule::checkFormSecurityToken()) {
- throw new HTTPException\BadRequestException(DI::l10n()->t('Invalid form security token, please refresh the page.'));
+ throw new HTTPException\BadRequestException(L10n::t('Invalid form security token, please refresh the page.'));
}
if (!DBA::exists('advancedcontentfilter_rules', ['id' => $args['id'], 'uid' => local_user()])) {
- throw new HTTPException\NotFoundException(DI::l10n()->t('Rule doesn\'t exist or doesn\'t belong to you.'));
+ throw new HTTPException\NotFoundException(L10n::t('Rule doesn\'t exist or doesn\'t belong to you.'));
}
$data = json_decode($request->getBody(), true);
@@ -361,45 +366,45 @@ function advancedcontentfilter_put_rules_id(ServerRequestInterface $request, Res
try {
$fields = advancedcontentfilter_build_fields($data);
} catch (Exception $e) {
- throw new HTTPException\BadRequestException($e->getMessage(), $e);
+ throw new HTTPException\BadRequestException($e->getMessage(), 0, $e);
}
if (!DBA::update('advancedcontentfilter_rules', $fields, ['id' => $args['id']])) {
- throw new HTTPException\ServiceUnavailableException(DBA::errorMessage());
+ throw new HTTPException\ServiceUnavaiableException(DBA::errorMessage());
}
- return json_encode(['message' => DI::l10n()->t('Rule successfully updated')]);
+ return json_encode(['message' => L10n::t('Rule successfully updated')]);
}
function advancedcontentfilter_delete_rules_id(ServerRequestInterface $request, ResponseInterface $response, $args)
{
if (!local_user()) {
- throw new HTTPException\UnauthorizedException(DI::l10n()->t('You must be logged in to use this method'));
+ throw new HTTPException\UnauthorizedException(L10n::t('You must be logged in to use this method'));
}
if (!BaseModule::checkFormSecurityToken()) {
- throw new HTTPException\BadRequestException(DI::l10n()->t('Invalid form security token, please refresh the page.'));
+ throw new HTTPException\BadRequestException(L10n::t('Invalid form security token, please refresh the page.'));
}
if (!DBA::exists('advancedcontentfilter_rules', ['id' => $args['id'], 'uid' => local_user()])) {
- throw new HTTPException\NotFoundException(DI::l10n()->t('Rule doesn\'t exist or doesn\'t belong to you.'));
+ throw new HTTPException\NotFoundException(L10n::t('Rule doesn\'t exist or doesn\'t belong to you.'));
}
if (!DBA::delete('advancedcontentfilter_rules', ['id' => $args['id']])) {
- throw new HTTPException\ServiceUnavailableException(DBA::errorMessage());
+ throw new HTTPException\ServiceUnavaiableException(DBA::errorMessage());
}
- return json_encode(['message' => DI::l10n()->t('Rule successfully deleted')]);
+ return json_encode(['message' => L10n::t('Rule successfully deleted')]);
}
function advancedcontentfilter_get_variables_guid(ServerRequestInterface $request, ResponseInterface $response, $args)
{
if (!local_user()) {
- throw new HTTPException\UnauthorizedException(DI::l10n()->t('You must be logged in to use this method'));
+ throw new HTTPException\UnauthorizedException(L10n::t('You must be logged in to use this method'));
}
if (!isset($args['guid'])) {
- throw new HTTPException\BadRequestException(DI::l10n()->t('Missing argument: guid.'));
+ throw new HTTPException\BadRequestException(L10n::t('Missing argument: guid.'));
}
$condition = ["`guid` = ? AND (`uid` = ? OR `uid` = 0)", $args['guid'], local_user()];
@@ -407,10 +412,10 @@ function advancedcontentfilter_get_variables_guid(ServerRequestInterface $reques
$item = Item::selectFirstForUser(local_user(), [], $condition, $params);
if (!DBA::isResult($item)) {
- throw new HTTPException\NotFoundException(DI::l10n()->t('Unknown post with guid: %s', $args['guid']));
+ throw new HTTPException\NotFoundException(L10n::t('Unknown post with guid: %s', $args['guid']));
}
- $tags = Tag::populateFromItem($item);
+ $tags = Term::populateTagsFromItem($item);
$item['tags'] = $tags['tags'];
$item['hashtags'] = $tags['hashtags'];
diff --git a/advancedcontentfilter/composer.lock b/advancedcontentfilter/composer.lock
index 774b5ec8..0b0114db 100644
--- a/advancedcontentfilter/composer.lock
+++ b/advancedcontentfilter/composer.lock
@@ -1,7 +1,7 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "d0e3662dd9d910ffe4f71d325bc39319",
@@ -35,7 +35,6 @@
],
"description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
"homepage": "https://github.com/container-interop/container-interop",
- "abandoned": "psr/container",
"time": "2017-02-14T19:40:03+00:00"
},
{
@@ -281,16 +280,16 @@
},
{
"name": "psr/log",
- "version": "1.1.2",
+ "version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/log.git",
- "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801"
+ "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801",
- "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801",
+ "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
+ "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
"shasum": ""
},
"require": {
@@ -299,7 +298,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.1.x-dev"
+ "dev-master": "1.0.x-dev"
}
},
"autoload": {
@@ -324,7 +323,7 @@
"psr",
"psr-3"
],
- "time": "2019-11-01T11:05:21+00:00"
+ "time": "2016-10-10T12:19:37+00:00"
},
{
"name": "psr/simple-cache",
@@ -447,16 +446,16 @@
},
{
"name": "symfony/cache",
- "version": "v3.4.36",
+ "version": "v3.4.8",
"source": {
"type": "git",
"url": "https://github.com/symfony/cache.git",
- "reference": "3d9f46a6960fd5cd7f030f86adc5b4b63bcfa4e3"
+ "reference": "13255ddd056e49f3154747943f8ee175d555d394"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/cache/zipball/3d9f46a6960fd5cd7f030f86adc5b4b63bcfa4e3",
- "reference": "3d9f46a6960fd5cd7f030f86adc5b4b63bcfa4e3",
+ "url": "https://api.github.com/repos/symfony/cache/zipball/13255ddd056e49f3154747943f8ee175d555d394",
+ "reference": "13255ddd056e49f3154747943f8ee175d555d394",
"shasum": ""
},
"require": {
@@ -513,7 +512,7 @@
"caching",
"psr6"
],
- "time": "2019-12-01T10:45:41+00:00"
+ "time": "2018-04-02T14:35:16+00:00"
},
{
"name": "symfony/expression-language",
@@ -567,16 +566,16 @@
},
{
"name": "symfony/polyfill-apcu",
- "version": "v1.13.1",
+ "version": "v1.7.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-apcu.git",
- "reference": "a8e961c841b9ec52927a87914f8820a1ad8f8116"
+ "reference": "e8ae2136ddb53dea314df56fcd88e318ab936c00"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-apcu/zipball/a8e961c841b9ec52927a87914f8820a1ad8f8116",
- "reference": "a8e961c841b9ec52927a87914f8820a1ad8f8116",
+ "url": "https://api.github.com/repos/symfony/polyfill-apcu/zipball/e8ae2136ddb53dea314df56fcd88e318ab936c00",
+ "reference": "e8ae2136ddb53dea314df56fcd88e318ab936c00",
"shasum": ""
},
"require": {
@@ -585,7 +584,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.13-dev"
+ "dev-master": "1.7-dev"
}
},
"autoload": {
@@ -619,7 +618,7 @@
"portable",
"shim"
],
- "time": "2019-11-27T13:56:44+00:00"
+ "time": "2018-01-30T19:27:44+00:00"
}
],
"packages-dev": [],
diff --git a/advancedcontentfilter/doc/advancedcontentfilter.md b/advancedcontentfilter/doc/advancedcontentfilter.md
index 44ad8c65..ba47d4e9 100644
--- a/advancedcontentfilter/doc/advancedcontentfilter.md
+++ b/advancedcontentfilter/doc/advancedcontentfilter.md
@@ -36,10 +36,10 @@ A post will be collapsed if at least one rule matches, but all matching rule nam
## Examples
-1. To block specific domains `body matches "/\\.example\\.com/"`
-2. To block everything that contains the words `body matches "/Guten Morgen/"`
-3. To block every occurence of the word facebook with a space in front and after the word `body matches "//s facebook/s /"`
-4. To colapse every post that contains more than 1 image `body matches "/(?:(?:(?:\\[url(?:=.*)?\\])?\\[img(?:=.*)?\\].*\\[\\/img\\]\\s*(?:\\[\\/url\\])?)\\s*){2}/"`
+1. Collapse posts with specific domains `body matches "/\\.example\\.com/"`
+2. Collapse posts that contains the words `body matches "/Guten Morgen/"`
+3. Collapse posts with the word facebook that have a space in front and after the word `body matches "//s facebook/s /"`
+4. Collapse posts that contains more than 1 image `body matches "/(?:(?:(?:\\[url(?:=.*)?\\])?\\[img(?:=.*)?\\].*\\[\\/img\\]\\s*(?:\\[\\/url\\])?)\\s*){2}/"`
## Expression Syntax
@@ -330,7 +330,7 @@ You can also retrieve the variables of a specific post by pasting its URL below
rendered_html
string
- Over-compensation #<a href="https://friendica.mrpetovan.com/search?tag=Street" class="tag" title="Street">Street</a> #<a href="https://friendica.mrpetovan.com/search?tag=Night" class="tag" title="Night">Night</a> #<a href="https://friendica.mrpetovan.com/search?tag=CarLights" class="tag" title="CarLights">CarLights</a> #<a href="https://friendica.mrpetovan.com/search?tag=Jeep" class="tag" title="Jeep">Jeep</a> #<a href="https://friendica.mrpetovan.com/search?tag=NoPeople" class="tag" title="NoPeople">NoPeople</a> #<a href="https://friendica.mrpetovan.com/search?tag=Close" class="tag" title="Close">Close</a>-up <div class="type-link"><a href="https://www.eyeem.com/p/120800309" target="_blank" rel="noopener noreferrer"><img src="https://friendica.mrpetovan.com/proxy/bb/aHR0cHM6Ly9jZG4uZXllZW0uY29tL3RodW1iL2IyZjAxOTczOGNiZWVmMDZlMmY4Yzk1MTdjNjI4NmE4YWRjZDNhMDAtMTUyMjE4NDgyMDY0MS82NDAvNDgw" alt="" title="Over-compensation Street Night Car Lights Jeep No | EyeEm" class="attachment-image"></a><br><h4><a href="https://www.eyeem.com/p/120800309">Over-compensation Street Night Car Lights Jeep No | EyeEm</a></h4><blockquote>Photo by @<a href="https://twitter.com/MrPetovan" class="userinfo mention" title="MrPetovan">MrPetovan</a></blockquote><sup><a href="https://www.eyeem.com/p/120800309">www.eyeem.com</a></sup></div>
+ Over-compensation #<a href="https://friendica.mrpetovan.com/search?tag=Street" class="tag" title="Street">Street</a> #<a href="https://friendica.mrpetovan.com/search?tag=Night" class="tag" title="Night">Night</a> #<a href="https://friendica.mrpetovan.com/search?tag=CarLights" class="tag" title="CarLights">CarLights</a> #<a href="https://friendica.mrpetovan.com/search?tag=Jeep" class="tag" title="Jeep">Jeep</a> #<a href="https://friendica.mrpetovan.com/search?tag=NoPeople" class="tag" title="NoPeople">NoPeople</a> #<a href="https://friendica.mrpetovan.com/search?tag=Close" class="tag" title="Close">Close</a>-up <div class="type-link"><a href="https://www.eyeem.com/p/120800309" target="_blank"><img src="https://friendica.mrpetovan.com/proxy/bb/aHR0cHM6Ly9jZG4uZXllZW0uY29tL3RodW1iL2IyZjAxOTczOGNiZWVmMDZlMmY4Yzk1MTdjNjI4NmE4YWRjZDNhMDAtMTUyMjE4NDgyMDY0MS82NDAvNDgw" alt="" title="Over-compensation Street Night Car Lights Jeep No | EyeEm" class="attachment-image"></a><br><h4><a href="https://www.eyeem.com/p/120800309">Over-compensation Street Night Car Lights Jeep No | EyeEm</a></h4><blockquote>Photo by @<a href="https://twitter.com/MrPetovan" class="userinfo mention" title="MrPetovan">MrPetovan</a></blockquote><sup><a href="https://www.eyeem.com/p/120800309">www.eyeem.com</a></sup></div>
@@ -478,14 +478,14 @@ You can also retrieve the variables of a specific post by pasting its URL below
diff --git a/advancedcontentfilter/lang/ca/messages.po b/advancedcontentfilter/lang/ca/messages.po
deleted file mode 100644
index 913e9ecc..00000000
--- a/advancedcontentfilter/lang/ca/messages.po
+++ /dev/null
@@ -1,177 +0,0 @@
-# ADDON advancedcontentfilter
-# Copyright (C)
-# This file is distributed under the same license as the Friendica advancedcontentfilter addon package.
-#
-#
-# Translators:
-# Joan Bar , 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: Joan Bar , 2019\n"
-"Language-Team: Catalan (https://www.transifex.com/Friendica/teams/12172/ca/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ca\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: advancedcontentfilter.php:134
-#, php-format
-msgid "Filtered by rule: %s"
-msgstr "Filtrat per regla: %s"
-
-#: advancedcontentfilter.php:147 advancedcontentfilter.php:204
-msgid "Advanced Content Filter"
-msgstr "Contingut avançat Filtre"
-
-#: advancedcontentfilter.php:203
-msgid "Back to Addon Settings"
-msgstr "Torna Addon Configuració"
-
-#: advancedcontentfilter.php:205
-msgid "Add a Rule"
-msgstr "Afegiu una regla"
-
-#: advancedcontentfilter.php:206
-msgid "Help"
-msgstr "Ajuda"
-
-#: 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 ""
-"Afegiu i gestioneu les vostres regles de filtre de contingut personal en "
-"aquesta pantalla. Les regles tenen un nom i una expressió arbitrària que es "
-"combinen amb les dades de la publicació. Per obtenir una referència completa"
-" de les variables i operacions disponibles, comproveu el botó pàgina d’ajuda."
-
-#: advancedcontentfilter.php:208
-msgid "Your rules"
-msgstr "Les seves normes"
-
-#: advancedcontentfilter.php:209
-msgid ""
-"You have no rules yet! Start adding one by clicking on the button above next"
-" to the title."
-msgstr ""
-"Encara no teniu normes. Comenceu a afegir-ne un fent clic al botó situat al "
-"costat del títol."
-
-#: advancedcontentfilter.php:210
-msgid "Disabled"
-msgstr "Desactivat"
-
-#: advancedcontentfilter.php:211
-msgid "Enabled"
-msgstr "Permetre"
-
-#: advancedcontentfilter.php:212
-msgid "Disable this rule"
-msgstr "Desactiva aquesta regla"
-
-#: advancedcontentfilter.php:213
-msgid "Enable this rule"
-msgstr "Activa aquesta regla"
-
-#: advancedcontentfilter.php:214
-msgid "Edit this rule"
-msgstr "Edita aquesta regla"
-
-#: advancedcontentfilter.php:215
-msgid "Edit the rule"
-msgstr "Edita la regla"
-
-#: advancedcontentfilter.php:216
-msgid "Save this rule"
-msgstr "Deseu aquesta regla"
-
-#: advancedcontentfilter.php:217
-msgid "Delete this rule"
-msgstr "Suprimeix aquesta regla"
-
-#: advancedcontentfilter.php:218
-msgid "Rule"
-msgstr "Regla"
-
-#: advancedcontentfilter.php:219
-msgid "Close"
-msgstr "Tancar"
-
-#: advancedcontentfilter.php:220
-msgid "Add new rule"
-msgstr "Add nova regla"
-
-#: advancedcontentfilter.php:221
-msgid "Rule Name"
-msgstr "Nom de la regla"
-
-#: advancedcontentfilter.php:222
-msgid "Rule Expression"
-msgstr "Expressió de regla"
-
-#: advancedcontentfilter.php:223
-msgid ""
-"
"
-
-#: advancedcontentfilter.php:224
-msgid "Cancel"
-msgstr "cancel·lar"
-
-#: 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 "Per utilitzar aquest mètode, heu d’iniciar sessió"
-
-#: advancedcontentfilter.php:316 advancedcontentfilter.php:350
-#: advancedcontentfilter.php:379
-msgid "Invalid form security token, please refresh the page."
-msgstr ""
-"El testimoni de seguretat del formulari no és vàlid. Actualitza la pàgina"
-
-#: advancedcontentfilter.php:328
-msgid "The rule name and expression are required."
-msgstr "El nom i l’expressió de la regla són obligatoris"
-
-#: advancedcontentfilter.php:340
-msgid "Rule successfully added"
-msgstr "La regla s'ha afegit correctament"
-
-#: advancedcontentfilter.php:354 advancedcontentfilter.php:383
-msgid "Rule doesn't exist or doesn't belong to you."
-msgstr "La regla no existeix o no us pertany."
-
-#: advancedcontentfilter.php:369
-msgid "Rule successfully updated"
-msgstr "La regla s'ha actualitzat correctament"
-
-#: advancedcontentfilter.php:390
-msgid "Rule successfully deleted"
-msgstr "S'ha suprimit la regla correctament"
-
-#: advancedcontentfilter.php:400
-msgid "Missing argument: guid."
-msgstr "Falta un argument: guia"
-
-#: advancedcontentfilter.php:406
-#, php-format
-msgid "Unknown post with guid: %s"
-msgstr "Publicació desconeguda amb guia: %s"
-
-#: src/middlewares.php:28
-msgid "Method not found"
-msgstr "Mètode no trobat"
diff --git a/advancedcontentfilter/lang/ca/strings.php b/advancedcontentfilter/lang/ca/strings.php
deleted file mode 100644
index 9afcfdb2..00000000
--- a/advancedcontentfilter/lang/ca/strings.php
+++ /dev/null
@@ -1,41 +0,0 @@
-strings["Filtered by rule: %s"] = "Filtrat per regla: %s";
-$a->strings["Advanced Content Filter"] = "Contingut avançat Filtre";
-$a->strings["Back to Addon Settings"] = "Torna Addon Configuració";
-$a->strings["Add a Rule"] = "Afegiu una regla";
-$a->strings["Help"] = "Ajuda";
-$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."] = "Afegiu i gestioneu les vostres regles de filtre de contingut personal en aquesta pantalla. Les regles tenen un nom i una expressió arbitrària que es combinen amb les dades de la publicació. Per obtenir una referència completa de les variables i operacions disponibles, comproveu el botó pàgina d’ajuda.";
-$a->strings["Your rules"] = "Les seves normes";
-$a->strings["You have no rules yet! Start adding one by clicking on the button above next to the title."] = "Encara no teniu normes. Comenceu a afegir-ne un fent clic al botó situat al costat del títol.";
-$a->strings["Disabled"] = "Desactivat";
-$a->strings["Enabled"] = "Permetre";
-$a->strings["Disable this rule"] = "Desactiva aquesta regla";
-$a->strings["Enable this rule"] = "Activa aquesta regla";
-$a->strings["Edit this rule"] = "Edita aquesta regla";
-$a->strings["Edit the rule"] = "Edita la regla";
-$a->strings["Save this rule"] = "Deseu aquesta regla";
-$a->strings["Delete this rule"] = "Suprimeix aquesta regla";
-$a->strings["Rule"] = "Regla";
-$a->strings["Close"] = "Tancar";
-$a->strings["Add new rule"] = "Add nova regla";
-$a->strings["Rule Name"] = "Nom de la regla";
-$a->strings["Rule Expression"] = "Expressió de regla";
-$a->strings["
";
-$a->strings["Cancel"] = "cancel·lar";
-$a->strings["You must be logged in to use this method"] = "Per utilitzar aquest mètode, heu d’iniciar sessió";
-$a->strings["Invalid form security token, please refresh the page."] = "El testimoni de seguretat del formulari no és vàlid. Actualitza la pàgina";
-$a->strings["The rule name and expression are required."] = "El nom i l’expressió de la regla són obligatoris";
-$a->strings["Rule successfully added"] = "La regla s'ha afegit correctament";
-$a->strings["Rule doesn't exist or doesn't belong to you."] = "La regla no existeix o no us pertany.";
-$a->strings["Rule successfully updated"] = "La regla s'ha actualitzat correctament";
-$a->strings["Rule successfully deleted"] = "S'ha suprimit la regla correctament";
-$a->strings["Missing argument: guid."] = "Falta un argument: guia";
-$a->strings["Unknown post with guid: %s"] = "Publicació desconeguda amb guia: %s";
-$a->strings["Method not found"] = "Mètode no trobat";
diff --git a/advancedcontentfilter/lang/en-gb/messages.po b/advancedcontentfilter/lang/en-gb/messages.po
deleted file mode 100644
index 359c667f..00000000
--- a/advancedcontentfilter/lang/en-gb/messages.po
+++ /dev/null
@@ -1,175 +0,0 @@
-# ADDON advancedcontentfilter
-# Copyright (C)
-# This file is distributed under the same license as the Friendica advancedcontentfilter addon package.
-#
-#
-# Translators:
-# Andy H3 , 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: Andy H3 , 2019\n"
-"Language-Team: English (United Kingdom) (https://www.transifex.com/Friendica/teams/12172/en_GB/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: en_GB\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: advancedcontentfilter.php:134
-#, php-format
-msgid "Filtered by rule: %s"
-msgstr "Filtered by rule: %s"
-
-#: advancedcontentfilter.php:147 advancedcontentfilter.php:204
-msgid "Advanced Content Filter"
-msgstr "Advanced Content Filter"
-
-#: advancedcontentfilter.php:203
-msgid "Back to Addon Settings"
-msgstr "Back to addon settings"
-
-#: advancedcontentfilter.php:205
-msgid "Add a Rule"
-msgstr "Add a rule"
-
-#: advancedcontentfilter.php:206
-msgid "Help"
-msgstr "Help"
-
-#: 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 ""
-"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."
-
-#: advancedcontentfilter.php:208
-msgid "Your rules"
-msgstr "Your rules"
-
-#: advancedcontentfilter.php:209
-msgid ""
-"You have no rules yet! Start adding one by clicking on the button above next"
-" to the title."
-msgstr ""
-"You have no rules yet! Start adding one by clicking on the button above next"
-" to the title."
-
-#: advancedcontentfilter.php:210
-msgid "Disabled"
-msgstr "Disabled"
-
-#: advancedcontentfilter.php:211
-msgid "Enabled"
-msgstr "Enabled"
-
-#: advancedcontentfilter.php:212
-msgid "Disable this rule"
-msgstr "Disable this rule"
-
-#: advancedcontentfilter.php:213
-msgid "Enable this rule"
-msgstr "Enable this rule"
-
-#: advancedcontentfilter.php:214
-msgid "Edit this rule"
-msgstr "Edit this rule"
-
-#: advancedcontentfilter.php:215
-msgid "Edit the rule"
-msgstr "Edit the rule"
-
-#: advancedcontentfilter.php:216
-msgid "Save this rule"
-msgstr "Save this rule"
-
-#: advancedcontentfilter.php:217
-msgid "Delete this rule"
-msgstr "Delete this rule"
-
-#: advancedcontentfilter.php:218
-msgid "Rule"
-msgstr "Rule"
-
-#: advancedcontentfilter.php:219
-msgid "Close"
-msgstr "Close"
-
-#: advancedcontentfilter.php:220
-msgid "Add new rule"
-msgstr "Add new rule"
-
-#: advancedcontentfilter.php:221
-msgid "Rule Name"
-msgstr "Rule name"
-
-#: advancedcontentfilter.php:222
-msgid "Rule Expression"
-msgstr "Rule expression"
-
-#: advancedcontentfilter.php:223
-msgid ""
-"
"
-
-#: advancedcontentfilter.php:224
-msgid "Cancel"
-msgstr "Cancel"
-
-#: 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 "You must be logged in to use this method"
-
-#: advancedcontentfilter.php:316 advancedcontentfilter.php:350
-#: advancedcontentfilter.php:379
-msgid "Invalid form security token, please refresh the page."
-msgstr "Invalid form security token, please refresh the page."
-
-#: advancedcontentfilter.php:328
-msgid "The rule name and expression are required."
-msgstr "The rule name and expression are required."
-
-#: advancedcontentfilter.php:340
-msgid "Rule successfully added"
-msgstr "Rule successfully added"
-
-#: advancedcontentfilter.php:354 advancedcontentfilter.php:383
-msgid "Rule doesn't exist or doesn't belong to you."
-msgstr "Rule doesn't exist or doesn't belong to you."
-
-#: advancedcontentfilter.php:369
-msgid "Rule successfully updated"
-msgstr "Rule successfully updated"
-
-#: advancedcontentfilter.php:390
-msgid "Rule successfully deleted"
-msgstr "Rule successfully deleted"
-
-#: advancedcontentfilter.php:400
-msgid "Missing argument: guid."
-msgstr "Missing argument: Global Unique Identifier (GUID)."
-
-#: advancedcontentfilter.php:406
-#, php-format
-msgid "Unknown post with guid: %s"
-msgstr "Unknown post with Global Unique Identifier (GUID): %s"
-
-#: src/middlewares.php:28
-msgid "Method not found"
-msgstr "Method not found"
diff --git a/advancedcontentfilter/lang/en-gb/strings.php b/advancedcontentfilter/lang/en-gb/strings.php
deleted file mode 100644
index 7fe5be6f..00000000
--- a/advancedcontentfilter/lang/en-gb/strings.php
+++ /dev/null
@@ -1,41 +0,0 @@
-strings["Filtered by rule: %s"] = "Filtered by rule: %s";
-$a->strings["Advanced Content Filter"] = "Advanced Content Filter";
-$a->strings["Back to Addon Settings"] = "Back to addon settings";
-$a->strings["Add a Rule"] = "Add a rule";
-$a->strings["Help"] = "Help";
-$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."] = "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.";
-$a->strings["Your rules"] = "Your rules";
-$a->strings["You have no rules yet! Start adding one by clicking on the button above next to the title."] = "You have no rules yet! Start adding one by clicking on the button above next to the title.";
-$a->strings["Disabled"] = "Disabled";
-$a->strings["Enabled"] = "Enabled";
-$a->strings["Disable this rule"] = "Disable this rule";
-$a->strings["Enable this rule"] = "Enable this rule";
-$a->strings["Edit this rule"] = "Edit this rule";
-$a->strings["Edit the rule"] = "Edit the rule";
-$a->strings["Save this rule"] = "Save this rule";
-$a->strings["Delete this rule"] = "Delete this rule";
-$a->strings["Rule"] = "Rule";
-$a->strings["Close"] = "Close";
-$a->strings["Add new rule"] = "Add new rule";
-$a->strings["Rule Name"] = "Rule name";
-$a->strings["Rule Expression"] = "Rule expression";
-$a->strings["
";
-$a->strings["Cancel"] = "Cancel";
-$a->strings["You must be logged in to use this method"] = "You must be logged in to use this method";
-$a->strings["Invalid form security token, please refresh the page."] = "Invalid form security token, please refresh the page.";
-$a->strings["The rule name and expression are required."] = "The rule name and expression are required.";
-$a->strings["Rule successfully added"] = "Rule successfully added";
-$a->strings["Rule doesn't exist or doesn't belong to you."] = "Rule doesn't exist or doesn't belong to you.";
-$a->strings["Rule successfully updated"] = "Rule successfully updated";
-$a->strings["Rule successfully deleted"] = "Rule successfully deleted";
-$a->strings["Missing argument: guid."] = "Missing argument: Global Unique Identifier (GUID).";
-$a->strings["Unknown post with guid: %s"] = "Unknown post with Global Unique Identifier (GUID): %s";
-$a->strings["Method not found"] = "Method not found";
diff --git a/advancedcontentfilter/lang/fr/messages.po b/advancedcontentfilter/lang/fr/messages.po
index c3698c66..cd1853fd 100644
--- a/advancedcontentfilter/lang/fr/messages.po
+++ b/advancedcontentfilter/lang/fr/messages.po
@@ -5,8 +5,7 @@
#
# Translators:
# Marie Olive , 2018
-# Vladimir Núñez , 2018
-# Phigger Phigger , 2019
+# vladimir N , 2018
#
#, fuzzy
msgid ""
@@ -15,7 +14,7 @@ msgstr ""
"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: Phigger Phigger , 2019\n"
+"Last-Translator: vladimir N , 2018\n"
"Language-Team: French (https://www.transifex.com/Friendica/teams/12172/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -125,8 +124,6 @@ msgid ""
"
"
-
-#: advancedcontentfilter.php:224
-msgid "Cancel"
-msgstr "Отмена"
-
-#: 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 "Вы должны авторизоваться для использования этого метода"
-
-#: 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 "Отсутствующий аргумент: guid."
-
-#: advancedcontentfilter.php:406
-#, php-format
-msgid "Unknown post with guid: %s"
-msgstr "Неизвестный пост в ID: %s"
-
-#: src/middlewares.php:28
-msgid "Method not found"
-msgstr "Метод не найден"
diff --git a/advancedcontentfilter/lang/ru/strings.php b/advancedcontentfilter/lang/ru/strings.php
deleted file mode 100644
index a650e3fd..00000000
--- a/advancedcontentfilter/lang/ru/strings.php
+++ /dev/null
@@ -1,41 +0,0 @@
-=2 && $n%10<=4 && ($n%100<12 || $n%100>14) ? 1 : $n%10==0 || ($n%10>=5 && $n%10<=9) || ($n%100>=11 && $n%100<=14)? 2 : 3);;
-}}
-;
-$a->strings["Filtered by rule: %s"] = "Отфильтровано по правилу: %s";
-$a->strings["Advanced Content Filter"] = "Расширенный фильтр содержимого";
-$a->strings["Back to Addon Settings"] = "Вернуться к настройкам дополнений";
-$a->strings["Add a Rule"] = "Добавить правило";
-$a->strings["Help"] = "Помощь";
-$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."] = "Добавляйте и управляйте своими собственными фильтрами на этой странице. У правил есть имя и произвольное выражение, которое будет сопоставляться с данными поста. Для полной ссылки на доступные операции и переменные, посмотрите страницу справки.";
-$a->strings["Your rules"] = "Ваши правила";
-$a->strings["You have no rules yet! Start adding one by clicking on the button above next to the title."] = "У Вас нет ни одного правила. Начните добавление первого с нажатия на кнопку выше, рядом с названием.";
-$a->strings["Disabled"] = "Отключено";
-$a->strings["Enabled"] = "Включено";
-$a->strings["Disable this rule"] = "Отключить это правило";
-$a->strings["Enable this rule"] = "Включить это правило";
-$a->strings["Edit this rule"] = "Изменить это правило";
-$a->strings["Edit the rule"] = "Изменить правило";
-$a->strings["Save this rule"] = "Сохранить это правило";
-$a->strings["Delete this rule"] = "Удалить это правило";
-$a->strings["Rule"] = "Правило";
-$a->strings["Close"] = "Закрыть";
-$a->strings["Add new rule"] = "Добавить новое правило";
-$a->strings["Rule Name"] = "Название правила";
-$a->strings["Rule Expression"] = "Содержание правила";
-$a->strings["
"
-
-#: advancedcontentfilter.php:224
-msgid "Cancel"
-msgstr "取消"
-
-#: 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 "使用此模式您必须先登录。"
-
-#: 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 "缺少参数:guid。"
-
-#: advancedcontentfilter.php:406
-#, php-format
-msgid "Unknown post with guid: %s"
-msgstr "未知帖子 guid:%s"
-
-#: src/middlewares.php:28
-msgid "Method not found"
-msgstr "未找到模式"
diff --git a/advancedcontentfilter/lang/zh-cn/strings.php b/advancedcontentfilter/lang/zh-cn/strings.php
deleted file mode 100644
index a51e6850..00000000
--- a/advancedcontentfilter/lang/zh-cn/strings.php
+++ /dev/null
@@ -1,41 +0,0 @@
-strings["Filtered by rule: %s"] = "通过规则过滤:%s";
-$a->strings["Advanced Content Filter"] = "高级内容过滤";
-$a->strings["Back to Addon Settings"] = "返回扩展设置";
-$a->strings["Add a Rule"] = "添加规则";
-$a->strings["Help"] = "帮助";
-$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."] = "在此界面上添加和管理你的个人内容过滤规则。规则要有名称和能匹配帖子内容的任意表达式。完整可用的运算符和变量,请查看帮助页面。";
-$a->strings["Your rules"] = "你的规则";
-$a->strings["You have no rules yet! Start adding one by clicking on the button above next to the title."] = "你还没有规则!点击标题上方的按钮开始新增规则。";
-$a->strings["Disabled"] = "禁用";
-$a->strings["Enabled"] = "启用";
-$a->strings["Disable this rule"] = "禁用此规则";
-$a->strings["Enable this rule"] = "启用此规则";
-$a->strings["Edit this rule"] = "编辑此规则";
-$a->strings["Edit the rule"] = "编辑规则";
-$a->strings["Save this rule"] = "保存规则";
-$a->strings["Delete this rule"] = "删除此规则";
-$a->strings["Rule"] = "规则";
-$a->strings["Close"] = "关闭";
-$a->strings["Add new rule"] = "新增规则";
-$a->strings["Rule Name"] = "规则名";
-$a->strings["Rule Expression"] = "规则表达式";
-$a->strings["
";
-$a->strings["Cancel"] = "取消";
-$a->strings["You must be logged in to use this method"] = "使用此模式您必须先登录。";
-$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."] = "缺少参数:guid。";
-$a->strings["Unknown post with guid: %s"] = "未知帖子 guid:%s";
-$a->strings["Method not found"] = "未找到模式";
diff --git a/advancedcontentfilter/src/middlewares.php b/advancedcontentfilter/src/middlewares.php
index dffb9363..32e8cb99 100644
--- a/advancedcontentfilter/src/middlewares.php
+++ b/advancedcontentfilter/src/middlewares.php
@@ -1,25 +1,5 @@
.
- *
- */
-
-use Friendica\DI;
+use Friendica\Core\L10n;
$container = $slim->getContainer();
@@ -30,7 +10,7 @@ $container['errorHandler'] = function () {
$responseCode = 500;
if (is_a($exception, 'Friendica\Network\HTTPException')) {
- $responseCode = $exception->getCode();
+ $responseCode = $exception->httpcode;
}
$errors['message'] = $exception->getMessage();
@@ -46,6 +26,6 @@ $container['errorHandler'] = function () {
$container['notFoundHandler'] = function () {
return function ()
{
- throw new \Friendica\Network\HTTPException\NotFoundException(DI::l10n()->t('Method not found'));
+ throw new \Friendica\Network\HTTPException\NotFoundException(L10n::t('Method not found'));
};
};
diff --git a/advancedcontentfilter/src/routes.php b/advancedcontentfilter/src/routes.php
index 09077bda..969ced68 100644
--- a/advancedcontentfilter/src/routes.php
+++ b/advancedcontentfilter/src/routes.php
@@ -1,23 +1,6 @@
.
- *
- */
+
+// Routes
/* @var $slim Slim\App */
$slim->group('/advancedcontentfilter/api', function () {
diff --git a/blackout/blackout.php b/blackout/blackout.php
index 83b2dbc1..72c2f62c 100644
--- a/blackout/blackout.php
+++ b/blackout/blackout.php
@@ -44,16 +44,20 @@
* THE SOFTWARE.
*/
+use Friendica\Core\Config;
use Friendica\Core\Hook;
+use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\System;
-use Friendica\DI;
function blackout_install() {
Hook::register('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
}
+function blackout_uninstall() {
+ Hook::unregister('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
+}
function blackout_redirect ($a, $b) {
// if we have a logged in user, don't throw her out
if (local_user()) {
@@ -61,9 +65,9 @@ function blackout_redirect ($a, $b) {
}
// else...
- $mystart = DI::config()->get('blackout','begindate');
- $myend = DI::config()->get('blackout','enddate');
- $myurl = DI::config()->get('blackout','url');
+ $mystart = Config::get('blackout','begindate');
+ $myend = Config::get('blackout','enddate');
+ $myurl = Config::get('blackout','url');
$now = time();
$date1 = DateTime::createFromFormat('Y-m-d G:i', $mystart);
$date2 = DateTime::createFromFormat('Y-m-d G:i', $myend);
@@ -81,11 +85,11 @@ function blackout_redirect ($a, $b) {
}
function blackout_addon_admin(&$a, &$o) {
- $mystart = DI::config()->get('blackout','begindate');
+ $mystart = Config::get('blackout','begindate');
if (! is_string($mystart)) { $mystart = "YYYY-MM-DD hh:mm"; }
- $myend = DI::config()->get('blackout','enddate');
+ $myend = Config::get('blackout','enddate');
if (! is_string($myend)) { $myend = "YYYY-MM-DD hh:mm"; }
- $myurl = DI::config()->get('blackout','url');
+ $myurl = Config::get('blackout','url');
if (! is_string($myurl)) { $myurl = "https://www.example.com"; }
$t = Renderer::getMarkupTemplate( "admin.tpl", "addon/blackout/" );
@@ -94,24 +98,24 @@ function blackout_addon_admin(&$a, &$o) {
// a note for the admin
$adminnote = "";
if ($date2 < $date1) {
- $adminnote = DI::l10n()->t("The end-date is prior to the start-date of the blackout, you should fix this");
+ $adminnote = L10n::t("The end-date is prior to the start-date of the blackout, you should fix this");
} else {
- $adminnote = DI::l10n()->t("Please double check that the current settings for the blackout. Begin will be %s and it will end %s.", $mystart, $myend);
+ $adminnote = L10n::t("Please double check that the current settings for the blackout. Begin will be %s and it will end %s.", $mystart, $myend);
}
$o = Renderer::replaceMacros($t, [
- '$submit' => DI::l10n()->t('Save Settings'),
- '$rurl' => ["rurl", DI::l10n()->t("Redirect URL"), $myurl, DI::l10n()->t("all your visitors from the web will be redirected to this URL"), "", "", "url"],
- '$startdate' => ["startdate", DI::l10n()->t("Begin of the Blackout"), $mystart, DI::l10n()->t("Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute.")],
- '$enddate' => ["enddate", DI::l10n()->t("End of the Blackout"), $myend, ""],
+ '$submit' => L10n::t('Save Settings'),
+ '$rurl' => ["rurl", L10n::t("Redirect URL"), $myurl, L10n::t("all your visitors from the web will be redirected to this URL"), "", "", "url"],
+ '$startdate' => ["startdate", L10n::t("Begin of the Blackout"), $mystart, L10n::t("Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute.")],
+ '$enddate' => ["enddate", L10n::t("End of the Blackout"), $myend, ""],
'$adminnote' => $adminnote,
- '$aboutredirect' => DI::l10n()->t("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."),
+ '$aboutredirect' => L10n::t("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."),
]);
}
function blackout_addon_admin_post (&$a) {
$begindate = trim($_POST['startdate']);
$enddate = trim($_POST['enddate']);
$url = trim($_POST['rurl']);
- DI::config()->set('blackout','begindate',$begindate);
- DI::config()->set('blackout','enddate',$enddate);
- DI::config()->set('blackout','url',$url);
+ Config::set('blackout','begindate',$begindate);
+ Config::set('blackout','enddate',$enddate);
+ Config::set('blackout','url',$url);
}
diff --git a/blackout/lang/ca/messages.po b/blackout/lang/ca/messages.po
deleted file mode 100644
index 2f270d91..00000000
--- a/blackout/lang/ca/messages.po
+++ /dev/null
@@ -1,66 +0,0 @@
-# ADDON blackout
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blackout addon package.
-#
-#
-# Translators:
-# Joan Bar , 2019
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-12 09:26+0100\n"
-"PO-Revision-Date: 2019-10-13 22:17+0000\n"
-"Last-Translator: Joan Bar \n"
-"Language-Team: Catalan (http://www.transifex.com/Friendica/friendica/language/ca/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ca\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: blackout.php:101
-msgid ""
-"The end-date is prior to the start-date of the blackout, you should fix this"
-msgstr "La data de finalització és anterior a la data d'inici de l'apagada, hauríeu d'arreglar-ho"
-
-#: 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 "Verifiqueu si la configuració actual per a l'apagat. Començarà serà %s i s’acabarà %s."
-
-#: blackout.php:106
-msgid "Save Settings"
-msgstr "Desa la configuració"
-
-#: blackout.php:107
-msgid "Redirect URL"
-msgstr "Redirigir URL"
-
-#: blackout.php:107
-msgid "all your visitors from the web will be redirected to this URL"
-msgstr "tots els visitants del web seran redirigits a aquest tema URL"
-
-#: blackout.php:108
-msgid "Begin of the Blackout"
-msgstr "Inici de l’apagada"
-
-#: blackout.php:108
-msgid ""
-"Format is YYYY-MM-DD hh:mm; YYYY year, MM month, "
-"DD day, hh hour and mm minute."
-msgstr "El format és YYYY-MM-DD hh:mm; YYYY year, MM mes. DD day, hhhora i mm minut."
-
-#: blackout.php:109
-msgid "End of the Blackout"
-msgstr "Fi de l’apagada"
-
-#: blackout.php:111
-msgid ""
-"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 "Nota: La redirecció estarà activa des del moment en què premeu el botó d'enviament. Els usuaris actualment connectats ho faran no es llençarà però no es pot tornar a iniciar la sessió un cop s'hagi desactivat l'apagada."
diff --git a/blackout/lang/ca/strings.php b/blackout/lang/ca/strings.php
index 20c8c1da..87481b12 100644
--- a/blackout/lang/ca/strings.php
+++ b/blackout/lang/ca/strings.php
@@ -1,17 +1,3 @@
-strings["The end-date is prior to the start-date of the blackout, you should fix this"] = "La data de finalització és anterior a la data d'inici de l'apagada, hauríeu d'arreglar-ho";
-$a->strings["Please double check that the current settings for the blackout. Begin will be %s and it will end %s."] = "Verifiqueu si la configuració actual per a l'apagat. Començarà serà %s i s’acabarà %s.";
-$a->strings["Save Settings"] = "Desa la configuració";
-$a->strings["Redirect URL"] = "Redirigir URL";
-$a->strings["all your visitors from the web will be redirected to this URL"] = "tots els visitants del web seran redirigits a aquest tema URL";
-$a->strings["Begin of the Blackout"] = "Inici de l’apagada";
-$a->strings["Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."] = "El format és YYYY-MM-DD hh:mm; YYYY year, MM mes. DD day, hhhora i mm minut.";
-$a->strings["End of the Blackout"] = "Fi de l’apagada";
-$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."] = "Nota: La redirecció estarà activa des del moment en què premeu el botó d'enviament. Els usuaris actualment connectats ho faran no es llençarà però no es pot tornar a iniciar la sessió un cop s'hagi desactivat l'apagada.";
+strings["Submit"] = "Enviar";
diff --git a/blackout/lang/en-gb/messages.po b/blackout/lang/en-gb/messages.po
deleted file mode 100644
index 6157323c..00000000
--- a/blackout/lang/en-gb/messages.po
+++ /dev/null
@@ -1,67 +0,0 @@
-# ADDON blackout
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blackout addon package.
-#
-#
-# Translators:
-# Andy H3 , 2019
-# Kris, 2018
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-12 09:26+0100\n"
-"PO-Revision-Date: 2019-06-05 14:40+0000\n"
-"Last-Translator: Andy H3 \n"
-"Language-Team: English (United Kingdom) (http://www.transifex.com/Friendica/friendica/language/en_GB/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: en_GB\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: blackout.php:101
-msgid ""
-"The end-date is prior to the start-date of the blackout, you should fix this"
-msgstr "The end date is prior to the start date of the blackout, you should fix this"
-
-#: 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 "Please double check that the current settings for the blackout. Begin will be %s and it will end %s."
-
-#: blackout.php:106
-msgid "Save Settings"
-msgstr "Save Settings"
-
-#: blackout.php:107
-msgid "Redirect URL"
-msgstr "Redirect URL"
-
-#: blackout.php:107
-msgid "all your visitors from the web will be redirected to this URL"
-msgstr "Visitors from the web will be redirected to this URL"
-
-#: blackout.php:108
-msgid "Begin of the Blackout"
-msgstr "Blackout begins"
-
-#: blackout.php:108
-msgid ""
-"Format is YYYY-MM-DD hh:mm; YYYY year, MM month, "
-"DD day, hh hour and mm minute."
-msgstr "Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."
-
-#: blackout.php:109
-msgid "End of the Blackout"
-msgstr "Blackout ends"
-
-#: blackout.php:111
-msgid ""
-"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 "Note: The redirect will be active from the moment you press the submit button. Users currently logged in will not be affected but can't login again after logging out should the blackout is still in place."
diff --git a/blackout/lang/en-gb/strings.php b/blackout/lang/en-gb/strings.php
deleted file mode 100644
index 18b61594..00000000
--- a/blackout/lang/en-gb/strings.php
+++ /dev/null
@@ -1,17 +0,0 @@
-strings["The end-date is prior to the start-date of the blackout, you should fix this"] = "The end date is prior to the start date of the blackout, you should fix this";
-$a->strings["Please double check that the current settings for the blackout. Begin will be %s and it will end %s."] = "Please double check that the current settings for the blackout. Begin will be %s and it will end %s.";
-$a->strings["Save Settings"] = "Save Settings";
-$a->strings["Redirect URL"] = "Redirect URL";
-$a->strings["all your visitors from the web will be redirected to this URL"] = "Visitors from the web will be redirected to this URL";
-$a->strings["Begin of the Blackout"] = "Blackout begins";
-$a->strings["Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."] = "Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute.";
-$a->strings["End of the Blackout"] = "Blackout ends";
-$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."] = "Note: The redirect will be active from the moment you press the submit button. Users currently logged in will not be affected but can't login again after logging out should the blackout is still in place.";
diff --git a/blackout/lang/fr/messages.po b/blackout/lang/fr/messages.po
index a73b4907..823c3782 100644
--- a/blackout/lang/fr/messages.po
+++ b/blackout/lang/fr/messages.po
@@ -6,15 +6,14 @@
# Translators:
# Damien Goutte-Gattat , 2015
# Hypolite Petovan , 2016
-# Valvin A , 2019
-# Vladimir Núñez , 2018
+# vladimir N , 2018
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-12 09:26+0100\n"
-"PO-Revision-Date: 2019-05-27 19:12+0000\n"
-"Last-Translator: Valvin A \n"
+"POT-Creation-Date: 2014-06-22 13:18+0200\n"
+"PO-Revision-Date: 2018-12-30 12:31+0000\n"
+"Last-Translator: vladimir N \n"
"Language-Team: French (http://www.transifex.com/Friendica/friendica/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -22,48 +21,34 @@ msgstr ""
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-#: blackout.php:101
-msgid ""
-"The end-date is prior to the start-date of the blackout, you should fix this"
-msgstr "La date de fin est antérieure au début de l'extinction, vous devriez corriger cela."
-
-#: 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 "Merci de vérifier que le paramétrage actuel pour l'extinction. Le début sera %s et se terminera %s"
-
-#: blackout.php:106
+#: blackout.php:99
msgid "Save Settings"
msgstr "Sauvegarder les paramètres"
-#: blackout.php:107
+#: blackout.php:100
msgid "Redirect URL"
msgstr "Adresse URL de redirection"
-#: blackout.php:107
+#: blackout.php:100
msgid "all your visitors from the web will be redirected to this URL"
msgstr "Tous vos visiteurs venant du web seront redirigés vers cette URL."
-#: blackout.php:108
+#: blackout.php:101
msgid "Begin of the Blackout"
-msgstr "Début de l'extinction"
+msgstr "Début du blackout"
+
+#: blackout.php:101
+msgid ""
+"format is YYYY year, MM month, DD day, "
+"hh hour and mm minute"
+msgstr "Le format est YYYY année, MM mois, DD jour, hh heure and mm minute"
+
+#: blackout.php:102
+msgid "End of the Blackout"
+msgstr "Fin du blackout"
#: blackout.php:108
msgid ""
-"Format is YYYY-MM-DD hh:mm; YYYY year, MM month, "
-"DD day, hh hour and mm minute."
-msgstr "Le format est YYYY-MM-DD hh:mm; YYYY année, MMmois, DD jour, hhheure et mmminute."
-
-#: blackout.php:109
-msgid "End of the Blackout"
-msgstr "Fin de l'extinction"
-
-#: blackout.php:111
-msgid ""
-"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 "Note: La redirection sera active à partir du moment ou vous appuierez sur le bouton envoyer. Les utilisateurs identifiés ne seront pas déconnectés mais ne pourront pas se reconnecter après s'être déconnectés tant que l'extinction est en place."
+"The end-date is prior to the start-date of the blackout, you should fix "
+"this."
+msgstr "La date de fin est antérieure à la date de début. Veuillez corriger cela."
diff --git a/blackout/lang/fr/strings.php b/blackout/lang/fr/strings.php
index f60d599d..ac1890f3 100644
--- a/blackout/lang/fr/strings.php
+++ b/blackout/lang/fr/strings.php
@@ -6,12 +6,10 @@ function string_plural_select_fr($n){
return ($n > 1);;
}}
;
-$a->strings["The end-date is prior to the start-date of the blackout, you should fix this"] = "La date de fin est antérieure au début de l'extinction, vous devriez corriger cela.";
-$a->strings["Please double check that the current settings for the blackout. Begin will be %s and it will end %s."] = "Merci de vérifier que le paramétrage actuel pour l'extinction. Le début sera %s et se terminera %s";
$a->strings["Save Settings"] = "Sauvegarder les paramètres";
$a->strings["Redirect URL"] = "Adresse URL de redirection";
$a->strings["all your visitors from the web will be redirected to this URL"] = "Tous vos visiteurs venant du web seront redirigés vers cette URL.";
-$a->strings["Begin of the Blackout"] = "Début de l'extinction";
-$a->strings["Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."] = "Le format est YYYY-MM-DD hh:mm; YYYY année, MMmois, DD jour, hhheure et mmminute.";
-$a->strings["End of the Blackout"] = "Fin de l'extinction";
-$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."] = "Note: La redirection sera active à partir du moment ou vous appuierez sur le bouton envoyer. Les utilisateurs identifiés ne seront pas déconnectés mais ne pourront pas se reconnecter après s'être déconnectés tant que l'extinction est en place.";
+$a->strings["Begin of the Blackout"] = "Début du blackout";
+$a->strings["format is YYYY year, MM month, DD day, hh hour and mm minute"] = "Le format est YYYY année, MM mois, DD jour, hh heure and mm minute";
+$a->strings["End of the Blackout"] = "Fin du blackout";
+$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "La date de fin est antérieure à la date de début. Veuillez corriger cela.";
diff --git a/blackout/lang/it/messages.po b/blackout/lang/it/messages.po
index d00fd11e..1b0c6f62 100644
--- a/blackout/lang/it/messages.po
+++ b/blackout/lang/it/messages.po
@@ -5,14 +5,13 @@
#
# Translators:
# fabrixxm , 2014,2018
-# Sylke Vicious , 2020
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-12 09:26+0100\n"
-"PO-Revision-Date: 2020-08-31 15:28+0000\n"
-"Last-Translator: Sylke Vicious \n"
+"POT-Creation-Date: 2014-06-22 13:18+0200\n"
+"PO-Revision-Date: 2018-03-19 19:50+0000\n"
+"Last-Translator: fabrixxm \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"
@@ -20,48 +19,34 @@ msgstr ""
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-#: blackout.php:101
-msgid ""
-"The end-date is prior to the start-date of the blackout, you should fix this"
-msgstr "La data di fine è precedente alla data di inizio blackout, dovresti sistemarle"
-
-#: 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 "Per favore ricontrolla le impostazioni attuali per il blackout. L'inizio sarà il %s e terminerà il %s."
-
-#: blackout.php:106
+#: blackout.php:99
msgid "Save Settings"
msgstr "Salva Impostazioni"
-#: blackout.php:107
+#: blackout.php:100
msgid "Redirect URL"
msgstr "URL di reindirizzamento"
-#: blackout.php:107
+#: blackout.php:100
msgid "all your visitors from the web will be redirected to this URL"
msgstr "tutti i visitatori dal web verranno reindirizzati a questo URL"
-#: blackout.php:108
+#: blackout.php:101
msgid "Begin of the Blackout"
msgstr "Inzio del blackout"
-#: blackout.php:108
+#: blackout.php:101
msgid ""
-"Format is YYYY-MM-DD hh:mm; YYYY year, MM month, "
-"DD day, hh hour and mm minute."
-msgstr "Il formato è YYYY-MM-DD hh:mm; YYYY anno, MM mese, DD giorno, hh ora e mm minuto."
+"format is YYYY year, MM month, DD day, "
+"hh hour and mm minute"
+msgstr "il formato è YYYY anno, MM mese, DD giorno, hh ora e mm minuto"
-#: blackout.php:109
+#: blackout.php:102
msgid "End of the Blackout"
msgstr "Fine del blackout"
-#: blackout.php:111
+#: blackout.php:108
msgid ""
-"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 "Nota: Il reindirizzamento sarà attivo dal momento in cui premerai il pulsante di invio. Gli utenti attualmente autenticati non saranno disconnessi ma non potranno accedere in caso di disconnessione fintanto che il blackout sarà attivo."
+"The end-date is prior to the start-date of the blackout, you should fix "
+"this."
+msgstr "La data di fine è precedente alla data di inizio. Dovresti sistemarla."
diff --git a/blackout/lang/it/strings.php b/blackout/lang/it/strings.php
index 6aa8b95e..b0142236 100644
--- a/blackout/lang/it/strings.php
+++ b/blackout/lang/it/strings.php
@@ -2,16 +2,13 @@
if(! function_exists("string_plural_select_it")) {
function string_plural_select_it($n){
- $n = intval($n);
return ($n != 1);;
}}
;
-$a->strings["The end-date is prior to the start-date of the blackout, you should fix this"] = "La data di fine è precedente alla data di inizio blackout, dovresti sistemarle";
-$a->strings["Please double check that the current settings for the blackout. Begin will be %s and it will end %s."] = "Per favore ricontrolla le impostazioni attuali per il blackout. L'inizio sarà il %s e terminerà il %s.";
$a->strings["Save Settings"] = "Salva Impostazioni";
$a->strings["Redirect URL"] = "URL di reindirizzamento";
$a->strings["all your visitors from the web will be redirected to this URL"] = "tutti i visitatori dal web verranno reindirizzati a questo URL";
$a->strings["Begin of the Blackout"] = "Inzio del blackout";
-$a->strings["Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."] = "Il formato è YYYY-MM-DD hh:mm; YYYY anno, MM mese, DD giorno, hh ora e mm minuto.";
+$a->strings["format is YYYY year, MM month, DD day, hh hour and mm minute"] = "il formato è YYYY anno, MM mese, DD giorno, hh ora e mm minuto";
$a->strings["End of the Blackout"] = "Fine del blackout";
-$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."] = "Nota: Il reindirizzamento sarà attivo dal momento in cui premerai il pulsante di invio. Gli utenti attualmente autenticati non saranno disconnessi ma non potranno accedere in caso di disconnessione fintanto che il blackout sarà attivo.";
+$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "La data di fine è precedente alla data di inizio. Dovresti sistemarla.";
diff --git a/blackout/lang/ja/messages.po b/blackout/lang/ja/messages.po
deleted file mode 100644
index c7e267d7..00000000
--- a/blackout/lang/ja/messages.po
+++ /dev/null
@@ -1,65 +0,0 @@
-# ADDON blackout
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blackout addon package.
-#
-#
-# Translators:
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-12 09:26+0100\n"
-"PO-Revision-Date: 2019-08-28 10:18+0000\n"
-"Last-Translator: Ozero Dien \n"
-"Language-Team: Japanese (http://www.transifex.com/Friendica/friendica/language/ja/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ja\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: blackout.php:101
-msgid ""
-"The end-date is prior to the start-date of the blackout, you should fix this"
-msgstr "終了日はブラックアウトの開始日より前です。これを修正する必要があります"
-
-#: 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 "ブラックアウトの現在の設定を再確認してください。開始は %s で、終了は %s です。"
-
-#: blackout.php:106
-msgid "Save Settings"
-msgstr "設定を保存する"
-
-#: blackout.php:107
-msgid "Redirect URL"
-msgstr "リダイレクト URL"
-
-#: blackout.php:107
-msgid "all your visitors from the web will be redirected to this URL"
-msgstr "Webからのすべての訪問者はこのURLにリダイレクトされます"
-
-#: blackout.php:108
-msgid "Begin of the Blackout"
-msgstr "ブラックアウトの始まり"
-
-#: blackout.php:108
-msgid ""
-"Format is YYYY-MM-DD hh:mm; YYYY year, MM month, "
-"DD day, hh hour and mm minute."
-msgstr "形式は YYYY-MM-DD hh:mm です。 YYYY 年、 MM 月、 DD 日、 hh 時間と mm 分。"
-
-#: blackout.php:109
-msgid "End of the Blackout"
-msgstr "ブラックアウトの終わり"
-
-#: blackout.php:111
-msgid ""
-"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/ja/strings.php b/blackout/lang/ja/strings.php
deleted file mode 100644
index 820f8e4a..00000000
--- a/blackout/lang/ja/strings.php
+++ /dev/null
@@ -1,17 +0,0 @@
-strings["The end-date is prior to the start-date of the blackout, you should fix this"] = "終了日はブラックアウトの開始日より前です。これを修正する必要があります";
-$a->strings["Please double check that the current settings for the blackout. Begin will be %s and it will end %s."] = "ブラックアウトの現在の設定を再確認してください。開始は %s で、終了は %s です。";
-$a->strings["Save Settings"] = "設定を保存する";
-$a->strings["Redirect URL"] = "リダイレクト URL";
-$a->strings["all your visitors from the web will be redirected to this URL"] = "Webからのすべての訪問者はこのURLにリダイレクトされます";
-$a->strings["Begin of the Blackout"] = "ブラックアウトの始まり";
-$a->strings["Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."] = "形式は YYYY-MM-DD hh:mm です。 YYYY 年、 MM 月、 DD 日、 hh 時間と mm 分。";
-$a->strings["End of the Blackout"] = "ブラックアウトの終わり";
-$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."] = "備考:送信ボタンを押した時点からリダイレクトが有効になります。現在ログインしているユーザーはリダイレクトされませんが、ブラックアウトが有効な間はログアウト後再度ログインできなくなります。";
diff --git a/blackout/lang/pl/messages.po b/blackout/lang/pl/messages.po
index 811e7388..5cb661d8 100644
--- a/blackout/lang/pl/messages.po
+++ b/blackout/lang/pl/messages.po
@@ -4,14 +4,14 @@
#
#
# Translators:
-# Waldemar Stoczkowski, 2018-2020
+# Waldemar Stoczkowski, 2018-2019
# Waldemar Stoczkowski, 2018
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-03-12 09:26+0100\n"
-"PO-Revision-Date: 2020-04-09 11:01+0000\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"
@@ -30,7 +30,7 @@ msgstr "Data zakończenia jest przed datą rozpoczęcia, powinieneś to naprawi
msgid ""
"Please double check that the current settings for the blackout. Begin will "
"be %s and it will end %s."
-msgstr "Sprawdź dokładnie, czy aktualne ustawienia zaciemnienia. Rozpocznie się %s i zakończy się %s."
+msgstr ""
#: blackout.php:106
msgid "Save Settings"
@@ -52,7 +52,7 @@ msgstr "Rozpocznij Blackout"
msgid ""
"Format is YYYY-MM-DD hh:mm; YYYY year, MM month, "
"DD day, hh hour and mm minute."
-msgstr "Format to RRRR-MM-DD gg:mm; RRRR rok, MM miesiąc, DD dzień, gg godzina i mm minuta."
+msgstr ""
#: blackout.php:109
msgid "End of the Blackout"
@@ -64,4 +64,4 @@ msgid ""
" 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 "Uwaga: Przekierowanie będzie aktywne od momentu naciśnięcia przycisku przesyłania. Użytkownicy aktualnie zalogowani nie zostaną wyrzuceni, ale nie będą mogli zalogować się ponownie po wylogowaniu, jeśli zaciemnienie będzie nadal obowiązywać."
+msgstr ""
diff --git a/blackout/lang/pl/strings.php b/blackout/lang/pl/strings.php
index 7b1c3dae..bcfdb7db 100644
--- a/blackout/lang/pl/strings.php
+++ b/blackout/lang/pl/strings.php
@@ -7,11 +7,11 @@ function string_plural_select_pl($n){
}}
;
$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."] = "Sprawdź dokładnie, czy aktualne ustawienia zaciemnienia. Rozpocznie się %s i zakończy się %s.";
+$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-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."] = "Format to RRRR-MM-DD gg:mm; RRRR rok, MM miesiąc, DD dzień, gg godzina i mm minuta.";
+$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["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."] = "Uwaga: Przekierowanie będzie aktywne od momentu naciśnięcia przycisku przesyłania. Użytkownicy aktualnie zalogowani nie zostaną wyrzuceni, ale nie będą mogli zalogować się ponownie po wylogowaniu, jeśli zaciemnienie będzie nadal obowiązywać.";
+$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."] = "";
diff --git a/blackout/lang/ru/messages.po b/blackout/lang/ru/messages.po
index 4fa48ccc..560ed5d7 100644
--- a/blackout/lang/ru/messages.po
+++ b/blackout/lang/ru/messages.po
@@ -4,16 +4,14 @@
#
#
# Translators:
-# Alexander An , 2020
-# Eugene Veresk , 2020
# Stanislav N. , 2017
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-12 09:26+0100\n"
-"PO-Revision-Date: 2020-04-23 14:36+0000\n"
-"Last-Translator: Alexander An \n"
+"POT-Creation-Date: 2014-06-22 13:18+0200\n"
+"PO-Revision-Date: 2017-04-08 05:34+0000\n"
+"Last-Translator: Stanislav N. \n"
"Language-Team: Russian (http://www.transifex.com/Friendica/friendica/language/ru/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,48 +19,34 @@ msgstr ""
"Language: ru\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
-#: blackout.php:101
-msgid ""
-"The end-date is prior to the start-date of the blackout, you should fix this"
-msgstr "Дата начала позже даты окончания, исправьте это"
-
-#: 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 " Пожалуйста, проверьте настройки блэкаута ещё раз. Он начнётся %s и закончится %s."
-
-#: blackout.php:106
+#: blackout.php:99
msgid "Save Settings"
msgstr "Сохранить настройки"
-#: blackout.php:107
+#: blackout.php:100
msgid "Redirect URL"
msgstr "Ссылка для перенаправления"
-#: blackout.php:107
+#: blackout.php:100
msgid "all your visitors from the web will be redirected to this URL"
msgstr "все посетители будут перенаправлены на этот URL"
-#: blackout.php:108
+#: blackout.php:101
msgid "Begin of the Blackout"
msgstr "Начало блэкаута"
-#: blackout.php:108
+#: blackout.php:101
msgid ""
-"Format is YYYY-MM-DD hh:mm; YYYY year, MM month, "
-"DD day, hh hour and mm minute."
-msgstr "Формат: YYYY-MM-DD hh:mm; YYYY год, MM месяц, DD день, hh час и mm минуты."
+"format is YYYY year, MM month, DD day, "
+"hh hour and mm minute"
+msgstr "формат: YYYY год, MM месяц, DD день, hh час и mm минута"
-#: blackout.php:109
+#: blackout.php:102
msgid "End of the Blackout"
msgstr "Конец блэкаута"
-#: blackout.php:111
+#: blackout.php:108
msgid ""
-"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 "Внимание: Переадресация будет включена после нажатия вами кнопки. Уже вошедшие пользователи не будут выброшены, но не смогут зайти снова, пока блэкаут не закончится."
+"The end-date is prior to the start-date of the blackout, you should fix "
+"this."
+msgstr "Указана более ранняя дата окончания, чем дата начала. Это надо исправить."
diff --git a/blackout/lang/ru/strings.php b/blackout/lang/ru/strings.php
index 9dc1ddf1..aae8b350 100644
--- a/blackout/lang/ru/strings.php
+++ b/blackout/lang/ru/strings.php
@@ -2,16 +2,13 @@
if(! function_exists("string_plural_select_ru")) {
function string_plural_select_ru($n){
- $n = intval($n);
return ($n%10==1 && $n%100!=11 ? 0 : $n%10>=2 && $n%10<=4 && ($n%100<12 || $n%100>14) ? 1 : $n%10==0 || ($n%10>=5 && $n%10<=9) || ($n%100>=11 && $n%100<=14)? 2 : 3);;
}}
;
-$a->strings["The end-date is prior to the start-date of the blackout, you should fix this"] = "Дата начала позже даты окончания, исправьте это";
-$a->strings["Please double check that the current settings for the blackout. Begin will be %s and it will end %s."] = " Пожалуйста, проверьте настройки блэкаута ещё раз. Он начнётся %s и закончится %s.";
$a->strings["Save Settings"] = "Сохранить настройки";
$a->strings["Redirect URL"] = "Ссылка для перенаправления";
$a->strings["all your visitors from the web will be redirected to this URL"] = "все посетители будут перенаправлены на этот URL";
$a->strings["Begin of the Blackout"] = "Начало блэкаута";
-$a->strings["Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."] = "Формат: YYYY-MM-DD hh:mm; YYYY год, MM месяц, DD день, hh час и mm минуты.";
+$a->strings["format is YYYY year, MM month, DD day, hh hour and mm minute"] = "формат: YYYY год, MM месяц, DD день, hh час и mm минута";
$a->strings["End of the Blackout"] = "Конец блэкаута";
-$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."] = "Внимание: Переадресация будет включена после нажатия вами кнопки. Уже вошедшие пользователи не будут выброшены, но не смогут зайти снова, пока блэкаут не закончится.";
+$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "Указана более ранняя дата окончания, чем дата начала. Это надо исправить.";
diff --git a/blackout/lang/sv/messages.po b/blackout/lang/sv/messages.po
index 31931bf7..af391856 100644
--- a/blackout/lang/sv/messages.po
+++ b/blackout/lang/sv/messages.po
@@ -6,14 +6,13 @@
# Translators:
# Jonatan Nyberg, 2017
# Tim Stahel , 2018
-# Bjoessi , 2019
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-12 09:26+0100\n"
-"PO-Revision-Date: 2019-04-04 20:32+0000\n"
-"Last-Translator: Bjoessi \n"
+"POT-Creation-Date: 2014-06-22 13:18+0200\n"
+"PO-Revision-Date: 2018-11-13 12:35+0000\n"
+"Last-Translator: Tim Stahel \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"
@@ -21,48 +20,34 @@ msgstr ""
"Language: sv\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-#: blackout.php:101
-msgid ""
-"The end-date is prior to the start-date of the blackout, you should fix this"
-msgstr "Slutdatumet ligger före startdatumet för nedsläckningen, du bör rätta detta."
-
-#: 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 "Vänligen försäkra dig om att inställningarna för nedsläckningen är korrekt. Början %s och slut %s."
-
-#: blackout.php:106
+#: blackout.php:99
msgid "Save Settings"
msgstr "Spara inställningar"
-#: blackout.php:107
+#: blackout.php:100
msgid "Redirect URL"
msgstr "Omdirigera URL"
-#: blackout.php:107
+#: blackout.php:100
msgid "all your visitors from the web will be redirected to this URL"
msgstr "alla dina besökare från webben kommer omdirigeras till denna URL"
-#: blackout.php:108
+#: blackout.php:101
msgid "Begin of the Blackout"
-msgstr "Start på nedsläckningen"
+msgstr "Start av blackouten"
+
+#: blackout.php:101
+msgid ""
+"format is YYYY year, MM month, DD day, "
+"hh hour and mm minute"
+msgstr "format är ÅÅÅÅ år, MM månad, DD dag, hh timma och mm minut"
+
+#: blackout.php:102
+msgid "End of the Blackout"
+msgstr "Slut av blackouten"
#: blackout.php:108
msgid ""
-"Format is YYYY-MM-DD hh:mm; YYYY year, MM month, "
-"DD day, hh hour and mm minute."
-msgstr "Formatet är ÅÅÅÅ-MM-DD tt:mm; ÅÅÅÅ år, MM månad, DD dag, tt timme och mm minut."
-
-#: blackout.php:109
-msgid "End of the Blackout"
-msgstr "Slut på nedsläckningen"
-
-#: blackout.php:111
-msgid ""
-"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 "Observera: Hänvisningen kommer att träda i kraft när du trycker på skicka-knappen. Användare som just nu är inloggade kommer inte bli utkastade men kan inte logga in igen efter utloggning om nedsläckningen fortfarande är i kraft. "
+"The end-date is prior to the start-date of the blackout, you should fix "
+"this."
+msgstr "Slutdatumet är före startdatumet för blackouten, du borde fixa detta."
diff --git a/blackout/lang/sv/strings.php b/blackout/lang/sv/strings.php
index d7eadfd4..2a008cca 100644
--- a/blackout/lang/sv/strings.php
+++ b/blackout/lang/sv/strings.php
@@ -6,12 +6,10 @@ function string_plural_select_sv($n){
return ($n != 1);;
}}
;
-$a->strings["The end-date is prior to the start-date of the blackout, you should fix this"] = "Slutdatumet ligger före startdatumet för nedsläckningen, du bör rätta detta.";
-$a->strings["Please double check that the current settings for the blackout. Begin will be %s and it will end %s."] = "Vänligen försäkra dig om att inställningarna för nedsläckningen är korrekt. Början %s och slut %s.";
$a->strings["Save Settings"] = "Spara inställningar";
$a->strings["Redirect URL"] = "Omdirigera URL";
$a->strings["all your visitors from the web will be redirected to this URL"] = "alla dina besökare från webben kommer omdirigeras till denna URL";
-$a->strings["Begin of the Blackout"] = "Start på nedsläckningen";
-$a->strings["Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."] = "Formatet är ÅÅÅÅ-MM-DD tt:mm; ÅÅÅÅ år, MM månad, DD dag, tt timme och mm minut.";
-$a->strings["End of the Blackout"] = "Slut på nedsläckningen";
-$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."] = "Observera: Hänvisningen kommer att träda i kraft när du trycker på skicka-knappen. Användare som just nu är inloggade kommer inte bli utkastade men kan inte logga in igen efter utloggning om nedsläckningen fortfarande är i kraft. ";
+$a->strings["Begin of the Blackout"] = "Start av blackouten";
+$a->strings["format is YYYY year, MM month, DD day, hh hour and mm minute"] = "format är ÅÅÅÅ år, MM månad, DD dag, hh timma och mm minut";
+$a->strings["End of the Blackout"] = "Slut av blackouten";
+$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "Slutdatumet är före startdatumet för blackouten, du borde fixa detta.";
diff --git a/blackout/lang/zh-cn/messages.po b/blackout/lang/zh-cn/messages.po
deleted file mode 100644
index f91d56f5..00000000
--- a/blackout/lang/zh-cn/messages.po
+++ /dev/null
@@ -1,66 +0,0 @@
-# ADDON blackout
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blackout addon package.
-#
-#
-# Translators:
-# steve jobs , 2020
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-12 09:26+0100\n"
-"PO-Revision-Date: 2020-07-06 19:48+0000\n"
-"Last-Translator: steve jobs \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"
-
-#: blackout.php:101
-msgid ""
-"The end-date is prior to the start-date of the blackout, you should fix this"
-msgstr "结束日期早于开始日期,您应该修复此问题"
-
-#: 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 "请仔细检查一下当前的维护设置。将从%s开始结束于%s。"
-
-#: blackout.php:106
-msgid "Save Settings"
-msgstr "保存设置"
-
-#: blackout.php:107
-msgid "Redirect URL"
-msgstr "重定向URL"
-
-#: blackout.php:107
-msgid "all your visitors from the web will be redirected to this URL"
-msgstr "所有来自web的访问者都将重定向到此URL"
-
-#: blackout.php:108
-msgid "Begin of the Blackout"
-msgstr "开始维护"
-
-#: blackout.php:108
-msgid ""
-"Format is YYYY-MM-DD hh:mm; YYYY year, MM month, "
-"DD day, hh hour and mm minute."
-msgstr "格式为YYYY-MM-DD HH:MM;YYYY年、MM月、DD日、HH小时和MM分钟"
-
-#: blackout.php:109
-msgid "End of the Blackout"
-msgstr "结束维护"
-
-#: blackout.php:111
-msgid ""
-"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/zh-cn/strings.php b/blackout/lang/zh-cn/strings.php
index 8027bc0b..d6d8e7d2 100644
--- a/blackout/lang/zh-cn/strings.php
+++ b/blackout/lang/zh-cn/strings.php
@@ -1,17 +1,3 @@
-strings["The end-date is prior to the start-date of the blackout, you should fix this"] = "结束日期早于开始日期,您应该修复此问题";
-$a->strings["Please double check that the current settings for the blackout. Begin will be %s and it will end %s."] = "请仔细检查一下当前的维护设置。将从%s开始结束于%s。";
-$a->strings["Save Settings"] = "保存设置";
-$a->strings["Redirect URL"] = "重定向URL";
-$a->strings["all your visitors from the web will be redirected to this URL"] = "所有来自web的访问者都将重定向到此URL";
-$a->strings["Begin of the Blackout"] = "开始维护";
-$a->strings["Format is YYYY-MM-DD hh:mm; YYYY year, MM month, DD day, hh hour and mm minute."] = "格式为YYYY-MM-DD HH:MM;YYYY年、MM月、DD日、HH小时和MM分钟";
-$a->strings["End of the Blackout"] = "结束维护";
-$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."] = "注意:从您按下提交按钮的那一刻起,重定向将处于活动状态。当前登录的用户不会被驱逐,但如果仍处于维护状态,则在注销后不能再次登录。";
+strings["Submit"] = "提交";
diff --git a/blockbot/blockbot.php b/blockbot/blockbot.php
deleted file mode 100644
index b602bf63..00000000
--- a/blockbot/blockbot.php
+++ /dev/null
@@ -1,132 +0,0 @@
-
- * Author: Michael Vogel
- *
- */
-
-use Friendica\App;
-use Friendica\Core\Hook;
-use Friendica\Core\System;
-use Friendica\DI;
-use Jaybizzle\CrawlerDetect\CrawlerDetect;
-use Friendica\Core\Logger;
-use Friendica\Core\Renderer;
-
-require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
-
-function blockbot_install() {
- Hook::register('init_1', __FILE__, 'blockbot_init_1');
-}
-
-function blockbot_addon_admin(&$a, &$o) {
- $t = Renderer::getMarkupTemplate("admin.tpl", "addon/blockbot/");
-
- $o = Renderer::replaceMacros($t, [
- '$submit' => DI::l10n()->t('Save Settings'),
- '$good_crawlers' => ['good_crawlers', DI::l10n()->t('Allow "good" crawlers'), DI::config()->get('blockbot', 'good_crawlers'), "Don't block fediverse crawlers, relay servers and other bots with good purposes."],
- '$block_gab' => ['block_gab', DI::l10n()->t('Block GabSocial'), DI::config()->get('blockbot', 'block_gab'), 'Block the software GabSocial. This will block every access for that software. You can block dedicated gab instances in the blocklist settings in the admin section.'],
- '$training' => ['training', DI::l10n()->t('Training mode'), DI::config()->get('blockbot', 'training'), "Activates the training mode. This is only meant for developing purposes. Don't activate this on a production machine. This can cut communication with some systems."],
- ]);
-}
-
-function blockbot_addon_admin_post(&$a) {
- DI::config()->set('blockbot', 'good_crawlers', $_POST['good_crawlers'] ?? false);
- DI::config()->set('blockbot', 'block_gab', $_POST['block_gab'] ?? false);
- DI::config()->set('blockbot', 'training', $_POST['training'] ?? false);
-}
-
-function blockbot_init_1(App $a) {
- if (empty($_SERVER['HTTP_USER_AGENT'])) {
- return;
- }
-
- $logdata = ['agent' => $_SERVER['HTTP_USER_AGENT'], 'uri' => $_SERVER['REQUEST_URI']];
-
- // List of "good" crawlers
- $good_agents = ['fediverse.space crawler', 'fediverse.network crawler', 'Active_Pods_CheckBot_3.0',
- 'Social-Relay/', 'Test Certificate Info', 'Uptimebot/', 'GNUSocialBot', 'UptimeRobot/',
- 'PTST/'];
-
- // List of known crawlers.
- $agents = ['SemrushBot', 's~feedly-nikon3', 'Qwantify/Bleriot/', 'ltx71', 'Sogou web spider/',
- 'Diffbot/', 'Twitterbot/', 'YisouSpider', 'evc-batch/', 'LivelapBot/', 'TrendsmapResolver/',
- 'PaperLiBot/', 'Nuzzel', 'um-LN/', 'Google Favicon', 'Datanyze', 'BLEXBot/', '360Spider',
- 'adscanner/', 'HeadlessChrome', 'wpif', 'startmebot/', 'Googlebot/', 'Applebot/',
- 'facebookexternalhit/', 'GoogleImageProxy', 'bingbot/', 'heritrix/', 'ldspider',
- 'AwarioRssBot/', 'Zabbix', 'TweetmemeBot/', 'dcrawl/', 'PhantomJS/', 'Googlebot-Image/',
- 'CrowdTanglebot/', 'Mediapartners-Google', 'Baiduspider/', 'datagnionbot',
- 'MegaIndex.ru/', 'SMUrlExpander', 'Hatena-Favicon/', 'Wappalyzer', 'FlipboardProxy/',
- 'NetcraftSurveyAgent/', 'Dataprovider.com', 'SMTBot/', 'Nimbostratus-Bot/',
- 'DuckDuckGo-Favicons-Bot/', 'IndieWebCards/', 'proximic', 'netEstate NE Crawler',
- 'AhrefsBot/', 'YandexBot/', 'Exabot/', 'Mediumbot-MetaTagFetcher/', 'WhatsApp/',
- 'TelegramBot', 'SurdotlyBot/', 'BingPreview/', 'SabsimBot/', 'CCBot/', 'WbSrch/',
- 'DuckDuckBot-Https/', 'HTTP Banner Detection', 'YandexImages/', 'archive.org_bot',
- 'ArchiveTeam ArchiveBot/', 'yacybot', 'https://developers.google.com/+/web/snippet/',
- 'Scrapy/', 'github-camo', 'MJ12bot/', 'DotBot/', 'Pinterestbot/', 'Jooblebot/',
- 'Cliqzbot/', 'YaK/', 'Mediatoolkitbot', 'Snacktory', 'FunWebProducts', 'oBot/',
- '7Siters/', 'KOCMOHABT', 'Google-SearchByImage', 'FemtosearchBot/',
- 'HubSpot Crawler', 'DomainStatsBot/', 'Re-re Studio', 'AwarioSmartBot/',
- 'SummalyBot/', 'DNSResearchBot/', 'PetalBot;', 'Nmap Scripting Engine;',
- 'Google-Apps-Script; beanserver;', 'woorankreview/', 'Seekport Crawler;', 'AHC/',
- 'SkypeUriPreview Preview/', 'Semanticbot/', 'Embed PHP library', 'XoviOnpageCrawler;',
- 'GetHPinfo.com-Bot/', 'BoardReader Favicon Fetcher'];
-
- if (!DI::config()->get('blockbot', 'good_crawlers')) {
- $agents = array_merge($agents, $good_agents);
- } else {
- foreach ($good_agents as $good_agent) {
- if (stristr($_SERVER['HTTP_USER_AGENT'], $good_agent)) {
- return;
- }
- }
- }
-
- if (DI::config()->get('blockbot', 'block_gab')) {
- $agents[] = 'GabSocial/';
- }
-
- foreach ($agents as $agent) {
- if (stristr($_SERVER['HTTP_USER_AGENT'], $agent)) {
- System::httpExit(403, 'Bots are not allowed');
- }
- }
-
- // This switch here is only meant for developers who want to add more bots to the list above, it is not safe for production.
- if (!DI::config()->get('blockbot', 'training')) {
- return;
- }
-
- $crawlerDetect = new CrawlerDetect();
-
- if (!$crawlerDetect->isCrawler()) {
- logger::debug('Good user agent detected', $logdata);
- return;
- }
-
- // List of false positives' strings of known "good" agents.
- $agents = ['curl', 'zgrab', 'Go-http-client', 'curb', 'github.com', 'reqwest', 'Feedly/',
- 'Python-urllib/', 'Liferea/', 'aiohttp/', 'WordPress.com Reader', 'hackney/',
- 'Faraday v', 'okhttp', 'UniversalFeedParser', 'PixelFedBot', 'python-requests',
- 'WordPress/', 'http.rb/', 'Apache-HttpClient/', 'WordPress.com;', 'Pleroma',
- 'Dispatch/', 'Ruby', 'Java/', 'libwww-perl/', 'Mastodon/', 'FeedlyApp/',
- 'lua-resty-http/', 'Tiny Tiny RSS/', 'Wget/', 'PostmanRuntime/',
- 'W3C_Validator/', 'NetNewsWire', 'FeedValidator/', 'theoldreader.com'];
-
- if (DI::config()->get('blockbot', 'good_crawlers')) {
- $agents = array_merge($agents, $good_agents);
- }
-
- foreach ($agents as $agent) {
- if (stristr($_SERVER['HTTP_USER_AGENT'], $agent)) {
- logger::notice('False positive', $logdata);
- return;
- }
- }
-
- logger::info('Blocked bot', $logdata);
- System::httpExit(403, 'Bots are not allowed');
-}
diff --git a/blockbot/composer.json b/blockbot/composer.json
deleted file mode 100644
index f13a2d17..00000000
--- a/blockbot/composer.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "friendica-addons/blockbot",
- "description": "Blocking bots based on detecting bots/crawlers/spiders via the user agent and http_from header.",
- "type": "friendica-addon",
- "authors": [
- {
- "name": "Philipp Holzer",
- "email": "admin@philipp.info",
- "homepage": "https://friendica.philipp.info/profile/nupplaphil",
- "role": "Developer"
- }
- ],
- "require": {
- "php": ">=5.6.0",
- "jaybizzle/crawler-detect": "1.*"
- },
- "license": "3-clause BSD license",
- "minimum-stability": "stable",
- "config": {
- "optimize-autoloader": true,
- "autoloader-suffix": "BlockBotAddon",
- "preferred-install": "dist"
- }
-}
diff --git a/blockbot/composer.lock b/blockbot/composer.lock
deleted file mode 100644
index 26b021b1..00000000
--- a/blockbot/composer.lock
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "814fd867d00e99f84d12304e8e244aae",
- "packages": [
- {
- "name": "jaybizzle/crawler-detect",
- "version": "v1.2.80",
- "source": {
- "type": "git",
- "url": "https://github.com/JayBizzle/Crawler-Detect.git",
- "reference": "af6a36e6d69670df3f0a3ed8e21d4b8cc67a7847"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/af6a36e6d69670df3f0a3ed8e21d4b8cc67a7847",
- "reference": "af6a36e6d69670df3f0a3ed8e21d4b8cc67a7847",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8|^5.5|^6.5",
- "satooshi/php-coveralls": "1.*"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Jaybizzle\\CrawlerDetect\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mark Beech",
- "email": "m@rkbee.ch",
- "role": "Developer"
- }
- ],
- "description": "CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent",
- "homepage": "https://github.com/JayBizzle/Crawler-Detect/",
- "keywords": [
- "crawler",
- "crawler detect",
- "crawler detector",
- "crawlerdetect",
- "php crawler detect"
- ],
- "time": "2019-04-05T19:52:02+00:00"
- }
- ],
- "packages-dev": [],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.6.0"
- },
- "platform-dev": []
-}
diff --git a/blockbot/lang/ca/messages.po b/blockbot/lang/ca/messages.po
deleted file mode 100644
index 521f1d44..00000000
--- a/blockbot/lang/ca/messages.po
+++ /dev/null
@@ -1,42 +0,0 @@
-# ADDON blockbot
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blockbot addon package.
-#
-#
-# Translators:
-# Joan Bar , 2019
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-07 09:03+0200\n"
-"PO-Revision-Date: 2019-08-07 07:43+0000\n"
-"Last-Translator: Joan Bar , 2019\n"
-"Language-Team: Catalan (https://www.transifex.com/Friendica/teams/12172/ca/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ca\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: blockbot.php:35
-msgid "Save Settings"
-msgstr "Desa la configuració"
-
-#: blockbot.php:36
-msgid "Allow \"good\" crawlers"
-msgstr "Permeti rastrejadors \"bons\""
-
-#: blockbot.php:37
-msgid "Block GabSocial"
-msgstr "Bloquejar GabSocial"
-
-#: blockbot.php:38
-msgid "Training mode"
-msgstr "Modalitat d'entrenament"
-
-#: blockbot.php:46
-msgid "Settings updated."
-msgstr "La configuració s'ha actualitzat."
diff --git a/blockbot/lang/ca/strings.php b/blockbot/lang/ca/strings.php
deleted file mode 100644
index 3f95ee05..00000000
--- a/blockbot/lang/ca/strings.php
+++ /dev/null
@@ -1,13 +0,0 @@
-strings["Save Settings"] = "Desa la configuració";
-$a->strings["Allow \"good\" crawlers"] = "Permeti rastrejadors \"bons\"";
-$a->strings["Block GabSocial"] = "Bloquejar GabSocial";
-$a->strings["Training mode"] = "Modalitat d'entrenament";
-$a->strings["Settings updated."] = "La configuració s'ha actualitzat.";
diff --git a/blockbot/lang/cs/messages.po b/blockbot/lang/cs/messages.po
deleted file mode 100644
index 5fdf4047..00000000
--- a/blockbot/lang/cs/messages.po
+++ /dev/null
@@ -1,42 +0,0 @@
-# ADDON blockbot
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blockbot addon package.
-#
-#
-# Translators:
-# Aditoo, 2019
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-07 09:03+0200\n"
-"PO-Revision-Date: 2019-08-07 07:43+0000\n"
-"Last-Translator: Aditoo, 2019\n"
-"Language-Team: Czech (https://www.transifex.com/Friendica/teams/12172/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=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
-
-#: blockbot.php:35
-msgid "Save Settings"
-msgstr "Uložit nastavení"
-
-#: blockbot.php:36
-msgid "Allow \"good\" crawlers"
-msgstr "Povolit „dobré“ crawlery"
-
-#: blockbot.php:37
-msgid "Block GabSocial"
-msgstr "Zablokovat GabSocial"
-
-#: blockbot.php:38
-msgid "Training mode"
-msgstr "Trénovací režim"
-
-#: blockbot.php:46
-msgid "Settings updated."
-msgstr "Nastavení aktualizována."
diff --git a/blockbot/lang/cs/strings.php b/blockbot/lang/cs/strings.php
deleted file mode 100644
index d3c5a2dd..00000000
--- a/blockbot/lang/cs/strings.php
+++ /dev/null
@@ -1,13 +0,0 @@
-= 2 && $n <= 4 && $n % 1 == 0) ? 1: ($n % 1 != 0 ) ? 2 : 3;;
-}}
-;
-$a->strings["Save Settings"] = "Uložit nastavení";
-$a->strings["Allow \"good\" crawlers"] = "Povolit „dobré“ crawlery";
-$a->strings["Block GabSocial"] = "Zablokovat GabSocial";
-$a->strings["Training mode"] = "Trénovací režim";
-$a->strings["Settings updated."] = "Nastavení aktualizována.";
diff --git a/blockbot/lang/de/messages.po b/blockbot/lang/de/messages.po
deleted file mode 100644
index 55fe2097..00000000
--- a/blockbot/lang/de/messages.po
+++ /dev/null
@@ -1,43 +0,0 @@
-# ADDON blockbot
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blockbot addon package.
-#
-#
-# Translators:
-# Tobias Diekershoff , 2019
-# Vinzenz Vietzke , 2019
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-07 09:03+0200\n"
-"PO-Revision-Date: 2019-08-07 07:43+0000\n"
-"Last-Translator: Vinzenz Vietzke , 2019\n"
-"Language-Team: German (https://www.transifex.com/Friendica/teams/12172/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"
-
-#: blockbot.php:35
-msgid "Save Settings"
-msgstr "Einstellungen speichern"
-
-#: blockbot.php:36
-msgid "Allow \"good\" crawlers"
-msgstr "\"Gute\" Crawler erlauben"
-
-#: blockbot.php:37
-msgid "Block GabSocial"
-msgstr "GabSocial Instanzen blockieren"
-
-#: blockbot.php:38
-msgid "Training mode"
-msgstr "Trainingsmodus"
-
-#: blockbot.php:46
-msgid "Settings updated."
-msgstr "Einstellungen aktualisiert."
diff --git a/blockbot/lang/de/strings.php b/blockbot/lang/de/strings.php
deleted file mode 100644
index db52f710..00000000
--- a/blockbot/lang/de/strings.php
+++ /dev/null
@@ -1,13 +0,0 @@
-strings["Save Settings"] = "Einstellungen speichern";
-$a->strings["Allow \"good\" crawlers"] = "\"Gute\" Crawler erlauben";
-$a->strings["Block GabSocial"] = "GabSocial Instanzen blockieren";
-$a->strings["Training mode"] = "Trainingsmodus";
-$a->strings["Settings updated."] = "Einstellungen aktualisiert.";
diff --git a/blockbot/lang/en-gb/messages.po b/blockbot/lang/en-gb/messages.po
deleted file mode 100644
index b88c1123..00000000
--- a/blockbot/lang/en-gb/messages.po
+++ /dev/null
@@ -1,42 +0,0 @@
-# ADDON blockbot
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blockbot addon package.
-#
-#
-# Translators:
-# Andy H3 , 2019
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-07 09:03+0200\n"
-"PO-Revision-Date: 2019-08-07 07:43+0000\n"
-"Last-Translator: Andy H3 , 2019\n"
-"Language-Team: English (United Kingdom) (https://www.transifex.com/Friendica/teams/12172/en_GB/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: en_GB\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: blockbot.php:35
-msgid "Save Settings"
-msgstr "Save Settings"
-
-#: blockbot.php:36
-msgid "Allow \"good\" crawlers"
-msgstr "Allow \"good\" crawlers"
-
-#: blockbot.php:37
-msgid "Block GabSocial"
-msgstr "Block GabSocial"
-
-#: blockbot.php:38
-msgid "Training mode"
-msgstr "Training mode"
-
-#: blockbot.php:46
-msgid "Settings updated."
-msgstr "Settings updated."
diff --git a/blockbot/lang/en-gb/strings.php b/blockbot/lang/en-gb/strings.php
deleted file mode 100644
index f5299bf5..00000000
--- a/blockbot/lang/en-gb/strings.php
+++ /dev/null
@@ -1,13 +0,0 @@
-strings["Save Settings"] = "Save Settings";
-$a->strings["Allow \"good\" crawlers"] = "Allow \"good\" crawlers";
-$a->strings["Block GabSocial"] = "Block GabSocial";
-$a->strings["Training mode"] = "Training mode";
-$a->strings["Settings updated."] = "Settings updated.";
diff --git a/blockbot/lang/es/messages.po b/blockbot/lang/es/messages.po
deleted file mode 100644
index 2f7cd499..00000000
--- a/blockbot/lang/es/messages.po
+++ /dev/null
@@ -1,42 +0,0 @@
-# ADDON blockbot
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blockbot addon package.
-#
-#
-# Translators:
-# Julio Cova, 2019
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-07 09:03+0200\n"
-"PO-Revision-Date: 2019-08-07 07:43+0000\n"
-"Last-Translator: Julio Cova, 2019\n"
-"Language-Team: Spanish (https://www.transifex.com/Friendica/teams/12172/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"
-
-#: blockbot.php:35
-msgid "Save Settings"
-msgstr "Guardar ajustes"
-
-#: blockbot.php:36
-msgid "Allow \"good\" crawlers"
-msgstr "Permitir rastreadores web \"buenos\""
-
-#: blockbot.php:37
-msgid "Block GabSocial"
-msgstr "Bloquear GabSocial"
-
-#: blockbot.php:38
-msgid "Training mode"
-msgstr "Modo de entrenamiento"
-
-#: blockbot.php:46
-msgid "Settings updated."
-msgstr "Ajustes actualizados."
diff --git a/blockbot/lang/es/strings.php b/blockbot/lang/es/strings.php
deleted file mode 100644
index 813864c8..00000000
--- a/blockbot/lang/es/strings.php
+++ /dev/null
@@ -1,13 +0,0 @@
-strings["Save Settings"] = "Guardar ajustes";
-$a->strings["Allow \"good\" crawlers"] = "Permitir rastreadores web \"buenos\"";
-$a->strings["Block GabSocial"] = "Bloquear GabSocial";
-$a->strings["Training mode"] = "Modo de entrenamiento";
-$a->strings["Settings updated."] = "Ajustes actualizados.";
diff --git a/blockbot/lang/fr/messages.po b/blockbot/lang/fr/messages.po
deleted file mode 100644
index 500f0a8e..00000000
--- a/blockbot/lang/fr/messages.po
+++ /dev/null
@@ -1,42 +0,0 @@
-# ADDON blockbot
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blockbot addon package.
-#
-#
-# Translators:
-# Phigger Phigger , 2019
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-07 09:03+0200\n"
-"PO-Revision-Date: 2019-08-07 07:43+0000\n"
-"Last-Translator: Phigger Phigger , 2019\n"
-"Language-Team: French (https://www.transifex.com/Friendica/teams/12172/fr/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: fr\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-
-#: blockbot.php:35
-msgid "Save Settings"
-msgstr "Enregistrer les Paramètres"
-
-#: blockbot.php:36
-msgid "Allow \"good\" crawlers"
-msgstr "Autoriser les \"bons\" crawlers"
-
-#: blockbot.php:37
-msgid "Block GabSocial"
-msgstr "Bloquer GabSocial"
-
-#: blockbot.php:38
-msgid "Training mode"
-msgstr "Mode d'entraînement"
-
-#: blockbot.php:46
-msgid "Settings updated."
-msgstr "Paramètres mis à jour."
diff --git a/blockbot/lang/fr/strings.php b/blockbot/lang/fr/strings.php
deleted file mode 100644
index 1597735a..00000000
--- a/blockbot/lang/fr/strings.php
+++ /dev/null
@@ -1,13 +0,0 @@
- 1);;
-}}
-;
-$a->strings["Save Settings"] = "Enregistrer les Paramètres";
-$a->strings["Allow \"good\" crawlers"] = "Autoriser les \"bons\" crawlers";
-$a->strings["Block GabSocial"] = "Bloquer GabSocial";
-$a->strings["Training mode"] = "Mode d'entraînement";
-$a->strings["Settings updated."] = "Paramètres mis à jour.";
diff --git a/blockbot/lang/it/messages.po b/blockbot/lang/it/messages.po
deleted file mode 100644
index 06db4426..00000000
--- a/blockbot/lang/it/messages.po
+++ /dev/null
@@ -1,42 +0,0 @@
-# ADDON blockbot
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blockbot addon package.
-#
-#
-# Translators:
-# Sylke Vicious , 2020
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-07 09:03+0200\n"
-"PO-Revision-Date: 2019-08-07 07:43+0000\n"
-"Last-Translator: Sylke Vicious , 2020\n"
-"Language-Team: Italian (https://www.transifex.com/Friendica/teams/12172/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"
-
-#: blockbot.php:35
-msgid "Save Settings"
-msgstr "Salva Impostazioni"
-
-#: blockbot.php:36
-msgid "Allow \"good\" crawlers"
-msgstr "Permetti crawler \"buoni\""
-
-#: blockbot.php:37
-msgid "Block GabSocial"
-msgstr "Blocca GabSocial"
-
-#: blockbot.php:38
-msgid "Training mode"
-msgstr "Modalità addestramento"
-
-#: blockbot.php:46
-msgid "Settings updated."
-msgstr "Impostazioni aggiornate."
diff --git a/blockbot/lang/it/strings.php b/blockbot/lang/it/strings.php
deleted file mode 100644
index 64de6d40..00000000
--- a/blockbot/lang/it/strings.php
+++ /dev/null
@@ -1,13 +0,0 @@
-strings["Save Settings"] = "Salva Impostazioni";
-$a->strings["Allow \"good\" crawlers"] = "Permetti crawler \"buoni\"";
-$a->strings["Block GabSocial"] = "Blocca GabSocial";
-$a->strings["Training mode"] = "Modalità addestramento";
-$a->strings["Settings updated."] = "Impostazioni aggiornate.";
diff --git a/blockbot/lang/nl/messages.po b/blockbot/lang/nl/messages.po
deleted file mode 100644
index 57fecadd..00000000
--- a/blockbot/lang/nl/messages.po
+++ /dev/null
@@ -1,42 +0,0 @@
-# ADDON blockbot
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blockbot addon package.
-#
-#
-# Translators:
-# Jeroen De Meerleer , 2019
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-07 09:03+0200\n"
-"PO-Revision-Date: 2019-08-07 07:43+0000\n"
-"Last-Translator: Jeroen De Meerleer , 2019\n"
-"Language-Team: Dutch (https://www.transifex.com/Friendica/teams/12172/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"
-
-#: blockbot.php:35
-msgid "Save Settings"
-msgstr "Instellingen opslaan"
-
-#: blockbot.php:36
-msgid "Allow \"good\" crawlers"
-msgstr "\"Goede\" crawlers toestaan"
-
-#: blockbot.php:37
-msgid "Block GabSocial"
-msgstr "Blokeer GabSocial"
-
-#: blockbot.php:38
-msgid "Training mode"
-msgstr "Training modus"
-
-#: blockbot.php:46
-msgid "Settings updated."
-msgstr "Instellingen opgeslagen"
diff --git a/blockbot/lang/nl/strings.php b/blockbot/lang/nl/strings.php
deleted file mode 100644
index 18d9c2cc..00000000
--- a/blockbot/lang/nl/strings.php
+++ /dev/null
@@ -1,13 +0,0 @@
-strings["Save Settings"] = "Instellingen opslaan";
-$a->strings["Allow \"good\" crawlers"] = "\"Goede\" crawlers toestaan";
-$a->strings["Block GabSocial"] = "Blokeer GabSocial";
-$a->strings["Training mode"] = "Training modus";
-$a->strings["Settings updated."] = "Instellingen opgeslagen";
diff --git a/blockbot/lang/pl/messages.po b/blockbot/lang/pl/messages.po
deleted file mode 100644
index f3cf082f..00000000
--- a/blockbot/lang/pl/messages.po
+++ /dev/null
@@ -1,42 +0,0 @@
-# ADDON blockbot
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blockbot addon package.
-#
-#
-# Translators:
-# Waldemar Stoczkowski, 2019
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-07 09:03+0200\n"
-"PO-Revision-Date: 2019-08-07 07:43+0000\n"
-"Last-Translator: Waldemar Stoczkowski, 2019\n"
-"Language-Team: Polish (https://www.transifex.com/Friendica/teams/12172/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"
-
-#: blockbot.php:35
-msgid "Save Settings"
-msgstr "Zapisz ustawienia"
-
-#: blockbot.php:36
-msgid "Allow \"good\" crawlers"
-msgstr "Pozwól „dobrym” robotom"
-
-#: blockbot.php:37
-msgid "Block GabSocial"
-msgstr "Zablokuj GabSocial"
-
-#: blockbot.php:38
-msgid "Training mode"
-msgstr "Tryb treningowy"
-
-#: blockbot.php:46
-msgid "Settings updated."
-msgstr "Ustawienia zaktualizowane."
diff --git a/blockbot/lang/ru/messages.po b/blockbot/lang/ru/messages.po
deleted file mode 100644
index d66e74b4..00000000
--- a/blockbot/lang/ru/messages.po
+++ /dev/null
@@ -1,43 +0,0 @@
-# ADDON blockbot
-# Copyright (C)
-# This file is distributed under the same license as the Friendica blockbot addon package.
-#
-#
-# Translators:
-# Alexey Adamov <2077@tutanota.com>, 2019
-# Eugene Veresk , 2020
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-07 09:03+0200\n"
-"PO-Revision-Date: 2019-08-07 07:43+0000\n"
-"Last-Translator: Eugene Veresk , 2020\n"
-"Language-Team: Russian (https://www.transifex.com/Friendica/teams/12172/ru/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ru\n"
-"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
-
-#: blockbot.php:35
-msgid "Save Settings"
-msgstr "Сохранить настройки"
-
-#: blockbot.php:36
-msgid "Allow \"good\" crawlers"
-msgstr "Разрешить \"хороших\" поисковых роботов"
-
-#: blockbot.php:37
-msgid "Block GabSocial"
-msgstr "Блокировать GabSocial"
-
-#: blockbot.php:38
-msgid "Training mode"
-msgstr "Режим обучения"
-
-#: blockbot.php:46
-msgid "Settings updated."
-msgstr "Настройки изменены"
diff --git a/blockbot/lang/ru/strings.php b/blockbot/lang/ru/strings.php
deleted file mode 100644
index 5467b0dd..00000000
--- a/blockbot/lang/ru/strings.php
+++ /dev/null
@@ -1,13 +0,0 @@
-=2 && $n%10<=4 && ($n%100<12 || $n%100>14) ? 1 : $n%10==0 || ($n%10>=5 && $n%10<=9) || ($n%100>=11 && $n%100<=14)? 2 : 3);;
-}}
-;
-$a->strings["Save Settings"] = "Сохранить настройки";
-$a->strings["Allow \"good\" crawlers"] = "Разрешить \"хороших\" поисковых роботов";
-$a->strings["Block GabSocial"] = "Блокировать GabSocial";
-$a->strings["Training mode"] = "Режим обучения";
-$a->strings["Settings updated."] = "Настройки изменены";
diff --git a/blockbot/templates/admin.tpl b/blockbot/templates/admin.tpl
deleted file mode 100644
index a6de1bd3..00000000
--- a/blockbot/templates/admin.tpl
+++ /dev/null
@@ -1,4 +0,0 @@
-{{include file="field_checkbox.tpl" field=$good_crawlers}}
-{{include file="field_checkbox.tpl" field=$block_gab}}
-{{include file="field_checkbox.tpl" field=$training}}
-
diff --git a/blockbot/vendor/autoload.php b/blockbot/vendor/autoload.php
deleted file mode 100644
index d3101347..00000000
--- a/blockbot/vendor/autoload.php
+++ /dev/null
@@ -1,7 +0,0 @@
-
- * Jordi Boggiano
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Composer\Autoload;
-
-/**
- * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
- *
- * $loader = new \Composer\Autoload\ClassLoader();
- *
- * // register classes with namespaces
- * $loader->add('Symfony\Component', __DIR__.'/component');
- * $loader->add('Symfony', __DIR__.'/framework');
- *
- * // activate the autoloader
- * $loader->register();
- *
- * // to enable searching the include path (eg. for PEAR packages)
- * $loader->setUseIncludePath(true);
- *
- * In this example, if you try to use a class in the Symfony\Component
- * namespace or one of its children (Symfony\Component\Console for instance),
- * the autoloader will first look for the class under the component/
- * directory, and it will then fallback to the framework/ directory if not
- * found before giving up.
- *
- * This class is loosely based on the Symfony UniversalClassLoader.
- *
- * @author Fabien Potencier
- * @author Jordi Boggiano
- * @see http://www.php-fig.org/psr/psr-0/
- * @see http://www.php-fig.org/psr/psr-4/
- */
-class ClassLoader
-{
- // PSR-4
- private $prefixLengthsPsr4 = array();
- private $prefixDirsPsr4 = array();
- private $fallbackDirsPsr4 = array();
-
- // PSR-0
- private $prefixesPsr0 = array();
- private $fallbackDirsPsr0 = array();
-
- private $useIncludePath = false;
- private $classMap = array();
- private $classMapAuthoritative = false;
- private $missingClasses = array();
- private $apcuPrefix;
-
- public function getPrefixes()
- {
- if (!empty($this->prefixesPsr0)) {
- return call_user_func_array('array_merge', $this->prefixesPsr0);
- }
-
- return array();
- }
-
- public function getPrefixesPsr4()
- {
- return $this->prefixDirsPsr4;
- }
-
- public function getFallbackDirs()
- {
- return $this->fallbackDirsPsr0;
- }
-
- public function getFallbackDirsPsr4()
- {
- return $this->fallbackDirsPsr4;
- }
-
- public function getClassMap()
- {
- return $this->classMap;
- }
-
- /**
- * @param array $classMap Class to filename map
- */
- public function addClassMap(array $classMap)
- {
- if ($this->classMap) {
- $this->classMap = array_merge($this->classMap, $classMap);
- } else {
- $this->classMap = $classMap;
- }
- }
-
- /**
- * Registers a set of PSR-0 directories for a given prefix, either
- * appending or prepending to the ones previously set for this prefix.
- *
- * @param string $prefix The prefix
- * @param array|string $paths The PSR-0 root directories
- * @param bool $prepend Whether to prepend the directories
- */
- public function add($prefix, $paths, $prepend = false)
- {
- if (!$prefix) {
- if ($prepend) {
- $this->fallbackDirsPsr0 = array_merge(
- (array) $paths,
- $this->fallbackDirsPsr0
- );
- } else {
- $this->fallbackDirsPsr0 = array_merge(
- $this->fallbackDirsPsr0,
- (array) $paths
- );
- }
-
- return;
- }
-
- $first = $prefix[0];
- if (!isset($this->prefixesPsr0[$first][$prefix])) {
- $this->prefixesPsr0[$first][$prefix] = (array) $paths;
-
- return;
- }
- if ($prepend) {
- $this->prefixesPsr0[$first][$prefix] = array_merge(
- (array) $paths,
- $this->prefixesPsr0[$first][$prefix]
- );
- } else {
- $this->prefixesPsr0[$first][$prefix] = array_merge(
- $this->prefixesPsr0[$first][$prefix],
- (array) $paths
- );
- }
- }
-
- /**
- * Registers a set of PSR-4 directories for a given namespace, either
- * appending or prepending to the ones previously set for this namespace.
- *
- * @param string $prefix The prefix/namespace, with trailing '\\'
- * @param array|string $paths The PSR-4 base directories
- * @param bool $prepend Whether to prepend the directories
- *
- * @throws \InvalidArgumentException
- */
- public function addPsr4($prefix, $paths, $prepend = false)
- {
- if (!$prefix) {
- // Register directories for the root namespace.
- if ($prepend) {
- $this->fallbackDirsPsr4 = array_merge(
- (array) $paths,
- $this->fallbackDirsPsr4
- );
- } else {
- $this->fallbackDirsPsr4 = array_merge(
- $this->fallbackDirsPsr4,
- (array) $paths
- );
- }
- } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
- // Register directories for a new namespace.
- $length = strlen($prefix);
- if ('\\' !== $prefix[$length - 1]) {
- throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
- }
- $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
- $this->prefixDirsPsr4[$prefix] = (array) $paths;
- } elseif ($prepend) {
- // Prepend directories for an already registered namespace.
- $this->prefixDirsPsr4[$prefix] = array_merge(
- (array) $paths,
- $this->prefixDirsPsr4[$prefix]
- );
- } else {
- // Append directories for an already registered namespace.
- $this->prefixDirsPsr4[$prefix] = array_merge(
- $this->prefixDirsPsr4[$prefix],
- (array) $paths
- );
- }
- }
-
- /**
- * Registers a set of PSR-0 directories for a given prefix,
- * replacing any others previously set for this prefix.
- *
- * @param string $prefix The prefix
- * @param array|string $paths The PSR-0 base directories
- */
- public function set($prefix, $paths)
- {
- if (!$prefix) {
- $this->fallbackDirsPsr0 = (array) $paths;
- } else {
- $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
- }
- }
-
- /**
- * Registers a set of PSR-4 directories for a given namespace,
- * replacing any others previously set for this namespace.
- *
- * @param string $prefix The prefix/namespace, with trailing '\\'
- * @param array|string $paths The PSR-4 base directories
- *
- * @throws \InvalidArgumentException
- */
- public function setPsr4($prefix, $paths)
- {
- if (!$prefix) {
- $this->fallbackDirsPsr4 = (array) $paths;
- } else {
- $length = strlen($prefix);
- if ('\\' !== $prefix[$length - 1]) {
- throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
- }
- $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
- $this->prefixDirsPsr4[$prefix] = (array) $paths;
- }
- }
-
- /**
- * Turns on searching the include path for class files.
- *
- * @param bool $useIncludePath
- */
- public function setUseIncludePath($useIncludePath)
- {
- $this->useIncludePath = $useIncludePath;
- }
-
- /**
- * Can be used to check if the autoloader uses the include path to check
- * for classes.
- *
- * @return bool
- */
- public function getUseIncludePath()
- {
- return $this->useIncludePath;
- }
-
- /**
- * Turns off searching the prefix and fallback directories for classes
- * that have not been registered with the class map.
- *
- * @param bool $classMapAuthoritative
- */
- public function setClassMapAuthoritative($classMapAuthoritative)
- {
- $this->classMapAuthoritative = $classMapAuthoritative;
- }
-
- /**
- * Should class lookup fail if not found in the current class map?
- *
- * @return bool
- */
- public function isClassMapAuthoritative()
- {
- return $this->classMapAuthoritative;
- }
-
- /**
- * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
- *
- * @param string|null $apcuPrefix
- */
- public function setApcuPrefix($apcuPrefix)
- {
- $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
- }
-
- /**
- * The APCu prefix in use, or null if APCu caching is not enabled.
- *
- * @return string|null
- */
- public function getApcuPrefix()
- {
- return $this->apcuPrefix;
- }
-
- /**
- * Registers this instance as an autoloader.
- *
- * @param bool $prepend Whether to prepend the autoloader or not
- */
- public function register($prepend = false)
- {
- spl_autoload_register(array($this, 'loadClass'), true, $prepend);
- }
-
- /**
- * Unregisters this instance as an autoloader.
- */
- public function unregister()
- {
- spl_autoload_unregister(array($this, 'loadClass'));
- }
-
- /**
- * Loads the given class or interface.
- *
- * @param string $class The name of the class
- * @return bool|null True if loaded, null otherwise
- */
- public function loadClass($class)
- {
- if ($file = $this->findFile($class)) {
- includeFile($file);
-
- return true;
- }
- }
-
- /**
- * Finds the path to the file where the class is defined.
- *
- * @param string $class The name of the class
- *
- * @return string|false The path if found, false otherwise
- */
- public function findFile($class)
- {
- // class map lookup
- if (isset($this->classMap[$class])) {
- return $this->classMap[$class];
- }
- if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
- return false;
- }
- if (null !== $this->apcuPrefix) {
- $file = apcu_fetch($this->apcuPrefix.$class, $hit);
- if ($hit) {
- return $file;
- }
- }
-
- $file = $this->findFileWithExtension($class, '.php');
-
- // Search for Hack files if we are running on HHVM
- if (false === $file && defined('HHVM_VERSION')) {
- $file = $this->findFileWithExtension($class, '.hh');
- }
-
- if (null !== $this->apcuPrefix) {
- apcu_add($this->apcuPrefix.$class, $file);
- }
-
- if (false === $file) {
- // Remember that this class does not exist.
- $this->missingClasses[$class] = true;
- }
-
- return $file;
- }
-
- private function findFileWithExtension($class, $ext)
- {
- // PSR-4 lookup
- $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
-
- $first = $class[0];
- if (isset($this->prefixLengthsPsr4[$first])) {
- $subPath = $class;
- while (false !== $lastPos = strrpos($subPath, '\\')) {
- $subPath = substr($subPath, 0, $lastPos);
- $search = $subPath . '\\';
- if (isset($this->prefixDirsPsr4[$search])) {
- $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
- foreach ($this->prefixDirsPsr4[$search] as $dir) {
- if (file_exists($file = $dir . $pathEnd)) {
- return $file;
- }
- }
- }
- }
- }
-
- // PSR-4 fallback dirs
- foreach ($this->fallbackDirsPsr4 as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
- return $file;
- }
- }
-
- // PSR-0 lookup
- if (false !== $pos = strrpos($class, '\\')) {
- // namespaced class name
- $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
- . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
- } else {
- // PEAR-like class name
- $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
- }
-
- if (isset($this->prefixesPsr0[$first])) {
- foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
- if (0 === strpos($class, $prefix)) {
- foreach ($dirs as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
- return $file;
- }
- }
- }
- }
- }
-
- // PSR-0 fallback dirs
- foreach ($this->fallbackDirsPsr0 as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
- return $file;
- }
- }
-
- // PSR-0 include paths.
- if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
- return $file;
- }
-
- return false;
- }
-}
-
-/**
- * Scope isolated include.
- *
- * Prevents access to $this/self from included files.
- */
-function includeFile($file)
-{
- include $file;
-}
diff --git a/blockbot/vendor/composer/LICENSE b/blockbot/vendor/composer/LICENSE
deleted file mode 100644
index f27399a0..00000000
--- a/blockbot/vendor/composer/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-
-Copyright (c) Nils Adermann, Jordi Boggiano
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
diff --git a/blockbot/vendor/composer/autoload_classmap.php b/blockbot/vendor/composer/autoload_classmap.php
deleted file mode 100644
index e066512b..00000000
--- a/blockbot/vendor/composer/autoload_classmap.php
+++ /dev/null
@@ -1,14 +0,0 @@
- $vendorDir . '/jaybizzle/crawler-detect/src/CrawlerDetect.php',
- 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' => $vendorDir . '/jaybizzle/crawler-detect/src/Fixtures/AbstractProvider.php',
- 'Jaybizzle\\CrawlerDetect\\Fixtures\\Crawlers' => $vendorDir . '/jaybizzle/crawler-detect/src/Fixtures/Crawlers.php',
- 'Jaybizzle\\CrawlerDetect\\Fixtures\\Exclusions' => $vendorDir . '/jaybizzle/crawler-detect/src/Fixtures/Exclusions.php',
- 'Jaybizzle\\CrawlerDetect\\Fixtures\\Headers' => $vendorDir . '/jaybizzle/crawler-detect/src/Fixtures/Headers.php',
-);
diff --git a/blockbot/vendor/composer/autoload_namespaces.php b/blockbot/vendor/composer/autoload_namespaces.php
deleted file mode 100644
index b7fc0125..00000000
--- a/blockbot/vendor/composer/autoload_namespaces.php
+++ /dev/null
@@ -1,9 +0,0 @@
- array($vendorDir . '/jaybizzle/crawler-detect/src'),
-);
diff --git a/blockbot/vendor/composer/autoload_real.php b/blockbot/vendor/composer/autoload_real.php
deleted file mode 100644
index ccb886a2..00000000
--- a/blockbot/vendor/composer/autoload_real.php
+++ /dev/null
@@ -1,52 +0,0 @@
-= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
- if ($useStaticLoader) {
- require_once __DIR__ . '/autoload_static.php';
-
- call_user_func(\Composer\Autoload\ComposerStaticInitBlockBotAddon::getInitializer($loader));
- } else {
- $map = require __DIR__ . '/autoload_namespaces.php';
- foreach ($map as $namespace => $path) {
- $loader->set($namespace, $path);
- }
-
- $map = require __DIR__ . '/autoload_psr4.php';
- foreach ($map as $namespace => $path) {
- $loader->setPsr4($namespace, $path);
- }
-
- $classMap = require __DIR__ . '/autoload_classmap.php';
- if ($classMap) {
- $loader->addClassMap($classMap);
- }
- }
-
- $loader->register(true);
-
- return $loader;
- }
-}
diff --git a/blockbot/vendor/composer/autoload_static.php b/blockbot/vendor/composer/autoload_static.php
deleted file mode 100644
index 01987181..00000000
--- a/blockbot/vendor/composer/autoload_static.php
+++ /dev/null
@@ -1,40 +0,0 @@
-
- array (
- 'Jaybizzle\\CrawlerDetect\\' => 24,
- ),
- );
-
- public static $prefixDirsPsr4 = array (
- 'Jaybizzle\\CrawlerDetect\\' =>
- array (
- 0 => __DIR__ . '/..' . '/jaybizzle/crawler-detect/src',
- ),
- );
-
- public static $classMap = array (
- 'Jaybizzle\\CrawlerDetect\\CrawlerDetect' => __DIR__ . '/..' . '/jaybizzle/crawler-detect/src/CrawlerDetect.php',
- 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' => __DIR__ . '/..' . '/jaybizzle/crawler-detect/src/Fixtures/AbstractProvider.php',
- 'Jaybizzle\\CrawlerDetect\\Fixtures\\Crawlers' => __DIR__ . '/..' . '/jaybizzle/crawler-detect/src/Fixtures/Crawlers.php',
- 'Jaybizzle\\CrawlerDetect\\Fixtures\\Exclusions' => __DIR__ . '/..' . '/jaybizzle/crawler-detect/src/Fixtures/Exclusions.php',
- 'Jaybizzle\\CrawlerDetect\\Fixtures\\Headers' => __DIR__ . '/..' . '/jaybizzle/crawler-detect/src/Fixtures/Headers.php',
- );
-
- public static function getInitializer(ClassLoader $loader)
- {
- return \Closure::bind(function () use ($loader) {
- $loader->prefixLengthsPsr4 = ComposerStaticInitBlockBotAddon::$prefixLengthsPsr4;
- $loader->prefixDirsPsr4 = ComposerStaticInitBlockBotAddon::$prefixDirsPsr4;
- $loader->classMap = ComposerStaticInitBlockBotAddon::$classMap;
-
- }, null, ClassLoader::class);
- }
-}
diff --git a/blockbot/vendor/composer/installed.json b/blockbot/vendor/composer/installed.json
deleted file mode 100644
index d255d573..00000000
--- a/blockbot/vendor/composer/installed.json
+++ /dev/null
@@ -1,53 +0,0 @@
-[
- {
- "name": "jaybizzle/crawler-detect",
- "version": "v1.2.80",
- "version_normalized": "1.2.80.0",
- "source": {
- "type": "git",
- "url": "https://github.com/JayBizzle/Crawler-Detect.git",
- "reference": "af6a36e6d69670df3f0a3ed8e21d4b8cc67a7847"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/af6a36e6d69670df3f0a3ed8e21d4b8cc67a7847",
- "reference": "af6a36e6d69670df3f0a3ed8e21d4b8cc67a7847",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8|^5.5|^6.5",
- "satooshi/php-coveralls": "1.*"
- },
- "time": "2019-04-05T19:52:02+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Jaybizzle\\CrawlerDetect\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mark Beech",
- "email": "m@rkbee.ch",
- "role": "Developer"
- }
- ],
- "description": "CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent",
- "homepage": "https://github.com/JayBizzle/Crawler-Detect/",
- "keywords": [
- "crawler",
- "crawler detect",
- "crawler detector",
- "crawlerdetect",
- "php crawler detect"
- ]
- }
-]
diff --git a/blockbot/vendor/jaybizzle/crawler-detect/LICENSE b/blockbot/vendor/jaybizzle/crawler-detect/LICENSE
deleted file mode 100644
index 2f4e15e2..00000000
--- a/blockbot/vendor/jaybizzle/crawler-detect/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015-2018 Mark Beech
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
diff --git a/blockbot/vendor/jaybizzle/crawler-detect/README.md b/blockbot/vendor/jaybizzle/crawler-detect/README.md
deleted file mode 100644
index e7c25f3b..00000000
--- a/blockbot/vendor/jaybizzle/crawler-detect/README.md
+++ /dev/null
@@ -1,72 +0,0 @@
-
";
+ }
+
+ if(isset($_POST['value']))
+ $value = $_POST['value'];
+ else
+ $value = '';
+
+ $o .= '';
+
+ return $o;
+}
diff --git a/cookienotice/README b/cookienotice/README
index 247f53b1..74edd44a 100644
--- a/cookienotice/README
+++ b/cookienotice/README
@@ -2,8 +2,6 @@ Cookie Notice
For server admins only.
-Configure, show and handle a simple cookie usage notice.
-This absolute annoying but eventually necessary notification about the usage of cookies.
-This kind of things you click ok on but don't read.
+Configure, show and handle a simple cookie usage notice. This absolute annoying but eventually necessary notification about the usage of cookies. This kind of things you klick ok on but don't read.
-Author: Peter Liebetrau
+Author: Peter liebetrau
diff --git a/cookienotice/cookienotice.php b/cookienotice/cookienotice.php
index 4ca86280..376de1ad 100644
--- a/cookienotice/cookienotice.php
+++ b/cookienotice/cookienotice.php
@@ -5,71 +5,96 @@
* Description: Configure, show and handle a simple cookie notice
* Version: 1.0
* Author: Peter Liebetrau
+ *
*/
-
-use Friendica\App;
use Friendica\Core\Hook;
+use Friendica\Core\Config;
+use Friendica\Core\L10n;
use Friendica\Core\Renderer;
-use Friendica\DI;
/**
* cookienotice_install
* registers hooks
- *
+ *
* @return void
*/
function cookienotice_install()
{
Hook::register('page_content_top', __FILE__, 'cookienotice_page_content_top');
Hook::register('page_end', __FILE__, 'cookienotice_page_end');
+ Hook::register('addon_settings', __FILE__, 'cookienotice_addon_settings');
+ Hook::register('addon_settings_post', __FILE__, 'cookienotice_addon_settings_post');
}
/**
- * cookienotice_addon_admin
+ * cookienotice_uninstall
+ * unregisters hooks
+ *
+ * @return void
+*/
+function cookienotice_uninstall()
+{
+ Hook::unregister('page_content_top', __FILE__, 'cookienotice_page_content_top');
+ Hook::unregister('page_end', __FILE__, 'cookienotice_page_end');
+ Hook::unregister('addon_settings', __FILE__, 'cookienotice_addon_settings');
+ Hook::unregister('addon_settings_post', __FILE__, 'cookienotice_addon_settings_post');
+}
+
+/**
+ * cookienotice_addon_settings
+ * addon_settings hook
* creates the admins config panel
- *
- * @param App $a
+ *
+ * @param \Friendica\App $a
* @param string $s The existing config panel html so far
- *
+ *
* @return void
*/
-function cookienotice_addon_admin(App $a, &$s)
+function cookienotice_addon_settings(\Friendica\App $a, &$s)
{
if (!is_site_admin()) {
return;
}
- $text = DI::config()->get('cookienotice', 'text', DI::l10n()->t('This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.'));
- $oktext = DI::config()->get('cookienotice', 'oktext', DI::l10n()->t('OK'));
+ /* Add our stylesheet to the page so we can make our settings look nice */
+ $stylesheetPath = 'addon/cookienotice/cookienotice.css';
+ $a->registerStylesheet($stylesheetPath);
- $t = Renderer::getMarkupTemplate('admin.tpl', 'addon/cookienotice/');
+ $text = Config::get('cookienotice', 'text', L10n::t('This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.'));
+ $oktext = Config::get('cookienotice', 'oktext', L10n::t('OK'));
+
+ $t = Renderer::getMarkupTemplate("settings.tpl", "addon/cookienotice/");
$s .= Renderer::replaceMacros($t, [
- '$description' => DI::l10n()->t('Configure your cookie usage notice. It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button.'),
- '$text' => ['cookienotice-text', DI::l10n()->t('Cookie Usage Notice'), $text],
- '$oktext' => ['cookienotice-oktext', DI::l10n()->t('OK Button Text'), $oktext],
- '$submit' => DI::l10n()->t('Save Settings')
+ '$title' => L10n::t('"cookienotice" Settings'),
+ '$description' => L10n::t('Configure your cookie usage notice. It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button.'),
+ '$text' => ['cookienotice-text', L10n::t('Cookie Usage Notice'), $text, L10n::t('The cookie usage notice')],
+ '$oktext' => ['cookienotice-oktext', L10n::t('OK Button Text'), $oktext, L10n::t('The OK Button text')],
+ '$submit' => L10n::t('Save Settings')
]);
return;
}
/**
- * cookienotice_addon_admin_post
+ * cookienotice_addon_settings_post
+ * addon_settings_post hook
* handles the post request from the admin panel
- *
- * @param App $a
- *
+ *
+ * @param \Friendica\App $a
+ * @param string $b
+ *
* @return void
*/
-function cookienotice_addon_admin_post(App $a)
+function cookienotice_addon_settings_post(\Friendica\App $a, &$b)
{
if (!is_site_admin()) {
return;
}
if ($_POST['cookienotice-submit']) {
- DI::config()->set('cookienotice', 'text', trim(strip_tags($_POST['cookienotice-text'])));
- DI::config()->set('cookienotice', 'oktext', trim(strip_tags($_POST['cookienotice-oktext'])));
+ Config::set('cookienotice', 'text', trim(strip_tags($_POST['cookienotice-text'])));
+ Config::set('cookienotice', 'oktext', trim(strip_tags($_POST['cookienotice-oktext'])));
+ info(L10n::t('cookienotice Settings saved.') . EOL);
}
}
@@ -77,37 +102,37 @@ function cookienotice_addon_admin_post(App $a)
* cookienotice_page_content_top
* page_content_top hook
* adds css and scripts to the section of the html
- *
- * @param App $a
- * @param string $b unused - the header html incl. nav
- *
+ *
+ * @param \Friendica\App $a
+ * @param string $b unnused - the header html incl. nav
+ *
* @return void
*/
-function cookienotice_page_content_top(App $a, &$b)
+function cookienotice_page_content_top(\Friendica\App $a, &$b)
{
- $stylesheetPath = __DIR__ . '/cookienotice.css';
- $footerscriptPath = __DIR__ . '/cookienotice.js';
+ $stylesheetPath = 'addon/cookienotice/cookienotice.css';
+ $footerscriptPath = 'addon/cookienotice/cookienotice.js';
- DI::page()->registerStylesheet($stylesheetPath);
- DI::page()->registerFooterScript($footerscriptPath);
+ $a->registerStylesheet($stylesheetPath);
+ $a->registerFooterScript($footerscriptPath);
}
/**
* cookienotice_page_end
* page_end hook
* ads our cookienotice box to the end of the html
- *
- * @param App $a
+ *
+ * @param \Friendica\App $a
* @param string $b the page html
- *
+ *
* @return void
*/
-function cookienotice_page_end(App $a, &$b)
+function cookienotice_page_end(\Friendica\App $a, &$b)
{
- $text = (string)DI::config()->get('cookienotice', 'text', DI::l10n()->t('This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.'));
- $oktext = (string)DI::config()->get('cookienotice', 'oktext', DI::l10n()->t('OK'));
+ $text = (string) Config::get('cookienotice', 'text', L10n::t('This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.'));
+ $oktext = (string) Config::get('cookienotice', 'oktext', L10n::t('OK'));
- $page_end_tpl = Renderer::getMarkupTemplate('cookienotice.tpl', 'addon/cookienotice/');
+ $page_end_tpl = Renderer::getMarkupTemplate("cookienotice.tpl", "addon/cookienotice/");
$page_end = Renderer::replaceMacros($page_end_tpl, [
'$text' => $text,
diff --git a/cookienotice/lang/ca/messages.po b/cookienotice/lang/ca/messages.po
deleted file mode 100644
index 37483426..00000000
--- a/cookienotice/lang/ca/messages.po
+++ /dev/null
@@ -1,81 +0,0 @@
-# ADDON cookienotice
-# Copyright (C)
-# This file is distributed under the same license as the Friendica cookienotice addon package.
-#
-#
-# Translators:
-# Joan Bar , 2019
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-01-30 10:48+0100\n"
-"PO-Revision-Date: 2019-01-23 16:01+0000\n"
-"Last-Translator: Joan Bar , 2019\n"
-"Language-Team: Catalan (https://www.transifex.com/Friendica/teams/12172/ca/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ca\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: cookienotice.php:63
-msgid ""
-"This website uses cookies. If you continue browsing this website, you agree "
-"to the usage of cookies."
-msgstr ""
-"Aquest lloc web utilitza cookies. Si continueu navegant per aquest lloc web,"
-" esteu d’acord amb l’ús de cookies."
-
-#: cookienotice.php:64 cookienotice.php:133
-msgid "OK"
-msgstr "D'acord"
-
-#: cookienotice.php:68
-msgid "\"cookienotice\" Settings"
-msgstr "Configuració 'cookienotice'"
-
-#: cookienotice.php:69
-msgid ""
-"Configure your cookie usage notice. It should just be a notice, "
-"saying that the website uses cookies. It is shown as long as a user didnt "
-"confirm clicking the OK button."
-msgstr ""
-"Configureu l’avís d’ús de cookies. Només hauria de ser un avís, dient"
-" que el lloc web utilitza cookies. Es mostra sempre que un usuari no "
-"confirmi el seu clic al botó D'acord"
-
-#: cookienotice.php:70
-msgid "Cookie Usage Notice"
-msgstr "Avís d’ús de cookies"
-
-#: cookienotice.php:70
-msgid "The cookie usage notice"
-msgstr "L’avís d’ús de cookies"
-
-#: cookienotice.php:71
-msgid "OK Button Text"
-msgstr "Text del botó d’acord"
-
-#: cookienotice.php:71
-msgid "The OK Button text"
-msgstr "Text del botó D'acord"
-
-#: cookienotice.php:72
-msgid "Save Settings"
-msgstr "Desa la configuració"
-
-#: cookienotice.php:97
-msgid "cookienotice Settings saved."
-msgstr "Cookienotice S'ha desat la configuració."
-
-#: cookienotice.php:132
-msgid ""
-"This website uses cookies to recognize revisiting and logged in users. You "
-"accept the usage of these cookies by continue browsing this website."
-msgstr ""
-"Aquest lloc web utilitza cookies per reconèixer la revisió i la sessió "
-"d’usuaris. Accepteu l’ús d’aquestes cookies continuant navegant per aquest "
-"lloc web."
diff --git a/cookienotice/lang/ca/strings.php b/cookienotice/lang/ca/strings.php
deleted file mode 100644
index fd662e21..00000000
--- a/cookienotice/lang/ca/strings.php
+++ /dev/null
@@ -1,19 +0,0 @@
-strings["This website uses cookies. If you continue browsing this website, you agree to the usage of cookies."] = "Aquest lloc web utilitza cookies. Si continueu navegant per aquest lloc web, esteu d’acord amb l’ús de cookies.";
-$a->strings["OK"] = "D'acord";
-$a->strings["\"cookienotice\" Settings"] = "Configuració 'cookienotice'";
-$a->strings["Configure your cookie usage notice. It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button."] = "Configureu l’avís d’ús de cookies. Només hauria de ser un avís, dient que el lloc web utilitza cookies. Es mostra sempre que un usuari no confirmi el seu clic al botó D'acord";
-$a->strings["Cookie Usage Notice"] = "Avís d’ús de cookies";
-$a->strings["The cookie usage notice"] = "L’avís d’ús de cookies";
-$a->strings["OK Button Text"] = "Text del botó d’acord";
-$a->strings["The OK Button text"] = "Text del botó D'acord";
-$a->strings["Save Settings"] = "Desa la configuració";
-$a->strings["cookienotice Settings saved."] = "Cookienotice S'ha desat la configuració.";
-$a->strings["This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website."] = "Aquest lloc web utilitza cookies per reconèixer la revisió i la sessió d’usuaris. Accepteu l’ús d’aquestes cookies continuant navegant per aquest lloc web.";
diff --git a/cookienotice/lang/en-gb/messages.po b/cookienotice/lang/en-gb/messages.po
index 280030b8..fdea6b27 100644
--- a/cookienotice/lang/en-gb/messages.po
+++ b/cookienotice/lang/en-gb/messages.po
@@ -49,7 +49,7 @@ msgstr ""
#: cookienotice.php:70
msgid "Cookie Usage Notice"
-msgstr "Cookie usage notice"
+msgstr "Cookie Usage Notice"
#: cookienotice.php:70
msgid "The cookie usage notice"
@@ -57,24 +57,22 @@ msgstr "The cookie usage notice"
#: cookienotice.php:71
msgid "OK Button Text"
-msgstr "OK button text"
+msgstr ""
#: cookienotice.php:71
msgid "The OK Button text"
-msgstr "OK button text"
+msgstr ""
#: cookienotice.php:72
msgid "Save Settings"
-msgstr "Save settings"
+msgstr ""
#: cookienotice.php:97
msgid "cookienotice Settings saved."
-msgstr "Cookie notice settings saved."
+msgstr ""
#: cookienotice.php:132
msgid ""
"This website uses cookies to recognize revisiting and logged in users. You "
"accept the usage of these cookies by continue browsing this website."
msgstr ""
-"This website uses cookies to recognize revisiting and logged in users. You "
-"accept the usage of these cookies by continue browsing this website."
diff --git a/cookienotice/lang/en-gb/strings.php b/cookienotice/lang/en-gb/strings.php
index 0acb4196..2cefe6cf 100644
--- a/cookienotice/lang/en-gb/strings.php
+++ b/cookienotice/lang/en-gb/strings.php
@@ -10,10 +10,10 @@ $a->strings["This website uses cookies. If you continue browsing this website, y
$a->strings["OK"] = "OK";
$a->strings["\"cookienotice\" Settings"] = "\"cookienotice\" settings";
$a->strings["Configure your cookie usage notice. It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button."] = "Configure your cookie usage notice. It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button.";
-$a->strings["Cookie Usage Notice"] = "Cookie usage notice";
+$a->strings["Cookie Usage Notice"] = "Cookie Usage Notice";
$a->strings["The cookie usage notice"] = "The cookie usage notice";
-$a->strings["OK Button Text"] = "OK button text";
-$a->strings["The OK Button text"] = "OK button text";
-$a->strings["Save Settings"] = "Save settings";
-$a->strings["cookienotice Settings saved."] = "Cookie notice settings saved.";
-$a->strings["This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website."] = "This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.";
+$a->strings["OK Button Text"] = "";
+$a->strings["The OK Button text"] = "";
+$a->strings["Save Settings"] = "";
+$a->strings["cookienotice Settings saved."] = "";
+$a->strings["This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website."] = "";
diff --git a/cookienotice/templates/admin.tpl b/cookienotice/templates/admin.tpl
deleted file mode 100644
index b64b0377..00000000
--- a/cookienotice/templates/admin.tpl
+++ /dev/null
@@ -1,6 +0,0 @@
-
';
- $t = Renderer::getMarkupTemplate('settings.tpl', 'addon/diaspora/');
- $s .= Renderer::replaceMacros($t, [
- '$header' => DI::l10n()->t('Diaspora Export'),
- '$info_header' => DI::l10n()->t('Information'),
- '$error_header' => DI::l10n()->t('Error'),
- '$submit' => DI::l10n()->t('Save Settings'),
- '$info' => $info,
- '$error' => $error,
- '$enabled' => $enabled,
- '$enabled_checkbox' => ['enabled', DI::l10n()->t('Enable Diaspora Post Addon'), $enabled],
- '$handle' => ['handle', DI::l10n()->t('Diaspora handle'), $handle, null, null, 'placeholder="user@domain.tld"'],
- '$password' => ['password', DI::l10n()->t('Diaspora password'), '', DI::l10n()->t('Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it.')],
- '$aspect_select' => $aspect_select,
- '$post_by_default' => ['post_by_default', DI::l10n()->t('Post to Diaspora by default'), $def_enabled],
- ]);
}
function diaspora_settings_post(App $a, &$b)
{
if (!empty($_POST['diaspora-submit'])) {
- DI::pConfig()->set(local_user(),'diaspora', 'post' , intval($_POST['enabled']));
- if (intval($_POST['enabled'])) {
- if (isset($_POST['handle'])) {
- DI::pConfig()->set(local_user(),'diaspora', 'handle' , trim($_POST['handle']));
- DI::pConfig()->set(local_user(),'diaspora', 'password' , trim($_POST['password']));
- }
- if (!empty($_POST['aspect'])) {
- DI::pConfig()->set(local_user(),'diaspora', 'aspect' , trim($_POST['aspect']));
- DI::pConfig()->set(local_user(),'diaspora', 'post_by_default', intval($_POST['post_by_default']));
- }
- } else {
- DI::pConfig()->delete(local_user(), 'diaspora', 'password');
- }
+ PConfig::set(local_user(),'diaspora', 'post' , intval($_POST['diaspora']));
+ PConfig::set(local_user(),'diaspora', 'post_by_default', intval($_POST['diaspora_bydefault']));
+ PConfig::set(local_user(),'diaspora', 'handle' , trim($_POST['handle']));
+ PConfig::set(local_user(),'diaspora', 'password' , trim($_POST['password']));
+ PConfig::set(local_user(),'diaspora', 'aspect' , trim($_POST['aspect']));
}
}
@@ -160,11 +284,11 @@ function diaspora_post_local(App $a, array &$b)
return;
}
- $diaspora_post = intval(DI::pConfig()->get(local_user(),'diaspora','post'));
+ $diaspora_post = intval(PConfig::get(local_user(),'diaspora','post'));
$diaspora_enable = (($diaspora_post && !empty($_REQUEST['diaspora_enable'])) ? intval($_REQUEST['diaspora_enable']) : 0);
- if ($b['api_source'] && intval(DI::pConfig()->get(local_user(),'diaspora','post_by_default'))) {
+ if ($b['api_source'] && intval(PConfig::get(local_user(),'diaspora','post_by_default'))) {
$diaspora_enable = 1;
}
@@ -181,7 +305,7 @@ function diaspora_post_local(App $a, array &$b)
function diaspora_send(App $a, array &$b)
{
- $hostname = DI::baseUrl()->getHostname();
+ $hostname = $a->getHostName();
Logger::log('diaspora_send: invoked');
@@ -207,13 +331,27 @@ function diaspora_send(App $a, array &$b)
Logger::log('diaspora_send: prepare posting', Logger::DEBUG);
- $handle = DI::pConfig()->get($b['uid'],'diaspora','handle');
- $password = DI::pConfig()->get($b['uid'],'diaspora','password');
- $aspect = DI::pConfig()->get($b['uid'],'diaspora','aspect');
+ $handle = PConfig::get($b['uid'],'diaspora','handle');
+ $password = PConfig::get($b['uid'],'diaspora','password');
+ $aspect = PConfig::get($b['uid'],'diaspora','aspect');
if ($handle && $password) {
Logger::log('diaspora_send: all values seem to be okay', Logger::DEBUG);
+ $tag_arr = [];
+ $tags = '';
+ $x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
+
+ if ($x) {
+ foreach ($matches as $mtch) {
+ $tag_arr[] = $mtch[2];
+ }
+ }
+
+ if (count($tag_arr)) {
+ $tags = implode(',',$tag_arr);
+ }
+
$title = $b['title'];
$body = $b['body'];
// Insert a newline before and after a quote
@@ -258,7 +396,14 @@ function diaspora_send(App $a, array &$b)
Logger::log('diaspora_send: requeueing '.$b['uid'], Logger::DEBUG);
- Worker::defer();
+ $r = q("SELECT `id` FROM `contact` WHERE `uid` = %d AND `self`", $b['uid']);
+ if (count($r))
+ $a->contact = $r[0]["id"];
+
+ $s = serialize(['url' => $url, 'item' => $b['id'], 'post' => $body]);
+
+ Queue::add($a->contact, Protocol::DIASPORA2, $s);
+ notice(L10n::t('Diaspora post failed. Queued for retry.').EOL);
}
}
}
diff --git a/diaspora/lang/C/messages.po b/diaspora/lang/C/messages.po
index 82660b50..6764eaf1 100644
--- a/diaspora/lang/C/messages.po
+++ b/diaspora/lang/C/messages.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-07 00:15-0400\n"
+"POT-Creation-Date: 2014-06-22 13:18+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -17,96 +17,44 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#: diaspora.php:53
+#: diaspora.php:37
msgid "Post to Diaspora"
msgstr ""
-#: diaspora.php:78
-#, php-format
+#: diaspora.php:142
msgid ""
-"Please remember: You can always be reached from Diaspora with your Friendica "
-"handle %s. "
+"Can't login to your Diaspora account. Please check username and password and "
+"ensure you used the complete address (including http...)"
msgstr ""
-#: diaspora.php:79
-msgid ""
-"This connector is only meant if you still want to use your old Diaspora "
-"account for some time. "
-msgstr ""
-
-#: diaspora.php:80
-#, php-format
-msgid ""
-"However, it is preferred that you tell your Diaspora contacts the new handle "
-"%s instead."
-msgstr ""
-
-#: diaspora.php:90
-msgid "All aspects"
-msgstr ""
-
-#: diaspora.php:91
-msgid "Public"
-msgstr ""
-
-#: diaspora.php:97
-msgid "Post to aspect:"
-msgstr ""
-
-#: diaspora.php:98
-#, php-format
-msgid "Connected with your Diaspora account %s"
-msgstr ""
-
-#: diaspora.php:101
-msgid ""
-"Can't login to your Diaspora account. Please check handle (in the format "
-"user@domain.tld) and password."
-msgstr ""
-
-#: diaspora.php:109
+#: diaspora.php:149 diaspora.php:153
msgid "Diaspora Export"
msgstr ""
-#: diaspora.php:110
-msgid "Information"
-msgstr ""
-
-#: diaspora.php:111
-msgid "Error"
-msgstr ""
-
-#: diaspora.php:112
-msgid "Save Settings"
-msgstr ""
-
-#: diaspora.php:116
+#: diaspora.php:163
msgid "Enable Diaspora Post Addon"
msgstr ""
-#: diaspora.php:117
-msgid "Diaspora handle"
+#: diaspora.php:168
+msgid "Diaspora username"
msgstr ""
-#: diaspora.php:118
+#: diaspora.php:173
msgid "Diaspora password"
msgstr ""
-#: diaspora.php:118
-msgid ""
-"Privacy notice: Your Diaspora password will be stored unencrypted to "
-"authenticate you with your Diaspora pod. This means your Friendica node "
-"administrator can have access to it."
+#: diaspora.php:178
+msgid "Diaspora site URL"
msgstr ""
-#: diaspora.php:120
+#: diaspora.php:183
msgid "Post to Diaspora by default"
msgstr ""
-#: diaspora.php:138
-msgid "Diaspora settings updated."
+#: diaspora.php:189
+msgid "Save Settings"
msgstr ""
-#: diaspora.php:141
-msgid "Diaspora connector disabled."
+#: diaspora.php:324
+msgid "Diaspora post failed. Queued for retry."
msgstr ""
diff --git a/diaspora/lang/ca/messages.po b/diaspora/lang/ca/messages.po
deleted file mode 100644
index 236bf0b6..00000000
--- a/diaspora/lang/ca/messages.po
+++ /dev/null
@@ -1,62 +0,0 @@
-# ADDON diaspora
-# Copyright (C)
-# This file is distributed under the same license as the Friendica diaspora addon package.
-#
-#
-# Translators:
-# Joan Bar , 2019
-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: 2019-10-18 18:35+0000\n"
-"Last-Translator: Joan Bar \n"
-"Language-Team: Catalan (http://www.transifex.com/Friendica/friendica/language/ca/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ca\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: diaspora.php:37
-msgid "Post to Diaspora"
-msgstr "Publicar a diàspora"
-
-#: diaspora.php:142
-msgid ""
-"Can't login to your Diaspora account. Please check username and password and"
-" ensure you used the complete address (including http...)"
-msgstr "No es pot iniciar la sessió al vostre compte de Diaspora. Comproveu nom d'usuari i contrasenya i assegureu-vos que heu utilitzat l'adreça completa (inclosa http ...)"
-
-#: diaspora.php:149 diaspora.php:153
-msgid "Diaspora Export"
-msgstr "Exportació de diàspora"
-
-#: diaspora.php:163
-msgid "Enable Diaspora Post Addon"
-msgstr "Habilita Addon Post de Diaspora"
-
-#: diaspora.php:168
-msgid "Diaspora username"
-msgstr "Nom d'usuari de diàspora"
-
-#: diaspora.php:173
-msgid "Diaspora password"
-msgstr "Contrasenya de diàspora"
-
-#: diaspora.php:178
-msgid "Diaspora site URL"
-msgstr "URL del lloc de diàspora"
-
-#: diaspora.php:183
-msgid "Post to Diaspora by default"
-msgstr "Publica a Diaspora de manera predeterminada"
-
-#: diaspora.php:189
-msgid "Save Settings"
-msgstr "Desa la configuració"
-
-#: diaspora.php:324
-msgid "Diaspora post failed. Queued for retry."
-msgstr "La publicació de la diàspora ha fallat Feu cua per tornar a provar."
diff --git a/diaspora/lang/ca/strings.php b/diaspora/lang/ca/strings.php
deleted file mode 100644
index ce48df19..00000000
--- a/diaspora/lang/ca/strings.php
+++ /dev/null
@@ -1,18 +0,0 @@
-strings["Post to Diaspora"] = "Publicar a diàspora";
-$a->strings["Can't login to your Diaspora account. Please check username and password and ensure you used the complete address (including http...)"] = "No es pot iniciar la sessió al vostre compte de Diaspora. Comproveu nom d'usuari i contrasenya i assegureu-vos que heu utilitzat l'adreça completa (inclosa http ...)";
-$a->strings["Diaspora Export"] = "Exportació de diàspora";
-$a->strings["Enable Diaspora Post Addon"] = "Habilita Addon Post de Diaspora";
-$a->strings["Diaspora username"] = "Nom d'usuari de diàspora";
-$a->strings["Diaspora password"] = "Contrasenya de diàspora";
-$a->strings["Diaspora site URL"] = "URL del lloc de diàspora";
-$a->strings["Post to Diaspora by default"] = "Publica a Diaspora de manera predeterminada";
-$a->strings["Save Settings"] = "Desa la configuració";
-$a->strings["Diaspora post failed. Queued for retry."] = "La publicació de la diàspora ha fallat Feu cua per tornar a provar.";
diff --git a/diaspora/lang/de/messages.po b/diaspora/lang/de/messages.po
index 5cdcc467..22187254 100644
--- a/diaspora/lang/de/messages.po
+++ b/diaspora/lang/de/messages.po
@@ -4,114 +4,59 @@
#
#
# Translators:
-# foss , 2020
-# Tobias Diekershoff , 2014
-# Tobias Diekershoff , 2018,2020
-# Ulf Rompe , 2019
+# bavatar , 2014
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-07 00:15-0400\n"
-"PO-Revision-Date: 2020-09-01 12:43+0000\n"
-"Last-Translator: Tobias Diekershoff \n"
-"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
+"POT-Creation-Date: 2014-06-22 13:18+0200\n"
+"PO-Revision-Date: 2014-07-08 19:10+0000\n"
+"Last-Translator: bavatar \n"
+"Language-Team: German (http://www.transifex.com/projects/p/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"
-#: diaspora.php:53
+#: diaspora.php:37
msgid "Post to Diaspora"
msgstr "Auf Diaspora veröffentlichen"
-#: diaspora.php:78
-#, php-format
+#: diaspora.php:142
msgid ""
-"Please remember: You can always be reached from Diaspora with your Friendica"
-" handle %s. "
-msgstr "Denke daran: Du kannst Jederzeit über deinen Friendica Account %s von Diaspora aus erreicht werden."
+"Can't login to your Diaspora account. Please check username and password and"
+" ensure you used the complete address (including http...)"
+msgstr "Anmeldung bei deinem Diaspora Account fehlgeschlagen. Bitte überprüfe Nutzername und Passwort und stelle sicher, dass die komplette Adresse (inklusive des htto...) verwendet wurde."
-#: diaspora.php:79
-msgid ""
-"This connector is only meant if you still want to use your old Diaspora "
-"account for some time. "
-msgstr "Dieser Connector ist ausschließlich dafür gedacht, deinen alten Diaspora Account noch ein wenig weiter zu betreiben."
-
-#: diaspora.php:80
-#, php-format
-msgid ""
-"However, it is preferred that you tell your Diaspora contacts the new handle"
-" %s instead."
-msgstr "Du solltest allerdings deinen Diaspora Kontakten deinen Friendica Account %s mitteilen, damit sie diesem folgen."
-
-#: diaspora.php:90
-msgid "All aspects"
-msgstr "Alle Aspekte"
-
-#: diaspora.php:91
-msgid "Public"
-msgstr "Öffentlich"
-
-#: diaspora.php:97
-msgid "Post to aspect:"
-msgstr "Bei aspect veröffentlichen:"
-
-#: diaspora.php:98
-#, php-format
-msgid "Connected with your Diaspora account %s"
-msgstr "Verbunden mit deinem Diaspora-Konto %s"
-
-#: diaspora.php:101
-msgid ""
-"Can't login to your Diaspora account. Please check handle (in the format "
-"user@domain.tld) and password."
-msgstr "Anmeldung bei deinem Diaspora-Konto fehlgeschlagen. Bitte überprüfe Handle (im Format user@domain.tld) und Passwort."
-
-#: diaspora.php:109
+#: diaspora.php:149 diaspora.php:153
msgid "Diaspora Export"
-msgstr "Diaspora-Export"
+msgstr "Diaspora Export"
-#: diaspora.php:110
-msgid "Information"
-msgstr "Information"
-
-#: diaspora.php:111
-msgid "Error"
-msgstr "Fehler"
-
-#: diaspora.php:112
-msgid "Save Settings"
-msgstr "Einstellungen speichern"
-
-#: diaspora.php:116
+#: diaspora.php:163
msgid "Enable Diaspora Post Addon"
-msgstr "Diaspora-Post-Addon aktivieren"
+msgstr "Veröffentlichungen bei Diaspora erlauben"
-#: diaspora.php:117
-msgid "Diaspora handle"
-msgstr "Diaspora-Handle"
+#: diaspora.php:168
+msgid "Diaspora username"
+msgstr "Diaspora Nutzername"
-#: diaspora.php:118
+#: diaspora.php:173
msgid "Diaspora password"
-msgstr "Diaspora-Passwort"
+msgstr "Diaspora Passwort"
-#: diaspora.php:118
-msgid ""
-"Privacy notice: Your Diaspora password will be stored unencrypted to "
-"authenticate you with your Diaspora pod. This means your Friendica node "
-"administrator can have access to it."
-msgstr "Datenschutzhinweis: Dein Diaspora-Passwort wird unverschlüsselt gespeichert, um dich an deinem Diaspora-Pod zu authentifizieren. Dadurch kann der Administrator deines Friendica-Knotens Zugriff darauf erlangen."
+#: diaspora.php:178
+msgid "Diaspora site URL"
+msgstr "URL der Diaspora Seite"
-#: diaspora.php:120
+#: diaspora.php:183
msgid "Post to Diaspora by default"
msgstr "Veröffentliche öffentliche Beiträge standardmäßig bei Diaspora"
-#: diaspora.php:138
-msgid "Diaspora settings updated."
-msgstr "Diaspora-Einstellungen aktualisiert."
+#: diaspora.php:189
+msgid "Save Settings"
+msgstr "Einstellungen speichern"
-#: diaspora.php:141
-msgid "Diaspora connector disabled."
-msgstr "Diaspora-Connector deaktiviert."
+#: diaspora.php:324
+msgid "Diaspora post failed. Queued for retry."
+msgstr "Veröffentlichung bei Diaspora gescheitert. Wir versuchen es später erneut."
diff --git a/diaspora/lang/de/strings.php b/diaspora/lang/de/strings.php
index 6d0ab88e..22990765 100644
--- a/diaspora/lang/de/strings.php
+++ b/diaspora/lang/de/strings.php
@@ -2,27 +2,16 @@
if(! function_exists("string_plural_select_de")) {
function string_plural_select_de($n){
- $n = intval($n);
return ($n != 1);;
}}
;
$a->strings["Post to Diaspora"] = "Auf Diaspora veröffentlichen";
-$a->strings["Please remember: You can always be reached from Diaspora with your Friendica handle %s. "] = "Denke daran: Du kannst Jederzeit über deinen Friendica Account %s von Diaspora aus erreicht werden.";
-$a->strings["This connector is only meant if you still want to use your old Diaspora account for some time. "] = "Dieser Connector ist ausschließlich dafür gedacht, deinen alten Diaspora Account noch ein wenig weiter zu betreiben.";
-$a->strings["However, it is preferred that you tell your Diaspora contacts the new handle %s instead."] = "Du solltest allerdings deinen Diaspora Kontakten deinen Friendica Account %s mitteilen, damit sie diesem folgen.";
-$a->strings["All aspects"] = "Alle Aspekte";
-$a->strings["Public"] = "Öffentlich";
-$a->strings["Post to aspect:"] = "Bei aspect veröffentlichen:";
-$a->strings["Connected with your Diaspora account %s"] = "Verbunden mit deinem Diaspora-Konto %s";
-$a->strings["Can't login to your Diaspora account. Please check handle (in the format user@domain.tld) and password."] = "Anmeldung bei deinem Diaspora-Konto fehlgeschlagen. Bitte überprüfe Handle (im Format user@domain.tld) und Passwort.";
-$a->strings["Diaspora Export"] = "Diaspora-Export";
-$a->strings["Information"] = "Information";
-$a->strings["Error"] = "Fehler";
-$a->strings["Save Settings"] = "Einstellungen speichern";
-$a->strings["Enable Diaspora Post Addon"] = "Diaspora-Post-Addon aktivieren";
-$a->strings["Diaspora handle"] = "Diaspora-Handle";
-$a->strings["Diaspora password"] = "Diaspora-Passwort";
-$a->strings["Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it."] = "Datenschutzhinweis: Dein Diaspora-Passwort wird unverschlüsselt gespeichert, um dich an deinem Diaspora-Pod zu authentifizieren. Dadurch kann der Administrator deines Friendica-Knotens Zugriff darauf erlangen.";
+$a->strings["Can't login to your Diaspora account. Please check username and password and ensure you used the complete address (including http...)"] = "Anmeldung bei deinem Diaspora Account fehlgeschlagen. Bitte überprüfe Nutzername und Passwort und stelle sicher, dass die komplette Adresse (inklusive des htto...) verwendet wurde.";
+$a->strings["Diaspora Export"] = "Diaspora Export";
+$a->strings["Enable Diaspora Post Addon"] = "Veröffentlichungen bei Diaspora erlauben";
+$a->strings["Diaspora username"] = "Diaspora Nutzername";
+$a->strings["Diaspora password"] = "Diaspora Passwort";
+$a->strings["Diaspora site URL"] = "URL der Diaspora Seite";
$a->strings["Post to Diaspora by default"] = "Veröffentliche öffentliche Beiträge standardmäßig bei Diaspora";
-$a->strings["Diaspora settings updated."] = "Diaspora-Einstellungen aktualisiert.";
-$a->strings["Diaspora connector disabled."] = "Diaspora-Connector deaktiviert.";
+$a->strings["Save Settings"] = "Einstellungen speichern";
+$a->strings["Diaspora post failed. Queued for retry."] = "Veröffentlichung bei Diaspora gescheitert. Wir versuchen es später erneut.";
diff --git a/diaspora/lang/en-gb/messages.po b/diaspora/lang/en-gb/messages.po
index 798e3b2d..ce3dd2f9 100644
--- a/diaspora/lang/en-gb/messages.po
+++ b/diaspora/lang/en-gb/messages.po
@@ -4,13 +4,13 @@
#
#
# Translators:
-# Andy H3 , 2018,2020
+# Andy H3 , 2018
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-07 00:15-0400\n"
-"PO-Revision-Date: 2020-06-23 16:10+0000\n"
+"POT-Creation-Date: 2014-06-22 13:18+0200\n"
+"PO-Revision-Date: 2018-03-22 08:36+0000\n"
"Last-Translator: Andy H3 \n"
"Language-Team: English (United Kingdom) (http://www.transifex.com/Friendica/friendica/language/en_GB/)\n"
"MIME-Version: 1.0\n"
@@ -19,96 +19,44 @@ msgstr ""
"Language: en_GB\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-#: diaspora.php:53
+#: diaspora.php:37
msgid "Post to Diaspora"
msgstr "Post to Diaspora"
-#: diaspora.php:78
-#, php-format
+#: diaspora.php:142
msgid ""
-"Please remember: You can always be reached from Diaspora with your Friendica"
-" handle %s. "
-msgstr "Please remember: You can always be reached from Diaspora with your Friendica handle %s. "
+"Can't login to your Diaspora account. Please check username and password and"
+" ensure you used the complete address (including http...)"
+msgstr "Can't login to your Diaspora account. Please check username and password and ensure you used the complete address (including http...)"
-#: diaspora.php:79
-msgid ""
-"This connector is only meant if you still want to use your old Diaspora "
-"account for some time. "
-msgstr "This connector is only meant if you still want to use your old Diaspora account for some time. "
-
-#: diaspora.php:80
-#, php-format
-msgid ""
-"However, it is preferred that you tell your Diaspora contacts the new handle"
-" %s instead."
-msgstr "It's preferrable that you tell your Diaspora contacts the new handle %s instead."
-
-#: diaspora.php:90
-msgid "All aspects"
-msgstr "All aspects"
-
-#: diaspora.php:91
-msgid "Public"
-msgstr "Public"
-
-#: diaspora.php:97
-msgid "Post to aspect:"
-msgstr "Post to aspect:"
-
-#: diaspora.php:98
-#, php-format
-msgid "Connected with your Diaspora account %s"
-msgstr "Connected with your Diaspora account %s"
-
-#: diaspora.php:101
-msgid ""
-"Can't login to your Diaspora account. Please check handle (in the format "
-"user@domain.tld) and password."
-msgstr "Can't login to your Diaspora account. Please check handle (in the format user@domain.tld) and password."
-
-#: diaspora.php:109
+#: diaspora.php:149 diaspora.php:153
msgid "Diaspora Export"
msgstr "Diaspora Export"
-#: diaspora.php:110
-msgid "Information"
-msgstr "Information"
-
-#: diaspora.php:111
-msgid "Error"
-msgstr "Error"
-
-#: diaspora.php:112
-msgid "Save Settings"
-msgstr "Save settings"
-
-#: diaspora.php:116
+#: diaspora.php:163
msgid "Enable Diaspora Post Addon"
msgstr "Enable Diaspora export"
-#: diaspora.php:117
-msgid "Diaspora handle"
-msgstr "Diaspora handle"
+#: diaspora.php:168
+msgid "Diaspora username"
+msgstr "Diaspora username"
-#: diaspora.php:118
+#: diaspora.php:173
msgid "Diaspora password"
msgstr "Diaspora password"
-#: diaspora.php:118
-msgid ""
-"Privacy notice: Your Diaspora password will be stored unencrypted to "
-"authenticate you with your Diaspora pod. This means your Friendica node "
-"administrator can have access to it."
-msgstr "Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it."
+#: diaspora.php:178
+msgid "Diaspora site URL"
+msgstr "Diaspora site URL"
-#: diaspora.php:120
+#: diaspora.php:183
msgid "Post to Diaspora by default"
msgstr "Post to Diaspora by default"
-#: diaspora.php:138
-msgid "Diaspora settings updated."
-msgstr "Diaspora settings updated."
+#: diaspora.php:189
+msgid "Save Settings"
+msgstr "Save settings"
-#: diaspora.php:141
-msgid "Diaspora connector disabled."
-msgstr "Diaspora connector disabled."
+#: diaspora.php:324
+msgid "Diaspora post failed. Queued for retry."
+msgstr "Diaspora post failed. Queued for retry."
diff --git a/diaspora/lang/en-gb/strings.php b/diaspora/lang/en-gb/strings.php
index 7a84ef4c..5e375913 100644
--- a/diaspora/lang/en-gb/strings.php
+++ b/diaspora/lang/en-gb/strings.php
@@ -2,27 +2,16 @@
if(! function_exists("string_plural_select_en_gb")) {
function string_plural_select_en_gb($n){
- $n = intval($n);
return ($n != 1);;
}}
;
$a->strings["Post to Diaspora"] = "Post to Diaspora";
-$a->strings["Please remember: You can always be reached from Diaspora with your Friendica handle %s. "] = "Please remember: You can always be reached from Diaspora with your Friendica handle %s. ";
-$a->strings["This connector is only meant if you still want to use your old Diaspora account for some time. "] = "This connector is only meant if you still want to use your old Diaspora account for some time. ";
-$a->strings["However, it is preferred that you tell your Diaspora contacts the new handle %s instead."] = "It's preferrable that you tell your Diaspora contacts the new handle %s instead.";
-$a->strings["All aspects"] = "All aspects";
-$a->strings["Public"] = "Public";
-$a->strings["Post to aspect:"] = "Post to aspect:";
-$a->strings["Connected with your Diaspora account %s"] = "Connected with your Diaspora account %s";
-$a->strings["Can't login to your Diaspora account. Please check handle (in the format user@domain.tld) and password."] = "Can't login to your Diaspora account. Please check handle (in the format user@domain.tld) and password.";
+$a->strings["Can't login to your Diaspora account. Please check username and password and ensure you used the complete address (including http...)"] = "Can't login to your Diaspora account. Please check username and password and ensure you used the complete address (including http...)";
$a->strings["Diaspora Export"] = "Diaspora Export";
-$a->strings["Information"] = "Information";
-$a->strings["Error"] = "Error";
-$a->strings["Save Settings"] = "Save settings";
$a->strings["Enable Diaspora Post Addon"] = "Enable Diaspora export";
-$a->strings["Diaspora handle"] = "Diaspora handle";
+$a->strings["Diaspora username"] = "Diaspora username";
$a->strings["Diaspora password"] = "Diaspora password";
-$a->strings["Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it."] = "Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it.";
+$a->strings["Diaspora site URL"] = "Diaspora site URL";
$a->strings["Post to Diaspora by default"] = "Post to Diaspora by default";
-$a->strings["Diaspora settings updated."] = "Diaspora settings updated.";
-$a->strings["Diaspora connector disabled."] = "Diaspora connector disabled.";
+$a->strings["Save Settings"] = "Save settings";
+$a->strings["Diaspora post failed. Queued for retry."] = "Diaspora post failed. Queued for retry.";
diff --git a/diaspora/lang/en-us/messages.po b/diaspora/lang/en-us/messages.po
deleted file mode 100644
index ac7cef47..00000000
--- a/diaspora/lang/en-us/messages.po
+++ /dev/null
@@ -1,114 +0,0 @@
-# ADDON diaspora
-# Copyright (C)
-# This file is distributed under the same license as the Friendica diaspora addon package.
-#
-#
-# Translators:
-# Andy H3 , 2018
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-07 00:15-0400\n"
-"PO-Revision-Date: 2020-05-07 06:50+0000\n"
-"Last-Translator: Transifex Bot <>\n"
-"Language-Team: English (United States) (http://www.transifex.com/Friendica/friendica/language/en_US/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: en_US\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: diaspora.php:53
-msgid "Post to Diaspora"
-msgstr "Post to Diaspora"
-
-#: diaspora.php:78
-#, php-format
-msgid ""
-"Please remember: You can always be reached from Diaspora with your Friendica"
-" handle %s. "
-msgstr ""
-
-#: diaspora.php:79
-msgid ""
-"This connector is only meant if you still want to use your old Diaspora "
-"account for some time. "
-msgstr ""
-
-#: diaspora.php:80
-#, php-format
-msgid ""
-"However, it is preferred that you tell your Diaspora contacts the new handle"
-" %s instead."
-msgstr ""
-
-#: diaspora.php:90
-msgid "All aspects"
-msgstr ""
-
-#: diaspora.php:91
-msgid "Public"
-msgstr ""
-
-#: diaspora.php:97
-msgid "Post to aspect:"
-msgstr ""
-
-#: diaspora.php:98
-#, php-format
-msgid "Connected with your Diaspora account %s"
-msgstr ""
-
-#: diaspora.php:101
-msgid ""
-"Can't login to your Diaspora account. Please check handle (in the format "
-"user@domain.tld) and password."
-msgstr ""
-
-#: diaspora.php:109
-msgid "Diaspora Export"
-msgstr "Diaspora Export"
-
-#: diaspora.php:110
-msgid "Information"
-msgstr ""
-
-#: diaspora.php:111
-msgid "Error"
-msgstr ""
-
-#: diaspora.php:112
-msgid "Save Settings"
-msgstr "Save settings"
-
-#: diaspora.php:116
-msgid "Enable Diaspora Post Addon"
-msgstr "Enable Diaspora export"
-
-#: diaspora.php:117
-msgid "Diaspora handle"
-msgstr ""
-
-#: diaspora.php:118
-msgid "Diaspora password"
-msgstr "Diaspora password"
-
-#: diaspora.php:118
-msgid ""
-"Privacy notice: Your Diaspora password will be stored unencrypted to "
-"authenticate you with your Diaspora pod. This means your Friendica node "
-"administrator can have access to it."
-msgstr ""
-
-#: diaspora.php:120
-msgid "Post to Diaspora by default"
-msgstr "Post to Diaspora by default"
-
-#: diaspora.php:138
-msgid "Diaspora settings updated."
-msgstr ""
-
-#: diaspora.php:141
-msgid "Diaspora connector disabled."
-msgstr ""
diff --git a/diaspora/lang/en-us/strings.php b/diaspora/lang/en-us/strings.php
deleted file mode 100644
index 237dfee5..00000000
--- a/diaspora/lang/en-us/strings.php
+++ /dev/null
@@ -1,28 +0,0 @@
-strings["Post to Diaspora"] = "Post to Diaspora";
-$a->strings["Please remember: You can always be reached from Diaspora with your Friendica handle %s. "] = "";
-$a->strings["This connector is only meant if you still want to use your old Diaspora account for some time. "] = "";
-$a->strings["However, it is preferred that you tell your Diaspora contacts the new handle %s instead."] = "";
-$a->strings["All aspects"] = "";
-$a->strings["Public"] = "";
-$a->strings["Post to aspect:"] = "";
-$a->strings["Connected with your Diaspora account %s"] = "";
-$a->strings["Can't login to your Diaspora account. Please check handle (in the format user@domain.tld) and password."] = "";
-$a->strings["Diaspora Export"] = "Diaspora Export";
-$a->strings["Information"] = "";
-$a->strings["Error"] = "";
-$a->strings["Save Settings"] = "Save settings";
-$a->strings["Enable Diaspora Post Addon"] = "Enable Diaspora export";
-$a->strings["Diaspora handle"] = "";
-$a->strings["Diaspora password"] = "Diaspora password";
-$a->strings["Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it."] = "";
-$a->strings["Post to Diaspora by default"] = "Post to Diaspora by default";
-$a->strings["Diaspora settings updated."] = "";
-$a->strings["Diaspora connector disabled."] = "";
diff --git a/diaspora/lang/it/messages.po b/diaspora/lang/it/messages.po
index f193a623..8c3265dc 100644
--- a/diaspora/lang/it/messages.po
+++ b/diaspora/lang/it/messages.po
@@ -5,14 +5,13 @@
#
# Translators:
# fabrixxm , 2014,2018
-# Sylke Vicious , 2020
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-07 00:15-0400\n"
-"PO-Revision-Date: 2020-09-01 10:54+0000\n"
-"Last-Translator: Sylke Vicious \n"
+"POT-Creation-Date: 2014-06-22 13:18+0200\n"
+"PO-Revision-Date: 2018-03-19 13:21+0000\n"
+"Last-Translator: fabrixxm \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"
@@ -20,96 +19,44 @@ msgstr ""
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-#: diaspora.php:53
+#: diaspora.php:37
msgid "Post to Diaspora"
msgstr "Invia a Diaspora"
-#: diaspora.php:78
-#, php-format
+#: diaspora.php:142
msgid ""
-"Please remember: You can always be reached from Diaspora with your Friendica"
-" handle %s. "
-msgstr "Ricorda: Puoi sempre essere raggiunto da Diaspora con il tuo indirizzo Friendica %s."
+"Can't login to your Diaspora account. Please check username and password and"
+" ensure you used the complete address (including http...)"
+msgstr "Non riesco ad autenticarmi con il tuo account Diaspora. Controlla il nome utente e la password e assicurati di aver usato l'indirizzo completo (compreso \"http\" o \"https\")"
-#: diaspora.php:79
-msgid ""
-"This connector is only meant if you still want to use your old Diaspora "
-"account for some time. "
-msgstr "Questo connettore è utile solo se vuoi utilizzare il tuo vecchio account Diaspora per un po'."
-
-#: diaspora.php:80
-#, php-format
-msgid ""
-"However, it is preferred that you tell your Diaspora contacts the new handle"
-" %s instead."
-msgstr "Comunque, è preferibile che tu comunichi ai tuoi contatti Diaspora il nuovo indirizzo %s."
-
-#: diaspora.php:90
-msgid "All aspects"
-msgstr "Tutti gli aspetti"
-
-#: diaspora.php:91
-msgid "Public"
-msgstr "Pubblico"
-
-#: diaspora.php:97
-msgid "Post to aspect:"
-msgstr "Invia all'aspetto:"
-
-#: diaspora.php:98
-#, php-format
-msgid "Connected with your Diaspora account %s"
-msgstr "Connesso con il tuo account Diaspora %s"
-
-#: diaspora.php:101
-msgid ""
-"Can't login to your Diaspora account. Please check handle (in the format "
-"user@domain.tld) and password."
-msgstr "Non è stato possibile accedere al tuo account Diaspora. Per favore controlla l'indirizzo (nel formato utente@dominio.tld) e password."
-
-#: diaspora.php:109
+#: diaspora.php:149 diaspora.php:153
msgid "Diaspora Export"
msgstr "Esporta Diaspora"
-#: diaspora.php:110
-msgid "Information"
-msgstr "Informazione"
-
-#: diaspora.php:111
-msgid "Error"
-msgstr "Errore"
-
-#: diaspora.php:112
-msgid "Save Settings"
-msgstr "Salva Impostazioni"
-
-#: diaspora.php:116
+#: diaspora.php:163
msgid "Enable Diaspora Post Addon"
msgstr "Abilita il componente aggiuntivo di invio a Diaspora"
-#: diaspora.php:117
-msgid "Diaspora handle"
-msgstr "Indirizzo Diaspora"
+#: diaspora.php:168
+msgid "Diaspora username"
+msgstr "Nome utente Diaspora"
-#: diaspora.php:118
+#: diaspora.php:173
msgid "Diaspora password"
msgstr "Password Diaspora"
-#: diaspora.php:118
-msgid ""
-"Privacy notice: Your Diaspora password will be stored unencrypted to "
-"authenticate you with your Diaspora pod. This means your Friendica node "
-"administrator can have access to it."
-msgstr "Nota sulla privacy: La tua password Diaspora sarà memorizzata in modo non criptato per autenticarti al tuo pod Diaspora. Questo significa che l'amministratore del tuo nodo Friendica può aver accesso a questa."
+#: diaspora.php:178
+msgid "Diaspora site URL"
+msgstr "Indirizzo sito Diaspora"
-#: diaspora.php:120
+#: diaspora.php:183
msgid "Post to Diaspora by default"
msgstr "Invia sempre a Diaspora"
-#: diaspora.php:138
-msgid "Diaspora settings updated."
-msgstr "Impostazioni Diaspora aggiornate."
+#: diaspora.php:189
+msgid "Save Settings"
+msgstr "Salva Impostazioni"
-#: diaspora.php:141
-msgid "Diaspora connector disabled."
-msgstr "Connettore Diaspora disabilitato."
+#: diaspora.php:324
+msgid "Diaspora post failed. Queued for retry."
+msgstr "Invio a Diaspora fallito. In attesa di riprovare."
diff --git a/diaspora/lang/it/strings.php b/diaspora/lang/it/strings.php
index af97743f..a7778c94 100644
--- a/diaspora/lang/it/strings.php
+++ b/diaspora/lang/it/strings.php
@@ -2,27 +2,16 @@
if(! function_exists("string_plural_select_it")) {
function string_plural_select_it($n){
- $n = intval($n);
return ($n != 1);;
}}
;
$a->strings["Post to Diaspora"] = "Invia a Diaspora";
-$a->strings["Please remember: You can always be reached from Diaspora with your Friendica handle %s. "] = "Ricorda: Puoi sempre essere raggiunto da Diaspora con il tuo indirizzo Friendica %s.";
-$a->strings["This connector is only meant if you still want to use your old Diaspora account for some time. "] = "Questo connettore è utile solo se vuoi utilizzare il tuo vecchio account Diaspora per un po'.";
-$a->strings["However, it is preferred that you tell your Diaspora contacts the new handle %s instead."] = "Comunque, è preferibile che tu comunichi ai tuoi contatti Diaspora il nuovo indirizzo %s.";
-$a->strings["All aspects"] = "Tutti gli aspetti";
-$a->strings["Public"] = "Pubblico";
-$a->strings["Post to aspect:"] = "Invia all'aspetto:";
-$a->strings["Connected with your Diaspora account %s"] = "Connesso con il tuo account Diaspora %s";
-$a->strings["Can't login to your Diaspora account. Please check handle (in the format user@domain.tld) and password."] = "Non è stato possibile accedere al tuo account Diaspora. Per favore controlla l'indirizzo (nel formato utente@dominio.tld) e password.";
+$a->strings["Can't login to your Diaspora account. Please check username and password and ensure you used the complete address (including http...)"] = "Non riesco ad autenticarmi con il tuo account Diaspora. Controlla il nome utente e la password e assicurati di aver usato l'indirizzo completo (compreso \"http\" o \"https\")";
$a->strings["Diaspora Export"] = "Esporta Diaspora";
-$a->strings["Information"] = "Informazione";
-$a->strings["Error"] = "Errore";
-$a->strings["Save Settings"] = "Salva Impostazioni";
$a->strings["Enable Diaspora Post Addon"] = "Abilita il componente aggiuntivo di invio a Diaspora";
-$a->strings["Diaspora handle"] = "Indirizzo Diaspora";
+$a->strings["Diaspora username"] = "Nome utente Diaspora";
$a->strings["Diaspora password"] = "Password Diaspora";
-$a->strings["Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it."] = "Nota sulla privacy: La tua password Diaspora sarà memorizzata in modo non criptato per autenticarti al tuo pod Diaspora. Questo significa che l'amministratore del tuo nodo Friendica può aver accesso a questa.";
+$a->strings["Diaspora site URL"] = "Indirizzo sito Diaspora";
$a->strings["Post to Diaspora by default"] = "Invia sempre a Diaspora";
-$a->strings["Diaspora settings updated."] = "Impostazioni Diaspora aggiornate.";
-$a->strings["Diaspora connector disabled."] = "Connettore Diaspora disabilitato.";
+$a->strings["Save Settings"] = "Salva Impostazioni";
+$a->strings["Diaspora post failed. Queued for retry."] = "Invio a Diaspora fallito. In attesa di riprovare.";
diff --git a/diaspora/lang/nl/messages.po b/diaspora/lang/nl/messages.po
index 94be0bc1..25fee146 100644
--- a/diaspora/lang/nl/messages.po
+++ b/diaspora/lang/nl/messages.po
@@ -4,15 +4,14 @@
#
#
# Translators:
-# Casper , 2020
# Jeroen De Meerleer , 2018
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-07 00:15-0400\n"
-"PO-Revision-Date: 2020-09-04 21:05+0000\n"
-"Last-Translator: Casper \n"
+"POT-Creation-Date: 2014-06-22 13:18+0200\n"
+"PO-Revision-Date: 2018-08-24 13:55+0000\n"
+"Last-Translator: Jeroen De Meerleer \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"
@@ -20,96 +19,44 @@ msgstr ""
"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-#: diaspora.php:53
+#: diaspora.php:37
msgid "Post to Diaspora"
msgstr "Plaatsen op Diaspora"
-#: diaspora.php:78
-#, php-format
+#: diaspora.php:142
msgid ""
-"Please remember: You can always be reached from Diaspora with your Friendica"
-" handle %s. "
-msgstr "Let op: vanuit Diaspora ben je altijd bereikbaar met je Friendica-handvat %s. "
+"Can't login to your Diaspora account. Please check username and password and"
+" ensure you used the complete address (including http...)"
+msgstr "Kan niet inloggen op je Diaspora account. Gelieve je gebruikersnaam en wachtwoord te controleren en het volledige adres (inclusief http) te controleren"
-#: diaspora.php:79
-msgid ""
-"This connector is only meant if you still want to use your old Diaspora "
-"account for some time. "
-msgstr "Deze connector is alleen bedoeld als je je oude diaspora-account nog enige tijd wilt gebruiken."
-
-#: diaspora.php:80
-#, php-format
-msgid ""
-"However, it is preferred that you tell your Diaspora contacts the new handle"
-" %s instead."
-msgstr "Het verdient echter de voorkeur dat u uw diaspora contacteert met de nieuwe handle %s."
-
-#: diaspora.php:90
-msgid "All aspects"
-msgstr "Alle aspecten"
-
-#: diaspora.php:91
-msgid "Public"
-msgstr "Openbaar"
-
-#: diaspora.php:97
-msgid "Post to aspect:"
-msgstr "Post naar aspect:"
-
-#: diaspora.php:98
-#, php-format
-msgid "Connected with your Diaspora account %s"
-msgstr "Verbonden met uw diaspora-account %s"
-
-#: diaspora.php:101
-msgid ""
-"Can't login to your Diaspora account. Please check handle (in the format "
-"user@domain.tld) and password."
-msgstr "U kunt niet inloggen op uw Diaspora-account. Controleer de handle (in het formaat gebruiker@domein.tld) en het wachtwoord."
-
-#: diaspora.php:109
+#: diaspora.php:149 diaspora.php:153
msgid "Diaspora Export"
msgstr "Diaspora Exporteren"
-#: diaspora.php:110
-msgid "Information"
-msgstr "Informatie"
-
-#: diaspora.php:111
-msgid "Error"
-msgstr "Fout"
-
-#: diaspora.php:112
-msgid "Save Settings"
-msgstr "Instellingen opslaan"
-
-#: diaspora.php:116
+#: diaspora.php:163
msgid "Enable Diaspora Post Addon"
msgstr "Diaspora Post Addon inschakelen"
-#: diaspora.php:117
-msgid "Diaspora handle"
-msgstr ""
+#: diaspora.php:168
+msgid "Diaspora username"
+msgstr "Diaspora gebruikersnaam"
-#: diaspora.php:118
+#: diaspora.php:173
msgid "Diaspora password"
msgstr "Diaspora wachtwoord"
-#: diaspora.php:118
-msgid ""
-"Privacy notice: Your Diaspora password will be stored unencrypted to "
-"authenticate you with your Diaspora pod. This means your Friendica node "
-"administrator can have access to it."
-msgstr "Privacyverklaring: uw diaspora-wachtwoord wordt onversleuteld opgeslagen om u te authenticeren met uw diaspora-pod. Dit betekent dat uw Friendica-knooppuntbeheerder er toegang toe heeft."
+#: diaspora.php:178
+msgid "Diaspora site URL"
+msgstr "Diaspora pod URL"
-#: diaspora.php:120
+#: diaspora.php:183
msgid "Post to Diaspora by default"
msgstr "Plaatsen op Diaspora als standaard instellen "
-#: diaspora.php:138
-msgid "Diaspora settings updated."
-msgstr ""
+#: diaspora.php:189
+msgid "Save Settings"
+msgstr "Instellingen opslaan"
-#: diaspora.php:141
-msgid "Diaspora connector disabled."
-msgstr ""
+#: diaspora.php:324
+msgid "Diaspora post failed. Queued for retry."
+msgstr "Posten naar Diaspora mislukt. In wachtrij geplaatst om opnieuw te proberen."
diff --git a/diaspora/lang/nl/strings.php b/diaspora/lang/nl/strings.php
index 2308dc86..698a875a 100644
--- a/diaspora/lang/nl/strings.php
+++ b/diaspora/lang/nl/strings.php
@@ -7,22 +7,12 @@ function string_plural_select_nl($n){
}}
;
$a->strings["Post to Diaspora"] = "Plaatsen op Diaspora";
-$a->strings["Please remember: You can always be reached from Diaspora with your Friendica handle %s. "] = "Let op: vanuit Diaspora ben je altijd bereikbaar met je Friendica-handvat %s. ";
-$a->strings["This connector is only meant if you still want to use your old Diaspora account for some time. "] = "Deze connector is alleen bedoeld als je je oude diaspora-account nog enige tijd wilt gebruiken.";
-$a->strings["However, it is preferred that you tell your Diaspora contacts the new handle %s instead."] = "Het verdient echter de voorkeur dat u uw diaspora contacteert met de nieuwe handle %s.";
-$a->strings["All aspects"] = "Alle aspecten";
-$a->strings["Public"] = "Openbaar";
-$a->strings["Post to aspect:"] = "Post naar aspect:";
-$a->strings["Connected with your Diaspora account %s"] = "Verbonden met uw diaspora-account %s";
-$a->strings["Can't login to your Diaspora account. Please check handle (in the format user@domain.tld) and password."] = "U kunt niet inloggen op uw Diaspora-account. Controleer de handle (in het formaat gebruiker@domein.tld) en het wachtwoord.";
+$a->strings["Can't login to your Diaspora account. Please check username and password and ensure you used the complete address (including http...)"] = "Kan niet inloggen op je Diaspora account. Gelieve je gebruikersnaam en wachtwoord te controleren en het volledige adres (inclusief http) te controleren";
$a->strings["Diaspora Export"] = "Diaspora Exporteren";
-$a->strings["Information"] = "Informatie";
-$a->strings["Error"] = "Fout";
-$a->strings["Save Settings"] = "Instellingen opslaan";
$a->strings["Enable Diaspora Post Addon"] = "Diaspora Post Addon inschakelen";
-$a->strings["Diaspora handle"] = "";
+$a->strings["Diaspora username"] = "Diaspora gebruikersnaam";
$a->strings["Diaspora password"] = "Diaspora wachtwoord";
-$a->strings["Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it."] = "Privacyverklaring: uw diaspora-wachtwoord wordt onversleuteld opgeslagen om u te authenticeren met uw diaspora-pod. Dit betekent dat uw Friendica-knooppuntbeheerder er toegang toe heeft.";
+$a->strings["Diaspora site URL"] = "Diaspora pod URL";
$a->strings["Post to Diaspora by default"] = "Plaatsen op Diaspora als standaard instellen ";
-$a->strings["Diaspora settings updated."] = "";
-$a->strings["Diaspora connector disabled."] = "";
+$a->strings["Save Settings"] = "Instellingen opslaan";
+$a->strings["Diaspora post failed. Queued for retry."] = "Posten naar Diaspora mislukt. In wachtrij geplaatst om opnieuw te proberen.";
diff --git a/diaspora/lang/pl/messages.po b/diaspora/lang/pl/messages.po
index 18c21efd..086155b0 100644
--- a/diaspora/lang/pl/messages.po
+++ b/diaspora/lang/pl/messages.po
@@ -4,14 +4,14 @@
#
#
# Translators:
-# Waldemar Stoczkowski, 2018,2020
+# Waldemar Stoczkowski , 2018
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-07 00:15-0400\n"
-"PO-Revision-Date: 2020-06-17 19:25+0000\n"
-"Last-Translator: Waldemar Stoczkowski\n"
+"POT-Creation-Date: 2014-06-22 13:18+0200\n"
+"PO-Revision-Date: 2018-08-04 10:21+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"
@@ -19,96 +19,44 @@ 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"
-#: diaspora.php:53
+#: diaspora.php:37
msgid "Post to Diaspora"
msgstr "Napisz do Diaspory"
-#: diaspora.php:78
-#, php-format
+#: diaspora.php:142
msgid ""
-"Please remember: You can always be reached from Diaspora with your Friendica"
-" handle %s. "
-msgstr ""
+"Can't login to your Diaspora account. Please check username and password and"
+" ensure you used the complete address (including http...)"
+msgstr "Nie możesz zalogować się na swoje konto Diaspora. Sprawdź nazwę użytkownika i hasło i upewnij się, że użyłeś pełnego adresu (w tym http ...)"
-#: diaspora.php:79
-msgid ""
-"This connector is only meant if you still want to use your old Diaspora "
-"account for some time. "
-msgstr "Ten łącznik jest przeznaczony do tego, gdy nadal chcesz korzystać ze starego konta Diaspora przez jakiś czas."
-
-#: diaspora.php:80
-#, php-format
-msgid ""
-"However, it is preferred that you tell your Diaspora contacts the new handle"
-" %s instead."
-msgstr ""
-
-#: diaspora.php:90
-msgid "All aspects"
-msgstr "Wszystkie aspekty"
-
-#: diaspora.php:91
-msgid "Public"
-msgstr "Publiczny"
-
-#: diaspora.php:97
-msgid "Post to aspect:"
-msgstr ""
-
-#: diaspora.php:98
-#, php-format
-msgid "Connected with your Diaspora account %s"
-msgstr "Połączony ze swoim kontem Diaspora %s"
-
-#: diaspora.php:101
-msgid ""
-"Can't login to your Diaspora account. Please check handle (in the format "
-"user@domain.tld) and password."
-msgstr ""
-
-#: diaspora.php:109
+#: diaspora.php:149 diaspora.php:153
msgid "Diaspora Export"
msgstr "Eksportuj do Diaspory"
-#: diaspora.php:110
-msgid "Information"
-msgstr "Informacja"
-
-#: diaspora.php:111
-msgid "Error"
-msgstr "Błąd"
-
-#: diaspora.php:112
-msgid "Save Settings"
-msgstr "Zapisz ustawienia"
-
-#: diaspora.php:116
+#: diaspora.php:163
msgid "Enable Diaspora Post Addon"
msgstr "Włącz dodatek Diaspora"
-#: diaspora.php:117
-msgid "Diaspora handle"
-msgstr ""
+#: diaspora.php:168
+msgid "Diaspora username"
+msgstr "Nazwa użytkownika Diaspora"
-#: diaspora.php:118
+#: diaspora.php:173
msgid "Diaspora password"
msgstr "Hasło Diaspora"
-#: diaspora.php:118
-msgid ""
-"Privacy notice: Your Diaspora password will be stored unencrypted to "
-"authenticate you with your Diaspora pod. This means your Friendica node "
-"administrator can have access to it."
-msgstr "Informacja o ochronie prywatności: Twoje hasło Diaspora będzie przechowywane w postaci niezaszyfrowanej w celu uwierzytelnienia użytkownika za pomocą Diaspora. Oznacza to, że administrator węzła Friendica może mieć do niego dostęp."
+#: diaspora.php:178
+msgid "Diaspora site URL"
+msgstr "Adres URL witryny Diaspora"
-#: diaspora.php:120
+#: diaspora.php:183
msgid "Post to Diaspora by default"
msgstr "Wyślij domyślnie do Diaspory"
-#: diaspora.php:138
-msgid "Diaspora settings updated."
-msgstr "Zaktualizowano ustawienia Diaspora."
+#: diaspora.php:189
+msgid "Save Settings"
+msgstr "Zapisz ustawienia"
-#: diaspora.php:141
-msgid "Diaspora connector disabled."
-msgstr "Połączenie z Diaspora wyłączone."
+#: diaspora.php:324
+msgid "Diaspora post failed. Queued for retry."
+msgstr "Post do Diaspora nie powiódł się. W kolejce do ponowienia."
diff --git a/diaspora/lang/pl/strings.php b/diaspora/lang/pl/strings.php
index fc026326..fd9158da 100644
--- a/diaspora/lang/pl/strings.php
+++ b/diaspora/lang/pl/strings.php
@@ -7,22 +7,12 @@ function string_plural_select_pl($n){
}}
;
$a->strings["Post to Diaspora"] = "Napisz do Diaspory";
-$a->strings["Please remember: You can always be reached from Diaspora with your Friendica handle %s. "] = "";
-$a->strings["This connector is only meant if you still want to use your old Diaspora account for some time. "] = "Ten łącznik jest przeznaczony do tego, gdy nadal chcesz korzystać ze starego konta Diaspora przez jakiś czas.";
-$a->strings["However, it is preferred that you tell your Diaspora contacts the new handle %s instead."] = "";
-$a->strings["All aspects"] = "Wszystkie aspekty";
-$a->strings["Public"] = "Publiczny";
-$a->strings["Post to aspect:"] = "";
-$a->strings["Connected with your Diaspora account %s"] = "Połączony ze swoim kontem Diaspora %s";
-$a->strings["Can't login to your Diaspora account. Please check handle (in the format user@domain.tld) and password."] = "";
+$a->strings["Can't login to your Diaspora account. Please check username and password and ensure you used the complete address (including http...)"] = "Nie możesz zalogować się na swoje konto Diaspora. Sprawdź nazwę użytkownika i hasło i upewnij się, że użyłeś pełnego adresu (w tym http ...)";
$a->strings["Diaspora Export"] = "Eksportuj do Diaspory";
-$a->strings["Information"] = "Informacja";
-$a->strings["Error"] = "Błąd";
-$a->strings["Save Settings"] = "Zapisz ustawienia";
$a->strings["Enable Diaspora Post Addon"] = "Włącz dodatek Diaspora";
-$a->strings["Diaspora handle"] = "";
+$a->strings["Diaspora username"] = "Nazwa użytkownika Diaspora";
$a->strings["Diaspora password"] = "Hasło Diaspora";
-$a->strings["Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it."] = "Informacja o ochronie prywatności: Twoje hasło Diaspora będzie przechowywane w postaci niezaszyfrowanej w celu uwierzytelnienia użytkownika za pomocą Diaspora. Oznacza to, że administrator węzła Friendica może mieć do niego dostęp.";
+$a->strings["Diaspora site URL"] = "Adres URL witryny Diaspora";
$a->strings["Post to Diaspora by default"] = "Wyślij domyślnie do Diaspory";
-$a->strings["Diaspora settings updated."] = "Zaktualizowano ustawienia Diaspora.";
-$a->strings["Diaspora connector disabled."] = "Połączenie z Diaspora wyłączone.";
+$a->strings["Save Settings"] = "Zapisz ustawienia";
+$a->strings["Diaspora post failed. Queued for retry."] = "Post do Diaspora nie powiódł się. W kolejce do ponowienia.";
diff --git a/diaspora/templates/settings.tpl b/diaspora/templates/settings.tpl
deleted file mode 100644
index dadebe44..00000000
--- a/diaspora/templates/settings.tpl
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
';
+ $s .= '';
}
function fromapp_post_hook(&$a, &$item)
@@ -81,8 +93,8 @@ function fromapp_post_hook(&$a, &$item)
return;
}
- $app = DI::pConfig()->get(local_user(), 'fromapp', 'app');
- $force = intval(DI::pConfig()->get(local_user(), 'fromapp', 'force'));
+ $app = PConfig::get(local_user(), 'fromapp', 'app');
+ $force = intval(PConfig::get(local_user(), 'fromapp', 'force'));
if (is_null($app) || (! strlen($app))) {
return;
diff --git a/fromapp/lang/ca/messages.po b/fromapp/lang/ca/messages.po
deleted file mode 100644
index 5cd22868..00000000
--- a/fromapp/lang/ca/messages.po
+++ /dev/null
@@ -1,43 +0,0 @@
-# ADDON fromapp
-# Copyright (C)
-# This file is distributed under the same license as the Friendica fromapp addon package.
-#
-#
-# Translators:
-# Joan Bar , 2019
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-02-19 16:42+0100\n"
-"PO-Revision-Date: 2019-10-18 18:50+0000\n"
-"Last-Translator: Joan Bar \n"
-"Language-Team: Catalan (http://www.transifex.com/Friendica/friendica/language/ca/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ca\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: fromapp.php:40
-msgid "Fromapp settings updated."
-msgstr "S'ha actualitzat la configuració de Fromapp"
-
-#: fromapp.php:65 fromapp.php:69
-msgid "FromApp Settings"
-msgstr "Configuració de FromApp"
-
-#: fromapp.php:72
-msgid ""
-"The application name you would like to show your posts originating from. "
-"Separate different app names with a comma. A random one will then be "
-"selected for every posting."
-msgstr "El nom de l'aplicació que voleu mostrar de les vostres publicacions originàries. Separeu diferents noms d'aplicacions amb una coma. A continuació, se seleccionarà un aleatori per a cada publicació."
-
-#: fromapp.php:76
-msgid "Use this application name even if another application was used."
-msgstr "Utilitzeu aquest nom d’aplicació encara que s’hagi utilitzat una altra aplicació."
-
-#: fromapp.php:83
-msgid "Save Settings"
-msgstr "Desa la Configuració"
diff --git a/fromapp/lang/ca/strings.php b/fromapp/lang/ca/strings.php
index c24ff44d..ffa2b4d0 100644
--- a/fromapp/lang/ca/strings.php
+++ b/fromapp/lang/ca/strings.php
@@ -1,13 +1,7 @@
-strings["Fromapp settings updated."] = "S'ha actualitzat la configuració de Fromapp";
-$a->strings["FromApp Settings"] = "Configuració de FromApp";
-$a->strings["The application name you would like to show your posts originating from. Separate different app names with a comma. A random one will then be selected for every posting."] = "El nom de l'aplicació que voleu mostrar de les vostres publicacions originàries. Separeu diferents noms d'aplicacions amb una coma. A continuació, se seleccionarà un aleatori per a cada publicació.";
-$a->strings["Use this application name even if another application was used."] = "Utilitzeu aquest nom d’aplicació encara que s’hagi utilitzat una altra aplicació.";
-$a->strings["Save Settings"] = "Desa la Configuració";
+strings["Fromapp settings updated."] = "";
+$a->strings["FromApp Settings"] = "";
+$a->strings["The application name you would like to show your posts originating from."] = "";
+$a->strings["Use this application name even if another application was used."] = "";
+$a->strings["Submit"] = "Enviar";
diff --git a/fromapp/lang/en-gb/messages.po b/fromapp/lang/en-gb/messages.po
deleted file mode 100644
index c477bbde..00000000
--- a/fromapp/lang/en-gb/messages.po
+++ /dev/null
@@ -1,43 +0,0 @@
-# ADDON fromapp
-# Copyright (C)
-# This file is distributed under the same license as the Friendica fromapp addon package.
-#
-#
-# Translators:
-# Andy H3 , 2018-2019
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-02-19 16:42+0100\n"
-"PO-Revision-Date: 2019-06-05 14:42+0000\n"
-"Last-Translator: Andy H3 \n"
-"Language-Team: English (United Kingdom) (http://www.transifex.com/Friendica/friendica/language/en_GB/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: en_GB\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: fromapp.php:40
-msgid "Fromapp settings updated."
-msgstr "FromApp settings updated."
-
-#: fromapp.php:65 fromapp.php:69
-msgid "FromApp Settings"
-msgstr "FromApp"
-
-#: fromapp.php:72
-msgid ""
-"The application name you would like to show your posts originating from. "
-"Separate different app names with a comma. A random one will then be "
-"selected for every posting."
-msgstr "The application name you would like to show your posts originating from. Separate different app names with a comma and a random one will be selected for every post."
-
-#: fromapp.php:76
-msgid "Use this application name even if another application was used."
-msgstr "Use this application name even if another application was used."
-
-#: fromapp.php:83
-msgid "Save Settings"
-msgstr "Save settings"
diff --git a/fromapp/lang/en-gb/strings.php b/fromapp/lang/en-gb/strings.php
deleted file mode 100644
index b2be2285..00000000
--- a/fromapp/lang/en-gb/strings.php
+++ /dev/null
@@ -1,13 +0,0 @@
-strings["Fromapp settings updated."] = "FromApp settings updated.";
-$a->strings["FromApp Settings"] = "FromApp";
-$a->strings["The application name you would like to show your posts originating from. Separate different app names with a comma. A random one will then be selected for every posting."] = "The application name you would like to show your posts originating from. Separate different app names with a comma and a random one will be selected for every post.";
-$a->strings["Use this application name even if another application was used."] = "Use this application name even if another application was used.";
-$a->strings["Save Settings"] = "Save settings";
diff --git a/fromgplus/README.md b/fromgplus/README.md
new file mode 100644
index 00000000..94b098cf
--- /dev/null
+++ b/fromgplus/README.md
@@ -0,0 +1,9 @@
+This extension fetches messages from a Google+ account and reshares it.
+
+To get the needed API key please follow these steps:
+
+* go to [https://code.google.com/apis/console/](https://code.google.com/apis/console/)
+* Create a new project or open an existing one
+* Activate the Google+ API
+* Go to the credentials
+* Create an API key (browser key) and leave the field for the referrer empty
diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php
new file mode 100644
index 00000000..245766dd
--- /dev/null
+++ b/fromgplus/fromgplus.php
@@ -0,0 +1,574 @@
+
+ * Status: unsupported
+ */
+
+define('FROMGPLUS_DEFAULT_POLL_INTERVAL', 30); // given in minutes
+
+use Friendica\Core\Config;
+use Friendica\Core\Hook;
+use Friendica\Core\L10n;
+use Friendica\Core\Logger;
+use Friendica\Core\PConfig;
+use Friendica\Core\Protocol;
+use Friendica\Core\Renderer;
+use Friendica\Object\Image;
+use Friendica\Util\DateTimeFormat;
+use Friendica\Util\Network;
+use Friendica\Model\Item;
+
+require_once 'mod/share.php';
+require_once 'mod/parse_url.php';
+function fromgplus_install() {
+ Hook::register('connector_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
+ Hook::register('connector_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
+ Hook::register('cron', 'addon/fromgplus/fromgplus.php', 'fromgplus_cron');
+}
+
+function fromgplus_uninstall() {
+ Hook::unregister('connector_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
+ Hook::unregister('connector_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
+ Hook::unregister('cron', 'addon/fromgplus/fromgplus.php', 'fromgplus_cron');
+
+ // Old hooks
+ Hook::unregister('addon_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
+ Hook::unregister('addon_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
+}
+
+function fromgplus_addon_settings(&$a,&$s) {
+
+ if(! local_user())
+ return;
+
+ // If "gpluspost" is installed as well, then the settings are displayed there
+ $result = q("SELECT `installed` FROM `addon` WHERE `name` = 'gpluspost' AND `installed`");
+ if (count($result) > 0)
+ return;
+
+ $enable_checked = (intval(PConfig::get(local_user(),'fromgplus','enable')) ? ' checked="checked"' : '');
+ $keywords_checked = (intval(PConfig::get(local_user(), 'fromgplus', 'keywords')) ? ' checked="checked"' : '');
+ $account = PConfig::get(local_user(),'fromgplus','account');
+
+ $s .= '';
+ $s .= '
' .DI::l10n()->t('Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon. The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar.') .'
';
+ $o = '
' .L10n::t('Information') .'
' .L10n::t('Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon. The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar.') .'
';
}
// output Gravatar settings
$o .= '';
$o .= Renderer::replaceMacros( $t, [
- '$submit' => DI::l10n()->t('Save Settings'),
- '$default_avatar' => ['avatar', DI::l10n()->t('Default avatar image'), $default_avatar, DI::l10n()->t('Select default avatar image if none was found at Gravatar. See README'), $default_avatars],
- '$rating' => ['rating', DI::l10n()->t('Rating of images'), $rating, DI::l10n()->t('Select the appropriate avatar rating for your site. See README'), $ratings],
+ '$submit' => L10n::t('Save Settings'),
+ '$default_avatar' => ['avatar', L10n::t('Default avatar image'), $default_avatar, L10n::t('Select default avatar image if none was found at Gravatar. See README'), $default_avatars],
+ '$rating' => ['rating', L10n::t('Rating of images'), $rating, L10n::t('Select the appropriate avatar rating for your site. See README'), $ratings],
]);
}
@@ -113,6 +123,7 @@ function gravatar_addon_admin_post (&$a) {
$default_avatar = (!empty($_POST['avatar']) ? Strings::escapeTags(trim($_POST['avatar'])) : 'identicon');
$rating = (!empty($_POST['rating']) ? Strings::escapeTags(trim($_POST['rating'])) : 'g');
- DI::config()->set('gravatar', 'default_avatar', $default_avatar);
- DI::config()->set('gravatar', 'rating', $rating);
+ Config::set('gravatar', 'default_avatar', $default_avatar);
+ Config::set('gravatar', 'rating', $rating);
+ info(L10n::t('Gravatar settings updated.') .EOL);
}
diff --git a/gravatar/lang/ca/messages.po b/gravatar/lang/ca/messages.po
deleted file mode 100644
index 1b86ea16..00000000
--- a/gravatar/lang/ca/messages.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# ADDON gravatar
-# Copyright (C)
-# This file is distributed under the same license as the Friendica gravatar addon package.
-#
-#
-# Translators:
-# Joan Bar , 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-10-18 18:47+0000\n"
-"Last-Translator: Joan Bar \n"
-"Language-Team: Catalan (http://www.transifex.com/Friendica/friendica/language/ca/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ca\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: gravatar.php:71
-msgid "generic profile image"
-msgstr "imatge de perfil genèrica"
-
-#: gravatar.php:72
-msgid "random geometric pattern"
-msgstr "patró geomètric aleatori"
-
-#: gravatar.php:73
-msgid "monster face"
-msgstr "cara de monstre"
-
-#: gravatar.php:74
-msgid "computer generated face"
-msgstr "cara generada per ordinador"
-
-#: gravatar.php:75
-msgid "retro arcade style face"
-msgstr "cara d’estil d’arcades retro"
-
-#: gravatar.php:89
-msgid "Information"
-msgstr "Informació"
-
-#: gravatar.php:89
-msgid ""
-"Libravatar addon is installed, too. Please disable Libravatar addon or this "
-"Gravatar addon. The Libravatar addon will fall back to Gravatar if "
-"nothing was found at Libravatar."
-msgstr "També hi ha instal·lat l’addon Libravatar. Inhabiliteu l'addon Libravatar o aquest addon Gravatar. Si no es va trobar res a Libravatar, l'afegit de Libravatar tornarà a aparèixer a Gravatar."
-
-#: gravatar.php:95
-msgid "Submit"
-msgstr "Presentar"
-
-#: gravatar.php:96
-msgid "Default avatar image"
-msgstr "Imatge predeterminada d’avatar"
-
-#: gravatar.php:96
-msgid "Select default avatar image if none was found at Gravatar. See README"
-msgstr "Seleccioneu la imatge d'avatar per defecte si no s'ha trobat cap a Gravatar. Vegeu LLEGIR"
-
-#: gravatar.php:97
-msgid "Rating of images"
-msgstr "Valoració d'imatges"
-
-#: gravatar.php:97
-msgid "Select the appropriate avatar rating for your site. See README"
-msgstr "Seleccioneu la qualificació d'avatar adequada per al vostre lloc. Vegeu LLEGIR"
-
-#: gravatar.php:111
-msgid "Gravatar settings updated."
-msgstr "S'han actualitzat els paràmetres de Gravatar."
diff --git a/gravatar/lang/ca/strings.php b/gravatar/lang/ca/strings.php
index 2c950e4c..44a7ff8c 100644
--- a/gravatar/lang/ca/strings.php
+++ b/gravatar/lang/ca/strings.php
@@ -1,21 +1,15 @@
-strings["generic profile image"] = "imatge de perfil genèrica";
-$a->strings["random geometric pattern"] = "patró geomètric aleatori";
-$a->strings["monster face"] = "cara de monstre";
-$a->strings["computer generated face"] = "cara generada per ordinador";
-$a->strings["retro arcade style face"] = "cara d’estil d’arcades retro";
-$a->strings["Information"] = "Informació";
-$a->strings["Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon. The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar."] = "També hi ha instal·lat l’addon Libravatar. Inhabiliteu l'addon Libravatar o aquest addon Gravatar. Si no es va trobar res a Libravatar, l'afegit de Libravatar tornarà a aparèixer a Gravatar.";
-$a->strings["Submit"] = "Presentar";
-$a->strings["Default avatar image"] = "Imatge predeterminada d’avatar";
-$a->strings["Select default avatar image if none was found at Gravatar. See README"] = "Seleccioneu la imatge d'avatar per defecte si no s'ha trobat cap a Gravatar. Vegeu LLEGIR";
-$a->strings["Rating of images"] = "Valoració d'imatges";
-$a->strings["Select the appropriate avatar rating for your site. See README"] = "Seleccioneu la qualificació d'avatar adequada per al vostre lloc. Vegeu LLEGIR";
-$a->strings["Gravatar settings updated."] = "S'han actualitzat els paràmetres de Gravatar.";
+strings["generic profile image"] = "imatge de perfil genérica";
+$a->strings["random geometric pattern"] = "Patró geometric aleatori";
+$a->strings["monster face"] = "Cara monstruosa";
+$a->strings["computer generated face"] = "Cara monstruosa generada per ordinador";
+$a->strings["retro arcade style face"] = "Cara d'estil arcade retro";
+$a->strings["Information"] = "informació";
+$a->strings["Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon. The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar."] = "";
+$a->strings["Submit"] = "Enviar";
+$a->strings["Default avatar image"] = "Imatge d'avatar per defecte";
+$a->strings["Select default avatar image if none was found at Gravatar. See README"] = "Se selecciona la imatge d'avatar per defecte si no es troba cap en Gravatar. Veure el README";
+$a->strings["Rating of images"] = "Classificació de les imatges";
+$a->strings["Select the appropriate avatar rating for your site. See README"] = "Selecciona la classe d'avatar apropiat pel teu lloc. Veure el README";
+$a->strings["Gravatar settings updated."] = "Ajustos de Gravatar actualitzats.";
diff --git a/gravatar/lang/nl/messages.po b/gravatar/lang/nl/messages.po
index da18b107..95b06ecd 100644
--- a/gravatar/lang/nl/messages.po
+++ b/gravatar/lang/nl/messages.po
@@ -4,15 +4,14 @@
#
#
# Translators:
-# Casper , 2020
# Jeroen De Meerleer , 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: 2020-03-27 08:59+0000\n"
-"Last-Translator: Casper \n"
+"PO-Revision-Date: 2018-08-24 13:49+0000\n"
+"Last-Translator: Jeroen De Meerleer \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"
@@ -42,7 +41,7 @@ msgstr ""
#: gravatar.php:89
msgid "Information"
-msgstr "Informatie"
+msgstr ""
#: gravatar.php:89
msgid ""
diff --git a/gravatar/lang/nl/strings.php b/gravatar/lang/nl/strings.php
index 9883c8c7..4b930a53 100644
--- a/gravatar/lang/nl/strings.php
+++ b/gravatar/lang/nl/strings.php
@@ -11,7 +11,7 @@ $a->strings["random geometric pattern"] = "Willekeurige geometrische figuur";
$a->strings["monster face"] = "";
$a->strings["computer generated face"] = "";
$a->strings["retro arcade style face"] = "";
-$a->strings["Information"] = "Informatie";
+$a->strings["Information"] = "";
$a->strings["Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon. The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar."] = "";
$a->strings["Submit"] = "";
$a->strings["Default avatar image"] = "";
diff --git a/group_text/group_text.php b/group_text/group_text.php
index e0e61ee5..47768df2 100644
--- a/group_text/group_text.php
+++ b/group_text/group_text.php
@@ -6,8 +6,9 @@
* Author: Thomas Willingham
*/
use Friendica\Core\Hook;
+use Friendica\Core\L10n;
use Friendica\Core\Logger;
-use Friendica\DI;
+use Friendica\Core\PConfig;
function group_text_install() {
@@ -17,6 +18,18 @@ function group_text_install() {
Logger::log("installed group_text");
}
+
+function group_text_uninstall() {
+
+ Hook::unregister('addon_settings', 'addon/group_text/group_text.php', 'group_text_settings');
+ Hook::unregister('addon_settings_post', 'addon/group_text/group_text.php', 'group_text_settings_post');
+
+
+ Logger::log("removed group_text");
+}
+
+
+
/**
*
* Callback from the settings post function.
@@ -29,7 +42,9 @@ function group_text_install() {
function group_text_settings_post($a,$post) {
if(! local_user() || empty($_POST['group_text-submit']))
return;
- DI::pConfig()->set(local_user(),'system','groupedit_image_limit',intval($_POST['group_text']));
+ PConfig::set(local_user(),'system','groupedit_image_limit',intval($_POST['group_text']));
+
+ info(L10n::t('Group Text settings updated.') . EOL);
}
@@ -49,24 +64,24 @@ function group_text_settings(&$a,&$s) {
/* Add our stylesheet to the page so we can make our settings look nice */
- DI::page()['htmlhead'] .= '' . "\r\n";
+ $a->page['htmlhead'] .= '' . "\r\n";
/* Get the current state of our config variable */
- $enabled = DI::pConfig()->get(local_user(),'system','groupedit_image_limit');
+ $enabled = PConfig::get(local_user(),'system','groupedit_image_limit');
$checked = (($enabled) ? ' checked="checked" ' : '');
/* Add some HTML to the existing form */
$s .= '
';
- $s .= '
' . DI::l10n()->t('Group Text') . '
';
+ $s .= '
' . L10n::t('Group Text') . '
';
$s .= '
';
- $s .= '';
+ $s .= '';
$s .= '';
$s .= '
';
/* provide a submit button */
- $s .= '
';
+ $s .= '';
}
diff --git a/group_text/lang/ca/messages.po b/group_text/lang/ca/messages.po
deleted file mode 100644
index 7081c0d7..00000000
--- a/group_text/lang/ca/messages.po
+++ /dev/null
@@ -1,36 +0,0 @@
-# ADDON group_text
-# Copyright (C)
-# This file is distributed under the same license as the Friendica group_text addon package.
-#
-#
-# Translators:
-# Joan Bar , 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-10-14 00:45+0000\n"
-"Last-Translator: Joan Bar \n"
-"Language-Team: Catalan (http://www.transifex.com/Friendica/friendica/language/ca/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ca\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: group_text.php:46
-msgid "Group Text settings updated."
-msgstr "La configuració del text del grup s'ha actualitzat."
-
-#: group_text.php:76
-msgid "Group Text"
-msgstr "Missatge del grup"
-
-#: group_text.php:78
-msgid "Use a text only (non-image) group selector in the \"group edit\" menu"
-msgstr "Utilitzeu un selector de grup de només text (que no sigui una imatge) al menú 'Edita grup'"
-
-#: group_text.php:84
-msgid "Submit"
-msgstr "sotmetre's"
diff --git a/group_text/lang/ca/strings.php b/group_text/lang/ca/strings.php
index 8072b46f..30e7771f 100644
--- a/group_text/lang/ca/strings.php
+++ b/group_text/lang/ca/strings.php
@@ -1,12 +1,6 @@
-strings["Group Text settings updated."] = "La configuració del text del grup s'ha actualitzat.";
-$a->strings["Group Text"] = "Missatge del grup";
-$a->strings["Use a text only (non-image) group selector in the \"group edit\" menu"] = "Utilitzeu un selector de grup de només text (que no sigui una imatge) al menú 'Edita grup'";
-$a->strings["Submit"] = "sotmetre's";
+strings["Group Text settings updated."] = "";
+$a->strings["Group Text"] = "";
+$a->strings["Use a text only (non-image) group selector in the \"group edit\" menu"] = "";
+$a->strings["Submit"] = "Enviar";
diff --git a/highlightjs/highlightjs.php b/highlightjs/highlightjs.php
index c46c26ae..258cb4ad 100644
--- a/highlightjs/highlightjs.php
+++ b/highlightjs/highlightjs.php
@@ -8,7 +8,6 @@
use Friendica\App;
use Friendica\Core\Hook;
-use Friendica\DI;
function highlightjs_install()
{
@@ -16,6 +15,12 @@ function highlightjs_install()
Hook::register('footer', __FILE__, 'highlightjs_footer');
}
+function highlightjs_uninstall()
+{
+ Hook::unregister('head' , __FILE__, 'highlightjs_head');
+ Hook::unregister('footer', __FILE__, 'highlightjs_footer');
+}
+
function highlightjs_head(App $a, &$b)
{
if ($a->getCurrentTheme() == 'frio') {
@@ -24,11 +29,11 @@ function highlightjs_head(App $a, &$b)
$style = 'default';
}
- DI::page()->registerStylesheet(__DIR__ . '/asset/styles/' . $style . '.css');
+ $a->registerStylesheet(__DIR__ . '/asset/styles/' . $style . '.css');
}
function highlightjs_footer(App $a, &$b)
{
- DI::page()->registerFooterScript(__DIR__ . '/asset/highlight.pack.js');
- DI::page()->registerFooterScript(__DIR__ . '/highlightjs.js');
+ $a->registerFooterScript(__DIR__ . '/asset/highlight.pack.js');
+ $a->registerFooterScript(__DIR__ . '/highlightjs.js');
}
diff --git a/ifttt/ifttt.php b/ifttt/ifttt.php
index 5021a63e..3bb55f35 100644
--- a/ifttt/ifttt.php
+++ b/ifttt/ifttt.php
@@ -8,12 +8,12 @@
*/
require_once 'mod/item.php';
use Friendica\App;
-use Friendica\Content\PageInfo;
use Friendica\Core\Hook;
+use Friendica\Core\L10n;
use Friendica\Core\Logger;
+use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
-use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Util\Strings;
@@ -23,6 +23,12 @@ function ifttt_install()
Hook::register('connector_settings_post', 'addon/ifttt/ifttt.php', 'ifttt_settings_post');
}
+function ifttt_uninstall()
+{
+ Hook::unregister('connector_settings', 'addon/ifttt/ifttt.php', 'ifttt_settings');
+ Hook::unregister('connector_settings_post', 'addon/ifttt/ifttt.php', 'ifttt_settings_post');
+}
+
function ifttt_module()
{
@@ -39,50 +45,50 @@ function ifttt_settings(App $a, &$s)
return;
}
- $key = DI::pConfig()->get(local_user(), 'ifttt', 'key');
+ $key = PConfig::get(local_user(), 'ifttt', 'key');
if (!$key) {
$key = Strings::getRandomHex(20);
- DI::pConfig()->set(local_user(), 'ifttt', 'key', $key);
+ PConfig::set(local_user(), 'ifttt', 'key', $key);
}
$s .= '';
- $s .= '
' . DI::l10n()->t('IFTTT Mirror') . '
';
+ $s .= '
' . L10n::t('IFTTT Mirror') . '
';
$s .= '';
$s .= '
';
$s .= '';
- $s .= '
' . DI::l10n()->t('IFTTT Mirror') . '
';
+ $s .= '
' . L10n::t('IFTTT Mirror') . '
';
$s .= '';
$s .= '
';
- $s .= '
' . DI::l10n()->t('Create an account at IFTTT. Create three Facebook recipes that are connected with Maker (In the form "if Facebook then Maker") with the following parameters:') . '
';
+ $s .= '
' . L10n::t('Create an account at IFTTT. Create three Facebook recipes that are connected with Maker (In the form "if Facebook then Maker") with the following parameters:') . '
'.DI::l10n()->t('The impressum addon needs to be configured! Please add at least the owner variable to your config file. For other variables please refer to the README file of the addon.').'
';
+ $b .= '
'.L10n::t('The impressum addon needs to be configured! Please add at least the owner variable to your config file. For other variables please refer to the README file of the addon.').'
';
}
}
@@ -85,22 +93,23 @@ function impressum_addon_admin_post (&$a) {
$notes = (!empty($_POST['notes']) ? (trim($_POST['notes'])) : '');
$email = (!empty($_POST['email']) ? Strings::escapeTags(trim($_POST['email'])) : '');
$footer_text = (!empty($_POST['footer_text']) ? (trim($_POST['footer_text'])) : '');
- DI::config()->set('impressum','owner',strip_tags($owner));
- DI::config()->set('impressum','ownerprofile',strip_tags($ownerprofile));
- DI::config()->set('impressum','postal',strip_tags($postal));
- DI::config()->set('impressum','email',strip_tags($email));
- DI::config()->set('impressum','notes',strip_tags($notes));
- DI::config()->set('impressum','footer_text',strip_tags($footer_text));
+ Config::set('impressum','owner',strip_tags($owner));
+ Config::set('impressum','ownerprofile',strip_tags($ownerprofile));
+ Config::set('impressum','postal',strip_tags($postal));
+ Config::set('impressum','email',strip_tags($email));
+ Config::set('impressum','notes',strip_tags($notes));
+ Config::set('impressum','footer_text',strip_tags($footer_text));
+ info(L10n::t('Settings updated.'). EOL );
}
function impressum_addon_admin (&$a, &$o) {
$t = Renderer::getMarkupTemplate( "admin.tpl", "addon/impressum/" );
$o = Renderer::replaceMacros($t, [
- '$submit' => DI::l10n()->t('Save Settings'),
- '$owner' => ['owner', DI::l10n()->t('Site Owner'), DI::config()->get('impressum','owner'), DI::l10n()->t('The page operators name.')],
- '$ownerprofile' => ['ownerprofile', DI::l10n()->t('Site Owners Profile'), DI::config()->get('impressum','ownerprofile'), DI::l10n()->t('Profile address of the operator.')],
- '$postal' => ['postal', DI::l10n()->t('Postal Address'), DI::config()->get('impressum','postal'), DI::l10n()->t('How to contact the operator via snail mail. You can use BBCode here.')],
- '$notes' => ['notes', DI::l10n()->t('Notes'), DI::config()->get('impressum','notes'), DI::l10n()->t('Additional notes that are displayed beneath the contact information. You can use BBCode here.')],
- '$email' => ['email', DI::l10n()->t('Email Address'), DI::config()->get('impressum','email'), DI::l10n()->t('How to contact the operator via email. (will be displayed obfuscated)')],
- '$footer_text' => ['footer_text', DI::l10n()->t('Footer note'), DI::config()->get('impressum','footer_text'), DI::l10n()->t('Text for the footer. You can use BBCode here.')],
+ '$submit' => L10n::t('Save Settings'),
+ '$owner' => ['owner', L10n::t('Site Owner'), Config::get('impressum','owner'), L10n::t('The page operators name.')],
+ '$ownerprofile' => ['ownerprofile', L10n::t('Site Owners Profile'), Config::get('impressum','ownerprofile'), L10n::t('Profile address of the operator.')],
+ '$postal' => ['postal', L10n::t('Postal Address'), Config::get('impressum','postal'), L10n::t('How to contact the operator via snail mail. You can use BBCode here.')],
+ '$notes' => ['notes', L10n::t('Notes'), Config::get('impressum','notes'), L10n::t('Additional notes that are displayed beneath the contact information. You can use BBCode here.')],
+ '$email' => ['email', L10n::t('Email Address'), Config::get('impressum','email'), L10n::t('How to contact the operator via email. (will be displayed obfuscated)')],
+ '$footer_text' => ['footer_text', L10n::t('Footer note'), Config::get('impressum','footer_text'), L10n::t('Text for the footer. You can use BBCode here.')],
]);
}
diff --git a/impressum/lang/ca/messages.po b/impressum/lang/ca/messages.po
deleted file mode 100644
index 025a03e3..00000000
--- a/impressum/lang/ca/messages.po
+++ /dev/null
@@ -1,89 +0,0 @@
-# ADDON impressum
-# Copyright (C)
-# This file is distributed under the same license as the Friendica impressum addon package.
-#
-#
-# Translators:
-# Joan Bar , 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-10-18 20:58+0000\n"
-"Last-Translator: Joan Bar \n"
-"Language-Team: Catalan (http://www.transifex.com/Friendica/friendica/language/ca/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ca\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: impressum.php:37
-msgid "Impressum"
-msgstr "empremta"
-
-#: impressum.php:50 impressum.php:52 impressum.php:84
-msgid "Site Owner"
-msgstr "Propietari del lloc"
-
-#: impressum.php:50 impressum.php:88
-msgid "Email Address"
-msgstr "Correu electrònic"
-
-#: impressum.php:55 impressum.php:86
-msgid "Postal Address"
-msgstr "Adreça postal"
-
-#: impressum.php:61
-msgid ""
-"The impressum addon needs to be configured! Please add at least the "
-"owner variable to your config file. For other variables please "
-"refer to the README file of the addon."
-msgstr "Cal configurar l’addon impressum Afegiu com a mínim la secció owner variable del fitxer de configuració. Per a altres variables, consulteu el fitxer README de l’adjunció."
-
-#: impressum.php:78
-msgid "Settings updated."
-msgstr "La configuració s'ha actualitzat."
-
-#: impressum.php:83
-msgid "Submit"
-msgstr "sotmetre's"
-
-#: impressum.php:84
-msgid "The page operators name."
-msgstr "El nom dels operadors de pàgina."
-
-#: impressum.php:85
-msgid "Site Owners Profile"
-msgstr "Perfil dels propietaris del lloc"
-
-#: impressum.php:85
-msgid "Profile address of the operator."
-msgstr "Adreça del perfil de l'operador."
-
-#: impressum.php:86
-msgid "How to contact the operator via snail mail. You can use BBCode here."
-msgstr "Com contactar amb l'operador mitjançant correu cargol. Podeu utilitzar BBCode aquí."
-
-#: impressum.php:87
-msgid "Notes"
-msgstr "nota"
-
-#: impressum.php:87
-msgid ""
-"Additional notes that are displayed beneath the contact information. You can"
-" use BBCode here."
-msgstr "Notes addicionals que es mostren a sota de la informació de contacte. Podeu utilitzar BBCode aquí."
-
-#: impressum.php:88
-msgid "How to contact the operator via email. (will be displayed obfuscated)"
-msgstr "Com contactar amb l'operador per correu electrònic. (es mostrarà ofuscat)"
-
-#: impressum.php:89
-msgid "Footer note"
-msgstr "Nota de peu de pàgina"
-
-#: impressum.php:89
-msgid "Text for the footer. You can use BBCode here."
-msgstr "Text for the footer. You can use BBCode here."
diff --git a/impressum/lang/ca/strings.php b/impressum/lang/ca/strings.php
index 2f2e59e2..4de1f0c3 100644
--- a/impressum/lang/ca/strings.php
+++ b/impressum/lang/ca/strings.php
@@ -1,24 +1,18 @@
-strings["Impressum"] = "empremta";
-$a->strings["Site Owner"] = "Propietari del lloc";
-$a->strings["Email Address"] = "Correu electrònic";
-$a->strings["Postal Address"] = "Adreça postal";
-$a->strings["The impressum addon needs to be configured! Please add at least the owner variable to your config file. For other variables please refer to the README file of the addon."] = "Cal configurar l’addon impressum Afegiu com a mínim la secció owner variable del fitxer de configuració. Per a altres variables, consulteu el fitxer README de l’adjunció.";
-$a->strings["Settings updated."] = "La configuració s'ha actualitzat.";
-$a->strings["Submit"] = "sotmetre's";
-$a->strings["The page operators name."] = "El nom dels operadors de pàgina.";
-$a->strings["Site Owners Profile"] = "Perfil dels propietaris del lloc";
-$a->strings["Profile address of the operator."] = "Adreça del perfil de l'operador.";
-$a->strings["How to contact the operator via snail mail. You can use BBCode here."] = "Com contactar amb l'operador mitjançant correu cargol. Podeu utilitzar BBCode aquí.";
-$a->strings["Notes"] = "nota";
-$a->strings["Additional notes that are displayed beneath the contact information. You can use BBCode here."] = "Notes addicionals que es mostren a sota de la informació de contacte. Podeu utilitzar BBCode aquí.";
-$a->strings["How to contact the operator via email. (will be displayed obfuscated)"] = "Com contactar amb l'operador per correu electrònic. (es mostrarà ofuscat)";
-$a->strings["Footer note"] = "Nota de peu de pàgina";
-$a->strings["Text for the footer. You can use BBCode here."] = "Text for the footer. You can use BBCode here.";
+strings["Impressum"] = "Impressum";
+$a->strings["Site Owner"] = "Propietari del lloc";
+$a->strings["Email Address"] = "Adreça de correu";
+$a->strings["Postal Address"] = "Adreça postal";
+$a->strings["The impressum addon needs to be configured! Please add at least the owner variable to your config file. For other variables please refer to the README file of the addon."] = "El complement impressum s'ha de configurar! Si us plau afegiu almenys la variable propietari al fitxer de configuració. Per a les altres variables, consulteu el fitxer README del complement.";
+$a->strings["Settings updated."] = "Ajustos actualitzats.";
+$a->strings["Submit"] = "Enviar";
+$a->strings["The page operators name."] = "Nom de la pàgina del gestor.";
+$a->strings["Site Owners Profile"] = "Perfil del Propietari del Lloc";
+$a->strings["Profile address of the operator."] = "Adreça del perfil del gestor.";
+$a->strings["How to contact the operator via snail mail. You can use BBCode here."] = "Com posar-se en contacte amb l'operador a través de correu postal. Vostè pot utilitzar BBCode aquí.";
+$a->strings["Notes"] = "Notes";
+$a->strings["Additional notes that are displayed beneath the contact information. You can use BBCode here."] = "Notes addicionals que es mostren sota de la informació de contacte. Vostè pot usar BBCode aquí.";
+$a->strings["How to contact the operator via email. (will be displayed obfuscated)"] = "Com contactar amb el gestor via correu electronic. ( es visualitzara ofuscat)";
+$a->strings["Footer note"] = "Nota a peu de pàgina";
+$a->strings["Text for the footer. You can use BBCode here."] = "Text pel peu de pàgina. Pots emprar BBCode aquí.";
diff --git a/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php b/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php
index a4998264..a71fe651 100644
--- a/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php
+++ b/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php
@@ -6,16 +6,21 @@
* Author: Thomas Willingham
*/
use Friendica\Core\Hook;
-use Friendica\DI;
+use Friendica\Core\L10n;
function infiniteimprobabilitydrive_install()
{
Hook::register('app_menu', 'addon/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php', 'infiniteimprobabilitydrive_app_menu');
}
+function infiniteimprobabilitydrive_uninstall()
+{
+ Hook::unregister('app_menu', 'addon/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php', 'infiniteimprobabilitydrive_app_menu');
+}
+
function infiniteimprobabilitydrive_app_menu($a, &$b)
{
- $b['app_menu'][] = '
EOT;
@@ -122,17 +132,19 @@ function irc_addon_admin_post (&$a) {
return;
if($_POST['irc-submit']) {
- DI::config()->set('irc','autochans',trim($_POST['autochans']));
- DI::config()->set('irc','sitechats',trim($_POST['sitechats']));
+ Config::set('irc','autochans',trim($_POST['autochans']));
+ Config::set('irc','sitechats',trim($_POST['sitechats']));
+ /* stupid pop-up thing */
+ info(L10n::t('IRC settings saved.') . EOL);
}
}
function irc_addon_admin (&$a, &$o) {
- $sitechats = DI::config()->get('irc','sitechats'); /* popular channels */
- $autochans = DI::config()->get('irc','autochans'); /* auto connect chans */
+ $sitechats = Config::get('irc','sitechats'); /* popular channels */
+ $autochans = Config::get('irc','autochans'); /* auto connect chans */
$t = Renderer::getMarkupTemplate( "admin.tpl", "addon/irc/" );
$o = Renderer::replaceMacros($t, [
- '$submit' => DI::l10n()->t('Save Settings'),
- '$autochans' => [ 'autochans', DI::l10n()->t('Channel(s) to auto connect (comma separated)'), $autochans, DI::l10n()->t('List of channels that shall automatically connected to when the app is launched.')],
- '$sitechats' => [ 'sitechats', DI::l10n()->t('Popular Channels (comma separated)'), $sitechats, DI::l10n()->t('List of popular channels, will be displayed at the side and hotlinked for easy joining.') ]
+ '$submit' => L10n::t('Save Settings'),
+ '$autochans' => [ 'autochans', L10n::t('Channel(s) to auto connect (comma separated)'), $autochans, L10n::t('List of channels that shall automatically connected to when the app is launched.')],
+ '$sitechats' => [ 'sitechats', L10n::t('Popular Channels (comma separated)'), $sitechats, L10n::t('List of popular channels, will be displayed at the side and hotlinked for easy joining.') ]
]);
}
diff --git a/irc/lang/fr/messages.po b/irc/lang/fr/messages.po
deleted file mode 100644
index 330048bb..00000000
--- a/irc/lang/fr/messages.po
+++ /dev/null
@@ -1,68 +0,0 @@
-# ADDON irc
-# Copyright (C)
-# This file is distributed under the same license as the Friendica irc addon package.
-#
-#
-# Translators:
-# ButterflyOfFire, 2020
-# StefOfficiel , 2015
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-07-08 13:17+0200\n"
-"PO-Revision-Date: 2020-02-27 22:17+0000\n"
-"Last-Translator: ButterflyOfFire\n"
-"Language-Team: French (http://www.transifex.com/Friendica/friendica/language/fr/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: fr\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-
-#: irc.php:37
-msgid "IRC Settings"
-msgstr "Paramètres de l'IRC"
-
-#: irc.php:38
-msgid ""
-"Here you can change the system wide settings for the channels to "
-"automatically join and access via the side bar. Note the changes you do "
-"here, only effect the channel selection if you are logged in."
-msgstr ""
-
-#: irc.php:39 irc.php:136
-msgid "Save Settings"
-msgstr "Sauvegarder les paramètres"
-
-#: irc.php:40 irc.php:137
-msgid "Channel(s) to auto connect (comma separated)"
-msgstr ""
-
-#: irc.php:40 irc.php:137
-msgid ""
-"List of channels that shall automatically connected to when the app is "
-"launched."
-msgstr ""
-
-#: irc.php:41 irc.php:138
-msgid "Popular Channels (comma separated)"
-msgstr ""
-
-#: irc.php:41 irc.php:138
-msgid ""
-"List of popular channels, will be displayed at the side and hotlinked for "
-"easy joining."
-msgstr ""
-
-#: irc.php:57 irc.php:128
-msgid "IRC settings saved."
-msgstr ""
-
-#: irc.php:62
-msgid "IRC Chatroom"
-msgstr ""
-
-#: irc.php:90
-msgid "Popular Channels"
-msgstr ""
diff --git a/irc/lang/fr/strings.php b/irc/lang/fr/strings.php
index a6244e25..b1693194 100644
--- a/irc/lang/fr/strings.php
+++ b/irc/lang/fr/strings.php
@@ -1,18 +1,9 @@
- 1);;
-}}
-;
-$a->strings["IRC Settings"] = "Paramètres de l'IRC";
-$a->strings["Here you can change the system wide settings for the channels to automatically join and access via the side bar. Note the changes you do here, only effect the channel selection if you are logged in."] = "";
-$a->strings["Save Settings"] = "Sauvegarder les paramètres";
-$a->strings["Channel(s) to auto connect (comma separated)"] = "";
-$a->strings["List of channels that shall automatically connected to when the app is launched."] = "";
-$a->strings["Popular Channels (comma separated)"] = "";
-$a->strings["List of popular channels, will be displayed at the side and hotlinked for easy joining."] = "";
-$a->strings["IRC settings saved."] = "";
-$a->strings["IRC Chatroom"] = "";
-$a->strings["Popular Channels"] = "";
+strings["IRC Settings"] = "Réglages IRC";
+$a->strings["Channel(s) to auto connect (comma separated)"] = "Canaux à rejoindre automatiquement (séparés par des virgules)";
+$a->strings["Popular Channels (comma separated)"] = "Canaux populaires (séparés par des virgules)";
+$a->strings["Submit"] = "Envoyer";
+$a->strings["IRC settings saved."] = "Réglages IRC sauvés.";
+$a->strings["IRC Chatroom"] = "Salon IRC";
+$a->strings["Popular Channels"] = "Canaux populaires";
diff --git a/irc/lang/it/messages.po b/irc/lang/it/messages.po
index bbd199b8..69d28e89 100644
--- a/irc/lang/it/messages.po
+++ b/irc/lang/it/messages.po
@@ -5,14 +5,13 @@
#
# Translators:
# fabrixxm , 2014-2015
-# Sylke Vicious , 2020
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-07-08 13:17+0200\n"
-"PO-Revision-Date: 2020-09-17 11:40+0000\n"
-"Last-Translator: Sylke Vicious \n"
+"PO-Revision-Date: 2017-09-20 06:08+0000\n"
+"Last-Translator: fabrixxm \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"
@@ -53,7 +52,7 @@ msgstr "Canali popolari (separati da virgola)"
msgid ""
"List of popular channels, will be displayed at the side and hotlinked for "
"easy joining."
-msgstr "Lista di canali popolari: sarà visualizzata a lato e provvista di collegamento per facilitare l'adesione."
+msgstr "Lista di canali popolari: sarà visualizzata a lato e provvista di link per facilitare l'adesione."
#: irc.php:57 irc.php:128
msgid "IRC settings saved."
diff --git a/irc/lang/it/strings.php b/irc/lang/it/strings.php
index 0c970453..19b55649 100644
--- a/irc/lang/it/strings.php
+++ b/irc/lang/it/strings.php
@@ -2,7 +2,6 @@
if(! function_exists("string_plural_select_it")) {
function string_plural_select_it($n){
- $n = intval($n);
return ($n != 1);;
}}
;
@@ -12,7 +11,7 @@ $a->strings["Save Settings"] = "Salva Impostazioni";
$a->strings["Channel(s) to auto connect (comma separated)"] = "Canale(i) a cui autocollegarsi (separati da virgola)";
$a->strings["List of channels that shall automatically connected to when the app is launched."] = "Lista di canali che a cui connettersi automaticamente quando l'app è avviata.";
$a->strings["Popular Channels (comma separated)"] = "Canali popolari (separati da virgola)";
-$a->strings["List of popular channels, will be displayed at the side and hotlinked for easy joining."] = "Lista di canali popolari: sarà visualizzata a lato e provvista di collegamento per facilitare l'adesione.";
+$a->strings["List of popular channels, will be displayed at the side and hotlinked for easy joining."] = "Lista di canali popolari: sarà visualizzata a lato e provvista di link per facilitare l'adesione.";
$a->strings["IRC settings saved."] = "Impostazioni IRC salvate.";
$a->strings["IRC Chatroom"] = "Stanza IRC";
$a->strings["Popular Channels"] = "Canali Popolari";
diff --git a/irc/lang/zh-cn/messages.po b/irc/lang/zh-cn/messages.po
deleted file mode 100644
index 46714652..00000000
--- a/irc/lang/zh-cn/messages.po
+++ /dev/null
@@ -1,68 +0,0 @@
-# ADDON irc
-# Copyright (C)
-# This file is distributed under the same license as the Friendica irc addon package.
-#
-#
-# Translators:
-# steve jobs , 2020
-# 朱陈锬 , 2018
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-07-08 13:17+0200\n"
-"PO-Revision-Date: 2020-06-10 12:33+0000\n"
-"Last-Translator: steve jobs \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"
-
-#: irc.php:37
-msgid "IRC Settings"
-msgstr "IRC 设置"
-
-#: irc.php:38
-msgid ""
-"Here you can change the system wide settings for the channels to "
-"automatically join and access via the side bar. Note the changes you do "
-"here, only effect the channel selection if you are logged in."
-msgstr "在这里,您可以更改系统范围内的设置,以便通过侧栏自动连接和访问频道。请注意此处所做的更改,仅当您登录时才影响频道选择。"
-
-#: irc.php:39 irc.php:136
-msgid "Save Settings"
-msgstr "保存设置"
-
-#: irc.php:40 irc.php:137
-msgid "Channel(s) to auto connect (comma separated)"
-msgstr "要自动连接的通道(逗号分隔)"
-
-#: irc.php:40 irc.php:137
-msgid ""
-"List of channels that shall automatically connected to when the app is "
-"launched."
-msgstr "应用程序启动时应自动连接的频道列表。"
-
-#: irc.php:41 irc.php:138
-msgid "Popular Channels (comma separated)"
-msgstr "热门频道 (逗号分隔)"
-
-#: irc.php:41 irc.php:138
-msgid ""
-"List of popular channels, will be displayed at the side and hotlinked for "
-"easy joining."
-msgstr "热门频道列表将显示在侧边,并提供链接以方便加入。"
-
-#: irc.php:57 irc.php:128
-msgid "IRC settings saved."
-msgstr "IRC 设置已保存。"
-
-#: irc.php:62
-msgid "IRC Chatroom"
-msgstr "IRC 聊天室"
-
-#: irc.php:90
-msgid "Popular Channels"
-msgstr "热门频道"
diff --git a/irc/lang/zh-cn/strings.php b/irc/lang/zh-cn/strings.php
index 4268cd1e..e526182f 100644
--- a/irc/lang/zh-cn/strings.php
+++ b/irc/lang/zh-cn/strings.php
@@ -1,18 +1,9 @@
-strings["IRC Settings"] = "IRC 设置";
-$a->strings["Here you can change the system wide settings for the channels to automatically join and access via the side bar. Note the changes you do here, only effect the channel selection if you are logged in."] = "在这里,您可以更改系统范围内的设置,以便通过侧栏自动连接和访问频道。请注意此处所做的更改,仅当您登录时才影响频道选择。";
-$a->strings["Save Settings"] = "保存设置";
-$a->strings["Channel(s) to auto connect (comma separated)"] = "要自动连接的通道(逗号分隔)";
-$a->strings["List of channels that shall automatically connected to when the app is launched."] = "应用程序启动时应自动连接的频道列表。";
-$a->strings["Popular Channels (comma separated)"] = "热门频道 (逗号分隔)";
-$a->strings["List of popular channels, will be displayed at the side and hotlinked for easy joining."] = "热门频道列表将显示在侧边,并提供链接以方便加入。";
-$a->strings["IRC settings saved."] = "IRC 设置已保存。";
-$a->strings["IRC Chatroom"] = "IRC 聊天室";
-$a->strings["Popular Channels"] = "热门频道";
+strings["IRC Settings"] = "IRC设置";
+$a->strings["Channel(s) to auto connect (comma separated)"] = "频道要自动地连接(逗号分隔)";
+$a->strings["Popular Channels (comma separated)"] = "流行频道(逗号分隔)";
+$a->strings["Submit"] = "提交";
+$a->strings["IRC settings saved."] = "IRC设置保存了。";
+$a->strings["IRC Chatroom"] = "IRC聊间";
+$a->strings["Popular Channels"] = "流行频道";
diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php
index 0333d8ec..f11e9b11 100644
--- a/jappixmini/jappixmini.php
+++ b/jappixmini/jappixmini.php
@@ -63,12 +63,15 @@
*/
use Friendica\App;
+use Friendica\Core\Config;
use Friendica\Core\Hook;
+use Friendica\Core\L10n;
use Friendica\Core\Logger;
+use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
-use Friendica\DI;
use Friendica\Model\User;
+use Friendica\Util\Network;
function jappixmini_install()
{
@@ -84,26 +87,39 @@ function jappixmini_install()
Hook::register('about_hook', 'addon/jappixmini/jappixmini.php', 'jappixmini_download_source');
// set standard configuration
- $info_text = DI::config()->get("jappixmini", "infotext");
+ $info_text = Config::get("jappixmini", "infotext");
if (!$info_text)
- DI::config()->set("jappixmini", "infotext", "To get the chat working, you need to know a BOSH host which works with your Jabber account. " .
+ Config::set("jappixmini", "infotext", "To get the chat working, you need to know a BOSH host which works with your Jabber account. " .
"An example of a BOSH server that works for all accounts is https://bind.jappix.com/, but keep " .
"in mind that the BOSH server can read along all chat messages. If you know that your Jabber " .
"server also provides an own BOSH server, it is much better to use this one!"
);
- $bosh_proxy = DI::config()->get("jappixmini", "bosh_proxy");
+ $bosh_proxy = Config::get("jappixmini", "bosh_proxy");
if ($bosh_proxy === "") {
- DI::config()->set("jappixmini", "bosh_proxy", "1");
+ Config::set("jappixmini", "bosh_proxy", "1");
}
// set addon version so that safe updates are possible later
- $addon_version = DI::config()->get("jappixmini", "version");
+ $addon_version = Config::get("jappixmini", "version");
if ($addon_version === "") {
- DI::config()->set("jappixmini", "version", "1");
+ Config::set("jappixmini", "version", "1");
}
}
+function jappixmini_uninstall()
+{
+ Hook::unregister('addon_settings', 'addon/jappixmini/jappixmini.php', 'jappixmini_settings');
+ Hook::unregister('addon_settings_post', 'addon/jappixmini/jappixmini.php', 'jappixmini_settings_post');
+
+ Hook::unregister('page_end', 'addon/jappixmini/jappixmini.php', 'jappixmini_script');
+ Hook::unregister('authenticate', 'addon/jappixmini/jappixmini.php', 'jappixmini_login');
+
+ Hook::unregister('cron', 'addon/jappixmini/jappixmini.php', 'jappixmini_cron');
+
+ Hook::unregister('about_hook', 'addon/jappixmini/jappixmini.php', 'jappixmini_download_source');
+}
+
function jappixmini_addon_admin(App $a, &$o)
{
// display instructions and warnings on addon settings page for admin
@@ -112,35 +128,35 @@ function jappixmini_addon_admin(App $a, &$o)
}
// warn if cron job has not yet been executed
- $cron_run = DI::config()->get("jappixmini", "last_cron_execution");
+ $cron_run = Config::get("jappixmini", "last_cron_execution");
if (!$cron_run) {
$o .= "
Warning: The cron job has not yet been executed. If this message is still there after some time (usually 10 minutes), this means that autosubscribe and autoaccept will not work.