Skip to content

Instantly share code, notes, and snippets.

@chadmyers
Created March 9, 2012 16:16
Show Gist options
  • Save chadmyers/2007311 to your computer and use it in GitHub Desktop.
Save chadmyers/2007311 to your computer and use it in GitHub Desktop.
Dovetail use of FubuLocalization
<div id="login-header">
<h1>Dovetail Software</h1>
<h2 id="login-title"><%: UserMessageKeys.AGENT_LOGIN_HEADING %></h2>
</div>
using FubuLocalization;
namespace DovetailCRM.Web
{
public class UserMessageKeys : StringToken
{
protected UserMessageKeys(string key) : this(key, null)
{
}
protected UserMessageKeys(string key, string default_EN_US_Text)
: base(key, default_EN_US_Text)
{
}
public static readonly StringToken AGENT_LOGIN_HEADING = new UserMessageKeys("AGENT_LOGIN_HEADING", "Login");
public static readonly StringToken IDENTIFIER_KEY = new UserMessageKeys("IDENTIFIER_KEY", "Identifier");
public static readonly StringToken TAG_DOES_NOT_EXIST_KEY = new UserMessageKeys("TAG_DOES_NOT_EXIST");
public static readonly StringToken CANNOT_REJECT_AN_ITEM_THAT_IS_NOT_IN_A_QUEUE_KEY = new UserMessageKeys("CANNOT_REJECT_AN_ITEM_THAT_IS_NOT_IN_A_QUEUE");
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment