DocumentViewerTranslations Property

Gets or sets a value that specifies the custom translations for the document viewer.

The document viewer has about 111 language files, however for some few custom text which are not inside those language files, this property is used to override. For example, you can override the default "preparing document..." message for localization purpose.

Definition

Namespace: GleamTech.DocumentUltimate.AspNet.UI
Assembly: GleamTech.DocumentUltimate (in GleamTech.DocumentUltimate.dll) Version: 7.2.0
C#
public Dictionary<string, Dictionary<string, string>> Translations { get; set; }

Property Value

DictionaryString, DictionaryString, String

Example

C#
documentViewer.Translations = new()
{
    {
        "en",
        new()
        {
            { "preparing-document", "Preparing document..." },
            { "cover-sheet", "Cover Sheet" },
            { "rotation-mode", "Rotation Mode" },
            { "rotation-mode-title", "Rotation Mode (rotate current page or all pages)" },
            { "full-screen", "Full Screen" },
            { "download-original", "Download Original" },
            { "any-word", "Any Word" }
        }
    },
    {
        "de",
        new()
        {
            { "any-word", "Jedes Wort" }
        }
    }
};

See Also