On 4/30/01 2:49 PM, "Autrijus Tang" <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 30, 2001 at 10:19:10AM -0700, Ian Clarke wrote:
>> This sounds great, I have added you as a web designer. You should
>> checkout the "www" package from sourceforge, see the "www/lang/fr"
>
> Ok, thanks a lot. I'm starting to work right now.
>
> BTW: From what I understand from the PHP code, it detects languages
> through HTTP_ACCEPT_LANGUAGE, which means my directories have to look
> like lang/zh-tw and lang/zh-cn,
This is correct.
> and the main index.php should detect
> the dash:
>
> --- www/index.php 2001/04/25 19:33:20 1.1.1.1
> +++ www/index.php 2001/04/30 19:44:15
> @@ -6,7 +6,7 @@
> --------------------------------------------------------------------*/
> - if (ereg("/lang/([a-z]+)/", $PHP_SELF, $lang_array))
> + if (ereg("/lang/([\-a-z]+)/", $PHP_SELF, $lang_array))
>
> I shall just go ahead and fix them along the way.
I haven't added support for for the "-tw" dialect addition to the language
string. It may work without any major changes to the php code in
functions.php. You will want to test this on your own site if possible
before making changes to index.php or functions.php as they are periodically
saved from CVS to the live website.
I will look at the code myself and see if this can easily be done. If so,
I'll upload it shortly.
Welcome! It will be great to have Chinese translations available.
-Rick
>
> Viva la Informationale!
>
> /Autrijus/
>
_______________________________________________
Web mailing list
[EMAIL PROTECTED]
http://www.uprizer.com/mailman/listinfo/web