Localization fixes - table definition, SQL script naming, SQL script not marked as Embedded Resource, changed column name from IsCurrrent to IsDefault to reflect intent, set default language for site in _Host
This commit is contained in:
@ -17,10 +17,10 @@ namespace Oqtane.Repository
|
||||
|
||||
public Language AddLanguage(Language language)
|
||||
{
|
||||
if (language.IsCurrent)
|
||||
if (language.IsDefault)
|
||||
{
|
||||
// Ensure all other languages are not set to current
|
||||
_db.Language.ToList().ForEach(l => l.IsCurrent = false);
|
||||
_db.Language.ToList().ForEach(l => l.IsDefault = false);
|
||||
}
|
||||
|
||||
_db.Language.Add(language);
|
||||
|
Reference in New Issue
Block a user