Make the new layout available for i18n pages

Jason Bainbridge jaseone at myrealbox.com
Mon Mar 10 05:04:52 UTC 2003


How about we add an *optional* requirement for mirrors to have gettext
support in PHP and then we can maintain a .inc file that lists the
domains of the mirrors that have gettext available. 

Then we can test if the current domain through the HTTP_REFERRER or
similar is listed and if it isn't then we can use:

function _($str) {
   return $str;
}

(the underscore is an alias for gettext)

This would save us re-inventing the wheel and also give the translators
a system they are familiar with, which would hopefully mean we would get
their support.

Thoughts?

-- 
Jason Bainbridge
KDE - Conquer Your Desktop
KDE Web Team - http://kde.org		
webmaster at kde.org 

> -----Original Message-----
> From: kde-www-admin at mail.kde.org 
> [mailto:kde-www-admin at mail.kde.org] On Behalf Of Jason Bainbridge
> Sent: Monday, 10 March 2003 9:02 AM
> To: kde-www at mail.kde.org
> Cc: mueller at kde.org
> Subject: RE: Make the new layout available for i18n pages
> 
> 
> Would it be possible then to maybe put a wrapper around the 
> gettext function and only use it if it is available? Of 
> course this would mean that the fallback would always have to 
> be English.
> 
> This seems viable to me but I'm not a PHP guru...
> 
> Regards,
> -- 
> Jason Bainbridge
> KDE - Conquer Your Desktop
> KDE Web Team - http://kde.org		
> webmaster at kde.org 
> 
> > -----Original Message-----
> > From: kde-www-admin at mail.kde.org
> > [mailto:kde-www-admin at mail.kde.org] On Behalf Of Dirk Mueller
> > Sent: Monday, 10 March 2003 7:43 AM
> > To: kde-www at mail.kde.org
> > Subject: Re: Make the new layout available for i18n pages
> > 
> > 
> > On Son, 09 Mär 2003, Chris Howells wrote:
> > 
> > > To avoid needing gettext needing to be compiled into php, I
> > had though
> > > of
> > > rolling my own i18n function. Though having gettext support
> > would certainly
> > > be easier. Dirk, do you know if there's any possiblity of
> > this happening?
> > 
> > If its not in PHP by default, then we cannot require it - too
> > many web 
> > mirrors with unexperienced admins. Sorry. 
> > 
> > However, I agree a kind of gettext-like internationalisation
> > would make a 
> > lot more sense than the current stuff, which is always kind 
> > of outdated and 
> > hard to keep in sync. 
> > 
> > 
> > --
> > Dirk
> > _______________________________________________
> > kde-www mailing list
> > kde-www at mail.kde.org http://mail.kde.org/mailman/listinfo/kde-www
> > 
> 
> _______________________________________________
> kde-www mailing list
> kde-www at mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-www
> 




More information about the kde-www mailing list