Locale -> Translation
This commit is contained in:
@@ -2,13 +2,13 @@ using System.Collections.Generic;
|
||||
|
||||
namespace AyaNova.Api.ControllerHelpers
|
||||
{
|
||||
internal static class UserLocaleIdFromContext
|
||||
internal static class UserTranslationIdFromContext
|
||||
{
|
||||
internal static long Id(IDictionary<object, object> HttpContextItems)
|
||||
{
|
||||
long? l = (long?)HttpContextItems["AY_LOCALE_ID"];
|
||||
long? l = (long?)HttpContextItems["AY_TRANSLATION_ID"];
|
||||
if (l == null)
|
||||
return AyaNova.Util.ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID;
|
||||
return AyaNova.Util.ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION_ID;
|
||||
return (long)l;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user