rename the function BrowserSetDocumentCharacterSet to BrowserSetDefaultCharacterSet. Add new charset to total 40 . Do reload after change the view Default Character Set menu

This commit is contained in:
ftang%netscape.com 1999-04-27 19:33:53 +00:00
Родитель 63fb11d8a3
Коммит 58daf7b0c3
1 изменённых файлов: 55 добавлений и 6 удалений

Просмотреть файл

@ -320,10 +320,11 @@
}
}
function BrowserSetDocumentCharacterSet(aCharset)
function BrowserSetDefaultCharacterSet(aCharset)
{
if (appCore != null) {
appCore.SetDocumentCharset(aCharset);
window.frames[0].frames[1].location.reload();
} else {
dump("BrowserAppCore has not been created!\n");
}
@ -635,11 +636,59 @@
<menuitem name="French To Spanish" onclick="BrowserReload();"/>
<menuitem name="German To Spanish" onclick="BrowserReload();"/>
</menu>
<menu name="Character Set">
<menuitem name="Latin1" onclick="BrowserSetDocumentCharacterSet('ISO-8859-1');"/>
<menuitem name="ISO-2022-JP" onclick="BrowserSetDocumentCharacterSet('ISO-2022-JP');"/>
<menuitem name="Shift_JIS" onclick="BrowserSetDocumentCharacterSet('Shift_JIS');"/>
<menuitem name="EUC-JP" onclick="BrowserSetDocumentCharacterSet('EUC-JP');"/>
<menu name="Default Character Set">
<menu name="Latin">
<menuitem name="ISO Latin 1 (ISO-8859-1)" onclick="BrowserSetDefaultCharacterSet('ISO-8859-1');"/>
<menuitem name="ISO Latin 2 (ISO-8859-2)" onclick="BrowserSetDefaultCharacterSet('ISO-8859-2');"/>
<menuitem name="ISO Latin 3 (ISO-8859-3)" onclick="BrowserSetDefaultCharacterSet('ISO-8859-3');"/>
<menuitem name="ISO Latin 4 (ISO-8859-4)" onclick="BrowserSetDefaultCharacterSet('ISO-8859-4');"/>
<menuitem name="ISO Latin 5 (ISO-8859-9)" onclick="BrowserSetDefaultCharacterSet('ISO-8859-9');"/>
<menuitem name="ISO Latin 8 (ISO-8859-14)" onclick="BrowserSetDefaultCharacterSet('ISO-8859-14');"/>
<menuitem name="ISO Latin 9 (ISO-8859-15)" onclick="BrowserSetDefaultCharacterSet('ISO-8859-15');"/>
<menuitem name="Windows Latin2 (windows-1250)" onclick="BrowserSetDefaultCharacterSet('windows-1250');"/>
<menuitem name="Windows Latin 1 (windows-1252)" onclick="BrowserSetDefaultCharacterSet('windows-1252');"/>
<menuitem name="Windows Latin 5 (windows-1254)" onclick="BrowserSetDefaultCharacterSet('windows-1254');"/>
<menuitem name="Windows Baltic Rim (windows-1257)" onclick="BrowserSetDefaultCharacterSet('windows-1257');"/>
<menuitem name="Macintosh Roman" onclick="BrowserSetDefaultCharacterSet('x-mac-roman');"/>
<menuitem name="Macintosh Central European" onclick="BrowserSetDefaultCharacterSet('x-mac-ce');"/>
<menuitem name="Macintosh Turkish" onclick="BrowserSetDefaultCharacterSet('x-mac-turkish');"/>
<menuitem name="Macintosh Croatian" onclick="BrowserSetDefaultCharacterSet('x-mac-croatian');"/>
<menuitem name="Macintosh Romanian" onclick="BrowserSetDefaultCharacterSet('x-mac-romanian');"/>
<menuitem name="Macintosh Icelandic" onclick="BrowserSetDefaultCharacterSet('x-mac-icelandic');"/>
</menu>
<menu name="Japanese">
<menuitem name="Japanese JIS (ISO-2022-JP)" onclick="BrowserSetDefaultCharacterSet('ISO-2022-JP');"/>
<menuitem name="Japanese (Shift_JIS)" onclick="BrowserSetDefaultCharacterSet('Shift_JIS');"/>
<menuitem name="Japanese (EUC-JP)" onclick="BrowserSetDefaultCharacterSet('EUC-JP');"/>
</menu>
<menu name="Chinese">
<menuitem name="Traditional Chinese (Big5)" onclick="BrowserSetDefaultCharacterSet('Big5');"/>
<menuitem name="Traditional Chinese (EUC-TW)" onclick="BrowserSetDefaultCharacterSet('EUC-TW');"/>
<menuitem name="Simplified Chinese (GB2312)" onclick="BrowserSetDefaultCharacterSet('GB2312');"/>
</menu>
<menuitem name="Korean (EUC-KR)" onclick="BrowserSetDefaultCharacterSet('EUC-KR');"/>
<menuitem name="UTF-8" onclick="BrowserSetDefaultCharacterSet('UTF-8');"/>
<menu name="Cyrillic">
<menuitem name="ISO Cyrillic (ISO-8859-5)" onclick="BrowserSetDefaultCharacterSet('ISO-8859-5');"/>
<menuitem name="Windows Cyrillic (windows-1251)" onclick="BrowserSetDefaultCharacterSet('windows-1251');"/>
<menuitem name="Macintosh Cyrillic" onclick="BrowserSetDefaultCharacterSet('x-mac-cyrillic');"/>
<menuitem name="Macintosh Ukrainian" onclick="BrowserSetDefaultCharacterSet('x-mac-ukrainian');"/>
<menuitem name="Russian (KOI8-R)" onclick="BrowserSetDefaultCharacterSet('KOI8-R');"/>
<menuitem name="Ukrainian (KOI8-U)" onclick="BrowserSetDefaultCharacterSet('KOI8-U');"/>
</menu>
<menu name="Greek">
<menuitem name="ISO Greek (ISO-8859-7)" onclick="BrowserSetDefaultCharacterSet('ISO-8859-7');"/>
<menuitem name="Windows Greek (windows-1253)" onclick="BrowserSetDefaultCharacterSet('windows-1253');"/>
<menuitem name="Macintosh Greek" onclick="BrowserSetDefaultCharacterSet('x-mac-greek');"/>
</menu>
<menu name="Vietnamese">
<menuitem name="Windows Vietnamese (windows-1258)" onclick="BrowserSetDefaultCharacterSet('windows-1258');"/>
<menuitem name="Vietnamese (TCVN5712)" onclick="BrowserSetDefaultCharacterSet('x-viet-tcvn5712');"/>
<menuitem name="Vietnamese (VISCII)" onclick="BrowserSetDefaultCharacterSet('VISCII');"/>
<menuitem name="Vietnamese (VPS)" onclick="BrowserSetDefaultCharacterSet('x-viet-vps');"/>
</menu>
<menuitem name="Thai (TIS-620)" onclick="BrowserSetDefaultCharacterSet('TIS-620');"/>
<menuitem name="Armenian (ARMSCII-8)" onclick="BrowserSetDefaultCharacterSet('ARMSCII-8');"/>
</menu>
</menu>
<menu name="Search">