From 71b40da27911263b852a9c60b0243b04e4802d08 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 11 Feb 2007 18:20:15 +0100 Subject: language-specific quotation marks (FS#438) darcs-hash:20070211172015-d5083-2cab923b001391012a0a469746438d4d4087a718.gz --- inc/parser/metadata.php | 16 ++++++++++------ inc/parser/xhtml.php | 12 ++++++++---- 2 files changed, 18 insertions(+), 10 deletions(-) (limited to 'inc/parser') 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']; } /** -- cgit v1.2.3