logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementSyncLocaleNotices

    The plain statements a push owes an author about which languages travel: the project's languages the storefront has no counterpart for, and the achievement that holds its text literally and so sends one.

    Inheritance
    object
    AchievementSyncLocaleNotices
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Achievements.Application.Sync
    Assembly: Serenity.Achievements.Application.dll
    Syntax
    public static class AchievementSyncLocaleNotices
    Remarks

    Vendor-neutral on purpose. Which project languages have a storefront language comes from the connector's HasLanguageFor(string), the same way the names of the storefront's languages come from DisplayNameOfLocale(string); this type never learns what the storefront calls anything. The Scope and Review steps both read their wording from here, so they cannot drift apart.

    Fields

    LiteralTextSendsOneLanguageFormat

    The notice for an achievement that holds its text literally.

    Declaration
    public const string LiteralTextSendsOneLanguageFormat = "This achievement holds its text literally, so a push sends one language only: '{0}'. Move its text into a string table to send more."
    Field Value
    Type Description
    string

    OneLanguageWillNotBeSentFormat

    The notice for exactly one project language the storefront has no language for.

    Declaration
    public const string OneLanguageWillNotBeSentFormat = "The storefront has no language for {0}, so the text in it will not be sent."
    Field Value
    Type Description
    string

    SeveralLanguagesWillNotBeSentFormat

    The notice for several project languages the storefront has no language for.

    Declaration
    public const string SeveralLanguagesWillNotBeSentFormat = "The storefront has no language for {0}, so the text in them will not be sent."
    Field Value
    Type Description
    string

    Methods

    LiteralTextSendsOneLanguage(string)

    The sentence that says a literal-text achievement sends one language.

    Declaration
    public static string LiteralTextSendsOneLanguage(string authoringLocaleCode)
    Parameters
    Type Name Description
    string authoringLocaleCode

    The language its text is written in.

    Returns
    Type Description
    string

    LocalesWithoutAStorefrontLanguage(AchievementSyncCapabilities, IEnumerable<string>)

    The project languages the storefront has no language for, in the order given.

    Declaration
    public static IReadOnlyList<string> LocalesWithoutAStorefrontLanguage(AchievementSyncCapabilities capabilities, IEnumerable<string> projectLocaleCodes)
    Parameters
    Type Name Description
    AchievementSyncCapabilities capabilities

    What the connector says the storefront has.

    IEnumerable<string> projectLocaleCodes

    The locale codes the project writes text in. May be null.

    Returns
    Type Description
    IReadOnlyList<string>

    WillNotBeSent(AchievementSyncCapabilities, IEnumerable<string>)

    The sentence that names the project languages that will not be sent, or empty when every one travels.

    Declaration
    public static string WillNotBeSent(AchievementSyncCapabilities capabilities, IEnumerable<string> projectLocaleCodes)
    Parameters
    Type Name Description
    AchievementSyncCapabilities capabilities

    What the connector says the storefront has.

    IEnumerable<string> projectLocaleCodes

    The locale codes the project writes text in. May be null.

    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved