Table of Contents

Class ApplicationTexts

Namespace
MailFathom.Application.Localization
Assembly
MailFathom.Application.dll

Reads a sentence the service writes for a person, in the language that person chose.

public static class ApplicationTexts
Inheritance
ApplicationTexts
Inherited Members

Remarks

One resource file per language beside this type holds every such sentence the application has, whichever boundary writes it: ApplicationTexts.resx is English and the neutral set, and ApplicationTexts.<language>.resx is each other language. Adding a language is a file and a UserLanguage member, never an edit here beyond naming its culture.

Methods

CultureOf(UserLanguage)

Names the culture a language's resource file is stored under.

GetText(IUserLanguages, ApplicationText, UserId)

Reads one sentence in the language one person chose.

GetText(ApplicationText, UserLanguage)

Reads one sentence in one language.