1
0

upport last nl2br changes

This commit is contained in:
Ian
2014-02-08 17:08:59 +01:00
parent 4f164cdb55
commit f37e0db153
30 changed files with 269 additions and 229 deletions

View File

@ -1,7 +1,7 @@
<?php # $Id$ <?php #
/** /**
* @version $Revision$ * @version
* @author Ivan Cenov jwalker@hotmail.bg * @author Ivan Cenov jwalker@hotmail.bg
*/ */
@ -9,3 +9,4 @@
@define('PLUGIN_EVENT_NL2BR_DESC', 'Заменя новите редове в текста с HTML BR тагове'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Заменя новите редове в текста с HTML BR тагове');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Списък на HTML-тагове, в които няма да се използва това форматиране'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Списък на HTML-тагове, в които няма да се използва това форматиране');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Препоръка: "code,pre,geshi,textarea". Използвайте "," за да укажете повече от един таг. Забележка: Въведените тагове се изчисляват като регулярни изрази.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Препоръка: "code,pre,geshi,textarea". Използвайте "," за да укажете повече от един таг. Забележка: Въведените тагове се изчисляват като регулярни изрази.');

View File

@ -1,6 +1,14 @@
<?php <?php #
/**
* @version
* @file
* @author
* EN-Revision: Revision of lang_en.inc.php
*/
@define('PLUGIN_EVENT_NL2BR_NAME', '标记语言: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', '标记语言: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', '将换行转换成HTML的BR标签'); @define('PLUGIN_EVENT_NL2BR_DESC', '将换行转换成HTML的BR标签');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '在下列HTML标签所含内容中不转换换行'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '在下列HTML标签所含内容中不转换换行');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '推荐的HTML标签: "code,pre,geshi,textarea". 不同HTML标签使用逗号分割。小提示Serendipity使用正则表达式(regular expressions)来处理、分析这里输入的标签。'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '推荐的HTML标签: "code,pre,geshi,textarea". 不同HTML标签使用逗号分割。小提示Serendipity使用正则表达式(regular expressions)来处理、分析这里输入的标签。');

View File

@ -1,7 +1,7 @@
<?php # lang_cs.inc.php 1501.2 2012-01-08 19:58:45 VladaAjgl $ <?php
/** /**
* @version 1501.2 * @file lang_cs.inc.php 1501.2 2012-01-08 19:58:45 VladaAjgl
* @author Vladimír Ajgl <vlada@ajgl.cz> * @author Vladimír Ajgl <vlada@ajgl.cz>
* EN-Revision: Revision of lang_en.inc.php * EN-Revision: Revision of lang_en.inc.php
* Translated on 2007/11/30 * Translated on 2007/11/30
@ -13,18 +13,19 @@
* @revisionDate 2012/01/08 * @revisionDate 2012/01/08
*/ */
@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'Mění znaky konce řádku na tagy <br />'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Mění znaky konce řádku na tagy <br />');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tagů, uvnitř kterých nemají být konce řádků nahrazovány.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tagů, uvnitř kterých nemají být konce řádků nahrazovány.');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Návrhy: "code,pre,geshi,textarea". Názvy tagů oddělujte čárkou. Tip: Zadávané tagy jsou vyhodnocovány jako regulární výraz.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Návrhy: "code,pre,geshi,textarea". Názvy tagů oddělujte čárkou. Tip: Zadávané tagy jsou vyhodnocovány jako regulární výraz.');
@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Použít tagy &lt;p&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS', 'Použít tagy &lt;p&gt;');
@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkládat tagy &lt;p&gt; místo tagů &lt;br /&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkládat tagy &lt;p&gt; místo tagů &lt;br /&gt;');
// Next lines were translated on 2012/01/08 // Next lines were translated on 2012/01/08
@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat další značkovací pluginy?'); @define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat další značkovací pluginy?');
@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovány jiné značkovací pluginy. To je pravda, pokud je použit WYSIWYG editor nebo specifické značkovací pluginy. Pak je plugin NL2BR vypnut.'); @define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovány jiné značkovací pluginy. To je pravda, pokud je použit WYSIWYG editor nebo specifické značkovací pluginy. Pak je plugin NL2BR vypnut.');
@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - výchozí nastavení BR'); @define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - výchozí nastavení BR');
@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nový NE-HTML tag <nl> </nl> umožňuje vypnout převod nových řádků na tag BR v kusu textu uzavřeném uvnitř tagů. Můžete ho použít vícekrát v jednom příspěvku, ale nemůžete ho vnořovat! Příklad: <nl>v tomto textu nebudou převáděny znaky nového řádku na tag BR</nl>'); @define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nový NE-HTML tag <nl> </nl> umožňuje vypnout převod nových řádků na tag BR v kusu textu uzavřeném uvnitř tagů. Můžete ho použít vícekrát v jednom příspěvku, ale nemůžete ho vnořovat! Příklad: <nl>v tomto textu nebudou převáděny znaky nového řádku na tag BR</nl>');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Použít BR-čisté-tagy jak návratovou hodnotu, pokud je ISOBR zakázáno'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Použít BR-čisté-tagy jak návratovou hodnotu, pokud je ISOBR zakázáno');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud používáte v příspěvku <html-tagy>, které nelze úspěšně použít společně s nastavením ISOBR, pak tato volba zapnutá bude mít za následek ignorování znaků nových řádků bezprostředně za <html-tagy>. Výchozí: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud používáte v příspěvku <html-tagy>, které nelze úspěšně použít společně s nastavením ISOBR, pak tato volba zapnutá bude mít za následek ignorování znaků nových řádků bezprostředně za <html-tagy>. Výchozí: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)');
@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varování: Nepořádek v nastavení! Nastavení "%s" bylo nastaveno zpět na "NE", pokud je aktivní \'%s\'! Je přípustné použít pouze jednu z těchto voleb.'); @define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varování: Nepořádek v nastavení! Nastavení "čisté tagy" bylo nastaveno zpět na "NE", pokud je aktivní \'ISOBR\'! Je přípustné použít pouze jednu z těchto voleb.');

View File

@ -1,7 +1,7 @@
<?php # lang_cz.inc.php 1501.2 2012-01-08 19:58:45 VladaAjgl $ <?php
/** /**
* @version 1501.2 * @file lang_cz.inc.php 1501.2 2012-01-08 19:58:45 VladaAjgl
* @author Vladimír Ajgl <vlada@ajgl.cz> * @author Vladimír Ajgl <vlada@ajgl.cz>
* EN-Revision: Revision of lang_en.inc.php * EN-Revision: Revision of lang_en.inc.php
* Translated on 2007/11/30 * Translated on 2007/11/30
@ -13,18 +13,19 @@
* @revisionDate 2012/01/08 * @revisionDate 2012/01/08
*/ */
@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'Mění znaky konce řádku na tagy <br />'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Mění znaky konce řádku na tagy <br />');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tagů, uvnitř kterých nemají být konce řádků nahrazovány.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tagů, uvnitř kterých nemají být konce řádků nahrazovány.');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Návrhy: "code,pre,geshi,textarea". Názvy tagů oddělujte čárkou. Tip: Zadávané tagy jsou vyhodnocovány jako regulární výraz.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Návrhy: "code,pre,geshi,textarea". Názvy tagů oddělujte čárkou. Tip: Zadávané tagy jsou vyhodnocovány jako regulární výraz.');
@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Použít tagy &lt;p&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS', 'Použít tagy &lt;p&gt;');
@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkládat tagy &lt;p&gt; místo tagů &lt;br /&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkládat tagy &lt;p&gt; místo tagů &lt;br /&gt;');
// Next lines were translated on 2012/01/08 // Next lines were translated on 2012/01/08
@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat další značkovací pluginy?'); @define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat další značkovací pluginy?');
@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovány jiné značkovací pluginy. To je pravda, pokud je použit WYSIWYG editor nebo specifické značkovací pluginy. Pak je plugin NL2BR vypnut.'); @define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovány jiné značkovací pluginy. To je pravda, pokud je použit WYSIWYG editor nebo specifické značkovací pluginy. Pak je plugin NL2BR vypnut.');
@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - výchozí nastavení BR'); @define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - výchozí nastavení BR');
@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nový NE-HTML tag <nl> </nl> umožňuje vypnout převod nových řádků na tag BR v kusu textu uzavřeném uvnitř tagů. Můžete ho použít vícekrát v jednom příspěvku, ale nemůžete ho vnořovat! Příklad: <nl>v tomto textu nebudou převáděny znaky nového řádku na tag BR</nl>'); @define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nový NE-HTML tag <nl> </nl> umožňuje vypnout převod nových řádků na tag BR v kusu textu uzavřeném uvnitř tagů. Můžete ho použít vícekrát v jednom příspěvku, ale nemůžete ho vnořovat! Příklad: <nl>v tomto textu nebudou převáděny znaky nového řádku na tag BR</nl>');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Použít BR-čisté-tagy jak návratovou hodnotu, pokud je ISOBR zakázáno'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Použít BR-čisté-tagy jak návratovou hodnotu, pokud je ISOBR zakázáno');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud používáte v příspěvku <html-tagy>, které nelze úspěšně použít společně s nastavením ISOBR, pak tato volba zapnutá bude mít za následek ignorování znaků nových řádků bezprostředně za <html-tagy>. Výchozí: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud používáte v příspěvku <html-tagy>, které nelze úspěšně použít společně s nastavením ISOBR, pak tato volba zapnutá bude mít za následek ignorování znaků nových řádků bezprostředně za <html-tagy>. Výchozí: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)');
@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varování: Nepořádek v nastavení! Nastavení "%s" bylo nastaveno zpět na "NE", pokud je aktivní \'%s\'! Je přípustné použít pouze jednu z těchto voleb.'); @define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varování: Nepořádek v nastavení! Nastavení "čisté tagy" bylo nastaveno zpět na "NE", pokud je aktivní \'ISOBR\'! Je přípustné použít pouze jednu z těchto voleb.');

View File

@ -1,4 +1,11 @@
<?php # $Id: lang_de.inc.php 2492 2011-03-22 17:56:40Z ian $ <?php #
/**
* @version
* @file
* @author
* EN-Revision: Revision of lang_en.inc.php
*/
@define('PLUGIN_EVENT_NL2BR_NAME', 'Textformatierung: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Textformatierung: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'Konvertiert Zeilenumbrüche zu HTML'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Konvertiert Zeilenumbrüche zu HTML');
@ -13,3 +20,4 @@
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Nutze BR-Clean-Tags fallback, wenn ISOBR false'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Nutze BR-Clean-Tags fallback, wenn ISOBR false');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Bei Benutzung von <HTML-Tags> in den Einträgen, die nicht zufriedenstellend mit der ISOBR Config-Option gelöst werden können, lösche nl2br Umbruch nach <tag>. Dies gilt für alle <tags>, die mit > oder >\n enden! Default (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Bei Benutzung von <HTML-Tags> in den Einträgen, die nicht zufriedenstellend mit der ISOBR Config-Option gelöst werden können, lösche nl2br Umbruch nach <tag>. Dies gilt für alle <tags>, die mit > oder >\n enden! Default (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)');
@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Konfigurations Fehler! Die Option: "%s" wurde zurückgesetzt, weil die Option \'%s\' aktiv geschaltet war! Benutzen sie bitte nur eine dieser Optionen.'); @define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Konfigurations Fehler! Die Option: "%s" wurde zurückgesetzt, weil die Option \'%s\' aktiv geschaltet war! Benutzen sie bitte nur eine dieser Optionen.');

View File

@ -1,6 +1,7 @@
<?php # $Id$ <?php #
/** /**
* @version $Revision$ * @version
* @author Rodrigo Lazo Paz <rlazo.paz@gmail.com> * @author Rodrigo Lazo Paz <rlazo.paz@gmail.com>
* EN-Revision: 690 * EN-Revision: 690
*/ */
@ -8,4 +9,3 @@
@define('PLUGIN_EVENT_NL2BR_NAME', 'Formato: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Formato: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'Convierte los saltos de linea en etiquetas BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Convierte los saltos de linea en etiquetas BR');
?>

View File

@ -1,20 +1,12 @@
<?php # $Id$ <?php #
########################################################################## /**
# serendipity - another blogger... # * @version
########################################################################## * @file
# # * @author Sebastian Mordziol <argh@php-tools.net> http://sebastian.mordziol.de
# (c) 2003 Jannis Hermanns <J@hacked.it> # * EN-Revision: Revision of lang_en.inc.php
# http://www.jannis.to/programming/serendipity.html # */
# #
# Translated by #
# Sebastian Mordziol <argh@php-tools.net> #
# http://sebastian.mordziol.de #
# #
##########################################################################
@define('PLUGIN_EVENT_NL2BR_NAME', 'Balises: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Balises: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'Convertit les retours à la ligne en balises BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Convertit les retours à la ligne en balises BR');
/* vim: set sts=4 ts=4 expandtab : */
?>

View File

@ -1,7 +1,7 @@
<?php # $Id$ <?php #
/** /**
* @version $Revision$ * @version
* @author Tadashi Jokagi <elf2000@users.sourceforge.net> * @author Tadashi Jokagi <elf2000@users.sourceforge.net>
* EN-Revision: 1501 * EN-Revision: 1501
*/ */
@ -11,4 +11,4 @@
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '改行を変換しない HTML タグの一覧'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '改行を変換しない HTML タグの一覧');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '提案: "code,pre,geshi,textarea". 複数のタグをカンマ(「,」)で分けます。ヒント: 入力されたタグは正規表現として評価されます。'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '提案: "code,pre,geshi,textarea". 複数のタグをカンマ(「,」)で分けます。ヒント: 入力されたタグは正規表現として評価されます。');
?>

View File

@ -1,8 +1,12 @@
<?php # $Id$ <?php #
# Translated by: Wesley Hwang-Chung <wesley96@gmail.com>
# (c) 2005 http://www.tool-box.info/
@define('PLUGIN_EVENT_NL2BR_NAME', '마크업: NL2BR'); /**
@define('PLUGIN_EVENT_NL2BR_DESC', '새 줄을 BR 태그로 변환함'); * @version
* @file
* @author Wesley Hwang-Chung <wesley96@gmail.com> http://www.tool-box.info/
* EN-Revision: Revision of lang_en.inc.php
*/
@define('PLUGIN_EVENT_NL2BR_NAME', '마크업: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', '새 줄을 BR 태그로 변환함');
?>

View File

@ -1,7 +1,7 @@
<?php # $Id$ <?php #
/** /**
* @version $Revision$ * @version
* @author Kostas CoSTa Brzezinski <costa@kofeina.net> * @author Kostas CoSTa Brzezinski <costa@kofeina.net>
* EN-Revision: Revision of lang_en.inc.php * EN-Revision: Revision of lang_en.inc.php
*/ */
@ -10,4 +10,4 @@
@define('PLUGIN_EVENT_NL2BR_DESC', 'Zmieniaj znaki nowych linii na tagi BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Zmieniaj znaki nowych linii na tagi BR');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Lista tagów HTML, w których znacznik nie powinien być stosowany'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Lista tagów HTML, w których znacznik nie powinien być stosowany');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Sugestia: "code,pre,geshi,textarea". Rozdzielaj tagi przecinkiem. Podpowiedź: wpisane tagi są traktowane jako zwykłe wyrażenia.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Sugestia: "code,pre,geshi,textarea". Rozdzielaj tagi przecinkiem. Podpowiedź: wpisane tagi są traktowane jako zwykłe wyrażenia.');
?>

View File

@ -1,19 +1,12 @@
<?php # $Id:$ <?php #
########################################################################## /**
# serendipity - another blogger... # * @version
########################################################################## * @file
# # * @author João P Matos <jmatos@math.ist.utl.pt>
# (c) 2003 Jannis Hermanns <J@hacked.it> # * EN-Revision: Revision of lang_en.inc.php
# http://www.jannis.to/programming/serendipity.html # */
# #
# Translated by #
# João P Matos <jmatos@math.ist.utl.pt> #
# #
##########################################################################
@define('PLUGIN_EVENT_NL2BR_NAME', 'Código: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Código: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'Converte os fins de linha em etiquetas BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Converte os fins de linha em etiquetas BR');
/* vim: set sts=4 ts=4 expandtab : */
?>

View File

@ -1,4 +1,4 @@
<?php <?php #
/** /**
* @version 1 * @version 1
@ -12,3 +12,4 @@
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Návrhy: "code,pre,geshi,textarea". Názvy tagov oddeľovať čiarkou. Tip: Zadané tagy sú vyhodnocované ako regulárny výraz.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Návrhy: "code,pre,geshi,textarea". Názvy tagov oddeľovať čiarkou. Tip: Zadané tagy sú vyhodnocované ako regulárny výraz.');
@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Použíť tagy &lt;p&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS', 'Použíť tagy &lt;p&gt;');
@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkladať tagy &lt;p&gt; namiesto tagov &lt;br /&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkladať tagy &lt;p&gt; namiesto tagov &lt;br /&gt;');

View File

@ -1,17 +1,12 @@
<?php # $Id$ <?php #
##########################################################################
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity # /**
# Developer Team) All rights reserved. See LICENSE file for licensing # * @version
# details # * @file
# # * @author CapriSkye <admin@capriskye.com> http://open.38.com
# (c) 2003 Jannis Hermanns <J@hacked.it> # * EN-Revision: Revision of lang_en.inc.php
# http://www.jannis.to/programming/serendipity.html # */
# #
# Translated by # @define('PLUGIN_EVENT_NL2BR_NAME', '標記語言: NL2BR');
# (c) 2004-2005 CapriSkye <admin@capriskye.com> # @define('PLUGIN_EVENT_NL2BR_DESC', '轉換新行成 BR 標籤');
# http://open.38.com #
##########################################################################
@define('PLUGIN_EVENT_NL2BR_NAME', '標記語言: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', '轉換新行成 BR 標籤');
?>

View File

@ -1,6 +1,14 @@
<?php <?php #
/**
* @version
* @file
* @author
* EN-Revision: Revision of lang_en.inc.php
*/
@define('PLUGIN_EVENT_NL2BR_NAME', '标记语言: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', '标记语言: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', '将换行转换成HTML的BR标签'); @define('PLUGIN_EVENT_NL2BR_DESC', '将换行转换成HTML的BR标签');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '在下列HTML标签所含内容中不转换换行'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '在下列HTML标签所含内容中不转换换行');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '推荐的HTML标签: "code,pre,geshi,textarea". 不同HTML标签使用逗号分割。小提示Serendipity使用正则表达式(regular expressions)来处理、分析这里输入的标签。'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '推荐的HTML标签: "code,pre,geshi,textarea". 不同HTML标签使用逗号分割。小提示Serendipity使用正则表达式(regular expressions)来处理、分析这里输入的标签。');

View File

@ -1,7 +1,7 @@
<?php # $Id$ <?php #
/** /**
* @version $Revision$ * @version
* @author Ivan Cenov jwalker@hotmail.bg * @author Ivan Cenov jwalker@hotmail.bg
*/ */
@ -9,3 +9,4 @@
@define('PLUGIN_EVENT_NL2BR_DESC', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> HTML BR <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'); @define('PLUGIN_EVENT_NL2BR_DESC', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> HTML BR <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> HTML-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> HTML-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: "code,pre,geshi,textarea". <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "," <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: "code,pre,geshi,textarea". <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "," <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.');

View File

@ -1,6 +1,14 @@
<?php <?php #
/**
* @version
* @file
* @author
* EN-Revision: Revision of lang_en.inc.php
*/
@define('PLUGIN_EVENT_NL2BR_NAME', '标记语言: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', '标记语言: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', '将换行转换成HTML的BR标签'); @define('PLUGIN_EVENT_NL2BR_DESC', '将换行转换成HTML的BR标签');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '在下列HTML标签所含内容中不转换换行'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '在下列HTML标签所含内容中不转换换行');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '推荐的HTML标签: "code,pre,geshi,textarea". 不同HTML标签使用逗号分割。小提示Serendipity使用正则表达式(regular expressions)来处理、分析这里输入的标签。'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '推荐的HTML标签: "code,pre,geshi,textarea". 不同HTML标签使用逗号分割。小提示Serendipity使用正则表达式(regular expressions)来处理、分析这里输入的标签。');

View File

@ -1,7 +1,7 @@
<?php # lang_cs.inc.php 1501.2 2012-01-08 19:58:45 VladaAjgl $ <?php
/** /**
* @version 1501.2 * @file lang_cs.inc.php 1501.2 2012-01-08 19:58:45 VladaAjgl
* @author Vladim<69>r Ajgl <vlada@ajgl.cz> * @author Vladim<69>r Ajgl <vlada@ajgl.cz>
* EN-Revision: Revision of lang_en.inc.php * EN-Revision: Revision of lang_en.inc.php
* Translated on 2007/11/30 * Translated on 2007/11/30
@ -13,18 +13,19 @@
* @revisionDate 2012/01/08 * @revisionDate 2012/01/08
*/ */
@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'M<>n<EFBFBD> znaky konce <20><>dku na tagy <br />'); @define('PLUGIN_EVENT_NL2BR_DESC', 'M<>n<EFBFBD> znaky konce <20><>dku na tagy <br />');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tag<61>, uvnit<69> kter<65>ch nemaj<61> b<>t konce <20><>dk<64> nahrazov<6F>ny.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tag<61>, uvnit<69> kter<65>ch nemaj<61> b<>t konce <20><>dk<64> nahrazov<6F>ny.');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'N<>vrhy: "code,pre,geshi,textarea". N<>zvy tag<61> odd<64>lujte <20><>rkou. Tip: Zad<61>van<61> tagy jsou vyhodnocov<6F>ny jako regul<75>rn<72> v<>raz.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'N<>vrhy: "code,pre,geshi,textarea". N<>zvy tag<61> odd<64>lujte <20><>rkou. Tip: Zad<61>van<61> tagy jsou vyhodnocov<6F>ny jako regul<75>rn<72> v<>raz.');
@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Pou<6F><75>t tagy &lt;p&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS', 'Pou<6F><75>t tagy &lt;p&gt;');
@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkl<6B>dat tagy &lt;p&gt; m<>sto tag<61> &lt;br /&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkl<6B>dat tagy &lt;p&gt; m<>sto tag<61> &lt;br /&gt;');
// Next lines were translated on 2012/01/08 // Next lines were translated on 2012/01/08
@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat dal<61><6C> zna<6E>kovac<61> pluginy?'); @define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat dal<61><6C> zna<6E>kovac<61> pluginy?');
@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalov<6F>ny jin<69> zna<6E>kovac<61> pluginy. To je pravda, pokud je pou<6F>it WYSIWYG editor nebo specifick<63> zna<6E>kovac<61> pluginy. Pak je plugin NL2BR vypnut.'); @define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalov<6F>ny jin<69> zna<6E>kovac<61> pluginy. To je pravda, pokud je pou<6F>it WYSIWYG editor nebo specifick<63> zna<6E>kovac<61> pluginy. Pak je plugin NL2BR vypnut.');
@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - v<>choz<6F> nastaven<65> BR'); @define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - v<>choz<6F> nastaven<65> BR');
@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nov<6F> NE-HTML tag <nl> </nl> umo<6D><6F>uje vypnout p<>evod nov<6F>ch <20><>dk<64> na tag BR v kusu textu uzav<61>en<65>m uvnit<69> tag<61>. M<><4D>ete ho pou<6F><75>t v<>cekr<6B>t v jednom p<><70>sp<73>vku, ale nem<65><6D>ete ho vno<6E>ovat! P<><50>klad: <nl>v tomto textu nebudou p<>ev<65>d<EFBFBD>ny znaky nov<6F>ho <20><>dku na tag BR</nl>'); @define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nov<6F> NE-HTML tag <nl> </nl> umo<6D><6F>uje vypnout p<>evod nov<6F>ch <20><>dk<64> na tag BR v kusu textu uzav<61>en<65>m uvnit<69> tag<61>. M<><4D>ete ho pou<6F><75>t v<>cekr<6B>t v jednom p<><70>sp<73>vku, ale nem<65><6D>ete ho vno<6E>ovat! P<><50>klad: <nl>v tomto textu nebudou p<>ev<65>d<EFBFBD>ny znaky nov<6F>ho <20><>dku na tag BR</nl>');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Pou<6F><75>t BR-<2D>ist<73>-tagy jak n<>vratovou hodnotu, pokud je ISOBR zak<61>z<EFBFBD>no'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Pou<6F><75>t BR-<2D>ist<73>-tagy jak n<>vratovou hodnotu, pokud je ISOBR zak<61>z<EFBFBD>no');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud pou<6F><75>v<EFBFBD>te v p<><70>sp<73>vku <html-tagy>, kter<65> nelze <20>sp<73><70>n<EFBFBD> pou<6F><75>t spole<6C>n<EFBFBD> s nastaven<65>m ISOBR, pak tato volba zapnut<75> bude m<>t za n<>sledek ignorov<6F>n<EFBFBD> znak<61> nov<6F>ch <20><>dk<64> bezprost<73>edn<64> za <html-tagy>. V<>choz<6F>: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud pou<6F><75>v<EFBFBD>te v p<><70>sp<73>vku <html-tagy>, kter<65> nelze <20>sp<73><70>n<EFBFBD> pou<6F><75>t spole<6C>n<EFBFBD> s nastaven<65>m ISOBR, pak tato volba zapnut<75> bude m<>t za n<>sledek ignorov<6F>n<EFBFBD> znak<61> nov<6F>ch <20><>dk<64> bezprost<73>edn<64> za <html-tagy>. V<>choz<6F>: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)');
@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varov<6F>n<EFBFBD>: Nepo<70><6F>dek v nastaven<65>! Nastaven<65> "%s" bylo nastaveno zp<7A>t na "NE", pokud je aktivn<76> \'%s\'! Je p<><70>pustn<74> pou<6F><75>t pouze jednu z t<>chto voleb.'); @define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varov<6F>n<EFBFBD>: Nepo<70><6F>dek v nastaven<65>! Nastaven<65> "<EFBFBD>ist<EFBFBD> tagy" bylo nastaveno zp<7A>t na "NE", pokud je aktivn<76> \'ISOBR\'! Je p<><70>pustn<74> pou<6F><75>t pouze jednu z t<>chto voleb.');

View File

@ -1,7 +1,7 @@
<?php # lang_cz.inc.php 1501.2 2012-01-08 19:58:45 VladaAjgl $ <?php
/** /**
* @version 1501.2 * @file lang_cz.inc.php 1501.2 2012-01-08 19:58:45 VladaAjgl
* @author Vladim<69>r Ajgl <vlada@ajgl.cz> * @author Vladim<69>r Ajgl <vlada@ajgl.cz>
* EN-Revision: Revision of lang_en.inc.php * EN-Revision: Revision of lang_en.inc.php
* Translated on 2007/11/30 * Translated on 2007/11/30
@ -13,18 +13,19 @@
* @revisionDate 2012/01/08 * @revisionDate 2012/01/08
*/ */
@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'M<>n<EFBFBD> znaky konce <20><>dku na tagy <br />'); @define('PLUGIN_EVENT_NL2BR_DESC', 'M<>n<EFBFBD> znaky konce <20><>dku na tagy <br />');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tag<61>, uvnit<69> kter<65>ch nemaj<61> b<>t konce <20><>dk<64> nahrazov<6F>ny.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tag<61>, uvnit<69> kter<65>ch nemaj<61> b<>t konce <20><>dk<64> nahrazov<6F>ny.');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'N<>vrhy: "code,pre,geshi,textarea". N<>zvy tag<61> odd<64>lujte <20><>rkou. Tip: Zad<61>van<61> tagy jsou vyhodnocov<6F>ny jako regul<75>rn<72> v<>raz.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'N<>vrhy: "code,pre,geshi,textarea". N<>zvy tag<61> odd<64>lujte <20><>rkou. Tip: Zad<61>van<61> tagy jsou vyhodnocov<6F>ny jako regul<75>rn<72> v<>raz.');
@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Pou<6F><75>t tagy &lt;p&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS', 'Pou<6F><75>t tagy &lt;p&gt;');
@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkl<6B>dat tagy &lt;p&gt; m<>sto tag<61> &lt;br /&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkl<6B>dat tagy &lt;p&gt; m<>sto tag<61> &lt;br /&gt;');
// Next lines were translated on 2012/01/08 // Next lines were translated on 2012/01/08
@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat dal<61><6C> zna<6E>kovac<61> pluginy?'); @define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat dal<61><6C> zna<6E>kovac<61> pluginy?');
@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalov<6F>ny jin<69> zna<6E>kovac<61> pluginy. To je pravda, pokud je pou<6F>it WYSIWYG editor nebo specifick<63> zna<6E>kovac<61> pluginy. Pak je plugin NL2BR vypnut.'); @define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalov<6F>ny jin<69> zna<6E>kovac<61> pluginy. To je pravda, pokud je pou<6F>it WYSIWYG editor nebo specifick<63> zna<6E>kovac<61> pluginy. Pak je plugin NL2BR vypnut.');
@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - v<>choz<6F> nastaven<65> BR'); @define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - v<>choz<6F> nastaven<65> BR');
@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nov<6F> NE-HTML tag <nl> </nl> umo<6D><6F>uje vypnout p<>evod nov<6F>ch <20><>dk<64> na tag BR v kusu textu uzav<61>en<65>m uvnit<69> tag<61>. M<><4D>ete ho pou<6F><75>t v<>cekr<6B>t v jednom p<><70>sp<73>vku, ale nem<65><6D>ete ho vno<6E>ovat! P<><50>klad: <nl>v tomto textu nebudou p<>ev<65>d<EFBFBD>ny znaky nov<6F>ho <20><>dku na tag BR</nl>'); @define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nov<6F> NE-HTML tag <nl> </nl> umo<6D><6F>uje vypnout p<>evod nov<6F>ch <20><>dk<64> na tag BR v kusu textu uzav<61>en<65>m uvnit<69> tag<61>. M<><4D>ete ho pou<6F><75>t v<>cekr<6B>t v jednom p<><70>sp<73>vku, ale nem<65><6D>ete ho vno<6E>ovat! P<><50>klad: <nl>v tomto textu nebudou p<>ev<65>d<EFBFBD>ny znaky nov<6F>ho <20><>dku na tag BR</nl>');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Pou<6F><75>t BR-<2D>ist<73>-tagy jak n<>vratovou hodnotu, pokud je ISOBR zak<61>z<EFBFBD>no'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Pou<6F><75>t BR-<2D>ist<73>-tagy jak n<>vratovou hodnotu, pokud je ISOBR zak<61>z<EFBFBD>no');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud pou<6F><75>v<EFBFBD>te v p<><70>sp<73>vku <html-tagy>, kter<65> nelze <20>sp<73><70>n<EFBFBD> pou<6F><75>t spole<6C>n<EFBFBD> s nastaven<65>m ISOBR, pak tato volba zapnut<75> bude m<>t za n<>sledek ignorov<6F>n<EFBFBD> znak<61> nov<6F>ch <20><>dk<64> bezprost<73>edn<64> za <html-tagy>. V<>choz<6F>: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud pou<6F><75>v<EFBFBD>te v p<><70>sp<73>vku <html-tagy>, kter<65> nelze <20>sp<73><70>n<EFBFBD> pou<6F><75>t spole<6C>n<EFBFBD> s nastaven<65>m ISOBR, pak tato volba zapnut<75> bude m<>t za n<>sledek ignorov<6F>n<EFBFBD> znak<61> nov<6F>ch <20><>dk<64> bezprost<73>edn<64> za <html-tagy>. V<>choz<6F>: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)');
@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varov<6F>n<EFBFBD>: Nepo<70><6F>dek v nastaven<65>! Nastaven<65> "%s" bylo nastaveno zp<7A>t na "NE", pokud je aktivn<76> \'%s\'! Je p<><70>pustn<74> pou<6F><75>t pouze jednu z t<>chto voleb.'); @define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varov<6F>n<EFBFBD>: Nepo<70><6F>dek v nastaven<65>! Nastaven<65> "<EFBFBD>ist<EFBFBD> tagy" bylo nastaveno zp<7A>t na "NE", pokud je aktivn<76> \'ISOBR\'! Je p<><70>pustn<74> pou<6F><75>t pouze jednu z t<>chto voleb.');

View File

@ -1,4 +1,11 @@
<?php # $Id: lang_de.inc.php 2492 2011-03-23 17:57:00Z ian $ <?php #
/**
* @version
* @file
* @author
* EN-Revision: Revision of lang_en.inc.php
*/
@define('PLUGIN_EVENT_NL2BR_NAME', 'Textformatierung: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Textformatierung: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'Konvertiert Zeilenumbr<62>che zu HTML'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Konvertiert Zeilenumbr<62>che zu HTML');
@ -13,3 +20,4 @@
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Nutze BR-Clean-Tags fallback, wenn ISOBR false'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Nutze BR-Clean-Tags fallback, wenn ISOBR false');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Bei Benutzung von <HTML-Tags> in den Eintr<74>gen, die nicht zufriedenstellend mit der ISOBR Config-Option gel<65>st werden k<>nnen, l<>sche nl2br Umbruch nach <tag>. Dies gilt f<>r alle <tags>, die mit > oder >\n enden! Default (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Bei Benutzung von <HTML-Tags> in den Eintr<74>gen, die nicht zufriedenstellend mit der ISOBR Config-Option gel<65>st werden k<>nnen, l<>sche nl2br Umbruch nach <tag>. Dies gilt f<>r alle <tags>, die mit > oder >\n enden! Default (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)');
@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Konfigurations Fehler! Die Option: "%s" wurde zur<75>ckgesetzt, weil die Option \'%s\' aktiv geschaltet war! Benutzen sie bitte nur eine dieser Optionen.'); @define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Konfigurations Fehler! Die Option: "%s" wurde zur<75>ckgesetzt, weil die Option \'%s\' aktiv geschaltet war! Benutzen sie bitte nur eine dieser Optionen.');

View File

@ -1,7 +1,7 @@
<?php # $Id: lang_en.inc.php 2492 2011-03-22 17:52:00Z ian $ <?php #
/** /**
* @version $Revision: 2491 $ * @version
* @author Translator Name <yourmail@example.com> * @author Translator Name <yourmail@example.com>
* EN-Revision: Revision of lang_en.inc.php * EN-Revision: Revision of lang_en.inc.php
*/ */
@ -19,4 +19,4 @@
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Use BR-Clean-Tags as fallback, when ISOBR false'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Use BR-Clean-Tags as fallback, when ISOBR false');
@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'If using <HTML-Tags> in you entries, which can\'t be solved satisfiable with the ISOBR Config-Option, remove nl2br after <tag>. This applies to all <tags> ending with > or >\n! Default (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'If using <HTML-Tags> in you entries, which can\'t be solved satisfiable with the ISOBR Config-Option, remove nl2br after <tag>. This applies to all <tags> ending with > or >\n! Default (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)');
@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Config missmatch alert! The Option: "%s" is set back to false, while \'%s\' is active! Just use one of them, please.'); @define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Config missmatch alert! The Option: "%s" is set back to false, while \'%s\' is active! Just use one of them, please.');
?>

View File

@ -1,6 +1,7 @@
<?php # $Id$ <?php #
/** /**
* @version $Revision$ * @version
* @author Rodrigo Lazo Paz <rlazo.paz@gmail.com> * @author Rodrigo Lazo Paz <rlazo.paz@gmail.com>
* EN-Revision: 690 * EN-Revision: 690
*/ */
@ -8,4 +9,3 @@
@define('PLUGIN_EVENT_NL2BR_NAME', 'Formato: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Formato: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'Convierte los saltos de linea en etiquetas BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Convierte los saltos de linea en etiquetas BR');
?>

View File

@ -1,20 +1,12 @@
<?php # $Id$ <?php #
########################################################################## /**
# serendipity - another blogger... # * @version
########################################################################## * @file
# # * @author Sebastian Mordziol <argh@php-tools.net> http://sebastian.mordziol.de
# (c) 2003 Jannis Hermanns <J@hacked.it> # * EN-Revision: Revision of lang_en.inc.php
# http://www.jannis.to/programming/serendipity.html # */
# #
# Translated by #
# Sebastian Mordziol <argh@php-tools.net> #
# http://sebastian.mordziol.de #
# #
##########################################################################
@define('PLUGIN_EVENT_NL2BR_NAME', 'Balises: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'Balises: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'Convertit les retours <20> la ligne en balises BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Convertit les retours <20> la ligne en balises BR');
/* vim: set sts=4 ts=4 expandtab : */
?>

View File

@ -1,7 +1,7 @@
<?php # $Id$ <?php #
/** /**
* @version $Revision$ * @version
* @author Tadashi Jokagi <elf2000@users.sourceforge.net> * @author Tadashi Jokagi <elf2000@users.sourceforge.net>
* EN-Revision: 1501 * EN-Revision: 1501
*/ */
@ -11,4 +11,4 @@
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '改行を変換しない HTML タグの一覧'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '改行を変換しない HTML タグの一覧');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '提案: "code,pre,geshi,textarea". 複数のタグをカンマ(「,」)で分けます。ヒント: 入力されたタグは正規表現として評価されます。'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '提案: "code,pre,geshi,textarea". 複数のタグをカンマ(「,」)で分けます。ヒント: 入力されたタグは正規表現として評価されます。');
?>

View File

@ -1,8 +1,12 @@
<?php # $Id$ <?php #
# Translated by: Wesley Hwang-Chung <wesley96@gmail.com>
# (c) 2005 http://www.tool-box.info/
@define('PLUGIN_EVENT_NL2BR_NAME', '마크업: NL2BR'); /**
@define('PLUGIN_EVENT_NL2BR_DESC', '새 줄을 BR 태그로 변환함'); * @version
* @file
* @author Wesley Hwang-Chung <wesley96@gmail.com> http://www.tool-box.info/
* EN-Revision: Revision of lang_en.inc.php
*/
@define('PLUGIN_EVENT_NL2BR_NAME', '마크업: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', '새 줄을 BR 태그로 변환함');
?>

View File

@ -1,7 +1,7 @@
<?php # $Id$ <?php #
/** /**
* @version $Revision$ * @version
* @author Kostas CoSTa Brzezinski <costa@kofeina.net> * @author Kostas CoSTa Brzezinski <costa@kofeina.net>
* EN-Revision: Revision of lang_en.inc.php * EN-Revision: Revision of lang_en.inc.php
*/ */
@ -10,4 +10,4 @@
@define('PLUGIN_EVENT_NL2BR_DESC', 'Zmieniaj znaki nowych linii na tagi BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Zmieniaj znaki nowych linii na tagi BR');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Lista tag<61>w HTML, w kt<6B>rych znacznik nie powinien by<62> stosowany'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Lista tag<61>w HTML, w kt<6B>rych znacznik nie powinien by<62> stosowany');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Sugestia: "code,pre,geshi,textarea". Rozdzielaj tagi przecinkiem. Podpowied<65>: wpisane tagi s<> traktowane jako zwyk<79>e wyra<72>enia.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Sugestia: "code,pre,geshi,textarea". Rozdzielaj tagi przecinkiem. Podpowied<65>: wpisane tagi s<> traktowane jako zwyk<79>e wyra<72>enia.');
?>

View File

@ -1,19 +1,12 @@
<?php # $Id:$ <?php #
########################################################################## /**
# serendipity - another blogger... # * @version
########################################################################## * @file
# # * @author Jo<4A>o P Matos <jmatos@math.ist.utl.pt>
# (c) 2003 Jannis Hermanns <J@hacked.it> # * EN-Revision: Revision of lang_en.inc.php
# http://www.jannis.to/programming/serendipity.html # */
# #
# Translated by #
# Jo<4A>o P Matos <jmatos@math.ist.utl.pt> #
# #
##########################################################################
@define('PLUGIN_EVENT_NL2BR_NAME', 'C<>digo: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', 'C<>digo: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', 'Converte os fins de linha em etiquetas BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Converte os fins de linha em etiquetas BR');
/* vim: set sts=4 ts=4 expandtab : */
?>

View File

@ -1,4 +1,4 @@
<?php <?php #
/** /**
* @version 1 * @version 1
@ -12,3 +12,4 @@
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'N<>vrhy: "code,pre,geshi,textarea". N<>zvy tagov odde<64>ova<76> <20>iarkou. Tip: Zadan<61> tagy s<> vyhodnocovan<61> ako regul<75>rny v<>raz.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'N<>vrhy: "code,pre,geshi,textarea". N<>zvy tagov odde<64>ova<76> <20>iarkou. Tip: Zadan<61> tagy s<> vyhodnocovan<61> ako regul<75>rny v<>raz.');
@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Pou<6F><75><EFBFBD> tagy &lt;p&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS', 'Pou<6F><75><EFBFBD> tagy &lt;p&gt;');
@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vklada<64> tagy &lt;p&gt; namiesto tagov &lt;br /&gt;'); @define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vklada<64> tagy &lt;p&gt; namiesto tagov &lt;br /&gt;');

View File

@ -1,17 +1,12 @@
<?php # $Id$ <?php #
##########################################################################
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity # /**
# Developer Team) All rights reserved. See LICENSE file for licensing # * @version
# details # * @file
# # * @author CapriSkye <admin@capriskye.com> http://open.38.com
# (c) 2003 Jannis Hermanns <J@hacked.it> # * EN-Revision: Revision of lang_en.inc.php
# http://www.jannis.to/programming/serendipity.html # */
# #
# Translated by # @define('PLUGIN_EVENT_NL2BR_NAME', '標記語言: NL2BR');
# (c) 2004-2005 CapriSkye <admin@capriskye.com> # @define('PLUGIN_EVENT_NL2BR_DESC', '轉換新行成 BR 標籤');
# http://open.38.com #
##########################################################################
@define('PLUGIN_EVENT_NL2BR_NAME', '標記語言: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', '轉換新行成 BR 標籤');
?>

View File

@ -1,6 +1,14 @@
<?php <?php #
/**
* @version
* @file
* @author
* EN-Revision: Revision of lang_en.inc.php
*/
@define('PLUGIN_EVENT_NL2BR_NAME', '标记语言: NL2BR'); @define('PLUGIN_EVENT_NL2BR_NAME', '标记语言: NL2BR');
@define('PLUGIN_EVENT_NL2BR_DESC', '将换行转换成HTML的BR标签'); @define('PLUGIN_EVENT_NL2BR_DESC', '将换行转换成HTML的BR标签');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '在下列HTML标签所含内容中不转换换行'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '在下列HTML标签所含内容中不转换换行');
@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '推荐的HTML标签: "code,pre,geshi,textarea". 不同HTML标签使用逗号分割。小提示Serendipity使用正则表达式(regular expressions)来处理、分析这里输入的标签。'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '推荐的HTML标签: "code,pre,geshi,textarea". 不同HTML标签使用逗号分割。小提示Serendipity使用正则表达式(regular expressions)来处理、分析这里输入的标签。');

View File

@ -1,6 +1,6 @@
<?php # <?php #
# serendipity_event_nl2br.php 2013-10-08 Ian $ # serendipity_event_nl2br.php 2014-02-01 Ian $
@serendipity_plugin_api::load_language(dirname(__FILE__)); @serendipity_plugin_api::load_language(dirname(__FILE__));
@ -16,15 +16,15 @@ class serendipity_event_nl2br extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_NL2BR_DESC); $propbag->add('description', PLUGIN_EVENT_NL2BR_DESC);
$propbag->add('stackable', false); $propbag->add('stackable', false);
$propbag->add('author', 'Serendipity Team'); $propbag->add('author', 'Serendipity Team');
$propbag->add('version', '2.18'); $propbag->add('version', '2.19');
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '0.8', 'serendipity' => '0.8',
'smarty' => '2.6.7', 'smarty' => '2.6.7',
'php' => '4.1.0' 'php' => '4.1.0'
)); ));
$propbag->add('cachable_events', array('frontend_display' => true)); $propbag->add('cachable_events', array('frontend_display' => true));
$propbag->add('event_hooks', array('frontend_display' => true, $propbag->add('event_hooks', array('frontend_display' => true,
'backend_configure' => true, 'backend_configure' => true,
'css' => true 'css' => true
)); ));
@ -59,16 +59,16 @@ class serendipity_event_nl2br extends serendipity_event
function cleanup() { function cleanup() {
global $serendipity; global $serendipity;
/* check possible config mismatch setting in combination with ISOBR */ /* check possible config mismatch setting in combination with ISOBR */
if ( serendipity_db_bool($this->get_config('isobr')) === true ) { if ( serendipity_db_bool($this->get_config('isobr')) === true ) {
if( serendipity_db_bool($this->get_config('clean_tags')) === true ) { if( serendipity_db_bool($this->get_config('clean_tags')) === true ) {
$this->set_config('clean_tags', false); $this->set_config('clean_tags', false);
echo '<div class="serendipityAdminMsgError msg_error"><img class="backend_attention" src="' . $serendipity['serendipityHTTPPath'] . 'templates/default/admin/img/admin_msg_note.png" alt="" />'; echo '<div class="serendipityAdminMsgError msg_error"><img class="backend_attention" src="' . $serendipity['serendipityHTTPPath'] . 'templates/default/admin/img/admin_msg_note.png" alt="" />';
echo sprintf(PLUGIN_EVENT_NL2BR_CONFIG_ERROR, 'clean_tags', 'ISOBR') . '</div>'; echo sprintf(PLUGIN_EVENT_NL2BR_CONFIG_ERROR, 'clean_tags', 'ISOBR') . '</div>';
return false; return false;
} }
if ( serendipity_db_bool($this->get_config('p_tags')) === true ) { if ( serendipity_db_bool($this->get_config('p_tags')) === true ) {
$this->set_config('p_tags', false); $this->set_config('p_tags', false);
echo '<div class="serendipityAdminMsgError msg_error"><img class="backend_attention" src="' . $serendipity['serendipityHTTPPath'] . 'templates/default/admin/img/admin_msg_note.png" alt="" />'; echo '<div class="serendipityAdminMsgError msg_error"><img class="backend_attention" src="' . $serendipity['serendipityHTTPPath'] . 'templates/default/admin/img/admin_msg_note.png" alt="" />';
echo sprintf(PLUGIN_EVENT_NL2BR_CONFIG_ERROR, 'p_tags', 'ISOBR') . '</div>'; echo sprintf(PLUGIN_EVENT_NL2BR_CONFIG_ERROR, 'p_tags', 'ISOBR') . '</div>';
@ -76,7 +76,7 @@ class serendipity_event_nl2br extends serendipity_event
} }
} }
/* check possible config mismatch setting in combination with P_TAGS */ /* check possible config mismatch setting in combination with P_TAGS */
if ( serendipity_db_bool($this->get_config('p_tags')) === true && serendipity_db_bool($this->get_config('clean_tags')) === true ) { if ( serendipity_db_bool($this->get_config('p_tags')) === true && serendipity_db_bool($this->get_config('clean_tags')) === true ) {
$this->set_config('clean_tags', false); $this->set_config('clean_tags', false);
echo '<div class="serendipityAdminMsgError msg_error"><img class="backend_attention" src="' . $serendipity['serendipityHTTPPath'] . 'templates/default/admin/img/admin_msg_note.png" alt="" />'; echo '<div class="serendipityAdminMsgError msg_error"><img class="backend_attention" src="' . $serendipity['serendipityHTTPPath'] . 'templates/default/admin/img/admin_msg_note.png" alt="" />';
echo sprintf(PLUGIN_EVENT_NL2BR_CONFIG_ERROR, 'clean_tags', 'P_TAGS') . '</div>'; echo sprintf(PLUGIN_EVENT_NL2BR_CONFIG_ERROR, 'clean_tags', 'P_TAGS') . '</div>';
@ -85,6 +85,23 @@ class serendipity_event_nl2br extends serendipity_event
return true; return true;
} }
function example() {
echo '<h3>PLEASE NOTE the implications of this markup plugin:</h3>
<p>This plugin transfers linebreaks to HTML-linebreaks, so that they show up in your blog entry.</p>
<p>In two cases this can raise problematic issues for you:</p>
<ul>
<li>if you use a <strong>WYSIWYG editor</strong> to write your entries. In that case, the WYSIWYG editor already inserts proper HTML linebreaks, so the nl2br plugin would actually double those linebreaks.</li>
<li>if you use any other markup plugins in conjunction with this plugin that already translate linebreaks. The <strong>TEXTILE and MARKDOWN plugins</strong> are examples for plugins like these.</li>
</ul>
<p>To prevent problems, you should disable the nl2br plugin on entries globally or per entry within the "Extended properties" section of an entry, if you have the entryproperties plugin installed.</p>
<p>Generally advice: The nl2br plugin only makes sense if you</p>
<ul>
<li>A) do not use other markup plugins or</li>
<li>B) you do not use the WYSIWYG editor or</li>
<li>C) you only want to apply linebreak transformations on comments to your blog entries, and do not allow any possible markup of other plugins that you only use for blog entries.</li>
</ul>'."\n";
}
function install() { function install() {
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title); serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
} }
@ -187,7 +204,7 @@ class serendipity_event_nl2br extends serendipity_event
if ($clean_tags === null) { if ($clean_tags === null) {
$clean_tags = serendipity_db_bool($this->get_config('clean_tags')); $clean_tags = serendipity_db_bool($this->get_config('clean_tags'));
} }
if (isset($hooks[$event])) { if (isset($hooks[$event])) {
switch($event) { switch($event) {
case 'frontend_display': case 'frontend_display':
@ -204,13 +221,12 @@ class serendipity_event_nl2br extends serendipity_event
$serendipity['nl2br']['entry_disabled_markup'] = true; $serendipity['nl2br']['entry_disabled_markup'] = true;
} }
// don't add additional br or p tags, if the wysiwyg-editor, the textile, or markdown plugin already took care about markup // don't run, if the textile, or markdown plugin already took care about markup
if($markup) { if ($markup && $serendipity['nl2br']['entry_disabled_markup'] === false && (class_exists('serendipity_event_textile') || class_exists('serendipity_event_markdown'))) {
if ( ($serendipity['wysiwyg'] && serendipity_userLoggedIn()) || return true;
($serendipity['nl2br']['entry_disabled_markup'] === false && (class_exists('serendipity_event_textile') || class_exists('serendipity_event_markdown'))) ) {
return true;
}
} }
// NOTE: the wysiwyg-editor needs to send its own ['properties']['ep_no_nl2br'] to disable the nl2br() parser!
// check for users isolation tags // check for users isolation tags
if ($isolate === null) { if ($isolate === null) {
$isolate = $this->get_config('isolate'); $isolate = $this->get_config('isolate');
@ -226,14 +242,14 @@ class serendipity_event_nl2br extends serendipity_event
$isolate = false; $isolate = false;
} }
} }
foreach ($this->markup_elements as $temp) { foreach ($this->markup_elements as $temp) {
if (serendipity_db_bool($this->get_config($temp['name'], true)) && isset($eventData[$temp['element']]) && if (serendipity_db_bool($this->get_config($temp['name'], true)) && isset($eventData[$temp['element']]) &&
!$eventData['properties']['ep_disable_markup_' . $this->instance] && !$eventData['properties']['ep_disable_markup_' . $this->instance] &&
!in_array($this->instance, (array)$serendipity['POST']['properties']['disable_markups']) && !in_array($this->instance, (array)$serendipity['POST']['properties']['disable_markups']) &&
!$eventData['properties']['ep_no_nl2br'] && !$eventData['properties']['ep_no_nl2br'] &&
!isset($serendipity['POST']['properties']['ep_no_nl2br'])) { !isset($serendipity['POST']['properties']['ep_no_nl2br'])) {
$element = $temp['element']; $element = $temp['element'];
if ($p_tags) { if ($p_tags) {
$eventData[$element] = $this->nl2p($eventData[$element]); $eventData[$element] = $this->nl2p($eventData[$element]);
@ -248,12 +264,12 @@ class serendipity_event_nl2br extends serendipity_event
$eventData[$element] = $this->restore($eventData[$element]); $eventData[$element] = $this->restore($eventData[$element]);
// unset nl tagline, if is // unset nl tagline, if is
$eventData[$element] = str_replace(array("<nl>", "</nl><br />", "</nl><br/>", "</nl>"), "", $eventData[$element]); $eventData[$element] = str_replace(array("<nl>", "</nl><br />", "</nl><br/>", "</nl>"), "", $eventData[$element]);
} else { } else {
$eventData[$element] = nl2br($eventData[$element]); $eventData[$element] = nl2br($eventData[$element]);
} }
} }
/* this is an option if not using new isobr default config setting */ /* this is an option if not using new isobr default config setting */
if (!$p_tags && $isobr === false && $clean_tags === true) { if (!$p_tags && $isobr === false && $clean_tags === true) {
// convert line endings to Unix style, if not already done // convert line endings to Unix style, if not already done
$eventData[$element] = str_replace(array("\r\n", "\r"), "\n", $eventData[$element]); $eventData[$element] = str_replace(array("\r\n", "\r"), "\n", $eventData[$element]);
// clean special tags from nl2br // clean special tags from nl2br
@ -267,18 +283,18 @@ class serendipity_event_nl2br extends serendipity_event
case 'backend_configure': case 'backend_configure':
// check single entry for temporary disabled markups // check single entry for temporary disabled markups
if( $isobr ) { if( $isobr ) {
$serendipity['nl2br']['iso2br'] = true; // include to global as also used by staticpages now $serendipity['nl2br']['iso2br'] = true; // include to global as also used by staticpages now
if (!is_object($serendipity['smarty'])) { if (!is_object($serendipity['smarty'])) {
serendipity_smarty_init(); // if not set to avoid member function assign() on a non-object error, start Smarty templating serendipity_smarty_init(); // if not set to avoid member function assign() on a non-object error, start Smarty templating
} }
// hook into default/admin/entries.tpl somehow via the Heart Of Gold = serendipity_printEntryForm() before! it is loaded // hook into default/admin/entries.tpl somehow via the Heart Of Gold = serendipity_printEntryForm() before! it is loaded
$serendipity['smarty']->assign('iso2br', true); $serendipity['smarty']->assign('iso2br', true);
} }
return true; return true;
break; break;
@ -298,7 +314,7 @@ p.break {
<?php <?php
return true; return true;
break; break;
default: default:
return false; return false;
} }
@ -312,11 +328,11 @@ p.break {
* @param string entrytext * @param string entrytext
* @return string * @return string
* */ * */
function clean_nl2brtags(&$entry) { function clean_nl2brtags(&$entry) {
$allTags = explode('|', 'table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd'); $allTags = explode('|', 'table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd');
$br2nl = array(); $br2nl = array();
foreach($allTags as $tag){ foreach($allTags as $tag){
/* for \\1 ( start with : < followed by any number of white spaces : \s* optionally a slash : /? and the tag itself ) /* for \\1 ( start with : < followed by any number of white spaces : \s* optionally a slash : /? and the tag itself )
* for \\2 ( anything with spaces and characters following until ) * for \\2 ( anything with spaces and characters following until )
@ -326,7 +342,7 @@ p.break {
* regex modifier : s - using the dot metacharacter in the pattern to match all characters, including newlines */ * regex modifier : s - using the dot metacharacter in the pattern to match all characters, including newlines */
$br2nl[] = "%(<\s*/?$tag)(.*?)([^>]*>)(<br\s*/?>)%is"; $br2nl[] = "%(<\s*/?$tag)(.*?)([^>]*>)(<br\s*/?>)%is";
} }
if(sizeof($br2nl)) $entry = preg_replace($br2nl, '\\1\\2\\3', $entry); if(sizeof($br2nl)) $entry = preg_replace($br2nl, '\\1\\2\\3', $entry);
return $entry; return $entry;
@ -348,7 +364,7 @@ p.break {
//DOS to Unix and Mac to Unix //DOS to Unix and Mac to Unix
$text = str_replace(array("\r\n", "\r"), "\n", $text); $text = str_replace(array("\r\n", "\r"), "\n", $text);
$text = str_split($text); $text = str_split($text);
$big_p = '<p class="whiteline">'; $big_p = '<p class="whiteline">';
$small_p = '<p class="break">'; $small_p = '<p class="break">';
@ -360,14 +376,14 @@ p.break {
unset($text[$i-1]); unset($text[$i-1]);
} }
//main operation: convert \n to big_p and small_p //main operation: convert \n to big_p and small_p
while ($i > 0) { while ($i > 0) {
if ($insert) { if ($insert) {
$i = $this->next_nl_block($i, $text); $i = $this->next_nl_block($i, $text);
if ($i == 0) { if ($i == 0) {
//prevent replacing of first character //prevent replacing of first character
break; break;
} }
if ($whiteline == true) { if ($whiteline == true) {
$text[$i] = '</p>' . $big_p; $text[$i] = '</p>' . $big_p;
} else { } else {
@ -377,7 +393,7 @@ p.break {
$insert = false; $insert = false;
} else { } else {
if ($text[$i-1] === "\n") { if ($text[$i-1] === "\n") {
//newline is follower of a newline //newline is follower of a newline
$whiteline = true; $whiteline = true;
} }
$insert = true; $insert = true;
@ -453,9 +469,9 @@ p.break {
'<h1', '<h2', '<h3', '<h4', '<h5', '<h6', '<h1', '<h2', '<h3', '<h4', '<h5', '<h6',
'<menu', '<blockquote'); '<menu', '<blockquote');
$block_elements_amount = count($block_elements); $block_elements_amount = count($block_elements);
for($i=0;$i<$block_elements_amount;$i++) { for($i=0;$i<$block_elements_amount;$i++) {
$start_tag = $block_elements[$i]; $start_tag = $block_elements[$i];
//first see if block-element really exists //first see if block-element really exists
$tag_position = strpos($textstring, $start_tag); $tag_position = strpos($textstring, $start_tag);
if ($tag_position === false) { if ($tag_position === false) {
@ -468,7 +484,7 @@ p.break {
} }
return $textstring; return $textstring;
} }
/** /**
* Remove all <p>-tags from block-elements * Remove all <p>-tags from block-elements
* Note: Walking from left to right * Note: Walking from left to right
@ -506,7 +522,7 @@ p.break {
} }
$len = strpos($text, $end_tag, $offset) - $offset; $len = strpos($text, $end_tag, $offset) - $offset;
return substr($text, $offset, $len); return substr($text, $offset, $len);
} }
/* /*
* Return corresponding end-tag: <p -> </p> * Return corresponding end-tag: <p -> </p>