forked from friendica/friendica-addons
Compare commits
4 commits
a97cccb6b2
...
179382d8a9
Author | SHA1 | Date | |
---|---|---|---|
heluecht | 179382d8a9 | ||
Tobias Diekershoff | a55f80cb39 | ||
Tobias Diekershoff | 4ad7d61893 | ||
Michael | 4bfdb45e81 |
|
@ -294,9 +294,9 @@ function bluesky_block(array &$hook_data)
|
||||||
|
|
||||||
$activity = bluesky_xrpc_post($hook_data['uid'], 'com.atproto.repo.createRecord', $post);
|
$activity = bluesky_xrpc_post($hook_data['uid'], 'com.atproto.repo.createRecord', $post);
|
||||||
if (!empty($activity->uri)) {
|
if (!empty($activity->uri)) {
|
||||||
$cdata = Contact::getPublicAndUserContactID($hook_data['contact']['id'], $hook_data['uid']);
|
$ucid = Contact::getUserContactId($hook_data['contact']['id'], $hook_data['uid']);
|
||||||
if (!empty($cdata['user'])) {
|
if ($ucid) {
|
||||||
Contact::remove($cdata['user']);
|
Contact::remove($ucid);
|
||||||
}
|
}
|
||||||
Logger::debug('Successfully blocked contact', ['url' => $hook_data['contact']['url'], 'uri' => $activity->uri]);
|
Logger::debug('Successfully blocked contact', ['url' => $hook_data['contact']['url'], 'uri' => $activity->uri]);
|
||||||
}
|
}
|
||||||
|
@ -975,6 +975,7 @@ function bluesky_upload_blob(int $uid, array $photo): ?stdClass
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item::incrementOutbound(Protocol::BLUESKY);
|
||||||
Logger::debug('Uploaded blob', ['return' => $data, 'uid' => $uid, 'retrial' => $retrial, 'height' => $new_height, 'width' => $new_width, 'size' => $new_size, 'orig-height' => $height, 'orig-width' => $width, 'orig-size' => $size]);
|
Logger::debug('Uploaded blob', ['return' => $data, 'uid' => $uid, 'retrial' => $retrial, 'height' => $new_height, 'width' => $new_width, 'size' => $new_size, 'orig-height' => $height, 'orig-width' => $width, 'orig-size' => $size]);
|
||||||
return $data->blob;
|
return $data->blob;
|
||||||
}
|
}
|
||||||
|
@ -1048,8 +1049,8 @@ function bluesky_process_reason(stdClass $reason, string $uri, int $uid)
|
||||||
$item['owner-link'] = $item['author-link'];
|
$item['owner-link'] = $item['author-link'];
|
||||||
$item['owner-avatar'] = $item['author-avatar'];
|
$item['owner-avatar'] = $item['author-avatar'];
|
||||||
if (Item::insert($item)) {
|
if (Item::insert($item)) {
|
||||||
$cdata = Contact::getPublicAndUserContactID($contact['id'], $uid);
|
$pcid = Contact::getPublicContactId($contact['id'], $uid);
|
||||||
Item::update(['post-reason' => Item::PR_ANNOUNCEMENT, 'causer-id' => $cdata['public']], ['uri' => $uri, 'uid' => $uid]);
|
Item::update(['post-reason' => Item::PR_ANNOUNCEMENT, 'causer-id' => $pcid], ['uri' => $uri, 'uid' => $uid]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1537,8 +1538,7 @@ function bluesky_fetch_missing_post(string $uri, int $uid, int $fetch_uid, int $
|
||||||
Logger::debug('Reply count', ['level' => $level, 'uid' => $uid, 'uri' => $uri]);
|
Logger::debug('Reply count', ['level' => $level, 'uid' => $uid, 'uri' => $uri]);
|
||||||
|
|
||||||
if ($causer != 0) {
|
if ($causer != 0) {
|
||||||
$cdata = Contact::getPublicAndUserContactID($causer, $uid);
|
$causer = Contact::getPublicContactId($causer, $uid);
|
||||||
$causer = $cdata['public'] ?? 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return bluesky_process_thread($data->thread, $uid, $fetch_uid, $post_reason, $causer, $level, $last_poll);
|
return bluesky_process_thread($data->thread, $uid, $fetch_uid, $post_reason, $causer, $level, $last_poll);
|
||||||
|
@ -1936,7 +1936,11 @@ function bluesky_create_token(int $uid, string $password): string
|
||||||
|
|
||||||
function bluesky_xrpc_post(int $uid, string $url, $parameters): ?stdClass
|
function bluesky_xrpc_post(int $uid, string $url, $parameters): ?stdClass
|
||||||
{
|
{
|
||||||
return bluesky_post($uid, '/xrpc/' . $url, json_encode($parameters), ['Content-type' => 'application/json', 'Authorization' => ['Bearer ' . bluesky_get_token($uid)]]);
|
$data = bluesky_post($uid, '/xrpc/' . $url, json_encode($parameters), ['Content-type' => 'application/json', 'Authorization' => ['Bearer ' . bluesky_get_token($uid)]]);
|
||||||
|
if (!empty($data)) {
|
||||||
|
Item::incrementOutbound(Protocol::BLUESKY);
|
||||||
|
}
|
||||||
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
function bluesky_post(int $uid, string $url, string $params, array $headers): ?stdClass
|
function bluesky_post(int $uid, string $url, string $params, array $headers): ?stdClass
|
||||||
|
@ -1946,7 +1950,6 @@ function bluesky_post(int $uid, string $url, string $params, array $headers): ?s
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
Item::incrementOutbound(Protocol::BLUESKY);
|
|
||||||
try {
|
try {
|
||||||
$curlResult = DI::httpClient()->post($pds . $url, $params, $headers);
|
$curlResult = DI::httpClient()->post($pds . $url, $params, $headers);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
@ -1983,7 +1986,6 @@ function bluesky_xrpc_get(int $uid, string $url, array $parameters = []): ?stdCl
|
||||||
|
|
||||||
function bluesky_get(string $url, string $accept_content = HttpClientAccept::DEFAULT, array $opts = []): ?stdClass
|
function bluesky_get(string $url, string $accept_content = HttpClientAccept::DEFAULT, array $opts = []): ?stdClass
|
||||||
{
|
{
|
||||||
Item::incrementInbound(Protocol::BLUESKY);
|
|
||||||
try {
|
try {
|
||||||
$curlResult = DI::httpClient()->get($url, $accept_content, $opts);
|
$curlResult = DI::httpClient()->get($url, $accept_content, $opts);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
@ -1996,5 +1998,6 @@ function bluesky_get(string $url, string $accept_content = HttpClientAccept::DEF
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item::incrementInbound(Protocol::BLUESKY);
|
||||||
return json_decode($curlResult->getBodyString());
|
return json_decode($curlResult->getBodyString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#
|
#
|
||||||
# Translators:
|
# Translators:
|
||||||
# bob lebonche <lebonche@tutanota.com>, 2021
|
# bob lebonche <lebonche@tutanota.com>, 2021
|
||||||
|
# cracrayol, 2024
|
||||||
# Hypolite Petovan <hypolite@mrpetovan.com>, 2022
|
# Hypolite Petovan <hypolite@mrpetovan.com>, 2022
|
||||||
# Hypolite Petovan <hypolite@mrpetovan.com>, 2016
|
# Hypolite Petovan <hypolite@mrpetovan.com>, 2016
|
||||||
# ea1cd8241cb389ffb6f92bc6891eff5d_dc12308 <70dced5587d47e18d88f9298024d96f8_93383>, 2015
|
# ea1cd8241cb389ffb6f92bc6891eff5d_dc12308 <70dced5587d47e18d88f9298024d96f8_93383>, 2015
|
||||||
|
@ -15,8 +16,8 @@ msgstr ""
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||||
"PO-Revision-Date: 2014-06-22 11:34+0000\n"
|
"PO-Revision-Date: 2014-06-22 11:34+0000\n"
|
||||||
"Last-Translator: Hypolite Petovan <hypolite@mrpetovan.com>, 2022\n"
|
"Last-Translator: cracrayol, 2024\n"
|
||||||
"Language-Team: French (http://www.transifex.com/Friendica/friendica/language/fr/)\n"
|
"Language-Team: French (http://app.transifex.com/Friendica/friendica/language/fr/)\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -45,7 +46,7 @@ msgstr "Vent"
|
||||||
|
|
||||||
#: curweather.php:140
|
#: curweather.php:140
|
||||||
msgid "Last Updated"
|
msgid "Last Updated"
|
||||||
msgstr "Dernière mise-à-jour"
|
msgstr "Dernière mise à jour"
|
||||||
|
|
||||||
#: curweather.php:141
|
#: curweather.php:141
|
||||||
msgid "Data by"
|
msgid "Data by"
|
||||||
|
|
|
@ -10,7 +10,7 @@ $a->strings['Current Weather'] = 'Météo actuelle';
|
||||||
$a->strings['Relative Humidity'] = 'Humidité relative';
|
$a->strings['Relative Humidity'] = 'Humidité relative';
|
||||||
$a->strings['Pressure'] = 'Pression';
|
$a->strings['Pressure'] = 'Pression';
|
||||||
$a->strings['Wind'] = 'Vent';
|
$a->strings['Wind'] = 'Vent';
|
||||||
$a->strings['Last Updated'] = 'Dernière mise-à-jour';
|
$a->strings['Last Updated'] = 'Dernière mise à jour';
|
||||||
$a->strings['Data by'] = 'Données de';
|
$a->strings['Data by'] = 'Données de';
|
||||||
$a->strings['Show on map'] = 'Montrer sur la carte';
|
$a->strings['Show on map'] = 'Montrer sur la carte';
|
||||||
$a->strings['There was a problem accessing the weather data. But have a look'] = 'Une erreur est survenue lors de l\'accès aux données météo. Vous pouvez quand même jeter un oeil';
|
$a->strings['There was a problem accessing the weather data. But have a look'] = 'Une erreur est survenue lors de l\'accès aux données météo. Vous pouvez quand même jeter un oeil';
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
# Translators:
|
# Translators:
|
||||||
# bob lebonche <lebonche@tutanota.com>, 2021
|
# bob lebonche <lebonche@tutanota.com>, 2021
|
||||||
# ButterflyOfFire, 2020
|
# ButterflyOfFire, 2020
|
||||||
|
# cracrayol, 2024
|
||||||
# Hypolite Petovan <hypolite@mrpetovan.com>, 2016
|
# Hypolite Petovan <hypolite@mrpetovan.com>, 2016
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -13,8 +14,8 @@ msgstr ""
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||||
"PO-Revision-Date: 2014-06-23 08:27+0000\n"
|
"PO-Revision-Date: 2014-06-23 08:27+0000\n"
|
||||||
"Last-Translator: bob lebonche <lebonche@tutanota.com>, 2021\n"
|
"Last-Translator: cracrayol, 2024\n"
|
||||||
"Language-Team: French (http://www.transifex.com/Friendica/friendica/language/fr/)\n"
|
"Language-Team: French (http://app.transifex.com/Friendica/friendica/language/fr/)\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -29,7 +30,7 @@ msgstr "Remplacer les coordonnées par le nom de la localité la plus proche dan
|
||||||
|
|
||||||
#: geonames.php:136
|
#: geonames.php:136
|
||||||
msgid "Enable Geonames Addon"
|
msgid "Enable Geonames Addon"
|
||||||
msgstr "Activer l'application complémentaire Geonames"
|
msgstr "Activer l'extension Geonames"
|
||||||
|
|
||||||
#: geonames.php:141
|
#: geonames.php:141
|
||||||
msgid "Geonames Settings"
|
msgid "Geonames Settings"
|
||||||
|
|
|
@ -6,5 +6,5 @@ function string_plural_select_fr($n){
|
||||||
if (($n == 0 || $n == 1)) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
if (($n == 0 || $n == 1)) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||||
}}
|
}}
|
||||||
$a->strings['Replace numerical coordinates by the nearest populated location name in your posts.'] = 'Remplacer les coordonnées par le nom de la localité la plus proche dans votre publication.';
|
$a->strings['Replace numerical coordinates by the nearest populated location name in your posts.'] = 'Remplacer les coordonnées par le nom de la localité la plus proche dans votre publication.';
|
||||||
$a->strings['Enable Geonames Addon'] = 'Activer l\'application complémentaire Geonames';
|
$a->strings['Enable Geonames Addon'] = 'Activer l\'extension Geonames';
|
||||||
$a->strings['Geonames Settings'] = 'Paramètres Geonames';
|
$a->strings['Geonames Settings'] = 'Paramètres Geonames';
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
# Translators:
|
# Translators:
|
||||||
# bob lebonche <lebonche@tutanota.com>, 2021
|
# bob lebonche <lebonche@tutanota.com>, 2021
|
||||||
# ButterflyOfFire, 2020
|
# ButterflyOfFire, 2020
|
||||||
|
# cracrayol, 2024
|
||||||
# Hypolite Petovan <hypolite@mrpetovan.com>, 2016
|
# Hypolite Petovan <hypolite@mrpetovan.com>, 2016
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -13,8 +14,8 @@ msgstr ""
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||||
"PO-Revision-Date: 2014-06-23 08:30+0000\n"
|
"PO-Revision-Date: 2014-06-23 08:30+0000\n"
|
||||||
"Last-Translator: bob lebonche <lebonche@tutanota.com>, 2021\n"
|
"Last-Translator: cracrayol, 2024\n"
|
||||||
"Language-Team: French (http://www.transifex.com/Friendica/friendica/language/fr/)\n"
|
"Language-Team: French (http://app.transifex.com/Friendica/friendica/language/fr/)\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -29,7 +30,7 @@ msgstr "Permettre le filtrage des notifications de commentaires par courriel sur
|
||||||
|
|
||||||
#: gnot.php:64
|
#: gnot.php:64
|
||||||
msgid "Enable this addon?"
|
msgid "Enable this addon?"
|
||||||
msgstr "Activer cette application complémentaire ?"
|
msgstr "Activer cette extension ?"
|
||||||
|
|
||||||
#: gnot.php:69
|
#: gnot.php:69
|
||||||
msgid "Gnot Settings"
|
msgid "Gnot Settings"
|
||||||
|
|
|
@ -6,6 +6,6 @@ function string_plural_select_fr($n){
|
||||||
if (($n == 0 || $n == 1)) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
if (($n == 0 || $n == 1)) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||||
}}
|
}}
|
||||||
$a->strings['Allows threading of email comment notifications on Gmail and anonymising the subject line.'] = 'Permettre le filtrage des notifications de commentaires par courriel sur Gmail et l\'anonymisation de l\'objet.';
|
$a->strings['Allows threading of email comment notifications on Gmail and anonymising the subject line.'] = 'Permettre le filtrage des notifications de commentaires par courriel sur Gmail et l\'anonymisation de l\'objet.';
|
||||||
$a->strings['Enable this addon?'] = 'Activer cette application complémentaire ?';
|
$a->strings['Enable this addon?'] = 'Activer cette extension ?';
|
||||||
$a->strings['Gnot Settings'] = 'Paramètres Gnot';
|
$a->strings['Gnot Settings'] = 'Paramètres Gnot';
|
||||||
$a->strings['[Friendica:Notify] Comment to conversation #%d'] = '[Friendica:Notify] Commentaire vers conversation #%d';
|
$a->strings['[Friendica:Notify] Comment to conversation #%d'] = '[Friendica:Notify] Commentaire vers conversation #%d';
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#
|
#
|
||||||
# Translators:
|
# Translators:
|
||||||
# bob lebonche <lebonche@tutanota.com>, 2021
|
# bob lebonche <lebonche@tutanota.com>, 2021
|
||||||
|
# cracrayol, 2024
|
||||||
# Marie Olive <lacellule101@gmail.com>, 2018
|
# Marie Olive <lacellule101@gmail.com>, 2018
|
||||||
# ea1cd8241cb389ffb6f92bc6891eff5d_dc12308 <70dced5587d47e18d88f9298024d96f8_93383>, 2015
|
# ea1cd8241cb389ffb6f92bc6891eff5d_dc12308 <70dced5587d47e18d88f9298024d96f8_93383>, 2015
|
||||||
msgid ""
|
msgid ""
|
||||||
|
@ -13,8 +14,8 @@ msgstr ""
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
|
||||||
"PO-Revision-Date: 2014-06-23 08:33+0000\n"
|
"PO-Revision-Date: 2014-06-23 08:33+0000\n"
|
||||||
"Last-Translator: bob lebonche <lebonche@tutanota.com>, 2021\n"
|
"Last-Translator: cracrayol, 2024\n"
|
||||||
"Language-Team: French (http://www.transifex.com/Friendica/friendica/language/fr/)\n"
|
"Language-Team: French (http://app.transifex.com/Friendica/friendica/language/fr/)\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -50,7 +51,7 @@ msgid ""
|
||||||
"Libravatar addon is installed, too. Please disable Libravatar addon or this "
|
"Libravatar addon is installed, too. Please disable Libravatar addon or this "
|
||||||
"Gravatar addon.<br>The Libravatar addon will fall back to Gravatar if "
|
"Gravatar addon.<br>The Libravatar addon will fall back to Gravatar if "
|
||||||
"nothing was found at Libravatar."
|
"nothing was found at Libravatar."
|
||||||
msgstr "L'application complémentaire Libravatar est aussi installée. Merci de désactiver l'application complémentaire Libravatar ou cette application complémentaire Gravatar. L'application complémentaire se repliera sur Gravatar si rien n'est trouvé dans Libravatar."
|
msgstr "L'extension Libravatar est aussi installée. Merci de désactiver l'extension Libravatar ou cette extension Gravatar. L'extension se repliera sur Gravatar si rien n'est trouvé dans Libravatar."
|
||||||
|
|
||||||
#: gravatar.php:102
|
#: gravatar.php:102
|
||||||
msgid "Save Settings"
|
msgid "Save Settings"
|
||||||
|
|
|
@ -11,7 +11,7 @@ $a->strings['monster face'] = 'Face de monstre';
|
||||||
$a->strings['computer generated face'] = 'visage généré par ordinateur';
|
$a->strings['computer generated face'] = 'visage généré par ordinateur';
|
||||||
$a->strings['retro arcade style face'] = 'Face style retro arcade';
|
$a->strings['retro arcade style face'] = 'Face style retro arcade';
|
||||||
$a->strings['Information'] = 'Information';
|
$a->strings['Information'] = 'Information';
|
||||||
$a->strings['Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon.<br>The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar.'] = 'L\'application complémentaire Libravatar est aussi installée. Merci de désactiver l\'application complémentaire Libravatar ou cette application complémentaire Gravatar. L\'application complémentaire se repliera sur Gravatar si rien n\'est trouvé dans Libravatar.';
|
$a->strings['Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon.<br>The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar.'] = 'L\'extension Libravatar est aussi installée. Merci de désactiver l\'extension Libravatar ou cette extension Gravatar. L\'extension se repliera sur Gravatar si rien n\'est trouvé dans Libravatar.';
|
||||||
$a->strings['Save Settings'] = 'Sauvegarder les paramètres.';
|
$a->strings['Save Settings'] = 'Sauvegarder les paramètres.';
|
||||||
$a->strings['Default avatar image'] = 'Image par défaut d\'avatar';
|
$a->strings['Default avatar image'] = 'Image par défaut d\'avatar';
|
||||||
$a->strings['Select default avatar image if none was found at Gravatar. See README'] = 'Sélectionner l\'avatar par défaut, si aucun n\'est trouvé sur Gravatar. Voir Lisezmoi.';
|
$a->strings['Select default avatar image if none was found at Gravatar. See README'] = 'Sélectionner l\'avatar par défaut, si aucun n\'est trouvé sur Gravatar. Voir Lisezmoi.';
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#
|
#
|
||||||
# Translators:
|
# Translators:
|
||||||
# bob lebonche <lebonche@tutanota.com>, 2021
|
# bob lebonche <lebonche@tutanota.com>, 2021
|
||||||
|
# cracrayol, 2024
|
||||||
# Hypolite Petovan <hypolite@mrpetovan.com>, 2016
|
# Hypolite Petovan <hypolite@mrpetovan.com>, 2016
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -12,8 +13,8 @@ msgstr ""
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-11-21 19:17-0500\n"
|
"POT-Creation-Date: 2021-11-21 19:17-0500\n"
|
||||||
"PO-Revision-Date: 2014-06-23 08:37+0000\n"
|
"PO-Revision-Date: 2014-06-23 08:37+0000\n"
|
||||||
"Last-Translator: bob lebonche <lebonche@tutanota.com>, 2021\n"
|
"Last-Translator: cracrayol, 2024\n"
|
||||||
"Language-Team: French (http://www.transifex.com/Friendica/friendica/language/fr/)\n"
|
"Language-Team: French (http://app.transifex.com/Friendica/friendica/language/fr/)\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -26,7 +27,7 @@ msgstr "Publier sur Insanejournal"
|
||||||
|
|
||||||
#: ijpost.php:61
|
#: ijpost.php:61
|
||||||
msgid "Enable InsaneJournal Post Addon"
|
msgid "Enable InsaneJournal Post Addon"
|
||||||
msgstr "Activer l'application complémentaire InsaneJournalPost"
|
msgstr "Activer l'extension InsaneJournal"
|
||||||
|
|
||||||
#: ijpost.php:62
|
#: ijpost.php:62
|
||||||
msgid "InsaneJournal username"
|
msgid "InsaneJournal username"
|
||||||
|
|
|
@ -6,7 +6,7 @@ function string_plural_select_fr($n){
|
||||||
if (($n == 0 || $n == 1)) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
if (($n == 0 || $n == 1)) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||||
}}
|
}}
|
||||||
$a->strings['Post to Insanejournal'] = 'Publier sur Insanejournal';
|
$a->strings['Post to Insanejournal'] = 'Publier sur Insanejournal';
|
||||||
$a->strings['Enable InsaneJournal Post Addon'] = 'Activer l\'application complémentaire InsaneJournalPost';
|
$a->strings['Enable InsaneJournal Post Addon'] = 'Activer l\'extension InsaneJournal';
|
||||||
$a->strings['InsaneJournal username'] = 'Identifiant du InsaneJournal';
|
$a->strings['InsaneJournal username'] = 'Identifiant du InsaneJournal';
|
||||||
$a->strings['InsaneJournal password'] = 'Mot de passe du InsaneJournal';
|
$a->strings['InsaneJournal password'] = 'Mot de passe du InsaneJournal';
|
||||||
$a->strings['Post to InsaneJournal by default'] = 'Publier sur le InsaneJournal par défaut';
|
$a->strings['Post to InsaneJournal by default'] = 'Publier sur le InsaneJournal par défaut';
|
||||||
|
|
|
@ -5,14 +5,15 @@
|
||||||
#
|
#
|
||||||
# Translators:
|
# Translators:
|
||||||
# bob lebonche <lebonche@tutanota.com>, 2021
|
# bob lebonche <lebonche@tutanota.com>, 2021
|
||||||
|
# cracrayol, 2024
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: friendica\n"
|
"Project-Id-Version: friendica\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
"POT-Creation-Date: 2021-11-21 19:14-0500\n"
|
||||||
"PO-Revision-Date: 2015-07-07 15:14+0000\n"
|
"PO-Revision-Date: 2015-07-07 15:14+0000\n"
|
||||||
"Last-Translator: bob lebonche <lebonche@tutanota.com>, 2021\n"
|
"Last-Translator: cracrayol, 2024\n"
|
||||||
"Language-Team: French (http://www.transifex.com/Friendica/friendica/language/fr/)\n"
|
"Language-Team: French (http://app.transifex.com/Friendica/friendica/language/fr/)\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -21,7 +22,7 @@ msgstr ""
|
||||||
|
|
||||||
#: krynn.php:127
|
#: krynn.php:127
|
||||||
msgid "Enable Krynn Addon"
|
msgid "Enable Krynn Addon"
|
||||||
msgstr "Activer l'application complémentaire Krynn"
|
msgstr "Activer l'extension Krynn"
|
||||||
|
|
||||||
#: krynn.php:132
|
#: krynn.php:132
|
||||||
msgid "Krynn Settings"
|
msgid "Krynn Settings"
|
||||||
|
|
|
@ -5,5 +5,5 @@ function string_plural_select_fr($n){
|
||||||
$n = intval($n);
|
$n = intval($n);
|
||||||
if (($n == 0 || $n == 1)) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
if (($n == 0 || $n == 1)) { return 0; } else if ($n != 0 && $n % 1000000 == 0) { return 1; } else { return 2; }
|
||||||
}}
|
}}
|
||||||
$a->strings['Enable Krynn Addon'] = 'Activer l\'application complémentaire Krynn';
|
$a->strings['Enable Krynn Addon'] = 'Activer l\'extension Krynn';
|
||||||
$a->strings['Krynn Settings'] = 'Paramètres de Krynn';
|
$a->strings['Krynn Settings'] = 'Paramètres de Krynn';
|
||||||
|
|
|
@ -133,6 +133,7 @@ function tumblr_item_by_link(array &$hookData)
|
||||||
Logger::debug('Got post', ['blog' => $matches[1], 'id' => $matches[2], 'result' => $result->response->posts]);
|
Logger::debug('Got post', ['blog' => $matches[1], 'id' => $matches[2], 'result' => $result->response->posts]);
|
||||||
if (!empty($result->response->posts)) {
|
if (!empty($result->response->posts)) {
|
||||||
$hookData['item_id'] = tumblr_process_post($result->response->posts[0], $hookData['uid'], Item::PR_FETCHED);
|
$hookData['item_id'] = tumblr_process_post($result->response->posts[0], $hookData['uid'], Item::PR_FETCHED);
|
||||||
|
Item::incrementInbound(Protocol::TUMBLR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,9 +204,9 @@ function tumblr_block(array &$hook_data)
|
||||||
$hook_data['result'] = ($result->meta->status <= 399);
|
$hook_data['result'] = ($result->meta->status <= 399);
|
||||||
|
|
||||||
if ($hook_data['result']) {
|
if ($hook_data['result']) {
|
||||||
$cdata = Contact::getPublicAndUserContactID($hook_data['contact']['id'], $hook_data['uid']);
|
$ucid = Contact::getUserContactId($hook_data['contact']['id'], $hook_data['uid']);
|
||||||
if (!empty($cdata['user'])) {
|
if ($ucid) {
|
||||||
Contact::remove($cdata['user']);
|
Contact::remove($ucid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -238,9 +239,7 @@ function tumblr_get_contact_uuid(array $contact): string
|
||||||
* existence of this method is checked to figure out if the addon offers a
|
* existence of this method is checked to figure out if the addon offers a
|
||||||
* module.
|
* module.
|
||||||
*/
|
*/
|
||||||
function tumblr_module()
|
function tumblr_module() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
function tumblr_content()
|
function tumblr_content()
|
||||||
{
|
{
|
||||||
|
@ -756,6 +755,7 @@ function tumblr_fetch_tags(int $uid, int $last_poll)
|
||||||
$post = Post::selectFirst(['uri-id'], ['id' => $id]);
|
$post = Post::selectFirst(['uri-id'], ['id' => $id]);
|
||||||
$stored = Post\Category::storeFileByURIId($post['uri-id'], $uid, Post\Category::SUBCRIPTION, $tag);
|
$stored = Post\Category::storeFileByURIId($post['uri-id'], $uid, Post\Category::SUBCRIPTION, $tag);
|
||||||
Logger::debug('Stored tag subscription for user', ['uri-id' => $post['uri-id'], 'uid' => $uid, 'tag' => $tag, 'stored' => $stored]);
|
Logger::debug('Stored tag subscription for user', ['uri-id' => $post['uri-id'], 'uid' => $uid, 'tag' => $tag, 'stored' => $stored]);
|
||||||
|
Item::incrementInbound(Protocol::TUMBLR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -795,6 +795,7 @@ function tumblr_fetch_dashboard(int $uid, int $last_poll)
|
||||||
Logger::debug('Importing post', ['uid' => $uid, 'created' => date(DateTimeFormat::MYSQL, $post->timestamp), 'id' => $post->id_string]);
|
Logger::debug('Importing post', ['uid' => $uid, 'created' => date(DateTimeFormat::MYSQL, $post->timestamp), 'id' => $post->id_string]);
|
||||||
|
|
||||||
tumblr_process_post($post, $uid, Item::PR_NONE, $last_poll);
|
tumblr_process_post($post, $uid, Item::PR_NONE, $last_poll);
|
||||||
|
Item::incrementInbound(Protocol::TUMBLR);
|
||||||
|
|
||||||
DI::pConfig()->set($uid, 'tumblr', 'last_id', $last);
|
DI::pConfig()->set($uid, 'tumblr', 'last_id', $last);
|
||||||
}
|
}
|
||||||
|
@ -1167,6 +1168,7 @@ function tumblr_get_contact_fields(stdClass $blog, int $uid, bool $update): arra
|
||||||
Logger::notice('Error fetching blog info', ['meta' => $info->meta, 'response' => $info->response, 'errors' => $info->errors]);
|
Logger::notice('Error fetching blog info', ['meta' => $info->meta, 'response' => $info->response, 'errors' => $info->errors]);
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
Item::incrementInbound(Protocol::TUMBLR);
|
||||||
|
|
||||||
$avatar = $info->response->blog->avatar;
|
$avatar = $info->response->blog->avatar;
|
||||||
if (!empty($avatar)) {
|
if (!empty($avatar)) {
|
||||||
|
@ -1231,6 +1233,8 @@ function tumblr_get_blogs(int $uid): array
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item::incrementInbound(Protocol::TUMBLR);
|
||||||
|
|
||||||
$blogs = [];
|
$blogs = [];
|
||||||
foreach ($userinfo->response->user->blogs as $blog) {
|
foreach ($userinfo->response->user->blogs as $blog) {
|
||||||
$blogs[$blog->uuid] = $blog->name;
|
$blogs[$blog->uuid] = $blog->name;
|
||||||
|
@ -1287,10 +1291,11 @@ function tumblr_get_contact_by_url(string $url, int $uid): ?array
|
||||||
if ($info->meta->status > 399) {
|
if ($info->meta->status > 399) {
|
||||||
Logger::notice('Error fetching blog info', ['meta' => $info->meta, 'response' => $info->response, 'errors' => $info->errors, 'blog' => $blog, 'uid' => $uid]);
|
Logger::notice('Error fetching blog info', ['meta' => $info->meta, 'response' => $info->response, 'errors' => $info->errors, 'blog' => $blog, 'uid' => $uid]);
|
||||||
return null;
|
return null;
|
||||||
} else {
|
|
||||||
Logger::debug('Got data', ['blog' => $blog, 'meta' => $info->meta]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Logger::debug('Got data', ['blog' => $blog, 'meta' => $info->meta]);
|
||||||
|
Item::incrementInbound(Protocol::TUMBLR);
|
||||||
|
|
||||||
$baseurl = 'https://tumblr.com';
|
$baseurl = 'https://tumblr.com';
|
||||||
$url = $baseurl . '/' . $info->response->blog->name;
|
$url = $baseurl . '/' . $info->response->blog->name;
|
||||||
|
|
||||||
|
@ -1326,7 +1331,6 @@ function tumblr_get_contact_by_url(string $url, int $uid): ?array
|
||||||
*/
|
*/
|
||||||
function tumblr_get(int $uid, string $url, array $parameters = []): stdClass
|
function tumblr_get(int $uid, string $url, array $parameters = []): stdClass
|
||||||
{
|
{
|
||||||
Item::incrementInbound(Protocol::TUMBLR);
|
|
||||||
$url = 'https://api.tumblr.com/v2/' . $url;
|
$url = 'https://api.tumblr.com/v2/' . $url;
|
||||||
|
|
||||||
if ($uid == 0) {
|
if ($uid == 0) {
|
||||||
|
|
Loading…
Reference in a new issue