ja-XXX.jsファイルの修正
ja-sjis.jsなどには、buttons、msgとdialogsの設定が抜けています。これらの設定が無いとエラーしてしまい、正常に表示されなくなってしまいます。必要な設定をen.jsからコピーします。
配布されてるja-sjis.jsはこのようになっています。tooltipsの設定しかありません。
// I18N constants -- Japanese Shift-JIS
// by Manabu Onoue -- tmocsys@tmocsys.com
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "ja-sjis",
tooltips: {
bold: "太字",
italic: "斜体",
underline: "下線",
…
(中略)
…
about: "バージョン情報",
help: "ヘルプ",
textindicator: "現在のスタイル"
} //←ここに設定が抜けている
};
tooltipsの設定の下に、en.jsからbuttons、msgとdialogsの設定をコピーします。
注意:tooltips設定の最後の閉じ括弧(}) の後に、必ずカンマ(,)を入れて下さい。これを入れないとエラーしてしまいます。
// I18N constants -- Japanese Shift-JIS
// by Manabu Onoue -- tmocsys@tmocsys.com
HTMLArea.I18N = {
// the following should be the filename without .js extension
// it will be used for automatically load plugin language.
lang: "ja-sjis",
tooltips: {
bold: "太字",
italic: "斜体",
underline: "下線",
…
(中略)
…
about: "バージョン情報",
help: "ヘルプ",
textindicator: "現在のスタイル"
}, //←このカンマを忘れずに
buttons: {
"ok": "OK",
"cancel": "Cancel"
},
msg: {
"Path": "Path",
"TEXT_MODE": "You are in TEXT MODE. Use the [<>] button
to switch back to WYSIWYG.",
"IE-sucks-full-screen" :
// translate here
"The full screen mode is known to cause problems with Internet Explorer, " +
"due to browser bugs that we weren't able to workaround. You might experience
garbage " +
"display, lack of editor functions and/or random browser crashes. If your
system is Windows 9x " +
"it's very likely that you'll get a 'General Protection Fault' and need
to reboot.\n\n" +
"You have been warned. Please press OK if you still want to
try the full
screen editor."
},
dialogs: {
"Cancel" : "Cancel",
"Insert/Modify Link" : "Insert/Modify Link",
"New window (_blank)" : "New window (_blank)",
"None (use implicit)" : "None (use implicit)",
"OK" : "OK",
"Other" : "Other",
"Same frame (_self)" : "Same frame (_self)",
"Target:" : "Target:",
"Title (tooltip):" : "Title (tooltip):",
"Top frame (_top)" : "Top frame (_top)",
"URL:" : "URL:",
"You must enter the URL where this link points to" : "You must
enter the URL where this link points to"
}
};
必要な説明は日本語化しておいても良いでしょう。
ファイル更新日:2005年09月07日