Skip to content

Commit 347b354

Browse files
Added resource migration for 3.0.3
1 parent 525596d commit 347b354

File tree

4 files changed

+220
-32
lines changed

4 files changed

+220
-32
lines changed

src/Libraries/SmartStore.Data/Migrations/201709141000226_V303Resources.Designer.cs

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
namespace SmartStore.Data.Migrations
2+
{
3+
using Setup;
4+
using System;
5+
using System.Data.Entity.Migrations;
6+
7+
public partial class V303Resources : DbMigration, ILocaleResourcesProvider, IDataSeeder<SmartObjectContext>
8+
{
9+
public override void Up()
10+
{
11+
}
12+
13+
public override void Down()
14+
{
15+
}
16+
17+
public bool RollbackOnFailure
18+
{
19+
get { return false; }
20+
}
21+
22+
public void Seed(SmartObjectContext context)
23+
{
24+
context.MigrateLocaleResources(MigrateLocaleResources);
25+
26+
context.SaveChanges();
27+
}
28+
29+
public void MigrateLocaleResources(LocaleResourcesBuilder builder)
30+
{
31+
builder.AddOrUpdate("Account.PasswordRecoveryConfirm.InvalidEmail",
32+
"No customer account matches this email address. Please click the link in your email anew.",
33+
"Diese Emailadresse konnte keinen Kundenkonto zugeordnet werden. Bitte rufen Sie den an Sie versendeten Link erneut auf.");
34+
35+
builder.AddOrUpdate("Account.PasswordRecoveryConfirm.InvalidToken",
36+
"The used token is incorrect. Please click the link in your email anew.",
37+
"Das verwendete Token scheint nicht korrekt zu sein. Bitte rufen Sie den Link erneut auf.");
38+
39+
builder.AddOrUpdate("Customer.UserAgreement.OrderItemNotFound",
40+
"The corresponding order item could not be found.",
41+
"Die entsprechende Auftragsposition konnte nicht gefunden werden.");
42+
43+
builder.AddOrUpdate("Customer.UserAgreement.ProductNotFound",
44+
"The corresponding product could not be found.",
45+
"Das entsprechende Produkt konnte nicht gefunden werden.");
46+
47+
builder.AddOrUpdate("ShoppingCart.RewardPoints", "Reward points", "Bonuspunkte");
48+
49+
builder.AddOrUpdate("ShoppingCart.RewardPoints.Button", "Apply", "Anwenden");
50+
51+
builder.AddOrUpdate("ShoppingCart.IsDisabled",
52+
"The shopping cart is disabled.",
53+
"Der Warenkorb ist deaktiviert.");
54+
55+
builder.AddOrUpdate("Admin.Configuration.Settings.Catalog.AllowDifferingEmailAddressForEmailAFriend",
56+
"Allow differing email address for email e friend",
57+
"Abweichende Emailadresse für Tell A Friend zulassen",
58+
"Specifies whether customers are allowed to enter a email address different from the one they've registered their account with.",
59+
"Bestimmt ob Kunden gestattet ist eine Emailadresse anzugeben, welche von der abweicht mit der sie sich im Shop registriert haben.");
60+
61+
builder.AddOrUpdate("ShoppingCart.AddToWishlist.Short", "Add to List", "Merken");
62+
builder.AddOrUpdate("Products.AskQuestion.Short", "Questions?", "Fragen?");
63+
}
64+
}
65+
}

src/Libraries/SmartStore.Data/Migrations/201709141000226_V303Resources.resx

Lines changed: 126 additions & 0 deletions
Large diffs are not rendered by default.

src/Libraries/SmartStore.Data/Migrations/MigrationsConfiguration.cs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -31,38 +31,6 @@ public void MigrateSettings(SmartObjectContext context)
3131

3232
public void MigrateLocaleResources(LocaleResourcesBuilder builder)
3333
{
34-
builder.AddOrUpdate("Account.PasswordRecoveryConfirm.InvalidEmail",
35-
"No customer account matches this email address. Please click the link in your email anew.",
36-
"Diese Emailadresse konnte keinen Kundenkonto zugeordnet werden. Bitte rufen Sie den an Sie versendeten Link erneut auf.");
37-
38-
builder.AddOrUpdate("Account.PasswordRecoveryConfirm.InvalidToken",
39-
"The used token is incorrect. Please click the link in your email anew.",
40-
"Das verwendete Token scheint nicht korrekt zu sein. Bitte rufen Sie den Link erneut auf.");
41-
42-
builder.AddOrUpdate("Customer.UserAgreement.OrderItemNotFound",
43-
"The corresponding order item could not be found.",
44-
"Die entsprechende Auftragsposition konnte nicht gefunden werden.");
45-
46-
builder.AddOrUpdate("Customer.UserAgreement.ProductNotFound",
47-
"The corresponding product could not be found.",
48-
"Das entsprechende Produkt konnte nicht gefunden werden.");
49-
50-
builder.AddOrUpdate("ShoppingCart.RewardPoints", "Reward points", "Bonuspunkte");
51-
52-
builder.AddOrUpdate("ShoppingCart.RewardPoints.Button", "Apply", "Anwenden");
53-
54-
builder.AddOrUpdate("ShoppingCart.IsDisabled",
55-
"The shopping cart is disabled.",
56-
"Der Warenkorb ist deaktiviert.");
57-
58-
builder.AddOrUpdate("Admin.Configuration.Settings.Catalog.AllowDifferingEmailAddressForEmailAFriend",
59-
"Allow differing email address for email e friend",
60-
"Abweichende Emailadresse für Tell A Friend zulassen",
61-
"Specifies whether customers are allowed to enter a email address different from the one they've registered their account with.",
62-
"Bestimmt ob Kunden gestattet ist eine Emailadresse anzugeben, welche von der abweicht mit der sie sich im Shop registriert haben.");
63-
64-
builder.AddOrUpdate("ShoppingCart.AddToWishlist.Short", "Add to List", "Merken");
65-
builder.AddOrUpdate("Products.AskQuestion.Short", "Questions?", "Fragen?");
6634
}
6735
}
6836
}

0 commit comments

Comments
 (0)