Skip to content

Commit

Permalink
Merge pull request #103 from phpbb-extensions/release-2.0.2
Browse files Browse the repository at this point in the history
Release 2.0.2
  • Loading branch information
iMattPro committed Feb 13, 2024
2 parents 5231431 + 846d016 commit 17118d6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 22 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
# Changelog

### 2.0.2 - 2024-01-21

- Small QoL improvement in the ACP, added sample placeholder data to the custom max-width field in the content-sizing settings.
- Minor code updates.
- Added and/or updated support for media sites:
- Apple Music
- x.com (aka Twitter)
- kick.com
- Threads
- Bunny Stream

### 2.0.1 - 2023-04-15

- Refactored the ACP and added AJAX to its user interface.
- Added support for these media sites
- Added support for these media sites:
- bilibili.com
- mastodon.social
- tenor.com
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.1",
"version": "2.0.2",
"license": "GPL-2.0-only",
"authors": [
{
Expand Down
6 changes: 3 additions & 3 deletions language/fr/acp.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
'ACP_MEDIA_PURGE_CACHE_EXPLAIN' => 'Permet de vider le cache immédiatement. Pour information, ce cache automatiquement vidé une fois par jour.',
'ACP_MEDIA_SITE_TITLE' => 'ID du service : %s',
'ACP_MEDIA_SITE_DISABLED' => 'Ce service entre en conflit avec un BBCode déjà installé sur le forum : [%s]',
'ACP_MEDIA_ERROR_MSG' => 'The following errors were encountered:<br><br>%s',
'ACP_MEDIA_INVALID_SITE' => '%1$s:%2$s :: “%1$s” is not a valid site id',
'ACP_MEDIA_INVALID_WIDTH' => '%1$s:%2$s :: “%2$s” is not a valid width in “px” or “%%”',
'ACP_MEDIA_ERROR_MSG' => 'Les erreurs suivantes ont été rencontrées :<br><br>%s',
'ACP_MEDIA_INVALID_SITE' => '%1$s:%2$s :: “%1$s” n‘est pas un identifiant de site valide',
'ACP_MEDIA_INVALID_WIDTH' => '%1$s:%2$s :: “%2$s” n‘est pas une largeur valide en "px" ou “%%”',

// Manage sites
'ACP_MEDIA_MANAGE' => 'Gestion des services pour les médias intégrés aux messages',
Expand Down
32 changes: 16 additions & 16 deletions language/zh_cmn_hans/acp.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@
'ACP_MEDIA_OPTIONS_LEGEND' => 'Options',
'ACP_MEDIA_ALLOW_SIG' => '允许使用在用户签名',
'ACP_MEDIA_ALLOW_SIG_EXPLAIN' => '允许在用户签名处显示嵌入媒体内容。',
'ACP_MEDIA_CACHE_LEGEND' => 'Content caching',
'ACP_MEDIA_ENABLE_CACHE' => 'Enable Media Embed cache',
'ACP_MEDIA_ENABLE_CACHE_EXPLAIN' => 'In some cases you may notice slower than normal performance when loading media from other sites, especially while loading the same content multiple times (e.g. when editing a post). Enabling this will cache the information Media Embed gathers from sites locally and should improve performance.',
'ACP_MEDIA_PARSE_URLS' => 'Convert plain URLs',
'ACP_MEDIA_PARSE_URLS_EXPLAIN' => 'Enable this to convert plain URLs (not wrapped in <samp>[media]</samp> or <samp>[url]</samp> tags) to embedded media content. Note that changing this setting will only affect new posts, as existing posts have already been parsed.',
'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_PURGE_CACHE' => 'Purge Media Embed cache',
'ACP_MEDIA_PURGE_CACHE_EXPLAIN' => 'Media Embed cache is automatically purged once per day, however this button can be used to manually purge its cache now.',
'ACP_MEDIA_CACHE_LEGEND' => '内容缓存',
'ACP_MEDIA_ENABLE_CACHE' => '启用媒体内容缓存',
'ACP_MEDIA_ENABLE_CACHE_EXPLAIN' => '在某些情况下,当从其它网站加载媒体时,您可能会注意到比正常的性能慢,特别是在多次加载相同的内容时(例如,当编辑一个帖子时)。启用此功能将缓存媒体嵌入从网站收集的信息,应能改善性能。',
'ACP_MEDIA_PARSE_URLS' => '转换普通 URL 网址',
'ACP_MEDIA_PARSE_URLS_EXPLAIN' => '启用它来转换普通网址(没有包含在<samp>[media]</samp> or <samp>[url]</samp> 标签中) 为嵌入式媒体内容。请注意,此改变将只影响新发帖子,因为旧帖子已经被解析过了。',
'ACP_MEDIA_WIDTH_LEGEND' => '内容尺寸',
'ACP_MEDIA_FULL_WIDTH' => '启用全宽媒体内容',
'ACP_MEDIA_FULL_WIDTH_EXPLAIN' => '启用此功能可将大多数嵌入媒体的内容扩展到帖子内容区域,同时保持其原始长宽比。',
'ACP_MEDIA_MAX_WIDTH' => '自定义内容的最大宽度',
'ACP_MEDIA_MAX_WIDTH_EXPLAIN' => '使用这个字段来定义单个网站的自定义最大宽度值。 这将覆盖默认尺寸和上面的全宽选项。 每一行输入一个网站,使用下面格式 <samp class="error">siteId:width</samp> with either <samp class="error">px</samp> 或者 <samp class="error">%</samp>。 例如:<br><br><samp class="error">youtube:80%</samp><br><samp class="error">funnyordie:480px</samp><br><br><i><strong class="error">提示:</strong> 将鼠标悬停在管理网站页面的一个网站上,以显示在这里使用的网站ID名称。</i>',
'ACP_MEDIA_PURGE_CACHE' => '清理媒体嵌入缓存',
'ACP_MEDIA_PURGE_CACHE_EXPLAIN' => '媒体嵌入缓存会每天自动清除一次,但是这个按钮可以用来手动清除其缓存。',
'ACP_MEDIA_SITE_TITLE' => '网站 id: %s',
'ACP_MEDIA_SITE_DISABLED' => '此网站与现有的 BBCode: [%s] 有冲突',
'ACP_MEDIA_ERROR_MSG' => 'The following errors were encountered:<br><br>%s',
'ACP_MEDIA_INVALID_SITE' => '%1$s:%2$s :: “%1$s” is not a valid site id',
'ACP_MEDIA_INVALID_WIDTH' => '%1$s:%2$s :: “%2$s” is not a valid width in “px” or “%%”',
'ACP_MEDIA_ERROR_MSG' => '出现下面错误:<br><br>%s',
'ACP_MEDIA_INVALID_SITE' => '%1$s:%2$s :: “%1$s” 是无效的网站 id',
'ACP_MEDIA_INVALID_WIDTH' => '%1$s:%2$s :: “%2$s” 是无效的的宽度 “px” “%%”',

// Manage sites
'ACP_MEDIA_MANAGE' => '管理可嵌入媒体的网站',
'ACP_MEDIA_MANAGE_EXPLAIN' => '你可以管理你所允许 Media Embed PlugIn 在帖子中显示内容的网站。',
'ACP_MEDIA_SITES_ERROR' => '没有可用的媒体网站用于显示。.',
'ACP_MEDIA_SITES_MISSING' => 'The following sites are no longer supported or working. Please re-submit this page to remove them.',
'ACP_MEDIA_SITES_MISSING' => '以下网站已不再被支持或工作。请重新提交此页面以删除它们。',
]);
2 changes: 1 addition & 1 deletion language/zh_cmn_hans/info_acp_mediaembed.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'ACP_PHPBB_MEDIA_EMBED_SETTINGS' => '设置',

// Log keys
'LOG_PHPBB_MEDIA_EMBED_CACHE_PURGED'=> '<strong>Media Embed cache purged</strong>',
'LOG_PHPBB_MEDIA_EMBED_CACHE_PURGED'=> '<strong>Media Embed 缓存清理</strong>',
'LOG_PHPBB_MEDIA_EMBED_MANAGE' => '<strong>可嵌入媒体网站更新完毕</strong>',
'LOG_PHPBB_MEDIA_EMBED_SETTINGS' => '<strong>媒体嵌入设置更新完毕</strong>',
]);

0 comments on commit 17118d6

Please sign in to comment.