More Localization
This commit is contained in:
parent
907e73094a
commit
1ac21b2179
5 changed files with 36 additions and 16 deletions
|
|
@ -130,8 +130,10 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
case PrinterCommunication.CommunicationStates.Disconnected:
|
||||
return new LocalizedString("Not connected. Press 'Connect' to enable printing.").Translated;
|
||||
case PrinterCommunication.CommunicationStates.AttemptingToConnect:
|
||||
return new LocalizedString("Attempting to connect...").Translated;
|
||||
case PrinterCommunication.CommunicationStates.AttemptingToConnect:
|
||||
string attemptToConnect = new LocalizedString ("Attempting to Connect").Translated;
|
||||
string attemptToConnectFull = string.Format ("{0}...", attemptToConnect);
|
||||
return attemptToConnectFull;
|
||||
case PrinterCommunication.CommunicationStates.ConnectionLost:
|
||||
case PrinterCommunication.CommunicationStates.FailedToConnect:
|
||||
return new LocalizedString("Unable to communicate with printer.").Translated;
|
||||
|
|
|
|||
|
|
@ -80,7 +80,10 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
if(showExportGCodeButton)
|
||||
{
|
||||
Button exportGCode = textImageButtonFactory.Generate(new LocalizedString("Export as GCode").Translated);
|
||||
string exportGCodeText = new LocalizedString("Export as").Translated;
|
||||
string exportGCodeTextFull = string.Format("{0} GCode", exportGCodeText);
|
||||
|
||||
Button exportGCode = textImageButtonFactory.Generate(exportGCodeTextFull);
|
||||
//exportGCode.HAnchor = Agg.UI.HAnchor.ParentCenter;
|
||||
exportGCode.Click += new ButtonBase.ButtonEventHandler(exportGCode_Click);
|
||||
topToBottom.AddChild(exportGCode);
|
||||
|
|
|
|||
|
|
@ -1,19 +1,30 @@
|
|||
<Properties>
|
||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
||||
<MonoDevelop.Ide.Workbench ActiveDocument="Localizations\LocalizedString.cs">
|
||||
<MonoDevelop.Ide.Workbench ActiveDocument="c:\Users\Matter Hackers 1\Development\agg-sharp\examples\GCodeVisualizer\GCodeFile.cs">
|
||||
<Files>
|
||||
<File FileName="Localizations\LocalizedString.cs" Line="14" Column="10" />
|
||||
<File FileName="PrintLibrary\PrintLibraryListItem.cs" Line="1" Column="1" />
|
||||
<File FileName="ActionBar\ActionBarBaseControls.cs" Line="1" Column="1" />
|
||||
<File FileName="ActionBar\HelpTextWidget.cs" Line="1" Column="1" />
|
||||
<File FileName="PrintQueue\PrintQueueMenu.cs" Line="1" Column="1" />
|
||||
<File FileName="..\MatterControlPlugins\PrintNotifications\NotificationForm.cs" Line="1" Column="1" />
|
||||
<File FileName="PrinterCommunication.cs" Line="1" Column="1" />
|
||||
<File FileName="PrintLevelWizard.cs" Line="1" Column="1" />
|
||||
<File FileName="PrinterCommunication.cs" Line="491" Column="7" />
|
||||
<File FileName="PrintQueue\QueueControlsWidget.cs" Line="1" Column="1" />
|
||||
<File FileName="CustomWidgets\ExportQueueItemWindow.cs" Line="84" Column="78" />
|
||||
<File FileName="PrintLibrary\ExportLibraryItemWindow.cs" Line="83" Column="74" />
|
||||
<File FileName="PartPreviewWindow\GcodeViewBasic.cs" Line="459" Column="1" />
|
||||
<File FileName="Localizations\LocalizedString.cs" Line="15" Column="16" />
|
||||
<File FileName="c:\Users\Matter Hackers 1\Development\agg-sharp\Gui\FileDialogs\FileDialog.cs" Line="14" Column="6" />
|
||||
<File FileName="ActionBar\HelpTextWidget.cs" Line="136" Column="51" />
|
||||
<File FileName="c:\Users\Matter Hackers 1\Development\agg-sharp\PlatformWin32\win32\WidgetForWindowsFormsAbstract.cs" Line="195" Column="1" />
|
||||
<File FileName="c:\Users\Matter Hackers 1\Development\agg-sharp\examples\GCodeVisualizer\GCodeViewWidget.cs" Line="399" Column="1" />
|
||||
<File FileName="c:\Users\Matter Hackers 1\Development\agg-sharp\examples\GCodeVisualizer\GCodeFile.cs" Line="1" Column="1" />
|
||||
</Files>
|
||||
</MonoDevelop.Ide.Workbench>
|
||||
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<BreakpointStore />
|
||||
<BreakpointStore>
|
||||
<Catchpoint exceptionName="System.Reflection.TargetInvocationException" includeSubclasses="True" />
|
||||
<Breakpoint file="c:\Users\Matter Hackers 1\Development\agg-sharp\examples\GCodeVisualizer\GCodeViewWidget.cs" line="399" column="31" />
|
||||
<Breakpoint file="c:\Users\Matter Hackers 1\Development\agg-sharp\examples\GCodeVisualizer\GCodeViewWidget.cs" line="241" column="1" />
|
||||
<Breakpoint file="c:\Users\Matter Hackers 1\Development\agg-sharp\examples\GCodeVisualizer\GCodeFile.cs" line="186" column="53" />
|
||||
<Breakpoint file="c:\Users\Matter Hackers 1\Development\agg-sharp\examples\GCodeVisualizer\GCodeFile.cs" line="242" column="36" />
|
||||
<Breakpoint file="c:\Users\Matter Hackers 1\Development\agg-sharp\examples\GCodeVisualizer\GCodeFile.cs" line="519" column="1" />
|
||||
<Breakpoint file="c:\Users\Matter Hackers 1\Development\agg-sharp\examples\GCodeVisualizer\GCodeFile.cs" line="639" column="1" />
|
||||
</BreakpointStore>
|
||||
</MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
|
||||
</Properties>
|
||||
|
|
@ -80,7 +80,10 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
|
||||
if (showExportGCodeButton)
|
||||
{
|
||||
Button exportGCode = textImageButtonFactory.Generate(new LocalizedString("Export as GCode").Translated);
|
||||
string exportGCodeText = new LocalizedString("Export as").Translated;
|
||||
string exportGCodeTextFull = string.Format ("{0} GCode", exportGCodeText);
|
||||
|
||||
Button exportGCode = textImageButtonFactory.Generate(exportGCodeTextFull);
|
||||
//exportGCode.HAnchor = Agg.UI.HAnchor.ParentCenter;
|
||||
exportGCode.Click += new ButtonBase.ButtonEventHandler(exportGCode_Click);
|
||||
topToBottom.AddChild(exportGCode);
|
||||
|
|
|
|||
|
|
@ -486,8 +486,9 @@ namespace MatterHackers.MatterControl
|
|||
return new LocalizedString("Not Connected").Translated;
|
||||
case CommunicationStates.Disconnecting:
|
||||
return new LocalizedString("Disconnecting").Translated;
|
||||
case CommunicationStates.AttemptingToConnect:
|
||||
return "Connecting...";
|
||||
case CommunicationStates.AttemptingToConnect:
|
||||
string connectingMessageTxt = new LocalizedString ("Connecting").Translated;
|
||||
return string.Format("{0}...",connectingMessageTxt);
|
||||
case CommunicationStates.ConnectionLost:
|
||||
return new LocalizedString("Connection Lost").Translated;
|
||||
case CommunicationStates.FailedToConnect:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue