Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

### 2.0.4 - 2025-12-16

- Fixed problems with YouTube not playing videos due to YouTube's referrerer policy.
- Ensure and future-proof compatibility with phpBB4.
- Added language packs:
- Romanian

### 2.0.3 - 2025-09-20

- Added an amendment to the forum privacy policy regarding how embedded content may affect user privacy.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "phpbb-extension",
"description": "An official phpBB extension that allows users to embed content from allowed sites using a [media] BBCode, or from simply posting a supported URL in plain text.",
"homepage": "https://www.phpbb.com/customise/db/extension/mediaembed/",
"version": "2.0.3",
"version": "2.0.4",
"license": "GPL-2.0-only",
"authors": [
{
Expand Down
14 changes: 7 additions & 7 deletions language/pl/acp.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@
'ACP_MEDIA_BBCODE_LEGEND' => 'BBCode',
'ACP_MEDIA_DISPLAY_BBCODE' => 'Wyświetl znacznik BBcode <samp>[media]</samp> na forum',
'ACP_MEDIA_DISPLAY_BBCODE_EXPLAIN' => 'Jeśli wybrano Nie, to znacznik <samp>[media]</samp> nie będzie wyświetlony, jednakże nadal można go używać na forum.',
'ACP_MEDIA_OPTIONS_LEGEND' => 'Options',
'ACP_MEDIA_OPTIONS_LEGEND' => 'Opcje',
'ACP_MEDIA_ALLOW_SIG' => 'Znacznik <samp>[media]</samp> w podpisach',
'ACP_MEDIA_ALLOW_SIG_EXPLAIN' => 'Zezwól na używanie multimediów w sygnaturze.',
'ACP_MEDIA_CACHE_LEGEND' => 'Content caching',
'ACP_MEDIA_CACHE_LEGEND' => 'Buforowanie zawartości',
'ACP_MEDIA_ENABLE_CACHE' => 'Pamięć podręczna osadzania multimediów',
'ACP_MEDIA_ENABLE_CACHE_EXPLAIN' => 'W niektórych przypadkach ładowanie multimediów może działać wolniej, np. podczas ponownego ładowania treści przy edycji posta. Włączenie pamięci podręcznej może poprawić wydajność osadzania multimediów.',
'ACP_MEDIA_PARSE_URLS' => 'Konwersja adresów URL',
'ACP_MEDIA_PARSE_URLS_EXPLAIN' => 'Jeśli wybrano Tak, to adresy URL zostaną przekonwertowane bez użycia znacznika BBCode <samp>[media]</samp> lub <samp>[url]</samp>. Ta opcja wpłynie tylko na nowo osadzone multimedia. Dotychczasowe adresy URL nie zostaną przetworzone.',
'ACP_MEDIA_WIDTH_LEGEND' => 'Content sizing',
'ACP_MEDIA_FULL_WIDTH' => 'Enable full width content',
'ACP_MEDIA_FULL_WIDTH_EXPLAIN' => 'Enable this to expand most Media Embed content to fill the full width of the post content area while maintaining its native aspect ratio.',
'ACP_MEDIA_MAX_WIDTH' => 'Custom max-width content',
'ACP_MEDIA_MAX_WIDTH_EXPLAIN' => 'Use this field to define custom max-width values for individual sites. This will override the default size and the full width option above. Enter each site on a new line, using the format <samp class="error">siteId:width</samp> with either <samp class="error">px</samp> or <samp class="error">%</samp>. For example:<br><br><samp class="error">youtube:80%</samp><br><samp class="error">funnyordie:480px</samp><br><br><i><strong class="error">Tip:</strong> Hover your mouse over a site on the Manage sites page to reveal the site id name to use here.</i>',
'ACP_MEDIA_WIDTH_LEGEND' => 'Rozmiar zawartości',
'ACP_MEDIA_FULL_WIDTH' => 'Tryb pełnoekranowy',
'ACP_MEDIA_FULL_WIDTH_EXPLAIN' => 'Włącz tę opcję, aby rozszerzyć większość osadzonych multimediów do szerokości obszaru treści posta, zachowując jednocześnie jego natywne proporcje.',
'ACP_MEDIA_MAX_WIDTH' => 'Niestandardowy tryb pełnoekranowy',
'ACP_MEDIA_MAX_WIDTH_EXPLAIN' => 'Użyj tego pola, aby zdefiniować maksymalną szerokość multimediów dla poszczególnych witryn. Zastąpi to domyślną szerokość zdefiniowana w polu wyżej. Wprowadź każdą witrynę w nowym wierszu, używając formatu <samp class="error">siteId:szerokość</samp> przy pomocy <samp class="error">px</samp> lub <samp class="error">%</samp>. Na przykład:<br><br><samp class="error">youtube:80%</samp><br><samp class="error">funnyordie:480px</samp><br><br><i><strong class="error">Wskazówka:</strong> Najedź kursorem myszy na witrynę na stronie ”Zarządzaj stronami”, aby wyświetlić nazwę identyfikatora witryny do użycia w tym miejscu.</i>',
'ACP_MEDIA_PURGE_CACHE' => 'Wyczyść pamięć podręczną',
'ACP_MEDIA_PURGE_CACHE_EXPLAIN' => 'Pamięć podręczna osadzania multimediów jest codziennie, automatycznie czyszczona. Można ją usunąć teraz poprzez kliknięcie przycisku.',
'ACP_MEDIA_SITE_TITLE' => 'ID strony: %s',
Expand Down
54 changes: 54 additions & 0 deletions language/ro/acp.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php
/**
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
*
* @copyright (c) 2016 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = [];
}

$lang = array_merge($lang, [
// Settings
'ACP_MEDIA_SETTINGS' => 'Setări de încorporare media',
'ACP_MEDIA_SETTINGS_EXPLAIN' => 'Aici puteți configura setările pentru Media Embed PlugIn.',
'ACP_MEDIA_BBCODE_LEGEND' => 'BBCode',
'ACP_MEDIA_DISPLAY_BBCODE' => 'Afișați <samp>[MEDIA]</samp> BBCode pe pagina de postare',
'ACP_MEDIA_DISPLAY_BBCODE_EXPLAIN' => 'Dacă nu este permis, butonul BBCode nu va fi afișat, totuși utilizatorii pot folosi în continuare eticheta <samp>[media]</samp> în postările lor.',
'ACP_MEDIA_OPTIONS_LEGEND' => 'Opțiuni',
'ACP_MEDIA_ALLOW_SIG' => 'Permiteți în semnăturile utilizatorilor',
'ACP_MEDIA_ALLOW_SIG_EXPLAIN' => 'Permiteți semnăturilor utilizatorilor să afișeze conținut media încorporat.',
'ACP_MEDIA_CACHE_LEGEND' => 'Memorarea în cache a conținutului',
'ACP_MEDIA_ENABLE_CACHE' => 'Activați cacheul Media Embed',
'ACP_MEDIA_ENABLE_CACHE_EXPLAIN' => 'În unele cazuri, este posibil să observați o performanță mai lentă decât cea normală atunci când încărcați conținut media de pe alte site-uri, mai ales când încărcați același conținut de mai multe ori (de exemplu, când editați o postare). Activarea acestui lucru va stoca în cache informațiile pe care Media Embed le adună de pe site-uri la nivel local și ar trebui să îmbunătățească performanța.',
'ACP_MEDIA_PARSE_URLS' => 'Convertiți adrese URL simple',
'ACP_MEDIA_PARSE_URLS_EXPLAIN' => 'Activați această opțiune pentru a converti adresele URL simple (nu sunt incluse în etichete <samp>[media]</samp> sau <samp>[url]</samp>) în conținut media încorporat. Rețineți că modificarea acestei setări va afecta numai postările noi, deoarece postările existente au fost deja analizate.',
'ACP_MEDIA_WIDTH_LEGEND' => 'Dimensiunea conținutului',
'ACP_MEDIA_FULL_WIDTH' => 'Activați conținutul cu lățime completă',
'ACP_MEDIA_FULL_WIDTH_EXPLAIN' => 'Activați această opțiune pentru a extinde majoritatea conținutului Media Embed pentru a umple întreaga lățime a zonei de conținut postare, păstrând în același timp raportul de aspect nativ.',
'ACP_MEDIA_MAX_WIDTH' => 'Conținut personalizat cu lățime maximă',
'ACP_MEDIA_MAX_WIDTH_EXPLAIN' => 'Utilizați acest câmp pentru a defini valori personalizate pentru lățimea maximă pentru site-uri individuale. Aceasta va suprascrie dimensiunea implicită și opțiunea de lățime completă de mai sus. Introduceți fiecare site pe o nouă linie, folosind formatul <samp class="error">siteId:width</samp> fie cu <samp class="error">px</samp>, fie cu <samp class="error">%</samp>. De exemplu:<br><br><samp class="error">youtube:80%</samp><br><samp class="error">funnyordie:480px</samp><br><br><i><strong class="error">Sfat:</strong> treceți mouse-ul peste un site din pagina Gestionați site-urile pentru a dezvălui numele de cod al site-ului de utilizat aici.</i>',
'ACP_MEDIA_PURGE_CACHE' => 'Ștergeți memoria cache încorporată',
'ACP_MEDIA_PURGE_CACHE_EXPLAIN' => 'Cacheul Media Embed este curățat automat o dată pe zi, totuși acest buton poate fi folosit pentru a-și curăța manual memoria cache acum.',
'ACP_MEDIA_SITE_TITLE' => 'Id-ul site-ului: %s',
'ACP_MEDIA_SITE_DISABLED' => 'Acest site intră în conflict cu un BBCode existent: [%s]',
'ACP_MEDIA_ERROR_MSG' => 'Au fost întâlnite următoarele erori:<br><br>%s',
'ACP_MEDIA_INVALID_SITE' => '%1$s:%2$s :: “%1$s” nu este un ID valid de site',
'ACP_MEDIA_INVALID_WIDTH' => '%1$s:%2$s :: “%2$s” nu este o lățime validă în „px” sau “%%”',

// Manage sites
'ACP_MEDIA_MANAGE' => 'Gestionați site-urile de încorporare media',
'ACP_MEDIA_MANAGE_EXPLAIN' => 'Aici puteți gestiona site-urile din care doriți să permiteți pluginului Media Embed să afișeze conținut.',
'ACP_MEDIA_SITES_ERROR' => 'Nu există site-uri media de afișat.',
'ACP_MEDIA_SITES_MISSING' => 'Următoarele site-uri nu mai sunt acceptate sau nu mai funcționează. Vă rugăm să retrimiteți această pagină pentru a le elimina.',
]);
42 changes: 42 additions & 0 deletions language/ro/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
/**
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
*
* @copyright (c) 2016 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = [];
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, [
'BBCODE_MEDIA_HELP' => 'Media Embed: [media]http://media_url[/media]',
]);
54 changes: 54 additions & 0 deletions language/ro/help.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php
/**
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
*
* @copyright (c) 2016 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = [];
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, [
'HELP_EMBEDDING_MEDIA' => 'Încorporarea media',
'HELP_EMBEDDING_MEDIA_QUESTION' => 'Cum să încorporați media de pe alte site-uri în postări',
'HELP_EMBEDDING_MEDIA_ANSWER' => 'Utilizatorii pot încorpora conținut, cum ar fi videoclipuri și audio de pe site-uri permise folosind
etichetele <strong>[media][/media]</strong> sau pur și simplu de la postarea unui mesaj acceptat
URL în text simplu. De exemplu:<br /><br />
<strong>[media]</strong>%1$s<strong>[/media]</strong>
<br /><br />Așa cum sa menționat mai sus, linkul ar putea fi folosit și fără
etichete <strong>[media]</strong>.
<br /><br />Exemplul prezentat aici ar genera:<br /><br />%2$s
<br /><br />Sunt acceptate următoarele site-uri:<br /><samp>%3$s.</samp>
<br /><br />Pentru documentația completă despre site-urile acceptate și exemple de adrese URL,
accesați <a href="https://s9etextformatter.readthedocs.io/Plugins/MediaEmbed/Sites/">
Documentația pluginului MediaEmbed</a>.',
]);
30 changes: 30 additions & 0 deletions language/ro/info_acp_mediaembed.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
*
* @copyright (c) 2016 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = [];
}

$lang = array_merge($lang, [
'ACP_PHPBB_MEDIA_EMBED' => 'Media Embed',
'ACP_PHPBB_MEDIA_EMBED_MANAGE' => 'Gestionați site-urile',
'ACP_PHPBB_MEDIA_EMBED_SETTINGS' => 'Setări',

// Log keys
'LOG_PHPBB_MEDIA_EMBED_CACHE_PURGED'=> '<strong>Memoria cache pentru Media Embed a fost eliminată</strong>',
'LOG_PHPBB_MEDIA_EMBED_MANAGE' => '<strong>Site-urile Media Embed au fost actualizate</strong>',
'LOG_PHPBB_MEDIA_EMBED_SETTINGS' => '<strong>Setările pentru Media Embed au fost actualizate</strong>',
]);
43 changes: 43 additions & 0 deletions language/ro/install.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
/**
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
*
* @copyright (c) 2019 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = [];
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, [
'PHPBB_VERSION_ERROR' => 'Forumul dvs. pare să folosească o versiune mai veche a phpBB. phpBB ' . \phpbb\mediaembed\ext::PHPBB_MINIMUM . ' sau mai nou este necesar pentru a utiliza această extensie.',
'S9E_MEDIAEMBED_ERROR' => 'Am detectat extensia s9e/mediaembed. Pluginul Media Embed al phpBB nu poate fi instalat până când nu dezactivați, curățați și ștergeți toate fișierele legate de extensia s9e/mediaembed.',
]);
36 changes: 36 additions & 0 deletions language/ro/permissions_mediaembed.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
*
* @copyright (c) 2016 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = [];
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, [
'ACL_F_MEDIAEMBED' => 'Poate folosi eticheta [media] BBCode',
'ACL_U_PM_MEDIAEMBED' => 'Poate folosi eticheta [media] BBCode în mesajele private',
]);
29 changes: 29 additions & 0 deletions language/ro/ucp.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
/**
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
*
* @copyright (c) 2025 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = [];
}

$lang = array_merge($lang, [
'MEDIA_EMBED_PRIVACY_POLICY' => '
<br><br>
<h3>Embedded Content from Other Websites</h3>
“%1$s” may include posts or content that contain embedded material from external websites, including but not limited to YouTube, Facebook, Twitter, and similar platforms. Embedded content from these external sites behaves in the same way as if you had visited the originating website directly.
<br><br>These external websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with the embedded content, including tracking your interaction if you have an account and are logged in to that website.
<br><br>Please note that such activity is beyond the control of “%1$s” and is governed by the privacy policies and terms of service of the respective external websites. We encourage you to review the privacy and cookie policies of any third-party services you interact with through embedded content.
',
]);
2 changes: 1 addition & 1 deletion language/zh_cmn_hans/acp.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

$lang = array_merge($lang, [
// Settings
'ACP_MEDIA_SETTINGS' => 'Media Embed Settings',
'ACP_MEDIA_SETTINGS' => 'Media Embed 设置',
'ACP_MEDIA_SETTINGS_EXPLAIN' => '这里可设置 Media Embed PlugIn 的相关参数。',
'ACP_MEDIA_BBCODE_LEGEND' => 'BBCode',
'ACP_MEDIA_DISPLAY_BBCODE' => '在发帖页面显示 <samp>[media]</samp> BBCode',
Expand Down
3 changes: 3 additions & 0 deletions language/zh_cmn_hans/permissions_mediaembed.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php
/**
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
* @简体中文语言 David Yin <https://www.phpbbchinese.com/>
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
*
Expand Down
11 changes: 7 additions & 4 deletions language/zh_cmn_hans/ucp.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php
/**
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
* @简体中文语言 David Yin <https://www.phpbbchinese.com/>
*
* phpBB Media Embed PlugIn extension for the phpBB Forum Software package.
*
Expand All @@ -21,9 +24,9 @@
$lang = array_merge($lang, [
'MEDIA_EMBED_PRIVACY_POLICY' => '
<br><br>
<h3>Embedded Content from Other Websites</h3>
“%1$s” may include posts or content that contain embedded material from external websites, including but not limited to YouTube, Facebook, Twitter, and similar platforms. Embedded content from these external sites behaves in the same way as if you had visited the originating website directly.
<br><br>These external websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with the embedded content, including tracking your interaction if you have an account and are logged in to that website.
<br><br>Please note that such activity is beyond the control of “%1$s” and is governed by the privacy policies and terms of service of the respective external websites. We encourage you to review the privacy and cookie policies of any third-party services you interact with through embedded content.
<h3>来自其它网站的嵌入内容</h3>
“%1$s” 的帖子或内容可能包含来自外部网站的嵌入内容,包括但不限于 YouTubeFacebookTwitter,和其它类似的平台。来自这些外部网站的嵌入内容表现与你直接访问原始网站相同。
<br><br>这些外部网站可能会收集有关你的数据,使用 cookie,嵌入第三方的跟踪功能,以及监察你同这些嵌入内容的互动,包括在你拥有账户并登入该网站的情况下的跟踪你的互动。
<br><br>请注意,此类活动不受 “%1$s” 的控制,并受相应外部网站的隐私证词和服务条款的约束。我们建议你查看通过嵌入内容与之互动的任何第三方服务的隐私和 Cookie 政策。
',
]);
Loading
Loading