From 9426a41aa622ea7c282f451c3274f167307f428d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 13 Jun 2007 20:40:15 +0200 Subject: make typography option three staged FS#1142 Because correct smart quote parsing with regular expressions is nearly impossible, especially when dealing with quote usage in languages different from english, the typography configuration option was changed. 0 means to completely disable any typography replacements 1 will only handle the multiply entitity and double quotes, this should nearly always work without problems and is the new default 2 will add singlequote parsing. This might break because single quotes and apostrophes are not always easily distinguishable. Especially in languages where single quote openings and apostrophes are different characters you might experience problems. For english it should nearly always work. darcs-hash:20070613184015-7ad00-0cebc3f807f54467d54458075c5c9f651355c5ba.gz --- lib/plugins/config/lang/en/lang.php | 5 +++++ lib/plugins/config/settings/config.metadata.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/plugins') diff --git a/lib/plugins/config/lang/en/lang.php b/lib/plugins/config/lang/en/lang.php index ad03c95d1..932a00b05 100644 --- a/lib/plugins/config/lang/en/lang.php +++ b/lib/plugins/config/lang/en/lang.php @@ -154,6 +154,11 @@ $lang['ftp____user'] = 'FTP user name for safemode hack'; $lang['ftp____pass'] = 'FTP password for safemode hack'; $lang['ftp____root'] = 'FTP root directory for safemode hack'; +/* typography options */ +$lang['typography_o_0'] = 'none'; +$lang['typography_o_1'] = 'Double quotes only'; +$lang['typography_o_2'] = 'All quotes (might not always work)'; + /* userewrite options */ $lang['userewrite_o_0'] = 'none'; $lang['userewrite_o_1'] = '.htaccess'; diff --git a/lib/plugins/config/settings/config.metadata.php b/lib/plugins/config/settings/config.metadata.php index 7aecf43ef..9c3d16e1c 100644 --- a/lib/plugins/config/settings/config.metadata.php +++ b/lib/plugins/config/settings/config.metadata.php @@ -92,7 +92,7 @@ $meta['recent'] = array('numeric'); $meta['breadcrumbs'] = array('numeric'); $meta['youarehere'] = array('onoff'); $meta['fullpath'] = array('onoff'); -$meta['typography'] = array('onoff'); +$meta['typography'] = array('multichoice','_choices' => array(0,1,2)); $meta['dformat'] = array('string'); $meta['signature'] = array('string'); $meta['toptoclevel'] = array('multichoice','_choices' => array(1,2,3,4,5)); // 5 toc levels -- cgit v1.2.3