You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Robert La Ferla <ro...@attbi.com> on 2002/08/06 19:22:59 UTC
[PATCH] httpd-std.conf changes to organize and support different
languages
I was reviewing the language support in the default configuration files
and saw that a good number of major world languages were missing. I
added the languages and restructured things so that it's a bit easier to
manage. Also, perhaps all language related configuration should go into
a separate .conf file??
Robert
Here is the diff to docs/conf/httpd-std.conf (from the 2.0.39 release)
671,672c671,673
< # DefaultLanguage and AddLanguage allows you to specify the language of
< # a document. You can then use content negotiation to give a browser a
---
> #
> # DefaultLanguage and AddLanguage allows you to specify the language of
> # a document. You can then use content negotiation to give a browser a
676c677
< # going out without a specific language tag (see below) will
---
> # going out without a specific language tag (see below) will
680c681
< # * It is generally better to not mark a page as
---
> # * It is generally better to not mark a page as
684c685
< # DefaultLanguage nl
---
> # DefaultLanguage en
691,692c692,693
< # Note 2: The example entries below illustrate that in some cases
< # the two character 'Language' abbreviation is not identical to
---
> # Note 2: The example entries below illustrate that in some cases
> # the two character 'Language' abbreviation is not identical to
700,706c701,723
< # Danish (da) - Dutch (nl) - English (en) - Estonian (et)
< # French (fr) - German (de) - Greek-Modern (el)
< # Italian (it) - Norwegian (no) - Norwegian Nynorsk (nn) - Korean (ko)
< # Portugese (pt) - Luxembourgeois* (ltz)
< # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
< # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
< # Russian (ru) - Croatian (hr)
---
> # Afrikaans
> AddLanguage af .af
> #
> # Arabic
> AddLanguage ar .ar
> #
> # Armenian
> AddLanguage hy .hy
> #
> # Bulgarian
> AddLanguage bg .bg
> #
> # Catalan
> AddLanguage ca .ca
> #
> # Chinese
> AddLanguage zh-cn .zh-cn
> #
> # Croatian
> AddLanguage hr .hr
> #
> # Czech
> AddLanguage cz .cz
707a725
> # Danish
709c727,728
< AddLanguage nl .nl
---
> #
> # English
710a730,731
> #
> # Estonian
711a733,740
> #
> # Farsi
> AddLanguage fa .fa
> #
> # Finnish
> AddLanguage fi .fi
> #
> # French
712a742,746
> #
> # Gaelic
> AddLanguage gd .gd
> #
> # German (Deutsch)
714c748,749
< AddLanguage he .he
---
> #
> # Greek (Hellenic)
715a751,764
> #
> # Hebrew
> AddLanguage he .he
> #
> # Hungarian
> AddLanguage hu .hu
> #
> # Icelandic
> AddLanguage is .is
> #
> # Indonesian
> AddLanguage id .id
> #
> # Italian
716a766,767
> #
> # Japanese
718c769,770
< AddLanguage pl .po
---
> #
> # Korean
720,721c772,788
< AddLanguage pt .pt
< AddLanguage nn .nn
---
> #
> # Latvian
> AddLanguage lv .lv
> #
> # Lithuanian
> AddLanguage lt .lt
> #
> # Luxembourgeois
> AddLanguage ltz .ltz
> #
> # Malay
> AddLanguage ms .ms
> #
> # Nederlands (Dutch)
> AddLanguage nl .nl
> #
> # Norwegian
722a790,797
> #
> # Norwegian Nynorsk
> AddLanguage nn .nn
> #
> # Polish
> AddLanguage pl .po
> #
> # Portuguese (Brazilian)
724,725c799,812
< AddLanguage ltz .ltz
< AddLanguage ca .ca
---
> #
> # Portugese (Portugal)
> AddLanguage pt .pt
> #
> # Romanian
> AddLanguage ro .ro
> #
> # Russian
> AddLanguage ru .ru
> #
> # Sanskrit
> AddLanguage sa .sa
> #
> # Spanish (Espanol)
726a814,818
> #
> # Swahili
> AddLanguage sw .sw
> #
> # Swedish
728,730c820,821
< AddLanguage cz .cz
< AddLanguage ru .ru
< AddLanguage tw .tw
---
> #
> # Taiwanese
732c823,834
< AddLanguage hr .hr
---
> #
> # Thai
> AddLanguage th .th
> #
> # Turkish
> AddLanguage tr .tr
> #
> # Vietnamese
> AddLanguage vi .vi
> #
> # Zulu
> AddLanguage zu .zu
738,739c840,841
< # Just list the languages in decreasing order of preference. We have
< # more or less alphabetized them here. You probably want to change this.
---
> # Just list the languages in decreasing order of preference.
> # You probably want to change this.
741c843
< LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca
es sv tw
---
> LanguagePriority en es fr de it da nl et el zh-cn ja ko no pl pt
pt-br ltz ca sv tw id
Re: [PATCH] httpd-std.conf changes to organize and support different
languages
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 6 Aug 2002, Robert La Ferla wrote:
> I was reviewing the language support in the default configuration files
> and saw that a good number of major world languages were missing. I
> added the languages and restructured things so that it's a bit easier to
> manage. Also, perhaps all language related configuration should go into
> a separate .conf file??
>
> Robert
>
> Here is the diff to docs/conf/httpd-std.conf (from the 2.0.39 release)
Thanks very much for your contribution. Here are a few comments:
- Always use unified diff format (diff -u). We find it much easier to
read.
- The languages that are currently included in httpd.conf are all the ones
where we have a corresponding "welcome" page (index.html.xx). This should
no longer be necessary, since the welcome pages use a type-map file rather
than multi-views.
- Personally, I don't see the need to list all languages (or all major
languages) in the config file. People who need a specific language should
be consulting the relevant standards to find the correct codes. I would
like to see less stuff in the language section rather than more.
Thanks again.
Joshua.