Skip to content

Commit

Permalink
ScadaData: add ProductName phrase
Browse files Browse the repository at this point in the history
  • Loading branch information
2mik committed May 15, 2019
1 parent 5116414 commit 723d4d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ScadaData/ScadaData/CommonPhrases.cs
Expand Up @@ -38,6 +38,7 @@ static CommonPhrases()
SetToDefault();
}

public static string ProductName { get; private set; }
public static string InfoCaption { get; private set; }
public static string QuestionCaption { get; private set; }
public static string ErrorCaption { get; private set; }
Expand Down Expand Up @@ -110,6 +111,7 @@ static CommonPhrases()

private static void SetToDefault()
{
ProductName = Localization.Dict.GetEmptyPhrase("ProductName");
InfoCaption = Localization.Dict.GetEmptyPhrase("InfoCaption");
QuestionCaption = Localization.Dict.GetEmptyPhrase("QuestionCaption");
ErrorCaption = Localization.Dict.GetEmptyPhrase("ErrorCaption");
Expand Down Expand Up @@ -185,6 +187,7 @@ public static void Init()
{
if (Localization.Dictionaries.TryGetValue("Common", out Localization.Dict dict))
{
ProductName = dict.GetPhrase("ProductName", ProductName);
InfoCaption = dict.GetPhrase("InfoCaption", InfoCaption);
QuestionCaption = dict.GetPhrase("QuestionCaption", QuestionCaption);
ErrorCaption = dict.GetPhrase("ErrorCaption", ErrorCaption);
Expand Down
1 change: 1 addition & 0 deletions ScadaData/ScadaData/Lang/ScadaData.en-GB.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<ScadaDataDictionaries>
<Dictionary key="Common">
<Phrase key="ProductName">Rapid SCADA</Phrase>
<Phrase key="InfoCaption">Information</Phrase>
<Phrase key="QuestionCaption">Question</Phrase>
<Phrase key="ErrorCaption">Error</Phrase>
Expand Down
1 change: 1 addition & 0 deletions ScadaData/ScadaData/Lang/ScadaData.ru-RU.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<ScadaDataDictionaries>
<Dictionary key="Common">
<Phrase key="ProductName">Rapid SCADA</Phrase>
<Phrase key="InfoCaption">Информация</Phrase>
<Phrase key="QuestionCaption">Вопрос</Phrase>
<Phrase key="ErrorCaption">Ошибка</Phrase>
Expand Down

0 comments on commit 723d4d8

Please sign in to comment.