cvs: pear /I18N/Messages Translate.php

From: Date: Sat, 30 Nov 2002 16:01:52 +0000
Subject: cvs: pear /I18N/Messages Translate.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7692@lists.php.net to get a copy of this message
cain Sat Nov 30 11:01:52 2002 EDT Modified files: /pear/I18N/Messages Translate.php Log: - added another possible delimiter Index: pear/I18N/Messages/Translate.php diff -u pear/I18N/Messages/Translate.php:1.8 pear/I18N/Messages/Translate.php:1.9 --- pear/I18N/Messages/Translate.php:1.8 Fri Nov 22 08:59:45 2002 +++ pear/I18N/Messages/Translate.php Sat Nov 30 11:01:51 2002 @@ -16,7 +16,7 @@ // | Authors: Wolfram Kriesing <wolfram@kriesing.de> | // +----------------------------------------------------------------------+ // -// $Id: Translate.php,v 1.8 2002/11/22 13:59:45 cain Exp $ +// $Id: Translate.php,v 1.9 2002/11/30 16:01:51 cain Exp $ // we have to move this to some more common place in PEAR // this is just a quick hack here :-) @@ -60,9 +60,21 @@ // because it would translate 'class="..."' to off we have 'as' to be translated :-( // but this also means we have to handle stuff like &nbsp; of others specials chars, that dont start // and end with a < or > somehow ... i dont know how yet :-( + + // this mostly applies, that a text is inbetween '>' and '<' + '>\s*' => '\s*<' + + // same as above, + // only that this leaves &nbsp; before and after the text outside html-tags as they are ... + // + // actually we need a more common thing here, which also takes care of other chars which + // we dont want to bother the translation with + ,'>[\s*&nbsp;]*' => '[\s*&nbsp;]*<' + + + // this is for input button's values + ,'<\s*input .*value=["\']?\s*' => '\s*["\']?.*>' - '>\s*' => '\s*<', // this mostly applies, that a text is inbetween '>' and '<' - '<\s*input .*value=["\']?\s*' => '\s*["\']?.*>' // this is for input button's values ); /**

« previous php.pear.cvs (#7692) next »