Skip to content

Commit

Permalink
Rename wxLANGUAGE_CAMBODIAN to wxLANGUAGE_KHMER.
Browse files Browse the repository at this point in the history
Keep the old name for compatibility.

See wxWidgets#2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
  • Loading branch information
vadz committed Jan 11, 2014
1 parent 4736f13 commit 60a3e0c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion include/wx/language.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ enum wxLanguage
wxLANGUAGE_BRETON,
wxLANGUAGE_BULGARIAN,
wxLANGUAGE_BURMESE,
wxLANGUAGE_CAMBODIAN,
wxLANGUAGE_CATALAN,
wxLANGUAGE_CHINESE,
wxLANGUAGE_CHINESE_SIMPLIFIED,
Expand Down Expand Up @@ -154,6 +153,7 @@ enum wxLanguage
wxLANGUAGE_KASHMIRI_INDIA,
wxLANGUAGE_KAZAKH,
wxLANGUAGE_KERNEWEK,
wxLANGUAGE_KHMER,
wxLANGUAGE_KINYARWANDA,
wxLANGUAGE_KIRGHIZ,
wxLANGUAGE_KIRUNDI,
Expand Down Expand Up @@ -270,6 +270,9 @@ enum wxLanguage
wxLANGUAGE_ZHUANG,
wxLANGUAGE_ZULU,

/// Obsolete synonym.
wxLANGUAGE_CAMBODIAN = wxLANGUAGE_KHMER,

/// For custom, user-defined languages.
wxLANGUAGE_USER_DEFINED
};
Expand Down
5 changes: 4 additions & 1 deletion interface/wx/language.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ enum wxLanguage
wxLANGUAGE_BRETON,
wxLANGUAGE_BULGARIAN,
wxLANGUAGE_BURMESE,
wxLANGUAGE_CAMBODIAN,
wxLANGUAGE_CATALAN,
wxLANGUAGE_CHINESE,
wxLANGUAGE_CHINESE_SIMPLIFIED,
Expand Down Expand Up @@ -139,6 +138,7 @@ enum wxLanguage
wxLANGUAGE_KASHMIRI_INDIA,
wxLANGUAGE_KAZAKH,
wxLANGUAGE_KERNEWEK,
wxLANGUAGE_KHMER,
wxLANGUAGE_KINYARWANDA,
wxLANGUAGE_KIRGHIZ,
wxLANGUAGE_KIRUNDI,
Expand Down Expand Up @@ -255,6 +255,9 @@ enum wxLanguage
wxLANGUAGE_ZHUANG,
wxLANGUAGE_ZULU,

/// Obsolete synonym.
wxLANGUAGE_CAMBODIAN = wxLANGUAGE_KHMER,

/// For custom, user-defined languages.
wxLANGUAGE_USER_DEFINED
};
Expand Down
3 changes: 3 additions & 0 deletions misc/languages/genlang.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def WriteEnum(f, table):
f.write(' %s,\n' % i[0])
knownLangs.append(i[0])
f.write("""
/// Obsolete synonym.
wxLANGUAGE_CAMBODIAN = wxLANGUAGE_KHMER,
/// For custom, user-defined languages.
wxLANGUAGE_USER_DEFINED
};
Expand Down
2 changes: 1 addition & 1 deletion misc/languages/langtabl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ wxLANGUAGE_BOSNIAN bs LANG_BOSNIAN SUBLANG_BOSNIAN_B
wxLANGUAGE_BRETON br - - LTR "Breton"
wxLANGUAGE_BULGARIAN bg_BG LANG_BULGARIAN SUBLANG_DEFAULT LTR "Bulgarian"
wxLANGUAGE_BURMESE my - - LTR "Burmese"
wxLANGUAGE_CAMBODIAN km - - LTR "Cambodian"
wxLANGUAGE_CATALAN ca_ES LANG_CATALAN SUBLANG_DEFAULT LTR "Catalan"
wxLANGUAGE_CHINESE zh_TW LANG_CHINESE SUBLANG_DEFAULT LTR "Chinese"
wxLANGUAGE_CHINESE_SIMPLIFIED zh_CN LANG_CHINESE SUBLANG_CHINESE_SIMPLIFIED LTR "Chinese (Simplified)"
Expand Down Expand Up @@ -115,6 +114,7 @@ wxLANGUAGE_KASHMIRI ks LANG_KASHMIRI SUBLANG_DEFAULT
wxLANGUAGE_KASHMIRI_INDIA ks_IN LANG_KASHMIRI SUBLANG_KASHMIRI_INDIA LTR "Kashmiri (India)"
wxLANGUAGE_KAZAKH kk LANG_KAZAK SUBLANG_DEFAULT LTR "Kazakh"
wxLANGUAGE_KERNEWEK kw_GB - - LTR "Kernewek"
wxLANGUAGE_KHMER km - - LTR "Khmer"
wxLANGUAGE_KINYARWANDA rw - - LTR "Kinyarwanda"
wxLANGUAGE_KIRGHIZ ky - - LTR "Kirghiz"
wxLANGUAGE_KIRUNDI rn - - LTR "Kirundi"
Expand Down
2 changes: 1 addition & 1 deletion src/common/languageinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,6 @@ void wxLocale::InitLanguagesDB()
LNG(wxLANGUAGE_BRETON, "br" , 0 , 0 , wxLayout_LeftToRight, "Breton")
LNG(wxLANGUAGE_BULGARIAN, "bg_BG", LANG_BULGARIAN , SUBLANG_DEFAULT , wxLayout_LeftToRight, "Bulgarian")
LNG(wxLANGUAGE_BURMESE, "my" , 0 , 0 , wxLayout_LeftToRight, "Burmese")
LNG(wxLANGUAGE_CAMBODIAN, "km" , 0 , 0 , wxLayout_LeftToRight, "Cambodian")
LNG(wxLANGUAGE_CATALAN, "ca_ES", LANG_CATALAN , SUBLANG_DEFAULT , wxLayout_LeftToRight, "Catalan")
LNG(wxLANGUAGE_CHINESE, "zh_TW", LANG_CHINESE , SUBLANG_DEFAULT , wxLayout_LeftToRight, "Chinese")
LNG(wxLANGUAGE_CHINESE_SIMPLIFIED, "zh_CN", LANG_CHINESE , SUBLANG_CHINESE_SIMPLIFIED , wxLayout_LeftToRight, "Chinese (Simplified)")
Expand Down Expand Up @@ -668,6 +667,7 @@ void wxLocale::InitLanguagesDB()
LNG(wxLANGUAGE_KASHMIRI_INDIA, "ks_IN", LANG_KASHMIRI , SUBLANG_KASHMIRI_INDIA , wxLayout_LeftToRight, "Kashmiri (India)")
LNG(wxLANGUAGE_KAZAKH, "kk" , LANG_KAZAK , SUBLANG_DEFAULT , wxLayout_LeftToRight, "Kazakh")
LNG(wxLANGUAGE_KERNEWEK, "kw_GB", 0 , 0 , wxLayout_LeftToRight, "Kernewek")
LNG(wxLANGUAGE_KHMER, "km" , 0 , 0 , wxLayout_LeftToRight, "Khmer")
LNG(wxLANGUAGE_KINYARWANDA, "rw" , 0 , 0 , wxLayout_LeftToRight, "Kinyarwanda")
LNG(wxLANGUAGE_KIRGHIZ, "ky" , 0 , 0 , wxLayout_LeftToRight, "Kirghiz")
LNG(wxLANGUAGE_KIRUNDI, "rn" , 0 , 0 , wxLayout_LeftToRight, "Kirundi")
Expand Down

0 comments on commit 60a3e0c

Please sign in to comment.