From a97f1ac784ef8b7e99326e9db499b9a599ac3dc7 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 11 Mar 2024 16:21:43 +0700 Subject: [PATCH] Some improvements for Acronym mod (#1425) * Some improvements for Acronym mod * Update CHANGELOG.md * Update BBCode.php --- CHANGELOG.md | 4 ++-- library/language/source/main.php | 4 ++-- src/Legacy/BBCode.php | 4 ++-- styles/templates/default/posting_editor.tpl | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83fc02e9a..3c8700e28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ - Release 2.4.2 🐯 ([belomaxorka](https://github.com/belomaxorka)) - Added demo mode 📺 [\#1399](https://github.com/torrentpier/torrentpier/pull/1399) ([belomaxorka](https://github.com/belomaxorka)) -- Added BBCode Acronym tag [\#1419](https://github.com/torrentpier/torrentpier/pull/1419) ([belomaxorka](https://github.com/belomaxorka)) +- Added BBCode Acronym tag [\#1419](https://github.com/torrentpier/torrentpier/pull/1419), [\#1425](https://github.com/torrentpier/torrentpier/pull/1425) ([belomaxorka](https://github.com/belomaxorka)) - Added showing poll status in `topic_watch.php` [\#1413](https://github.com/torrentpier/torrentpier/pull/1413) ([belomaxorka](https://github.com/belomaxorka)) - Added ability to view post_text of topic [\#1401](https://github.com/torrentpier/torrentpier/pull/1401) ([belomaxorka](https://github.com/belomaxorka)) - Added support for rutracker font BBCode tag [\#1397](https://github.com/torrentpier/torrentpier/pull/1397) ([belomaxorka](https://github.com/belomaxorka)) @@ -23,7 +23,7 @@ - Hide quote button if topic locked [\#1416](https://github.com/torrentpier/torrentpier/pull/1416) ([belomaxorka](https://github.com/belomaxorka)) - Minor improvements [\#1382](https://github.com/torrentpier/torrentpier/pull/1382), [\#1383](https://github.com/torrentpier/torrentpier/pull/1383), [\#1391](https://github.com/torrentpier/torrentpier/pull/1391), [\#1398](https://github.com/torrentpier/torrentpier/pull/1398), [\#1405](https://github.com/torrentpier/torrentpier/pull/1405), [\#1406](https://github.com/torrentpier/torrentpier/pull/1406), [\#1408](https://github.com/torrentpier/torrentpier/pull/1408), [\#1409](https://github.com/torrentpier/torrentpier/pull/1409), [\#1410](https://github.com/torrentpier/torrentpier/pull/1410), [\#1411](https://github.com/torrentpier/torrentpier/pull/1411), [\#1418](https://github.com/torrentpier/torrentpier/pull/1418), [\#1422](https://github.com/torrentpier/torrentpier/pull/1422) ([belomaxorka](https://github.com/belomaxorka)) - Some bugfixes [\#1380](https://github.com/torrentpier/torrentpier/pull/1380) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#1414](https://github.com/torrentpier/torrentpier/pull/1414), [\#1415](https://github.com/torrentpier/torrentpier/pull/1415), [\#1421](https://github.com/torrentpier/torrentpier/pull/1421) ([belomaxorka](https://github.com/belomaxorka)) +- Updated deps [\#1414](https://github.com/torrentpier/torrentpier/pull/1414), [\#1415](https://github.com/torrentpier/torrentpier/pull/1415), [\#1421](https://github.com/torrentpier/torrentpier/pull/1421), [\#1424](https://github.com/torrentpier/torrentpier/pull/1424) ([belomaxorka](https://github.com/belomaxorka)) - New Crowdin updates [\#1384](https://github.com/torrentpier/torrentpier/pull/1384), [\#1389](https://github.com/torrentpier/torrentpier/pull/1389), [\#1392](https://github.com/torrentpier/torrentpier/pull/1392), [\#1402](https://github.com/torrentpier/torrentpier/pull/1402), [\#1403](https://github.com/torrentpier/torrentpier/pull/1403), [\#1412](https://github.com/torrentpier/torrentpier/pull/1412), [\#1420](https://github.com/torrentpier/torrentpier/pull/1420) ([Exileum](https://github.com/Exileum)) ## [v2.4.1](https://github.com/torrentpier/torrentpier/tree/v2.4.1) (2024-02-04) diff --git a/library/language/source/main.php b/library/language/source/main.php index d9a461602..d2e230887 100644 --- a/library/language/source/main.php +++ b/library/language/source/main.php @@ -1547,8 +1547,8 @@ $lang['CODE_TITLE'] = 'Code display: [code]code[/code] (Ctrl+K)'; $lang['LIST'] = 'List'; $lang['LIST_TITLE'] = 'List: [list]text[/list] (Ctrl+l)'; $lang['LIST_ITEM'] = 'Ordered list: [list=]text[/list] (Ctrl+O)'; -$lang['ACR'] = 'Acronym'; -$lang['ACR_TITLE'] = 'Acronym: [acronym=Full text]Short text[/acronym]'; +$lang['ACRONYM'] = 'Acronym'; +$lang['ACRONYM_TITLE'] = 'Acronym: [acronym=Full text]Short text[/acronym]'; $lang['QUOTE_SEL'] = 'Quote selected'; $lang['JAVASCRIPT_ON'] = 'Heads necessary to send messages to enable JavaScript'; diff --git a/src/Legacy/BBCode.php b/src/Legacy/BBCode.php index 353346297..3461a22fd 100644 --- a/src/Legacy/BBCode.php +++ b/src/Legacy/BBCode.php @@ -82,8 +82,7 @@ class BBCode $this->preg = [ '#\[quote="(.+?)"\]#isu' => $tpl['quote_username_open'], '#\[spoiler="(.+?)"\]#isu' => $tpl['spoiler_title_open'], - '#\[acronym="([\w\- \']+)"\](.*?)\[/acronym\]#isu' => '$2', - '#\[acronym=([\w\- \']+)\](.*?)\[/acronym\]#isu' => '$2', + '#\[acronym="(.+?)"\]#isu' => '', '#\[list=(a|A|i|I|1)\]#isu' => '