From 3d70c065c37dfea502ebb1141360c24f3f637fc2 Mon Sep 17 00:00:00 2001 From: RKrom Date: Sat, 21 Apr 2012 14:30:21 +0000 Subject: [PATCH] Small fixes git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1812 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Forms/PrintOptionsDialog.Designer.cs | 8 ++++++-- GreenshotPlugin/Controls/GreenshotForm.cs | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Greenshot/Forms/PrintOptionsDialog.Designer.cs b/Greenshot/Forms/PrintOptionsDialog.Designer.cs index 7936d3c57..482678202 100644 --- a/Greenshot/Forms/PrintOptionsDialog.Designer.cs +++ b/Greenshot/Forms/PrintOptionsDialog.Designer.cs @@ -138,6 +138,7 @@ namespace Greenshot.Forms // this.button_ok.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.button_ok.DialogResult = System.Windows.Forms.DialogResult.OK; + this.button_ok.LanguageKey = "OK"; this.button_ok.Location = new System.Drawing.Point(187, 207); this.button_ok.Name = "button_ok"; this.button_ok.Size = new System.Drawing.Size(75, 23); @@ -164,6 +165,7 @@ namespace Greenshot.Forms // button_cancel // this.button_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.button_cancel.LanguageKey = "CANCEL"; this.button_cancel.Location = new System.Drawing.Point(268, 207); this.button_cancel.Name = "button_cancel"; this.button_cancel.Size = new System.Drawing.Size(75, 23); @@ -182,6 +184,7 @@ namespace Greenshot.Forms this.checkboxPrintInverted.PropertyName = "OutputPrintInverted"; this.checkboxPrintInverted.Size = new System.Drawing.Size(141, 17); this.checkboxPrintInverted.TabIndex = 28; + this.checkboxPrintInverted.Text = "Print with inverted colors"; this.checkboxPrintInverted.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.checkboxPrintInverted.UseVisualStyleBackColor = true; // @@ -194,8 +197,9 @@ namespace Greenshot.Forms this.checkbox_grayscale.Location = new System.Drawing.Point(12, 181); this.checkbox_grayscale.Name = "checkbox_grayscale"; this.checkbox_grayscale.PropertyName = "OutputPrintGrayscale"; - this.checkbox_grayscale.Size = new System.Drawing.Size(56, 17); + this.checkbox_grayscale.Size = new System.Drawing.Size(138, 17); this.checkbox_grayscale.TabIndex = 29; + this.checkbox_grayscale.Text = "Force grayscale printing"; this.checkbox_grayscale.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.checkbox_grayscale.UseVisualStyleBackColor = true; // @@ -219,7 +223,7 @@ namespace Greenshot.Forms this.MinimizeBox = false; this.Name = "PrintOptionsDialog"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; - this.Text = "string ###printoptions_title### not found"; + this.Text = "Greenshot print options"; this.ResumeLayout(false); this.PerformLayout(); } diff --git a/GreenshotPlugin/Controls/GreenshotForm.cs b/GreenshotPlugin/Controls/GreenshotForm.cs index 931efd686..2ae335e26 100644 --- a/GreenshotPlugin/Controls/GreenshotForm.cs +++ b/GreenshotPlugin/Controls/GreenshotForm.cs @@ -31,6 +31,11 @@ namespace GreenshotPlugin.Controls { designTimeToolStripItems = new Dictionary(); try { ITypeResolutionService typeResService = GetService(typeof(ITypeResolutionService)) as ITypeResolutionService; + + // Add a hard-path if you are using SharpDevelop + // Language.AddLanguageFilePath(@"C:\Greenshot\Greenshot\Languages"); + + // this "type" Assembly currentAssembly = this.GetType().Assembly; string assemblyPath = typeResService.GetPathOfAssembly(currentAssembly.GetName()); string assemblyDirectory = Path.GetDirectoryName(assemblyPath);