-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAspenUserMessages.cs
More file actions
23 lines (23 loc) · 948 Bytes
/
AspenUserMessages.cs
File metadata and controls
23 lines (23 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace ASPEN
{
/// <summary>
/// All Software Projects Eventually Need User Message text translation.
/// Language internationalization (i18n).
/// </summary>
public interface AspenUserMessages
{
/// </summary>
/// Processor for user-facing text of any kind - indirection of exact wording that also enables internationalization (i18n) of the application.
/// also needed by view.
/// object key allows support for less error-prone keys than strings.
/// Typical C# implementation is equivalent to string.Format(resourceManager.GetString(key), args)
/// </summary>
string Formatted(object key, params object[] args);
/// <summary>
/// Get the unformatted string resource used by <see cref="Formatted(object, object[])"/>.
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
string Translated(object key);
}
}