Skip to content

Commit

Permalink
Fix typo in main camera not found error message.
Browse files Browse the repository at this point in the history
Add Japanese language.
  • Loading branch information
hwi-middle committed May 2, 2022
1 parent 348f1c1 commit 2c824e5
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Assets/JB STUDIO/EZ2Screenshot/Editor/EZ2ScreenshotWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private void OnGUI()
// Set helper object
if (Camera.main == null)
{
Debug.LogError("There is no main camera.");
Debug.LogError(GetLocalizedString("log_error_main_cam_not_exit"));
return;
}

Expand Down Expand Up @@ -229,9 +229,15 @@ private void SetLanguageOnGUI()
{
"English",
"한국어",
"日本語"
};
EZ2ScreenshotLocalizer.CurrentLang =
(EZ2ScreenshotLocalizer.EZ2ScreenshotLang) EditorGUILayout.Popup(GetLocalizedString("gui_language_yours"), (int) EZ2ScreenshotLocalizer.CurrentLang, displayedLanguage);

if (EZ2ScreenshotLocalizer.CurrentLang == EZ2ScreenshotLocalizer.EZ2ScreenshotLang.Japanese)
{
GUILayout.Label("翻訳: Ryu Siyeong", EditorStyles.boldLabel);
}
}

private void SetPathOnGUI()
Expand Down
81 changes: 81 additions & 0 deletions Assets/JB STUDIO/EZ2Screenshot/Lang/JP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"gui_language_title": "言語設定",
"gui_language_yours": "言語",
"gui_error_title": "エラー",
"gui_error_file_exist_question": "ファイルは既に存在します。上書きしますか?",
"gui_error_file_exist_cancel": "キャンセル",
"gui_error_file_exist_retry": "再試行",
"gui_error_file_exist_replace": "上書き",
"gui_error_file_exist_open_existing_file": "対応するファイルを開く",
"gui_error_file_exist_open_existing_dir": "該当するフォルダを開く",
"gui_take_screenshot": "スクリーンショットの撮影",
"gui_save_path_title": "保存場所",
"gui_current_path": "現在の場所",
"gui_save_to": "スクリーンショットの保存場所を選択",
"gui_dir_proj": "プロジェクトの場所(デフォルト)",
"gui_dir_desktop": "デスクトップ",
"gui_dir_my_pictures": "ピクチャ",
"gui_dir_custom": "直接設定",
"gui_open_cur_path": "現在の保存場所をエクスプローラーで開く",
"gui_create_subfolder": "サブフォルダの作成",
"gui_subfolder_name": "サブフォルダの名",
"gui_file_name_title": "ファイルの名",
"gui_advanced_mode": "詳細モード",
"gui_final_file_name": "最終ファイルの名",
"gui_file_name": "ファイルの名",
"gui_reset_index": "番号の初期化",
"gui_prefix_and_suffix": "ヘッダー & フッター",
"gui_prefix": "ヘッダー",
"gui_suffix": "フッター",
"gui_separator": "区切り文字",
"gui_miscellaneous": "その他の設定",
"gui_format": "フォーマット",
"gui_capture_mode": "キャプチャモード",
"gui_advanced_guide_title": "詳細モードフォーマットガイド",
"gui_advanced_guide_date": "日付",
"gui_advanced_guide_time": "時間",
"gui_advanced_guide_idx": "番号",
"gui_advanced_guide_product": "Productの名",
"gui_advanced_guide_scene": "シーンの名",
"gui_advanced_guide_example": "たとえば、<b>\"{Product}_Screenshot\"</b> は <b>\"{productName}_Screenshot\"</b> に変換されます。",
"gui_advanced_date_title": "日付設定",
"gui_advanced_date_current_format": "現在の日付形式",
"gui_advanced_date_date_format": "日付形式",
"gui_advanced_date_item_mdy": "月-日-年",
"gui_advanced_date_item_dmy": "日-月-年",
"gui_advanced_date_item_ymd": "年-月-日",
"gui_advanced_date_2digit_year": "年度を二文字に",
"gui_advanced_date_separator": "区切り文字",
"gui_advanced_date_leading_zero": "0 で始まる",
"gui_advanced_time_title": "時間設定",
"gui_advanced_time_current_format": "現在の時間形式",
"gui_advanced_time_12h_24h": "12時間/24時間",
"gui_advanced_time_item_12h": "12時間",
"gui_advanced_time_item_24h": "24時間",
"gui_advanced_time_show_sec": "秒単位の表示",
"gui_advanced_time_separator": "区切り文字",
"gui_advanced_time_leading_zero": "0 で始まる",
"gui_advanced_index_title": "番号設定",
"gui_advanced_index_info_current_index": "現在の番号",
"gui_advanced_index_info_next_index": "次の番号",
"gui_advanced_index_current_index": "現在の番号",
"gui_advanced_index_incremental_value": "増加値",
"gui_advanced_index_minimum_digits": "最小桁数",
"gui_separator_item_space": "空白",
"gui_separator_item_none": "なし",
"gui_prefix_suffix_item_none": "使用しない",
"gui_prefix_suffix_item_date": "日付",
"gui_prefix_suffix_item_time": "時間",
"gui_item_include_ui": "UI を含める",
"gui_item_exclude_ui": "UI を除外",
"gui_error_set_valid_path": "スクリーンショットを保存する有効な場所を指定してください。",
"log_error_main_cam_not_exit": "メインカメラがありません。",
"log_error_file_not_exist_now": "このファイルは現在存在しません。",
"log_error_dir_not_exit_now": "そのフォルダは現在存在しません。",
"log_info_new_path": "新しい場所指定: {path}",
"log_error_editor_not_play_mode": "Unity Editor はプレイモードである必要があります。",
"log_error_path_invalid": "場所が無効です。",
"log_error_empty_subfolder_name": "サブフォルダーの名を入力してください。",
"log_error_already_exist": "{fileName}.{fileFormat} は既に存在します。",
"log_info_saved_as": "保存済み: {path}\\{fileName}.{fileFormat}"
}
7 changes: 7 additions & 0 deletions Assets/JB STUDIO/EZ2Screenshot/Lang/JP.json.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public static class EZ2ScreenshotLocalizer
public enum EZ2ScreenshotLang
{
English,
Korean
Korean,
Japanese,
}

private static EZ2ScreenshotLang _currentLang;
Expand Down Expand Up @@ -45,6 +46,9 @@ private static void Init()
case EZ2ScreenshotLang.Korean:
fileName = "KR";
break;
case EZ2ScreenshotLang.Japanese:
fileName = "JP";
break;
default:
Debug.Assert(false, CurrentLang);
return;
Expand Down

0 comments on commit 2c824e5

Please sign in to comment.