Class AchievementLocalizationKeys
The one rule that turns an achievement's local id into the localization keys its display name and
description live under, so a pull, a key adoption and a hand-authored translating achievement all
agree on where the text of final-boss is filed: ACHIEVEMENT_FINAL_BOSS_NAME and
ACHIEVEMENT_FINAL_BOSS_DESC.
Inherited Members
Namespace: Serenity.Achievements.Application.Authoring
Assembly: Serenity.Achievements.Application.dll
Syntax
public static class AchievementLocalizationKeys
Remarks
The id is upper-cased and every character outside A-Z and 0-9 becomes _, one for
one — nothing is collapsed or trimmed, so the key keeps the id's shape. Two ids that differ only in
separators (a-b and a_b) therefore share a key; the string-table write that meets the
second one finds the first one's text there and reports a conflict instead of overwriting it.
Methods
DescriptionKeyFor(string)
The key an achievement's description is filed under.
Declaration
public static string DescriptionKeyFor(string localId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | localId | The achievement's local id. |
Returns
| Type | Description |
|---|---|
| string | The key, or empty when |
NameKeyFor(string)
The key an achievement's display name is filed under.
Declaration
public static string NameKeyFor(string localId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | localId | The achievement's local id. |
Returns
| Type | Description |
|---|---|
| string | The key, or empty when |