You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using System ;
using System.Collections.Generic ;
using System.Diagnostics ;
using System.Linq ;
using System.Text ;
using System.Threading.Tasks ;
using System.Windows.Forms ;
namespace MaterialTraceability.Business
{
public class LanguageHelper
{
public static string language { get ; set ; }
public static string ShowMessage ( string Message )
{
string Result = Message ;
switch ( language )
{
case "de-DE" :
if ( Message = = "PLC连接失败" )
{
Result = "PLC Connect Fail" ;
}
if ( Message = = "PLC断开, 重新建立连接" )
{
Result = "PLC Connect Fail,Reconnect..." ;
}
break ;
case "en-US" :
if ( Message = = "PLC连接失败" )
{
Result = "PLC Connect Fail" ;
}
if ( Message = = "PLC断开, 重新建立连接" )
{
Result = "PLC Connect Fail,Reconnect..." ;
}
if ( Message = = "PLC断开, 重新连接失败" )
{
Result = "PLC Connect Fail,Reconnect Fail" ;
}
break ;
case "pl-PL" :
break ;
case "zh-cn" :
break ;
default :
break ;
}
return Result ;
}
}
}