|
| 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 | +} |
0 commit comments