From: Michael Date: Tue, 24 May 2022 17:33:10 +0000 (+0000) Subject: Improved messages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f764ab7429d60e7aeb521c9a22a401e32cd07d5c;p=friendica.git Improved messages --- diff --git a/src/Console/MoveToAvatarCache.php b/src/Console/MoveToAvatarCache.php index 3852f0e979..2f607fe1bd 100644 --- a/src/Console/MoveToAvatarCache.php +++ b/src/Console/MoveToAvatarCache.php @@ -89,26 +89,26 @@ HELP; echo ++$count . '/' . $total . "\t" . $contact['id'] . "\t" . $contact['url'] . "\t"; $resourceid = Photo::ridFromURI($contact['photo']); if (empty($resourceid)) { - echo $this->l10n->t('no resource') . "\n"; + echo $this->l10n->t('no resource in photo %1', $contact['photo']) . "\n"; continue; } echo '1'; $photo = Photo::selectFirst([], ['resource-id' => $resourceid], ['order' => ['scale']]); if (empty($photo)) { - echo $this->l10n->t('no photo') . "\n"; + echo $this->l10n->t('no photo with id %1', $resourceid) . "\n"; continue; } echo '2'; $imgdata = Photo::getImageDataForPhoto($photo); if (empty($imgdata)) { - echo $this->l10n->t('no image data') . "\n"; + echo $this->l10n->t('no image data for photo with id %1', $resourceid) . "\n"; continue; } echo '3'; $image = new Image($imgdata, Images::getMimeTypeByData($imgdata)); if (!$image->isValid()) { - echo $this->l10n->t('invalid image') . "\n"; + echo $this->l10n->t('invalid image for id %1', $resourceid) . "\n"; continue; } diff --git a/view/lang/C/messages.po b/view/lang/C/messages.po index 1c82b3181f..2cf2018fcb 100644 --- a/view/lang/C/messages.po +++ b/view/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 2022.05-rc\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-05-23 12:12+0000\n" +"POT-Creation-Date: 2022-05-24 17:32+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1641,20 +1641,20 @@ msgstr "" msgid "The contact has been blocked from the node" msgstr "" -#: src/Console/MoveToAvatarCache.php:94 -msgid "no resource" +#: src/Console/MoveToAvatarCache.php:92 +msgid "no resource in photo %1" msgstr "" -#: src/Console/MoveToAvatarCache.php:100 -msgid "no photo" +#: src/Console/MoveToAvatarCache.php:98 +msgid "no photo with id %1" msgstr "" -#: src/Console/MoveToAvatarCache.php:107 -msgid "no image data" +#: src/Console/MoveToAvatarCache.php:105 +msgid "no image data for photo with id %1" msgstr "" -#: src/Console/MoveToAvatarCache.php:113 -msgid "invalid image" +#: src/Console/MoveToAvatarCache.php:111 +msgid "invalid image for id %1" msgstr "" #: src/Console/PostUpdate.php:87