diff options
author | Anika Henke <a.c.henke@arcor.de> | 2007-02-11 18:20:15 +0100 |
---|---|---|
committer | Anika Henke <a.c.henke@arcor.de> | 2007-02-11 18:20:15 +0100 |
commit | 71b40da27911263b852a9c60b0243b04e4802d08 (patch) | |
tree | 2de8e7c764107090d3c1bcf19319c37b0ecf9eaa /inc/parser | |
parent | 54f7220e240f8b20d6750ed02327d78470a108b1 (diff) | |
download | rpg-71b40da27911263b852a9c60b0243b04e4802d08.tar.gz rpg-71b40da27911263b852a9c60b0243b04e4802d08.tar.bz2 |
language-specific quotation marks (FS#438)
darcs-hash:20070211172015-d5083-2cab923b001391012a0a469746438d4d4087a718.gz
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/metadata.php | 16 | ||||
-rw-r--r-- | inc/parser/xhtml.php | 12 |
2 files changed, 18 insertions, 10 deletions
diff --git a/inc/parser/metadata.php b/inc/parser/metadata.php index 5a9f6a122..6e2c27b2a 100644 --- a/inc/parser/metadata.php +++ b/inc/parser/metadata.php @@ -206,12 +206,12 @@ class Doku_Renderer_metadata extends Doku_Renderer { } function quote_open(){ - if ($this->capture) $this->doc .= DOKU_LF.DOKU_TAB.'“'; + if ($this->capture) $this->doc .= DOKU_LF.DOKU_TAB.'"'; } function quote_close(){ if ($this->capture){ - $this->doc .= '”'; + $this->doc .= '"'; if (strlen($this->doc) > 250) $this->capture = false; else $this->doc .= DOKU_LF; } @@ -242,19 +242,23 @@ class Doku_Renderer_metadata extends Doku_Renderer { } function singlequoteopening(){ - if ($this->capture) $this->doc .= '‘'; + global $lang; + if ($this->capture) $this->doc .= $lang['singlequoteopening']; } function singlequoteclosing(){ - if ($this->capture) $this->doc .= '’'; + global $lang; + if ($this->capture) $this->doc .= $lang['singlequoteclosing']; } function doublequoteopening(){ - if ($this->capture) $this->doc .= '“'; + global $lang; + if ($this->capture) $this->doc .= $lang['doublequoteopening']; } function doublequoteclosing(){ - if ($this->capture) $this->doc .= '”'; + global $lang; + if ($this->capture) $this->doc .= $lang['doublequoteclosing']; } function camelcaselink($link) { diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 5390ae843..ea5b72495 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -441,19 +441,23 @@ class Doku_Renderer_xhtml extends Doku_Renderer { } function singlequoteopening() { - $this->doc .= "‘"; + global $lang; + $this->doc .= $lang['singlequoteopening']; } function singlequoteclosing() { - $this->doc .= "’"; + global $lang; + $this->doc .= $lang['singlequoteclosing']; } function doublequoteopening() { - $this->doc .= "“"; + global $lang; + $this->doc .= $lang['doublequoteopening']; } function doublequoteclosing() { - $this->doc .= "”"; + global $lang; + $this->doc .= $lang['doublequoteclosing']; } /** |