728x90
다국어 파일은 아래에서 검색해서 다운받으면 됩니다.
https://localization.devexpress.com/Localization/List
다운로드 후 실행하면 파일이 내려받아지는 데 파일이름을 [ko]로 변경하면 됩니다.
위치는 ja, es, de 파일 이 있는 [프로젝트 파일\bin\Debug] 에 저장하면 됩니다.
코드는 아래에서 확인하세요.
using DevExpress.UserSkins;
using DevExpress.XtraEditors;
using System;
using System.Windows.Forms; // 폰트 변경
/* Start : 다국어 적용 */
using System.Globalization;
using System.Threading;
/* End : 다국어 적용 */
namespace HankukErp
{
internal static class Program
{
[STAThread]
private static void Main(string[] args)
{
/* Start : 다국어 적용 */
// Create a new object, representing the German culture.
CultureInfo culture = CultureInfo.CreateSpecificCulture("ko");
// The following line provides localization for the application's user interface.
Thread.CurrentThread.CurrentUICulture = culture;
// The following line provides localization for data formats.
Thread.CurrentThread.CurrentCulture = culture;
// Set this culture as the default culture for all threads in this application.
// Note: The following properties are supported in the .NET Framework 4.5+
CultureInfo.DefaultThreadCurrentCulture = culture;
CultureInfo.DefaultThreadCurrentUICulture = culture;
/* End : 다국어 적용 */
WindowsFormsSettings.DefaultFont = new System.Drawing.Font("맑은 고딕", 9); // 폰트 변경
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
BonusSkins.Register();
Application.Run((System.Windows.Forms.Form) new Form());
}
}
}
각 언어별 코드는 아래 있습니다.
http://www.lingoes.net/en/translator/langcode.htm
[참고]
728x90
반응형
댓글