On 8/14/07, David Chisnall <[EMAIL PROTECTED]> wrote:
> On 14 Aug 2007, at 17:16, Yen-Ju Chen wrote:
>
> >   I just want to mention that we need to keep internationalization
> > in mind
> >   when design the directory structure of the web site.
>
> I don't think we need to do anything with the directory structure.
> Apache, as installed on GNA, supports localisation.  For this to
> work, we need to omit the .html (or whatever) from the end of links.
> You would do something like this:
>
> <a href="/news/latest">latest news</a>
>
> Apache would then turn this into /news/latest.en.html (or /news/
> latest.html if that didn't exist) if you had English set as your
> browser's locale.  Making the file latest.html.en should work
> according to the Apache docs, but GNA doesn't mention it.
>
> I haven't checked if this same thing works for images.  Perhaps
> someone could try with a test.png.en and test.png.{some other
> language code} and see if they are correctly retrieved.

  So the reault is that all translation of a page will stay in the
same directory.
  Another system is to put all pages of the same language in a single directory,
  like www.aaa.com/en/ and www.aaa.com/fr/
  I have no preference, just mention it.

  Yen-JU

>
> David
>
> _______________________________________________
> Etoile-dev mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-dev
>

_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev

Reply via email to