-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dda76e7
commit 626ce90
Showing
9 changed files
with
228 additions
and
17 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/Libraries/SmartStore.Data/Migrations/202112171231491_V420Resources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
src/Libraries/SmartStore.Data/Migrations/202112171231491_V420Resources.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
namespace SmartStore.Data.Migrations | ||
{ | ||
using System; | ||
using System.Data.Entity.Migrations; | ||
using SmartStore.Core.Data; | ||
using SmartStore.Data.Setup; | ||
|
||
public partial class V420Resources : DbMigration, ILocaleResourcesProvider, IDataSeeder<SmartObjectContext> | ||
{ | ||
public override void Up() | ||
{ | ||
} | ||
|
||
public override void Down() | ||
{ | ||
} | ||
|
||
|
||
public bool RollbackOnFailure => false; | ||
|
||
public void Seed(SmartObjectContext context) | ||
{ | ||
context.MigrateLocaleResources(MigrateLocaleResources); | ||
context.SaveChanges(); | ||
|
||
if (DataSettings.DatabaseIsInstalled()) | ||
{ | ||
var logTypeMigrator = new ActivityLogTypeMigrator(context); | ||
logTypeMigrator.AddActivityLogType("EditOrder", "Edit an order", "Auftrag bearbeitet"); | ||
} | ||
} | ||
|
||
public void MigrateLocaleResources(LocaleResourcesBuilder builder) | ||
{ | ||
builder.AddOrUpdate("Admin.Configuration.Settings.GeneralCommon.SocialSettings.TwitterSite.Error", | ||
"The Twitter username must begin with an '@'.", | ||
"Der Twitter-Benutzername muss mit einem '@' beginnen."); | ||
|
||
builder.AddOrUpdate("Admin.Configuration.Settings.ShoppingCart.AddProductsToBasketInSinglePositions", | ||
"Add products to cart in single positions", | ||
"Produkte in einzelnen Positionen in den Warenkorb legen", | ||
"Enable this option if you want products with different quantities to be added to the shopping cart in single position.", | ||
"Aktivieren Sie diese Option, wenn Produkte mit verschiedenen Mengenangaben als Einzelpositionen in den Warenkorb gelegt werden sollen."); | ||
} | ||
} | ||
} |
126 changes: 126 additions & 0 deletions
126
src/Libraries/SmartStore.Data/Migrations/202112171231491_V420Resources.resx
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Presentation/SmartStore.Web/App_Data/Localization/App/de/head.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
202101251149352_V411Resources | ||
202112171231491_V420Resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Presentation/SmartStore.Web/App_Data/Localization/App/en/head.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
202101251149352_V411Resources | ||
202112171231491_V420Resources |