diff --git a/README.md b/README.md index 6e069ef..50400eb 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ **Requires at least:** 6.0 **Requires PHP:** 7.0 **Tested up to:** 6.3.1 -**Stable tag:** 4.0.13 +**Stable tag:** 4.0.14 **License:** GPLv2 or later **License URI:** [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html) **Donate link:** [wpsocio.com/donate](https://wpsocio.com/donate) diff --git a/changelog.md b/changelog.md index ef90a2c..c07c6f7 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,12 @@ All notable changes to this project are documented in this file. ## Unreleased +## [4.0.14 - 2023-11-22](https://github.com/wpsocio/wptelegram/releases/tag/v4.0.14) + +### Enhancements + +- Added support for `
` tag + ## [4.0.13 - 2023-09-17](https://github.com/wpsocio/wptelegram/releases/tag/v4.0.13) ### Bug fixes diff --git a/composer.json b/composer.json index a11244c..565404a 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "wptelegram/core", - "version": "4.0.13", + "version": "4.0.14", "description": "Integrate your WordPress site perfectly with Telegram with full control.", "require-dev": { "wp-coding-standards/wpcs": "^3.0" diff --git a/gulpfile.esm.js b/gulpfile.esm.js index 862b321..3516faa 100644 --- a/gulpfile.esm.js +++ b/gulpfile.esm.js @@ -101,7 +101,7 @@ export const generatePotFile = (done) => { potFilename: config.potFilename, type: 'wp-plugin', cwd: config.srcDir, - mainFile: `${config.srcDir}/${pkg.name}.php`, + mainFile: `${pkg.name}.php`, updateTimestamp: true, updatePoFiles: true, potHeaders: { diff --git a/package.json b/package.json index 6cee0c3..22a10b8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "wptelegram", "title": "WP Telegram", - "version": "4.0.13", + "version": "4.0.14", "description": "Integrate your WordPress site perfectly with Telegram with full control.", "repository": { "type": "git", diff --git a/src/README.txt b/src/README.txt index 3ac80c7..99383af 100644 --- a/src/README.txt +++ b/src/README.txt @@ -5,7 +5,7 @@ Tags: telegram, notifications, posts, channel, group Requires at least: 6.0 Requires PHP: 7.0 Tested up to: 6.3.1 -Stable tag: 4.0.13 +Stable tag: 4.0.14 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -205,6 +205,9 @@ Yes, all you need to do is to setup **Private Notifications** module and use the == Changelog == += 4.0.14 = +- Added support for `
` tag + = 4.0.13 = - Fixed the failure of sending posts with large size images diff --git a/src/changelog.md b/src/changelog.md index ef90a2c..c07c6f7 100644 --- a/src/changelog.md +++ b/src/changelog.md @@ -4,6 +4,12 @@ All notable changes to this project are documented in this file. ## Unreleased +## [4.0.14 - 2023-11-22](https://github.com/wpsocio/wptelegram/releases/tag/v4.0.14) + +### Enhancements + +- Added support for `
` tag + ## [4.0.13 - 2023-09-17](https://github.com/wpsocio/wptelegram/releases/tag/v4.0.13) ### Bug fixes diff --git a/src/includes/Utils.php b/src/includes/Utils.php index 94b2921..44c55de 100644 --- a/src/includes/Utils.php +++ b/src/includes/Utils.php @@ -37,23 +37,27 @@ class Utils { */ const SUPPORTED_HTML_TAGS = [ // Link. - 'a' => [ + 'a' => [ 'href' => true, ], // bold. - 'b' => [], - 'strong' => [], + 'b' => [], + 'strong' => [], + // blockquote. + 'blockquote' => [ + 'cite' => true, + ], // italic. - 'em' => [], - 'i' => [], + 'em' => [], + 'i' => [], // code. - 'pre' => [], - 'code' => [ + 'pre' => [], + 'code' => [ 'class' => true, ], // underline. - 'u' => [], - 'ins' => [], + 'u' => [], + 'ins' => [], ]; /** @@ -702,11 +706,11 @@ public static function get_max_text_length( $for = 'text', $padding = 20 ) { * * @param int $id The attachment ID. * @param int $filesize The maximum file size. - * @param string $return The return type. Can be 'path' or 'url'. Default 'url'. + * @param string $return The return type. Can be 'path' or 'url'. Default null. * * @return string|false The attachment path or URL. */ - public static function get_attachment_by_filesize( $id, $filesize, $return = 'url' ) { + public static function get_attachment_by_filesize( $id, $filesize, $return = null ) { if ( ! get_post( $id ) ) { return false; @@ -714,6 +718,10 @@ public static function get_attachment_by_filesize( $id, $filesize, $return = 'ur $file_path = get_attached_file( $id ); + if ( null === $return ) { + $return = self::send_files_by_url() ? 'url' : 'path'; + } + $path = 'url' === $return ? wp_get_attachment_url( $id ) : $file_path; // For now, we only deal with images. @@ -737,11 +745,11 @@ public static function get_attachment_by_filesize( $id, $filesize, $return = 'ur return $path; } - $directory = dirname( $file_path ); - if ( ! empty( $meta['sizes'] ) ) { $size_data = []; + $directory = dirname( $file_path ); + foreach ( $meta['sizes'] as $data ) { if ( empty( $data['file'] ) ) { continue; @@ -773,4 +781,25 @@ public static function get_attachment_by_filesize( $id, $filesize, $return = 'ur return $path; } + + /** + * Get the limit of the image size to send to Telegram. + * + * @return int + */ + public static function get_image_size_limit() { + + return self::send_files_by_url() ? self::IMAGE_BY_URL_SIZE_LIMIT : self::IMAGE_BY_FILE_SIZE_LIMIT; + } + + /** + * Whether to send files by URL. + * + * @since 4.0.14 + */ + public static function send_files_by_url() { + $send_files_by_url = WPTG()->options()->get_path( 'advanced.send_files_by_url', true ); + + return (bool) apply_filters( 'wptelegram_send_files_by_url', $send_files_by_url ); + } } diff --git a/src/includes/format-text b/src/includes/format-text index 1910c39..e90512f 160000 --- a/src/includes/format-text +++ b/src/includes/format-text @@ -1 +1 @@ -Subproject commit 1910c39cab7df00b07815cb683397435332c6839 +Subproject commit e90512fad4a87d87e1c536840fea38aa10c13392 diff --git a/src/languages/wptelegram-ar.po b/src/languages/wptelegram-ar.po index 1d332c4..b3f5933 100644 --- a/src/languages/wptelegram-ar.po +++ b/src/languages/wptelegram-ar.po @@ -1,9 +1,9 @@ -# Copyright (C) 2017 WP Telegram +# Copyright (C) 2017 WP Telegram msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-14 01:37+0530\n" "Last-Translator: \n" "Language-Team: WPTelegram\n" @@ -29,10 +29,6 @@ msgid "" "and do lot more :)" msgstr "" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -111,14 +107,6 @@ msgstr "" msgid "channel" msgstr "" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "" @@ -1056,6 +1044,3 @@ msgstr "" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "" - -#~ msgid "Markdown style" -#~ msgstr "نمط Markdown" diff --git a/src/languages/wptelegram-ca.po b/src/languages/wptelegram-ca.po index 5b93a00..4071363 100644 --- a/src/languages/wptelegram-ca.po +++ b/src/languages/wptelegram-ca.po @@ -1,9 +1,9 @@ -# Copyright (C) 2017 WP Telegram +# Copyright (C) 2017 WP Telegram msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-14 01:37+0530\n" "Last-Translator: \n" "Language-Team: WPTelegram\n" @@ -29,10 +29,6 @@ msgid "" "and do lot more :)" msgstr "" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -111,14 +107,6 @@ msgstr "" msgid "channel" msgstr "" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "" @@ -1058,6 +1046,3 @@ msgstr "" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "" - -#~ msgid "Markdown style" -#~ msgstr "estil de Marcatge" diff --git a/src/languages/wptelegram-de_DE.mo b/src/languages/wptelegram-de_DE.mo index 2921d4a..eddcece 100644 Binary files a/src/languages/wptelegram-de_DE.mo and b/src/languages/wptelegram-de_DE.mo differ diff --git a/src/languages/wptelegram-de_DE.po b/src/languages/wptelegram-de_DE.po index ee62e16..be52fef 100644 --- a/src/languages/wptelegram-de_DE.po +++ b/src/languages/wptelegram-de_DE.po @@ -3,17 +3,17 @@ msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" -"PO-Revision-Date: 2021-03-14 01:37+0530\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" +"PO-Revision-Date: 2023-09-20 17:50+0530\n" "Last-Translator: Robert Skiba \n" "Language-Team: Deutsch\n" "Language: de_DE\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.4.2\n" -"X-Poedit-Basepath: ..\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.3.2\n" +"X-Poedit-Basepath: ..\n" "X-Poedit-KeywordsList: __;_e;_x;esc_attr__;esc_attr_e;esc_html__;esc_html_e\n" "X-Poedit-SearchPath-0: .\n" "X-Poedit-SearchPathExcluded-0: assets\n" @@ -30,38 +30,36 @@ msgstr "" "Mit diesem Plugin kann man Posts an Telegram senden, Benachrichtigungen " "erhalten und vieles mehr :)" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." -msgstr "" +msgstr "Dieses Plugin ist nicht mit deiner Website-Konfiguration kompatibel." #: includes/Requirements.php:123 msgid "Missing requirements" -msgstr "" +msgstr "Fehlende Anforderungen" #. translators: %s: Version number #: includes/Requirements.php:136 msgid "Current version: %s" -msgstr "" +msgstr "Aktuelle Version: %s" #. translators: %s: Version number #: includes/Requirements.php:144 msgid "Minimum required version: %s" -msgstr "" +msgstr "Erforderliche Mindestversion: %s" #. translators: %s: comma separated list of missing extensions #: includes/Requirements.php:162 msgid "Missing PHP extensions: %s" -msgstr "" +msgstr "Fehlende PHP-Erweiterungen: %s" #: includes/Requirements.php:173 msgid "" "Please contact your hosting provider to ensure the above requirements are " "met." msgstr "" +"Bitte wende dich an deinen Hosting-Provider, um sicherzustellen, dass die " +"oben genannten Anforderungen erfüllt sind." #: includes/restApi/SettingsController.php:134 #: languages/wptelegram-js-translations.php:141 @@ -70,7 +68,7 @@ msgstr "Beitrag anzeigen" #: languages/wptelegram-js-translations.php:5 msgid "%s must be a number." -msgstr "" +msgstr "%s muss eine Zahl sein." #: languages/wptelegram-js-translations.php:8 msgid "Inline button text" @@ -78,7 +76,7 @@ msgstr "Text für den Inline-Button" #: languages/wptelegram-js-translations.php:11 msgid "Inline button URL" -msgstr "" +msgstr "URL der Inline-Schaltfläche" #: languages/wptelegram-js-translations.php:14 msgid "Add Inline URL Button" @@ -106,19 +104,11 @@ msgstr "Falls die Email geht an" #: languages/wptelegram-js-translations.php:35 msgid "At least one %s is required." -msgstr "" +msgstr "Mindestens ein %s ist erforderlich." #: languages/wptelegram-js-translations.php:38 msgid "channel" -msgstr "channel" - -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" +msgstr "Channel" #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" @@ -126,7 +116,7 @@ msgstr "LIVE-Support bei Problemen direkt über Telegram erhalten" #: languages/wptelegram-js-translations.php:47 msgid "Basics" -msgstr "" +msgstr "Grundeinstellungen" #: languages/wptelegram-js-translations.php:52 modules/p2tg/Admin.php:395 msgid "Post to Telegram" @@ -150,7 +140,7 @@ msgstr "Bot API" #: languages/wptelegram-js-translations.php:69 msgid "Use %s above to set automatically." -msgstr "" +msgstr "Verwende %s oben, um die Einstellungen automatisch vorzunehmen." #: languages/wptelegram-js-translations.php:73 msgid "Test Token" @@ -180,7 +170,7 @@ msgstr "Zum einfacheren kopieren %s benutzen!" #: languages/wptelegram-js-translations.php:90 msgid "Telegram Desktop" -msgstr "" +msgstr "Telegram-Desktop" #: languages/wptelegram-js-translations.php:93 msgid "Test your bot token below." @@ -205,7 +195,7 @@ msgstr "Änderungen speichern" #: languages/wptelegram-js-translations.php:114 msgid "Introduction" -msgstr "" +msgstr "Einführung" #: languages/wptelegram-js-translations.php:117 msgid "" @@ -232,7 +222,7 @@ msgstr "Telegram Benutzer oder Gruppen Chat ID." #: languages/wptelegram-js-translations.php:129 msgid "Destination" -msgstr "" +msgstr "Ziel" #: languages/wptelegram-js-translations.php:132 msgid "Channel Username or Chat ID." @@ -251,11 +241,11 @@ msgstr "" #. translators: template tag/macro #: languages/wptelegram-js-translations.php:145 msgid "You can specify any custom field like %s." -msgstr "" +msgstr "Du kannst ein beliebiges benutzerdefiniertes Feld wie %s angeben." #: languages/wptelegram-js-translations.php:148 msgid "Source of the button URL." -msgstr "" +msgstr "Quelle der Schaltflächen-URL." #: languages/wptelegram-js-translations.php:151 msgid "Message Settings" @@ -268,7 +258,7 @@ msgstr "Sonstige Einstellungen" #: languages/wptelegram-js-translations.php:157 msgid "With this module, you can configure how the posts are sent to Telegram." msgstr "" -"Mit diesem Modul wird konfiguriert, wie Posts an Telegram gesendet warden." +"Mit diesem Modul wird konfiguriert, wie Posts an Telegram gesendet werden." #: languages/wptelegram-js-translations.php:160 msgid "A new post is published" @@ -293,60 +283,63 @@ msgstr "Definiert, welche Inhaltstypen veröffentlicht werden sollen." #: languages/wptelegram-js-translations.php:175 msgid "You must add a bot token." -msgstr "" +msgstr "Du musst ein Bot-Token hinzufügen." #: languages/wptelegram-js-translations.php:178 msgid "Upgrade to Pro" -msgstr "" +msgstr "Upgrade auf Pro" #: languages/wptelegram-js-translations.php:181 msgid "Want an absolute integration with Telegram?" -msgstr "" +msgstr "Möchtest du eine vollständige Integration mit Telegram?" #: languages/wptelegram-js-translations.php:184 msgid "Want to add more bots?" -msgstr "" +msgstr "Möchtest du weitere Bots hinzufügen?" #: languages/wptelegram-js-translations.php:187 msgid "Need more features?" -msgstr "" +msgstr "Benötigst du weitere Funktionen?" #: languages/wptelegram-js-translations.php:190 msgid "Want to use different channels for different categories?" -msgstr "" +msgstr "Möchtest du verschiedene Kanäle für verschiedene Kategorien verwenden?" #: languages/wptelegram-js-translations.php:193 msgid "%s supports multiple instances of Post to Telgram with different rules." msgstr "" +"%s unterstützt mehrere Instanzen, um zu Beiträge zu Telegram mit " +"unterschiedlichen Regeln zu senden." #: languages/wptelegram-js-translations.php:196 msgid "%s supports ALL WooCommerce and ACF text fields." -msgstr "" +msgstr "%s unterstützt ALLE WooCommerce- und ACF-Textfelder." #: languages/wptelegram-js-translations.php:199 msgid "Want to add more buttons?" -msgstr "" +msgstr "Möchtest du weitere Schaltflächen hinzufügen?" #: languages/wptelegram-js-translations.php:202 msgid "%s supports delay per channel." msgstr "" +"%s unterstützt die Konfiguration von verzögerter Zustellung pro Channel." #: languages/wptelegram-js-translations.php:205 msgid "Want to add more emails?" -msgstr "" +msgstr "Möchtest du weitere E-Mails hinzufügen?" #: languages/wptelegram-js-translations.php:208 -#, fuzzy msgid "WP Telegram Pro" -msgstr "An Telegram posten" +msgstr "WP Telegram Pro" #: languages/wptelegram-js-translations.php:211 msgid "%s supports Cloudflare proxy for featured image upload!" msgstr "" +"%s unterstützt den Cloudflare-Proxy für das Hochladen von Titelbildern!" #: languages/wptelegram-js-translations.php:214 msgid "Upgrade NOW" -msgstr "" +msgstr "Jetzt upgraden" #: languages/wptelegram-js-translations.php:217 modules/p2tg/Admin.php:417 msgid "Send to" @@ -354,7 +347,7 @@ msgstr "Senden an" #: languages/wptelegram-js-translations.php:220 msgid "Add or Upload Files" -msgstr "" +msgstr "Dateien hinzufügen oder hochladen" #: languages/wptelegram-js-translations.php:223 modules/p2tg/Admin.php:440 msgid "Files to be sent after the message." @@ -394,7 +387,7 @@ msgstr "Senden an Telegram" #: languages/wptelegram-js-translations.php:255 msgid "View log" -msgstr "" +msgstr "Protokoll anzeigen" #: languages/wptelegram-js-translations.php:258 msgid "" @@ -430,7 +423,7 @@ msgstr "Struktur der Nachricht, die gesendet werden soll." #: languages/wptelegram-js-translations.php:276 msgid "Users will receive a notification with no sound." -msgstr "" +msgstr "Benutzer erhalten eine Benachrichtigung ohne Ton." #: languages/wptelegram-js-translations.php:279 msgid "Post Content" @@ -438,7 +431,7 @@ msgstr "Beitragsinhalt" #: languages/wptelegram-js-translations.php:282 msgid "Before \"Read More\"" -msgstr "" +msgstr "Vor \"Read More\"" #: languages/wptelegram-js-translations.php:285 msgid "Post Excerpt" @@ -446,11 +439,11 @@ msgstr "Beitragsauszug" #: languages/wptelegram-js-translations.php:288 msgid "Number of words for the excerpt." -msgstr "" +msgstr "Anzahl der Wörter für den Auszug." #: languages/wptelegram-js-translations.php:291 msgid "Preserve newlines in Post Excerpt." -msgstr "" +msgstr "Beibehalten von Zeilenumbrüchen im Beitrags-Auszügen." #: languages/wptelegram-js-translations.php:294 msgid "Before the Text" @@ -462,15 +455,15 @@ msgstr "Nach dem Text" #: languages/wptelegram-js-translations.php:301 msgid "Edit button" -msgstr "" +msgstr "Button bearbeiten" #: languages/wptelegram-js-translations.php:304 msgid "Copy button" -msgstr "" +msgstr "Button kopieren" #: languages/wptelegram-js-translations.php:307 msgid "Delete button" -msgstr "" +msgstr "Button löschen" #: languages/wptelegram-js-translations.php:310 modules/p2tg/Admin.php:480 msgid "Structure of the message to be sent." @@ -478,11 +471,11 @@ msgstr "Struktur der Nachricht, die gesendet werden soll." #: languages/wptelegram-js-translations.php:313 msgid "Send categories as hashtags." -msgstr "" +msgstr "Kategorien als Hashtags senden." #: languages/wptelegram-js-translations.php:316 msgid "Disables previews for links in the messages." -msgstr "" +msgstr "Vorschau für Links in den Nachrichten deaktivieren." #: languages/wptelegram-js-translations.php:319 msgid "To receive notifications privately:" @@ -525,21 +518,20 @@ msgstr "Den eigenen Bot %s zur Gruppe hinzufügen." #: languages/wptelegram-js-translations.php:349 msgid "You can use any text, emojis or these macros in any order." msgstr "" -"Es können jede Art von Text, Emojis oder die folgenden Makros benutzt warden." +"Es können jede Art von Text, Emojis oder die folgenden Makros benutzt werden." #. translators: %s pipe character #: languages/wptelegram-js-translations.php:353 msgid "Note can be added after %s." -msgstr "" +msgstr "Eine Anmerkung kann nach %s hinzugefügt werden." #: languages/wptelegram-js-translations.php:356 -#, fuzzy msgid "For example %s" -msgstr "Zum einfacheren kopieren %s benutzen!" +msgstr "Zum Beispiel %s" #: languages/wptelegram-js-translations.php:359 msgid "Create a Telegram channel or group." -msgstr "" +msgstr "Erstelle einen Telegram-Channel oder eine Gruppe." #: languages/wptelegram-js-translations.php:362 msgid "Add your bot %s as Administrator to your Channel/Group." @@ -562,38 +554,44 @@ msgstr "" #: languages/wptelegram-js-translations.php:374 msgid "Get it from %s." -msgstr "Diese kann über den %s herausgefunden warden." +msgstr "Diese kann über den %s herausgefunden werden." #: languages/wptelegram-js-translations.php:377 msgid "" "If you want to send posts to a specific topic in a group with topics " "enabled, you can add a colon (%s) to the chat ID followed by topic ID." msgstr "" +"Falls du Beiträge zu einem bestimmten Thema in einer Gruppe mit aktivierten " +"Themen senden möchtest, kansnt du der Chat-ID einen Doppelpunkt (%s) gefolgt " +"von der Themen-ID hinzufügen." #: languages/wptelegram-js-translations.php:380 msgid "Tip!" -msgstr "" +msgstr "Hinweis!" #: languages/wptelegram-js-translations.php:383 msgid "" "You can add an internal note to the chat ID to make it easier for you to " "indentify it." msgstr "" +"Du kannst der Chat-ID eine interne Notiz hinzufügen, damit du sie leichter " +"identifizieren kannst." #: languages/wptelegram-js-translations.php:386 msgid "Show an ON/OFF switch on the post edit screen." msgstr "AN/AUS-Schalter im Beitragseditor einblenden." #: languages/wptelegram-js-translations.php:389 -#, fuzzy msgid "You can use this switch to override the settings for a particular post." msgstr "" "Diese Option kann genutzt werden, um die Standard-Einstellungen für einen " -"bestimmten Beitrag zu überschreiben." +"bestimmten Beitrag zu übergehen." #: languages/wptelegram-js-translations.php:392 msgid "Enable this option if you use a plugin to generate posts." msgstr "" +"Aktiviere diese Option, wenn du ein Plugin zum Generieren von Beiträgen " +"verwendest." #: languages/wptelegram-js-translations.php:396 msgid "None" @@ -612,6 +610,7 @@ msgstr "" #: languages/wptelegram-js-translations.php:407 msgid "Protects the contents of sent messages from forwarding and saving." msgstr "" +"Schützt den Inhalt gesendeter Nachrichten vor Weiterleitung und Speicherung." #: languages/wptelegram-js-translations.php:410 msgid "Send both text and image in single message." @@ -620,7 +619,7 @@ msgstr "Text und Bild in der selben Nachricht senden." #. translators: 1 - field name, 2 - value #: languages/wptelegram-js-translations.php:414 msgid "When %1$s is set to %2$s:" -msgstr "" +msgstr "Wenn %1$s auf %2$s eingestellt ist:" #. translators: 1 - field name, 2 - value #: languages/wptelegram-js-translations.php:418 @@ -634,7 +633,7 @@ msgstr "%s sollte nicht aktiviert sein." #: languages/wptelegram-js-translations.php:425 msgid "You can also use conditional logic in the template." -msgstr "" +msgstr "Du kannst auch bedingte Logik in der Vorlage verwenden." #: languages/wptelegram-js-translations.php:428 msgid "Allow users receive their email notifications on Telegram." @@ -651,7 +650,7 @@ msgstr "" #: languages/wptelegram-js-translations.php:436 msgid "They can also enter their Telegram Chat ID manually on %s page." msgstr "" -"Sie können aber auch ihre Telegram Chat ID manuell auf der %s-Seite " +"Du kannst aber auch deine Telegram Chat ID manuell auf der %s-Seite " "konfigurieren." #: languages/wptelegram-js-translations.php:439 @@ -664,23 +663,23 @@ msgstr "Die Anfragen an Telegram laufen über ein Google Script." #: languages/wptelegram-js-translations.php:446 msgid "HTTP" -msgstr "" +msgstr "HTTP" #: languages/wptelegram-js-translations.php:449 msgid "SOCKS4" -msgstr "" +msgstr "SOCKS4" #: languages/wptelegram-js-translations.php:452 msgid "SOCKS4A" -msgstr "" +msgstr "SOCKS4A" #: languages/wptelegram-js-translations.php:455 msgid "SOCKS5" -msgstr "" +msgstr "SOCKS5" #: languages/wptelegram-js-translations.php:458 msgid "SOCKS5_HOSTNAME" -msgstr "" +msgstr "SOCKS5_HOSTNAME" #. translators: IP address #: languages/wptelegram-js-translations.php:462 @@ -698,7 +697,7 @@ msgstr "Leer lassen, falls nicht benötigt." #: languages/wptelegram-js-translations.php:472 msgid "Cloudflare worker" -msgstr "" +msgstr "Cloudflare Worker" #: languages/wptelegram-js-translations.php:475 msgid "Google Script" @@ -712,13 +711,12 @@ msgstr "PHP Proxy" msgid "" "The module will help you bypass the ban on Telegram by making use of proxy." msgstr "" -"Dieses Modul hilft, einen Ban auf Telegram zu umgehen, indem ein Proxy " +"Dieses Modul hilft, eine Telegram-Sperre zu umgehen, indem ein Proxy " "verwendet wird." #: languages/wptelegram-js-translations.php:484 -#, fuzzy msgid "Cloudflare worker is preferred." -msgstr "Google Script wird empfohlen." +msgstr "Cloudflare Worker wird bevorzugt." #: languages/wptelegram-js-translations.php:487 msgid "Use the proxy at your own risk!" @@ -730,7 +728,7 @@ msgstr "WICHTIGER HINWEIS!" #: languages/wptelegram-js-translations.php:493 msgid "Proxy settings" -msgstr "" +msgstr "Proxy-Einstellungen" #: languages/wptelegram-js-translations.php:498 msgid "Add" @@ -747,10 +745,11 @@ msgstr "ODER" #: languages/wptelegram-js-translations.php:507 msgid "You can also define custom rules to send the posts." msgstr "" +"Du kannst auch benutzerdefinierte Regeln zum Senden der Beiträge definieren." #: languages/wptelegram-js-translations.php:510 msgid "Remove" -msgstr "" +msgstr "Entfernen" #: languages/wptelegram-js-translations.php:513 msgid "is in" @@ -762,33 +761,31 @@ msgstr "ist NICHT" #: languages/wptelegram-js-translations.php:519 msgid "Rule type" -msgstr "" +msgstr "Regel-Typ" #: languages/wptelegram-js-translations.php:522 msgid "Rule operator" -msgstr "" +msgstr "Regel-Operator" #: languages/wptelegram-js-translations.php:525 msgid "Select..." -msgstr "" +msgstr "Wählen..." #: languages/wptelegram-js-translations.php:528 msgid "Loading..." -msgstr "" +msgstr "Wird geladen …" #: languages/wptelegram-js-translations.php:531 msgid "No options available" -msgstr "" +msgstr "Keine Optionen verfügbar" #: languages/wptelegram-js-translations.php:534 -#, fuzzy msgid "Rule values" -msgstr "Regeln" +msgstr "Regel-Werte" #: languages/wptelegram-js-translations.php:537 -#, fuzzy msgid "Bot" -msgstr "Bot API" +msgstr "Bot" #: languages/wptelegram-js-translations.php:540 msgid "Bot Token" @@ -800,11 +797,11 @@ msgstr "Bot Benutzername" #: languages/wptelegram-js-translations.php:546 msgid "Categories as hashtags" -msgstr "" +msgstr "Kategorien als Hashtags" #: languages/wptelegram-js-translations.php:549 msgid "Cloudflare worker URL" -msgstr "" +msgstr "Cloudflare Worker URL" #: languages/wptelegram-js-translations.php:552 msgid "Channel(s)" @@ -836,7 +833,7 @@ msgstr "Auszugslänge" #: languages/wptelegram-js-translations.php:573 msgid "Excerpt Newlines" -msgstr "" +msgstr "Auszüge neue Zeilen" #: languages/wptelegram-js-translations.php:576 msgid "Excerpt Source" @@ -852,20 +849,19 @@ msgstr "Bildposition" #: languages/wptelegram-js-translations.php:585 msgid "Formatting" -msgstr "" +msgstr "Formatierung" #: languages/wptelegram-js-translations.php:588 msgid "Plugin generated posts" -msgstr "" +msgstr "Durch ein Plugin generierte Beiträge" #: languages/wptelegram-js-translations.php:591 msgid "Post edit switch" -msgstr "" +msgstr "Schalter zur Bearbeitung von Beiträgen" #: languages/wptelegram-js-translations.php:594 -#, fuzzy msgid "Protect content" -msgstr "Beitragsinhalt" +msgstr "Inhalte schützen" #: languages/wptelegram-js-translations.php:597 msgid "Proxy Host" @@ -885,7 +881,7 @@ msgstr "Proxy-Typ" #: languages/wptelegram-js-translations.php:609 msgid "Username" -msgstr "Nutzername" +msgstr "Benutzername" #: languages/wptelegram-js-translations.php:612 msgid "Send files by URL" @@ -901,20 +897,19 @@ msgstr "Benachrichtigungen an Nutzer erlauben" #: languages/wptelegram-js-translations.php:621 msgid "Active" -msgstr "" +msgstr "Aktiv" #: languages/wptelegram-js-translations.php:624 msgid "Please read the instructions above." -msgstr "" +msgstr "Bitte lies die obenstehenden Anweisungen." #: languages/wptelegram-js-translations.php:627 -#, fuzzy msgid "No" -msgstr "Nichts" +msgstr "Nein" #: languages/wptelegram-js-translations.php:630 msgid "Yes" -msgstr "" +msgstr "Ja" #: languages/wptelegram-js-translations.php:633 msgid "INSTRUCTIONS!" @@ -922,7 +917,7 @@ msgstr "Konfigurationsanweisung" #: languages/wptelegram-js-translations.php:636 msgid "Click here for instructions." -msgstr "" +msgstr "Klicke hier, um dir die Anweisungen anzusehen." #: languages/wptelegram-js-translations.php:639 msgid "Do you like %s?" @@ -930,7 +925,7 @@ msgstr "Gefällt dir %s?" #: languages/wptelegram-js-translations.php:642 msgid "Write a review" -msgstr "" +msgstr "Schreib eine Bewertung" #: languages/wptelegram-js-translations.php:645 msgid "Need help?" @@ -941,9 +936,8 @@ msgid "Members Count:" msgstr "Mitgliederanzahl:" #: languages/wptelegram-js-translations.php:651 -#, fuzzy msgid "Result:" -msgstr "Testergebnis:" +msgstr "Ergebnis:" #: languages/wptelegram-js-translations.php:654 msgid "Test Result:" @@ -960,37 +954,39 @@ msgstr "%s beitreten" #. translators: 1, 2 Menu names #: languages/wptelegram-js-translations.php:664 msgid "Goto %1$s and click/drag %2$s and place it where you want it to be." -msgstr "" +msgstr "Gehe zu %1$s, wähle %2$s und platziere es an der gewünschten Stelle." #: languages/wptelegram-js-translations.php:667 msgid "Appearance" -msgstr "" +msgstr "Aussehen" #: languages/wptelegram-js-translations.php:670 msgid "Widgets" -msgstr "" +msgstr "Widgets" #: languages/wptelegram-js-translations.php:673 msgid "" "Alternately, you can use the below shortcode or the block available in block " "editor." msgstr "" +"Alternativ kannst du den folgenden Shortcode oder den im Blockeditor " +"verfügbaren Block verwenden." #: languages/wptelegram-js-translations.php:676 msgid "Inside page or post content:" -msgstr "" +msgstr "Inhalt der Innenseite oder des Beitrags:" #: languages/wptelegram-js-translations.php:679 msgid "Inside the theme templates" -msgstr "" +msgstr "Innerhalb der Themenvorlagen" #: languages/wptelegram-js-translations.php:682 msgid "or" -msgstr "" +msgstr "oder" #: languages/wptelegram-js-translations.php:685 msgid "Widget Info" -msgstr "" +msgstr "Widget-Info" #: languages/wptelegram-js-translations.php:689 msgid "Please wait…" @@ -1002,7 +998,7 @@ msgstr "Sende Test" #: languages/wptelegram-js-translations.php:695 msgid "Something went wrong" -msgstr "" +msgstr "Etwas ist schief gelaufen" #: languages/wptelegram-js-translations.php:698 msgid "Could not connect" @@ -1030,11 +1026,11 @@ msgstr "Erfolg" #: languages/wptelegram-js-translations.php:713 msgid "Lets fix these errors first." -msgstr "" +msgstr "Lass uns zuerst diesen Fehler beheben." #: languages/wptelegram-js-translations.php:716 msgid "Changes saved successfully." -msgstr "" +msgstr "Die Änderungen wurden erfolgreich gespeichert." #: languages/wptelegram-js-translations.php:719 msgid "Invalid %s" @@ -1042,11 +1038,11 @@ msgstr "%s ungültig" #: languages/wptelegram-js-translations.php:722 msgid "%s required." -msgstr "" +msgstr "%s erforderlich." #: languages/wptelegram-js-translations.php:725 msgid "Changes could not be saved." -msgstr "" +msgstr "Die Änderungen konnten nicht gespeichert werden." #: modules/p2tg/Admin.php:208 msgid "Post Data" @@ -1095,7 +1091,7 @@ msgstr "Beitrags-Schlagwort" #: modules/p2tg/Rules.php:50 msgid "Post Format" -msgstr "Beitrags-Forma" +msgstr "Beitragsformat" #: modules/p2tg/Rules.php:54 msgid "Post Author" @@ -1105,5 +1101,14 @@ msgstr "Beitragsautor" msgid "Custom Taxonomy" msgstr "Individuelle Taxonomie" -#~ msgid "Markdown style" -#~ msgstr "Markdown Style " +#~ msgid "" +#~ "Integrate your WordPress website perfectly with Telegram. Send posts " +#~ "automatically to Telegram when published or updated, whether to a " +#~ "Telegram Channel, Group or private chat, with full control. Get your " +#~ "email notifications on Telegram." +#~ msgstr "" +#~ "Integriere deine WordPress-Website perfekt in Telegram. Sende Beiträge " +#~ "automatisch an Telegram, wenn sie veröffentlicht oder aktualisiert " +#~ "werden, egal ob an einen Telegram-Channel, eine Gruppe oder einen " +#~ "privaten Chat, mit voller Kontrolle. Erhalte deine E-Mail-" +#~ "Benachrichtigungen per Telegram." diff --git a/src/languages/wptelegram-es_ES.po b/src/languages/wptelegram-es_ES.po index 36c1561..47bfdba 100644 --- a/src/languages/wptelegram-es_ES.po +++ b/src/languages/wptelegram-es_ES.po @@ -1,9 +1,9 @@ -# Copyright (C) 2017 WP Telegram +# Copyright (C) 2017 WP Telegram msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-14 01:37+0530\n" "Last-Translator: Robert Skiba \n" "Language-Team: Deutsch\n" @@ -28,10 +28,6 @@ msgid "" "and do lot more :)" msgstr "" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -110,14 +106,6 @@ msgstr "" msgid "channel" msgstr "" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "" @@ -1057,6 +1045,3 @@ msgstr "" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "" - -#~ msgid "Markdown style" -#~ msgstr "Stil Markdown" diff --git a/src/languages/wptelegram-fa_IR.po b/src/languages/wptelegram-fa_IR.po index e3c87e3..d428131 100644 --- a/src/languages/wptelegram-fa_IR.po +++ b/src/languages/wptelegram-fa_IR.po @@ -1,9 +1,9 @@ -# Copyright (C) 2017 WP Telegram +# Copyright (C) 2017 WP Telegram msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-14 02:02+0530\n" "Last-Translator: \n" "Language-Team: Taktaweb Group \n" @@ -31,10 +31,6 @@ msgstr "" "با این افزونه، شما می توانید نوشته‌ها را به تلگرام بفرستید و اعلان دریافت " "کنید و کلی کارهای دیگه انجام بدید :)" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -113,14 +109,6 @@ msgstr "" msgid "channel" msgstr "کانال" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "پشتیبانی زنده در تلگرام" @@ -1076,6 +1064,3 @@ msgstr "نویسنده مطلب" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "دسته بندی دلخواه" - -#~ msgid "Markdown style" -#~ msgstr "سبک نشانه گذاری" diff --git a/src/languages/wptelegram-id_ID.po b/src/languages/wptelegram-id_ID.po index b7182fa..94143eb 100644 --- a/src/languages/wptelegram-id_ID.po +++ b/src/languages/wptelegram-id_ID.po @@ -1,9 +1,9 @@ -# Copyright (C) 2017 WP Telegram +# Copyright (C) 2017 WP Telegram msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-14 01:59+0530\n" "Last-Translator: \n" "Language-Team: WPTelegram\n" @@ -30,10 +30,6 @@ msgstr "" "Dengan plugin ini, Anda dapat mengirim posting ke Telegram dan menerima " "notifikasi dan melakukan lebih banyak lagi :)" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -112,14 +108,6 @@ msgstr "" msgid "channel" msgstr "" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "Dapatkan dukungan LIVE di Telegram" @@ -1080,6 +1068,3 @@ msgstr "Penulis Posting" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "Taksonomi Kustom" - -#~ msgid "Markdown style" -#~ msgstr "Gaya Markdown" diff --git a/src/languages/wptelegram-it_IT.mo b/src/languages/wptelegram-it_IT.mo index ab54592..23c2469 100644 Binary files a/src/languages/wptelegram-it_IT.mo and b/src/languages/wptelegram-it_IT.mo differ diff --git a/src/languages/wptelegram-it_IT.po b/src/languages/wptelegram-it_IT.po index 3704c72..599aed5 100644 --- a/src/languages/wptelegram-it_IT.po +++ b/src/languages/wptelegram-it_IT.po @@ -1,9 +1,9 @@ -# Copyright (C) 2017 WP Telegram +# Copyright (C) 2017 WP Telegram msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-21 12:14+0530\n" "Last-Translator: \n" "Language-Team: WPTelegram\n" @@ -30,10 +30,6 @@ msgstr "" "Con questo plugin puoi spedire i tuoi articoli a Telegram, ricevere " "notifiche e molto altro :)" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "WP Telegram" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -112,18 +108,6 @@ msgstr "Almeno un(a) %s è richiesto(a)." msgid "channel" msgstr "canali" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" -"Integra perfettamente il tuo sito WordPress con Telegram. Invia " -"automaticamente gli articoli a Telegram quando li pubblichi o li aggiorni. " -"Può inviare a un canale Telegram, a un gruppo o a una chat privata, con il " -"pieno controllo di ogni aspetto. Ricevi le tue notifiche e-mail su Telegram." - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "Ottieni supporto dal vivo su Telegram" @@ -1088,6 +1072,3 @@ msgstr "Autore dell'articolo" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "Tassonomia personalizzata" - -#~ msgid "Markdown style" -#~ msgstr "Stile markdown" diff --git a/src/languages/wptelegram-pl_PL.po b/src/languages/wptelegram-pl_PL.po index 4361852..c5fcac2 100644 --- a/src/languages/wptelegram-pl_PL.po +++ b/src/languages/wptelegram-pl_PL.po @@ -1,9 +1,9 @@ -# Copyright (C) 2020 WP Socio +# Copyright (C) 2020 WP Socio msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-14 02:09+0530\n" "Last-Translator: \n" "Language-Team: Polski\n" @@ -34,10 +34,6 @@ msgstr "" "Dzięki tej wtyczce możesz wysyłać posty do Telegrama, otrzymywać " "powiadomienia i robić wiele więcej :)" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -116,14 +112,6 @@ msgstr "" msgid "channel" msgstr "Kanał" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "Uzyskaj pomoc na Telegramie" @@ -1084,6 +1072,3 @@ msgstr "Autor postu" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "Niestandardowa taksonomia" - -#~ msgid "Markdown style" -#~ msgstr "Styl Markdown" diff --git a/src/languages/wptelegram-pt_BR.po b/src/languages/wptelegram-pt_BR.po index 0423588..f371753 100644 --- a/src/languages/wptelegram-pt_BR.po +++ b/src/languages/wptelegram-pt_BR.po @@ -1,9 +1,9 @@ -# Copyright (C) 2017 WP Telegram +# Copyright (C) 2017 WP Telegram msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-14 02:11+0530\n" "Last-Translator: \n" "Language-Team: WPTelegram\n" @@ -28,10 +28,6 @@ msgid "" "and do lot more :)" msgstr "" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -110,14 +106,6 @@ msgstr "" msgid "channel" msgstr "" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "" @@ -1058,6 +1046,3 @@ msgstr "" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "" - -#~ msgid "Markdown style" -#~ msgstr "Estilo Markdown" diff --git a/src/languages/wptelegram-ru_RU.po b/src/languages/wptelegram-ru_RU.po index 9eaa403..5a96060 100644 --- a/src/languages/wptelegram-ru_RU.po +++ b/src/languages/wptelegram-ru_RU.po @@ -1,9 +1,9 @@ -# Copyright (C) 2017 WP Telegram +# Copyright (C) 2017 WP Telegram msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-14 02:21+0530\n" "Last-Translator: \n" "Language-Team: WPTelegram\n" @@ -31,10 +31,6 @@ msgstr "" "С помощью этого плагина вы можете отправлять сообщения в Telegram, получать " "уведомления и делать многое другое :)" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -113,14 +109,6 @@ msgstr "" msgid "channel" msgstr "Канал" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "Получайте живую поддержку в Телеграм" @@ -1080,6 +1068,3 @@ msgstr "Автор публикации" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "Пользовательское " - -#~ msgid "Markdown style" -#~ msgstr "Markdown стиль" diff --git a/src/languages/wptelegram-sq.po b/src/languages/wptelegram-sq.po index c7bb199..7c3d109 100644 --- a/src/languages/wptelegram-sq.po +++ b/src/languages/wptelegram-sq.po @@ -1,9 +1,9 @@ -# Copyright (C) 2017 WP Telegram +# Copyright (C) 2017 WP Telegram msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-14 02:22+0530\n" "Last-Translator: \n" "Language-Team: WPTelegram\n" @@ -29,10 +29,6 @@ msgid "" "and do lot more :)" msgstr "" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -111,14 +107,6 @@ msgstr "" msgid "channel" msgstr "" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "" @@ -1058,6 +1046,3 @@ msgstr "" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "" - -#~ msgid "Markdown style" -#~ msgstr "Stil Markdown" diff --git a/src/languages/wptelegram-zh_TW.po b/src/languages/wptelegram-zh_TW.po index 85607fe..07c235c 100644 --- a/src/languages/wptelegram-zh_TW.po +++ b/src/languages/wptelegram-zh_TW.po @@ -1,9 +1,9 @@ -# Copyright (C) 2017 WP Telegram +# Copyright (C) 2017 WP Telegram msgid "" msgstr "" "Project-Id-Version: WP Telegram - Stable\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-07-07 09:56:05+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "PO-Revision-Date: 2021-03-14 02:27+0530\n" "Last-Translator: \n" "Language-Team: WPTelegram\n" @@ -28,10 +28,6 @@ msgid "" "and do lot more :)" msgstr "有了這個外掛,你可以發送文章至 Telegram 並且接收通知,以及更多事情 :)" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -110,14 +106,6 @@ msgstr "" msgid "channel" msgstr "" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "" @@ -1059,6 +1047,3 @@ msgstr "文章作者" #: modules/p2tg/Rules.php:59 msgid "Custom Taxonomy" msgstr "自訂分類" - -#~ msgid "Markdown style" -#~ msgstr "Markdown 樣式" diff --git a/src/languages/wptelegram.pot b/src/languages/wptelegram.pot index 4e8d339..b6cc024 100644 --- a/src/languages/wptelegram.pot +++ b/src/languages/wptelegram.pot @@ -1,14 +1,14 @@ -# Copyright (C) 2023 -# This file is distributed under the same license as the package. +# Copyright (C) 2023 WP Socio +# This file is distributed under the GPL-2.0+. msgid "" msgstr "" -"Project-Id-Version: \n" +"Project-Id-Version: WP Telegram 4.0.14\n" "Report-Msgid-Bugs-To: https://github.com/wpsocio/wptelegram\n" -"POT-Creation-Date: 2023-09-17 07:07:41+00:00\n" +"POT-Creation-Date: 2023-11-22 14:20:05+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2023-09-17 7:70\n" +"PO-Revision-Date: 2023-11-22 14:200\n" "Last-Translator: WP Telegram\n" "Language-Team: WP Telegram\n" "Language: en_US\n" @@ -33,10 +33,6 @@ msgid "" "and do lot more :)" msgstr "" -#: includes/Main.php:316 -msgid "WP Telegram" -msgstr "" - #: includes/Requirements.php:121 msgid "This plugin is not compatible with your website configuration." msgstr "" @@ -115,14 +111,6 @@ msgstr "" msgid "channel" msgstr "" -#: languages/wptelegram-js-translations.php:41 -msgid "" -"Integrate your WordPress website perfectly with Telegram. Send posts " -"automatically to Telegram when published or updated, whether to a Telegram " -"Channel, Group or private chat, with full control. Get your email " -"notifications on Telegram." -msgstr "" - #: languages/wptelegram-js-translations.php:44 msgid "Get LIVE support on Telegram" msgstr "" diff --git a/src/modules/p2tg/PostSender.php b/src/modules/p2tg/PostSender.php index 3eb704c..2cfcb86 100644 --- a/src/modules/p2tg/PostSender.php +++ b/src/modules/p2tg/PostSender.php @@ -948,13 +948,7 @@ private function get_responses() { $text = $this->get_response_text( $template ); } - $this->send_files_by_url = WPTG()->options()->get_path( 'advanced.send_files_by_url', true ); - - /** - * Pass false to upload the file - * instead of sending as URL - */ - $this->send_files_by_url = (bool) apply_filters( 'wptelegram_p2tg_send_files_by_url', $this->send_files_by_url, $this->post, $this->options ); + $this->send_files_by_url = MainUtils::send_files_by_url(); // For Photo. $image_source = $this->get_featured_image_source(); @@ -1210,15 +1204,23 @@ private function get_file_responses( $files ) { $caption = $this->post_data->get_field( 'post_title' ); + $size_limit = MainUtils::get_image_size_limit(); + foreach ( $files as $id => $url ) { $caption = apply_filters( 'wptelegram_p2tg_file_caption', $caption, $this->post, $id, $url, $this->options ); - $type = MainUtils::guess_file_type( $id, $url ); + $media_path = MainUtils::get_attachment_by_filesize( $id, $size_limit ); + + if ( ! $media_path ) { + continue; + } + + $type = MainUtils::guess_file_type( $id, $media_path ); $file_responses[] = [ 'send' . ucfirst( $type ) => [ - $type => $this->send_files_by_url ? $url : get_attached_file( $id ), + $type => $media_path, 'caption' => $caption, ], ]; diff --git a/src/modules/p2tg/restApi/RulesController.php b/src/modules/p2tg/restApi/RulesController.php index fb81498..4258ac5 100644 --- a/src/modules/p2tg/restApi/RulesController.php +++ b/src/modules/p2tg/restApi/RulesController.php @@ -222,8 +222,8 @@ public static function get_term_list( $taxonomy, $search, $include = [] ) { $term_list = []; $terms = get_terms( - $taxonomy, [ + 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'orderby' => 'term_group', 'search' => $search, diff --git a/src/wptelegram.php b/src/wptelegram.php index d7f5a26..8428f8d 100644 --- a/src/wptelegram.php +++ b/src/wptelegram.php @@ -10,7 +10,7 @@ * Plugin Name: WP Telegram * Plugin URI: https://t.me/WPTelegram * Description: Integrate your WordPress website perfectly with Telegram. Send posts automatically to Telegram when published or updated, whether to a Telegram Channel, Group or private chat, with full control. Get your email notifications on Telegram. - * Version: 4.0.13 + * Version: 4.0.14 * Requires at least: 6.0 * Requires PHP: 7.0 * Author: WP Socio @@ -26,7 +26,7 @@ die; } -define( 'WPTELEGRAM_VER', '4.0.13' ); +define( 'WPTELEGRAM_VER', '4.0.14' ); defined( 'WPTELEGRAM_MAIN_FILE' ) || define( 'WPTELEGRAM_MAIN_FILE', __FILE__ );