SSQLE  1.0
Simple SQL Editor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties
Public Member Functions | Private Attributes | List of all members
SSQLE.EnglishLang Class Reference

Implements textual strings in english language for this application. Does not provide strings for hardcoded items in GUI. More...

Inheritance diagram for SSQLE.EnglishLang:
SSQLE.ILang

Public Member Functions

bool TryGetValue (LangStrings index, out string value)
 
See also
ILang.TryGetValue

. More...

 

Private Attributes

readonly Dictionary
< LangStrings, string > 
lang
 Mapping of LangStrings to textual representations. Mapped value might contain {0}, {1}, ... values to be replaced. More...
 

Detailed Description

Implements textual strings in english language for this application. Does not provide strings for hardcoded items in GUI.

Member Function Documentation

bool SSQLE.EnglishLang.TryGetValue ( LangStrings  index,
out string  value 
)

See also
ILang.TryGetValue

.

Parameters
indexLangStrings which textual representation we want.
valueout value where to store textual representation of index .
Returns
True if textual representation was provided, false otherwise.

Implements SSQLE.ILang.

Member Data Documentation

readonly Dictionary<LangStrings, string> SSQLE.EnglishLang.lang
private
Initial value:
= new Dictionary<LangStrings, string>()
{
{ LangStrings.Error, "Error" },
{ LangStrings.XmlLoadExceptionWellFormed, "Failed to load XML. XML is not well formed." },
{ LangStrings.XmlLoadExceptionValid, "Failed to load XML. XML can't be validated." },
{ LangStrings.NewUser, "<New user>" },
{ LangStrings.UpdateExistingUser, "Are you sure you want to modify the user?" },
{ LangStrings.OverrideExistingUser, "User {0} already exists. Override?" },
{ LangStrings.SaveSettingsException, "Settings can not be saved. Value in '{0}' is invalid." },
{ LangStrings.InvalidConnectionName, "Connection name is not valid." },
{ LangStrings.InvalidConnectionHostname, "Connection host name is not valid." },
{ LangStrings.InvalidConnectionSid, "Connection SID is not valid." },
{ LangStrings.InvalidConnectionPort, "Connection port is not valid." },
{ LangStrings.ConnectionFailed, "Can't connect to server: {0}" },
{ LangStrings.QueryNotExecuted, "Can't execute the query: {0}" },
{ LangStrings.Elapsed, "Elapsed: {0} sec." },
{ LangStrings.RecordsAffected, "Records affected: {0}" },
{ LangStrings.ExecutingQuery, "Executing the query." },
{ LangStrings.SaveFile, "Save file" },
{ LangStrings.CommaSeparatedValuesFilter, "Comma separated values|*.csv" },
{ LangStrings.SqlFileFilter, "SQL File|*.sql" },
{ LangStrings.FileSaved, "File {0} saved." },
{ LangStrings.DeleteUserProfile, "Are you sure you want to delete profile {0}." },
{ LangStrings.CantSaveSettingsOnExit, "Settings could not be saved. Do you still want to close?\n{0}" },
{ LangStrings.SaveQueryInvalidIdentifier, "That is not valid name as query identifier." },
{ LangStrings.QueryAlreadyExists, "Query {0} already exists." },
{ LangStrings.QueryNotFound, "Query {0} not found." },
}

Mapping of LangStrings to textual representations. Mapped value might contain {0}, {1}, ... values to be replaced.


The documentation for this class was generated from the following file: