Permalink
Browse files

* add France and Indonesia.

  • Loading branch information...
1 parent eb71d68 commit 036a8f2bbaa20b7950e2d621529ee9c52c6325c8 @kou committed Mar 31, 2009
View
@@ -5,7 +5,7 @@ def tiny_mcs_language
if TINY_MCE_AVAILABLE_LANGUAGES.include?(language)
language
else
- "en"
+ TINY_MCE_FALLBACK_LANGUAGES[language] || "en"
end
end
@@ -3,6 +3,8 @@
AVAILABLE_LANGUAGES = [
"bn", # ベンガル語
"es", # スペイン語
+ "fr", # フランス語
+ "id", # インドネシア語
"ja", # 日本語
"ko", # 韓国語
"ms", # マレー語
@@ -20,8 +22,10 @@
"zh" => "cn", # 中国
}
-
langs = Dir[File.join(RAILS_ROOT, "public", "tiny_mce", "langs", "*.js")]
TINY_MCE_AVAILABLE_LANGUAGES = langs.collect do |path|
File.basename(path, ".*")
end
+TINY_MCE_FALLBACK_LANGUAGES = {
+ "id" => "ms",
+}
View
@@ -3,6 +3,7 @@
ja:
bn: ベンガル語
es: スペイン語
+ fr: フランス語
id: インドネシア語
ja: やさしいにほんご
ko: 韓国語
@@ -109,6 +109,16 @@ span.tab-language-icon
background-image: url(../images/icons/country/es.png) !important;
}
+.language-icon-fr
+{
+ background-image: url(../images/icons/country/fr.png) !important;
+}
+
+.language-icon-id
+{
+ background-image: url(../images/icons/country/id.png) !important;
+}
+
.language-icon-ja
{
background-image: url(../images/icons/country/jp.png) !important;
@@ -0,0 +1,11 @@
+tinyMCE.addI18n('fr.simple',{
+bold_desc:"Gras (Ctrl+B)",
+italic_desc:"Italique (Ctrl+I)",
+underline_desc:"Soulign\u00E9 (Ctrl+U)",
+striketrough_desc:"Barr\u00E9",
+bullist_desc:"Liste non-num\u00E9rot\u00E9e",
+numlist_desc:"Liste num\u00E9rot\u00E9e",
+undo_desc:"Annuler (Ctrl+Z)",
+redo_desc:"R\u00E9tablir (Ctrl+Y)",
+cleanup_desc:"Nettoyer le code non propre"
+});

0 comments on commit 036a8f2

Please sign in to comment.