Re: other languages

From: Date: Mon, 01 Aug 2005 23:28:43 +0000
Subject: Re: other languages
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39113@lists.php.net to get a copy of this message
Lukas Smith wrote:
Hi, Quite sensibly PEAR uses english as its base language. However here (http://www.pear-forum.de/viewtopic.php?p=2464#2464) is a post on a german forum that raises an interesting and important issue: PEAR provides no proper way for developer to display error, status and other messages in a translated form. I raised this on IRC and one solution that was proposed was gettext. However gettext is painful in alot of ways. Most importantly messages will likely get minor modifications and using gettext this would become a BC break. The best solution IMHO is using error, status etc codes. Especially for error codes this means once again extending from PEAR_Error (otherwise it would be impossible to determine what error code map to use for a given error object).
...hence it suddenly becomes simpler to use PEAR_ErrorStack, which was designed to require error codes and package differentiation information (extending PEAR_Error is a package differentiation system). Greg

« previous php.pear.dev (#39113) next »