forked from rubberduck-vba/Rubberduck
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added language settings; rubberduck-vba#566, rubberduck-vba#318 - for…
… some reason the language displayed in the dropdown always seems to be in English.
- Loading branch information
1 parent
c7cd4bf
commit 6f66c79
Showing
15 changed files
with
198 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System.Globalization; | ||
using System.Xml.Serialization; | ||
using Rubberduck.UI; | ||
|
||
namespace Rubberduck.Config | ||
{ | ||
[XmlType(AnonymousType = true)] | ||
public class DisplayLanguageSetting | ||
{ | ||
[XmlAttribute] | ||
public string Code { get; set; } | ||
|
||
public DisplayLanguageSetting() | ||
{ | ||
// serialization constructor | ||
} | ||
|
||
public DisplayLanguageSetting(string code) | ||
{ | ||
Code = code; | ||
_name = RubberduckUI.ResourceManager.GetString("Language_" + Code.Substring(0, 2).ToUpper()); | ||
} | ||
|
||
private readonly string _name; | ||
|
||
[XmlIgnore] | ||
public string Name { get { return _name; } } | ||
|
||
public override bool Equals(object obj) | ||
{ | ||
var other = (DisplayLanguageSetting) obj; | ||
return Code.Equals(other.Code); | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
return Code.GetHashCode(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
RetailCoder.VBE/UI/Settings/GeneralSettingsControl.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.