private static void Initialize() { Gettext.SetLocalizedTexts(localizedTexts: new Dictionary <string, IDictionary <string, string> > { { "ja", new Dictionary <string, string> { { "VRChat SDK2 or SDK3 has not been imported.", "VRChat SDK2、または SDK3 がインポートされていません。" }, { "Enable Eye Movement", "視線追従を有効化" }, { "Move Eye Bone To Front For Eye Movement", "目ボーンを手前に移動(視線用)" }, { "Swaying Objects", "揺れ物" }, { "Take Over Swaying Parameters", "揺れパラメータ引き継ぎ" }, { "Shoulder Heights", "肩の高さ" }, { "Armature Height", "Armatureの高さ" }, { "Combine Meshes", "メッシュの結合" }, { "If you do not “Combine Meshes”," + " and any of VRMBlendShapes references meshes other than the mesh having most shape keys" + " or the mesh is not direct child of the avatar root," + " the avatar will not be converted correctly.", "「メッシュの結合」を行わず、かつもっともシェイプキーを多くもつメッシュ以外を参照するVRMBlendShapeが存在するか" + "そのメッシュがアバタールートの直下にない場合、正常に変換できません。" }, { "Use Shape Key Normals And Tangents", "シェイプキーの法線・接線を利用" }, { "Blend Shape For Fingerpoint", "FINGERPOINTへ割り当てる表情" }, { "There is no user-defined VRMBlensShape with the name “{0}”.", "「{0}」という名前のユーザー定義VRMBlensShapeは存在しません。" }, { "Use Animator For Blinks", "まばたきにAnimatorを使用" }, { "Callback Functions", "コールバック関数" }, { "Not set “{0}” component.", "{0}コンポーネントが設定されていません。" }, { "VRMSpringBones with the below Comments do not exist.", "以下のCommentを持つVRMSpringBoneは存在しません。" }, { "Renderers on the below name GameObject do not exist.", "レンダラーが設定されたGameObjectのうち、以下の名前を持つものは存在しません。" }, { "Unity {0} is running. If you are using a different version than {1}, VRChat SDK might not work correctly. Recommended using Unity downloaded from {2} .", "Unity {0} が起動しています。{1} 以外のバージョンでは、VRChat SDK が正常に動作しない可能性があります。{2} からダウンロードした Unity の利用を推奨します。" }, { "The number of polygons is {0}.", "ポリゴン数が{0}です。" }, { "The number of Skinned Mesh Renderer components is {0}.", "Skinned Mesh Rendererコンポーネントの数 (ウェイトが設定されているメッシュ数) が{0}です。" }, { "The number of (non-Skinned) Mesh Renderer is {0}.", "Mesh Rendererコンポーネントの数 (ウェイトが設定されていないメッシュ数) が{0}です。" }, { "The number of material slots (sub-meshes) is {0}.", "マテリアルスロット数 (サブメッシュ数) が{0}です。" }, { "The number of Bones is {0}.", "ボーン数が{0}です。" }, { "If this value exceeds {0}, the avatar will not shown under the default user setting.", "この値が{0}を超えていると、デフォルトのユーザー設定ではアバターが表示されません。" }, { "The “Dynamic Bone Simulated Bone Count” is {0}.", "「Dynamic Bone Simulated Bone Count」(Dynamic Boneで揺れるボーンの数) が{0}です。" }, { "The “Dynamic Bone Collision Check Count” is {0}.", "「Dynamic Bone Collision Check Count」(Dynamic Boneで揺れるボーンの数×Dynamic Bone Colliderの数) が{0}です。" }, { "If this value exceeds {0}, the default user setting disable all Dynamic Bones.", "この値が{0}を超えていると、デフォルトのユーザー設定ではすべてのDynamic Boneが無効化されます。" }, { "Duplicate and Convert", "複製して変換" }, { "The shoulders is in {0} Unit. You can not upload, if the shoulders is not in over than {1} Unit.", "肩が {0} Unit の位置にあります。{1} Unit 以上でなければアップロードできません。" }, { "The avatar is scaled to {0} times to be settled in uploadable shoulders height {1} Unit.", "アバターを{0}倍に拡大し、アップロード可能な肩の高さ {1} Unit を超えるようにしました。" }, { "Converting these materials (for VRChat Render Queue bug) was failed.", "以下のマテリアルの変換 (VRChatのRender Queueバグ対策) が失敗しました。" }, { "“Texture Mipmap Streaming” was enabled on these each textures.", "以下のテクスチャで Texture Mipmap Streaming を有効化しました。" }, { "Converting is completed.", "変換が完了しました。" }, { "OK", "OK" }, } } }); Gettext.SetLocale(clientLang: Locales.ConvertToLangtagFromSystemLanguage(systemLanguage: Application.systemLanguage)); }
// Создание изменение интерфейса public void EditInterface(string lang) { Gettext.LanguageCode = lang; settingsToolStripMenuItem.Text = Gettext._("Settings"); windowToolStripMenuItem.Text = Gettext._("Window"); chartToolStripMenuItem.Text = Gettext._("Chart"); AboutToolStripMenuItem.Text = Gettext._("About"); создателиToolStripMenuItem.Text = Gettext._("Autors"); helpToolStripMenuItem1.Text = Gettext._("Help"); currencyPairsToolStripMenuItem.Text = Gettext._("Currency pairs"); eURUSDToolStripMenuItem.Text = Gettext._("EUR/USD"); USDJPYToolStripMenuItem.Text = Gettext._("USD/JPY"); langToolStripMenuItem.Text = Gettext._("Russian"); }
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { label.text = Gettext._(label.text); switch (property.propertyType) { case SerializedPropertyType.Float: var attribute = (LocalizableAttribute)this.attribute; EditorGUI.Slider(position, property, attribute.min, attribute.max, label); break; default: EditorGUI.PropertyField(position, property, label); break; } }
private static void Initialize() { Gettext.SetLocalizedTexts(localizedTexts: new Dictionary <string, IDictionary <string, string> > { { "ja", new Dictionary <string, string> { { "“{0}” is not root object.", "「{0}」はルートオブジェクトではありません。" }, { "“{0}”and its VRMBlendShapes will be overwritten.", "「{0}」、およびそのVRMBlendShapeは上書きされます。" }, { "“{0}”will be overwritten.", "「{0}」は上書きされます。" }, { "“{0}” is not set “{1}” component.", "「{0}」に「{1}」コンポーネントが設定されていません。" }, { "“{0}”’s “{1}” is null.", "「{0}」の「{1}」が null です。" }, { "“{0}” and “{1}” are instances of same prefab.", "「{0」と「{1}」は同一のプレハブのインスタンスです。" }, { "Copy and Paste", "コピー&ペースト" }, { "Settings copying and pasting is completed.", "設定のコピー&ペーストが完了しました。" }, { "OK", "OK" }, } } }); Gettext.SetLocale(clientLang: Locales.ConvertToLangtagFromSystemLanguage(systemLanguage: Application.systemLanguage)); }
/// <summary> /// Метод закрытия приложения /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnClosing(object sender, FormClosingEventArgs e) { string mess = ""; mess = Gettext._("Are You Sure?"); if (MessageBox.Show(mess, "", MessageBoxButtons.YesNo) == DialogResult.No) { e.Cancel = true; Activ.Form1 = false; } else { // Продолжить закрытие e.Cancel = false; // Скрыть форму до закрытия this.Hide(); } }
/// <summary> /// Этот метод проверяет интернет соединение и переводит программу в автономный режим в случае его отсутсвия + /// </summary> /// <param name="value">Название котировки</param> /// <param name="internetActionFinished">оповещении о Окончание запроса </param> public bool ReqestInet(string value, bool internetActionFinished) { bool inet; try { // запрос на сайт var webReq = WebRequest.Create("http://myfirstphpapp-skro.rhcloud.com/get_currency.php?time=" + "0" + "&limit=" + "1" + "&sign=" + value); // получение ответа WebResponse webRes = webReq.GetResponse(); webRes.Close(); inet = true; } catch (Exception ex) { MessageBox.Show(Gettext._("Lack of or inaccessible internet site go offline")); inet = false; } return(inet); }
private void OnWizardCreate() { var components = new List <Type>(); if (this.metaInformation) { components.Add(typeof(VRMMeta)); } if (this.vrmBlendShape) { components.Add(typeof(VRMBlendShapeProxy)); } if (this.firstPerson) { components.Add(typeof(VRMFirstPerson)); } if (this.lookAt) { components.Add(typeof(VRMLookAtHead)); } if (this.vrmSpringBone) { components.Add(typeof(VRMSpringBone)); } CopyVRMSettings.Copy( source: this.sourceAvatar.gameObject, destination: this.destinationAvatar.gameObject, components ); EditorUtility.DisplayDialog( MenuItems.Name + "-" + MenuItems.Version, Gettext._("Settings copying and pasting is completed."), Gettext._("OK") ); }
/// <summary> /// Конструктор стартового состояния окна /// </summary> /// <param name="x">размер по оси x</param> /// <param name="y">размер по оси y</param> public MainForm(int x, int y) { Gettext.LanguageCode = "ru"; string pathDirectory = Application.StartupPath; // Путь к директории string pathFile = pathDirectory + "\\" + "eurusd" + ".txt"; // Путь к файлу c котировками eurusd Methods Time = new Methods(); // проверка интернет соединения ассинхронно tConnect = Task.Run(() => { Internet inCon = new Internet(); InetConnect.Inet = inCon.TryCon("eurusd", sync, internetActionFinished); }); switch (Time.TradeStop(DateTime.Now)) { case "Sat": MessageBox.Show(Gettext._("Forex day off")); break; case "Sun": MessageBox.Show(Gettext._("Forex day off")); break; } this.InitializeComponent(); // размеры контейнера startContainer.Size = new Size(x, y - WSettings.Size.Height); startContainer.Location = new Point(0, 0); // проверка существования директории DirectoryWork.Set(pathDirectory); // проверка существования файла FileInspection.Set(pathFile); // настройка под все экраны xS = x / 1920.0; // настройка под все экраны yS = y / 1080.0; // задание размеров экрана this.Size = new Size(x, y); #region Переменные командной комбинации к Меню текущей форме // командная комбинация клавиш для откытия настроек окна windowToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.W; // командная комбинация клавиш для откытия настроек графика chartToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.C; // командная комбинация клавиш для откытия графика USDEUR eURUSDToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.U; // командная комбинация клавиш для откытия графика EURYPJ USDJPYToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Y; #endregion // Грузящийся курсор Cursor.Current = Cursors.WaitCursor; tConnect.Wait(); // Возвращение к нормальному состоянию Cursor.Current = Cursors.Default; // передача строки подключения Bd BasaDan = new Bd("Data Source = (LocalDB)\\MSSQLLocalDB; AttachDbFilename='" + Application.StartupPath + "\\Forex.mdf'; Integrated Security = True; Connect Timeout = 30"); // проверка интернет соединения if (true == InetConnect.Inet) { tTask = LoadBdQuote(BasaDan); List <int> timeL = new List <int>(); List <double> sellL = new List <double>(); List <double> buyL = new List <double>(); // получение событий парралельно ParserEventFabric Parse = new ParserEventFabric(); BasaDan.LoadInBdEvent("https://myfirstphpapp-skro.rhcloud.com/get_Event.php", BasaDan.SelectLastIdEvent(), Parse); ParserEventGroupFabric Parse1 = new ParserEventGroupFabric(); BasaDan.LoadInBdEventGroup("https://myfirstphpapp-skro.rhcloud.com/get_EventGroup.php", BasaDan.SelectLastIdEventGroup(), Parse1); BasaDan.Select("eurusd", ref timeL, ref sellL, ref buyL); } // выбор событий из БД по id //Events = BasaDan.SelectEvent(5000); // выбор событий по Id_Group // Events = BasaDan.SelectSameEvent(20); // выбор грядущих событий // выбор из группы события по id // Groups = BasaDan.SelectEventGroup(500); // выбор группы по name // Groups = BasaDan.SelectEventGroup("'Выступление представителя ФРС США Джеффри Лэкера'"); int NowTime = Convert.ToInt32((DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0, 0)).TotalSeconds - 15) - 3600 * 1; Console.WriteLine(NowTime); FutureEvent = BasaDan.SelectEventTime(1495209600); }
/// <summary> /// The output method window about the creators /// </summary> /// <param name="sender">object</param> /// <param name="e">EventArgs</param> private void CreatoresToolStripMenuItem_Click(object sender, EventArgs e) { // сообщение о создателях MessageBox.Show(Gettext._("Creators \n\nSerobabov Alexandr - executive Director \nBondarev Alexandr - executive Director\nTamarenko Andrey - specialist in web technologies\n\n ©Product Project Mordor")); }
protected override bool DrawWizardGUI() { base.DrawWizardGUI(); this.isValid = true; if (!this.metaInformation && !this.vrmBlendShape && !this.firstPerson && !this.vrmSpringBone) { this.isValid = false; return(true); } EditorGUILayout.HelpBox(string.Format( this.vrmBlendShape ? Gettext._("“{0}”and its VRMBlendShapes will be overwritten.") : Gettext._("“{0}”will be overwritten."), "Destination Avatar" ), MessageType.None); if (this.sourceAvatar && this.destinationAvatar && CopyVRMSettings.GetPrefabAssetPath(this.sourceAvatar.gameObject) == CopyVRMSettings.GetPrefabAssetPath(this.destinationAvatar.gameObject)) { EditorGUILayout.HelpBox(string.Format( Gettext._("“{0}” and “{1}” are instances of same prefab."), "Source Avatar", "Destination Avatar" ), MessageType.Error); this.isValid = false; } foreach (var labelAndAnimator in new Dictionary <string, Animator> { { "Source Avatar", this.sourceAvatar }, { "Destination Avatar", this.destinationAvatar }, }) { if (!labelAndAnimator.Value) { this.isValid = false; continue; } Transform transform = labelAndAnimator.Value.transform; if (transform != transform.root) { EditorGUILayout.HelpBox( string.Format(Gettext._("“{0}” is not root object."), labelAndAnimator.Key), MessageType.Error ); this.isValid = false; continue; } foreach (var typeAndPropertyName in CopyVRMSettings.RequiredComponentsAndFields) { var component = labelAndAnimator.Value.GetComponent(typeAndPropertyName.Key); if (!labelAndAnimator.Value.GetComponent(typeAndPropertyName.Key)) { EditorGUILayout.HelpBox(string.Format( Gettext._("“{0}” is not set “{1}” component."), labelAndAnimator.Key, typeAndPropertyName.Key ), MessageType.Error); this.isValid = false; continue; } if (string.IsNullOrEmpty(typeAndPropertyName.Value)) { continue; } if (typeAndPropertyName.Key.GetField( name: typeAndPropertyName.Value, bindingAttr: BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public ).GetValue(obj: component) == null) { EditorGUILayout.HelpBox(string.Format( Gettext._("“{0}”’s “{1}” is null."), labelAndAnimator.Key, typeAndPropertyName.Key + "." + typeAndPropertyName.Value ), MessageType.Error); this.isValid = false; continue; } } } return(true); }
/// <summary> /// ダイアログを開きます。 /// </summary> internal static void Open() { ScriptableWizard .DisplayWizard <Wizard>(MenuItems.Name + "-" + MenuItems.Version, Gettext._("Copy and Paste")); }