public static MultiLangText Create(EntityId languageKey, string text) { var result = new MultiLangText(); result.SetText(languageKey, text); return(result); }
public string GetText(MultiLangText text, EntityId linkedObjectId = null) { var translation = text.GetTranslation(_context.CurrentLanguage); if (translation == null) { throw new InvalidOperationException($"Translation not found for selected language {_context.CurrentLanguage}, linked object = {linkedObjectId.ToString() ?? "UNKNOWN"}"); } return(GetFilledString(translation)); }
public Resource() { Value = new MultiLangText(); }
public TextLine() { Text = new MultiLangText(); }
public GoToLine() { Text = new MultiLangText(); }
public CharacterAlias() { Title = new MultiLangText(); SpriteId = new ResourceId(); }
public ChoiceLine() { Text = new MultiLangText(); }
public Chapter() { Blocks = new EntityCollection <Block, CollectionOneIdFactory <Block> >(); Title = new MultiLangText(); }