@using System.ComponentModel @using Newtonsoft.Json @using System.Text; @model UAC home/ @Html.Raw(ViewData["breadcrumbs"])
Display Name
Description @Html.Raw(Model.Description)
Channels
Users
AccountInChannels
Translations (@Model.Translations?.Count) next will be iterating over a dictionary. All reference on the internet implies this should work. And I'm sick of trying to figure out why it doens't. @{ var i = 0; } @foreach(var kvp in Model.Translations) { i++; if(String.IsNullOrWhiteSpace(kvp.Key) || String.IsNullOrWhiteSpace(kvp.Value)) { continue; } Html.Raw(""); Html.Raw(""); Html.Raw(""); Html.Raw(""); Html.Raw(""); Html.Raw(""); }
o_O
Command Alterations (@Model.CommandAlterations?.Count) @{ var j = 0; foreach(var kvp in Model.CommandAlterations.ToList()) { j++; Html.Raw(j); Html.Raw(""); Html.Raw(""); Html.Raw(""); Html.Raw(""); Html.Raw(""); Html.Raw(""); j++; } }
o_O
"adam", you may say, "why are there both translations and command alterations?"
translations are like.. if someone says "addicting", you can safely guess that they don't know they should be saying "addictive".
so if you say "this game is addicting", that comes in, we just pretend you said "this game is addictive".
Command alterations, I have to acknowledge that you *did* say !freedomunits, but I'm changing my behavior and not converting.
I guess theoretically you could "translate" freedomunits to nothing, then freeerdumberunits to freedomunits? but if we're doing that it becomes necessary to care about order, and get that right.
so let's say, "translations" are "i'll pretend you said", and "command alterations" are "i'll pretend I expected". @section Scripts{ }