note 20978 added to ref.gettext

From: Date: Wed, 24 Apr 2002 11:54:45 +0000
Subject: note 20978 added to ref.gettext
Groups: php.notes 
Request: Send a blank email to php-notes+get-29751@lists.php.net to get a copy of this message
Gettext has to be the coolest thing since sliced bread. I have no problems getting this to work with basic strings e.g. echo gettext("Hello World") but don't know how to properly use gettext under the following string examples: 1) Text with variables: How to "gettext" the string "Hello $world" 2) Text with globals: How to "gettext" the string "Hello $world ".GLOBAL_WHERE." are you?" 3) Text with functions: How to gettext the string "Hello ".get_world($world)." how's it going?" Having the answer to this question at php.net would really help as trying to find examples elsewhere is not working. -- http://www.php.net/manual/en/ref.gettext.php http://master.php.net/manage/user-notes.php?action=edit+20978 http://master.php.net/manage/user-notes.php?action=delete+20978 http://master.php.net/manage/user-notes.php?action=reject+20978

« previous php.notes (#29751) next »