From: Kimura Youichi Date: Sun, 1 Jun 2014 08:17:11 +0000 (+0900) Subject: TweetThumbnailのローカライズを有効化 X-Git-Tag: OpenTween_v1.2.2~30 X-Git-Url: http://git.osdn.net/view?p=opentween%2Fopen-tween.git;a=commitdiff_plain;h=e072c68034232f545d09351c74829807c508269b TweetThumbnailのローカライズを有効化 --- diff --git a/OpenTween/OpenTween.csproj b/OpenTween/OpenTween.csproj index 448eed46..eaef7914 100644 --- a/OpenTween/OpenTween.csproj +++ b/OpenTween/OpenTween.csproj @@ -607,6 +607,9 @@ TabsDialog.cs + + TweetThumbnail.cs + TweetThumbnail.cs diff --git a/OpenTween/TweetThumbnail.Designer.cs b/OpenTween/TweetThumbnail.Designer.cs index 3b30ac6f..6cd04a20 100644 --- a/OpenTween/TweetThumbnail.Designer.cs +++ b/OpenTween/TweetThumbnail.Designer.cs @@ -29,6 +29,7 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TweetThumbnail)); this.scrollBar = new System.Windows.Forms.VScrollBar(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); this.panelPictureBox = new System.Windows.Forms.Panel(); @@ -36,32 +37,27 @@ // // scrollBar // - this.scrollBar.Dock = System.Windows.Forms.DockStyle.Right; + resources.ApplyResources(this.scrollBar, "scrollBar"); this.scrollBar.LargeChange = 1; - this.scrollBar.Location = new System.Drawing.Point(183, 0); this.scrollBar.Maximum = 10; this.scrollBar.Name = "scrollBar"; - this.scrollBar.Size = new System.Drawing.Size(17, 188); - this.scrollBar.TabIndex = 0; + this.toolTip.SetToolTip(this.scrollBar, resources.GetString("scrollBar.ToolTip")); this.scrollBar.ValueChanged += new System.EventHandler(this.scrollBar_ValueChanged); // // panelPictureBox // - this.panelPictureBox.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelPictureBox.Location = new System.Drawing.Point(0, 0); + resources.ApplyResources(this.panelPictureBox, "panelPictureBox"); this.panelPictureBox.Name = "panelPictureBox"; - this.panelPictureBox.Size = new System.Drawing.Size(183, 188); - this.panelPictureBox.TabIndex = 1; + this.toolTip.SetToolTip(this.panelPictureBox, resources.GetString("panelPictureBox.ToolTip")); // // TweetThumbnail // - this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F); + resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.panelPictureBox); this.Controls.Add(this.scrollBar); - this.Margin = new System.Windows.Forms.Padding(4); this.Name = "TweetThumbnail"; - this.Size = new System.Drawing.Size(200, 188); + this.toolTip.SetToolTip(this, resources.GetString("$this.ToolTip")); this.ResumeLayout(false); } diff --git a/OpenTween/TweetThumbnail.en.resx b/OpenTween/TweetThumbnail.en.resx new file mode 100644 index 00000000..484517a0 --- /dev/null +++ b/OpenTween/TweetThumbnail.en.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + + + + + + + \ No newline at end of file diff --git a/OpenTween/TweetThumbnail.resx b/OpenTween/TweetThumbnail.resx index 8766f298..52b16211 100644 --- a/OpenTween/TweetThumbnail.resx +++ b/OpenTween/TweetThumbnail.resx @@ -117,6 +117,90 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + + + + panelPictureBox + + + $this + + + 1 + + + System.Windows.Forms.UserControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + 0 + + + TweetThumbnail + + + scrollBar + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 0 + + + + 143, 150 + + + System.Windows.Forms.VScrollBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + Fill + + + 160, 150 + + + 2, 2, 2, 2 + + + $this + + + + + + 1 + + + 0, 0 + + + 143, 0 + + + Right + + + System.Windows.Forms.ToolTip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 96, 96 + + + 17, 150 + + + toolTip + + + True + 17, 17