Skip to content

Commit

Permalink
Updated resources for 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Herzog committed May 27, 2019
1 parent 54da004 commit bef2b8f
Show file tree
Hide file tree
Showing 6 changed files with 199 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
namespace SmartStore.Data.Migrations
{
using System;
using System.Data.Entity.Migrations;
using SmartStore.Data.Setup;

public partial class V321Resources : DbMigration, ILocaleResourcesProvider, IDataSeeder<SmartObjectContext>
{
public override void Up()
{
}

public override void Down()
{
}

public bool RollbackOnFailure
{
get { return false; }
}

public void Seed(SmartObjectContext context)
{
context.MigrateLocaleResources(MigrateLocaleResources);
context.SaveChanges();
}

public void MigrateLocaleResources(LocaleResourcesBuilder builder)
{
builder.AddOrUpdate("Admin.Configuration.Languages.NoAvailableLanguagesFound",
"There were no other available languages found for version {0}. On <a href=\"https://translate.smartstore.com/\" target=\"_blank\">translate.smartstore.com</a> you will find more details about available resources.",
"Es wurden keine weiteren verfügbaren Sprachen für Version {0} gefunden. Auf <a href=\"https://translate.smartstore.com/\" target=\"_blank\">translate.smartstore.com</a> finden Sie weitere Details zu verfügbaren Ressourcen.");
}
}
}

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/Libraries/SmartStore.Data/SmartStore.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,10 @@
<Compile Include="Migrations\201905101159134_V320Resources.Designer.cs">
<DependentUpon>201905101159134_V320Resources.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201905271110370_V321Resources.cs" />
<Compile Include="Migrations\201905271110370_V321Resources.Designer.cs">
<DependentUpon>201905271110370_V321Resources.cs</DependentUpon>
</Compile>
<Compile Include="ObjectContextBase.SaveChanges.cs" />
<Compile Include="Setup\Builder\ActivityLogTypeMigrator.cs" />
<Compile Include="Setup\Builder\PermissionMigrator.cs" />
Expand Down Expand Up @@ -1199,6 +1203,9 @@
<EmbeddedResource Include="Migrations\201905101159134_V320Resources.resx">
<DependentUpon>201905101159134_V320Resources.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201905271110370_V321Resources.resx">
<DependentUpon>201905271110370_V321Resources.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Sql\Indexes.sql" />
<EmbeddedResource Include="Sql\StoredProcedures.sql" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
201905101159134_V320Resources
201905271110370_V321Resources
Original file line number Diff line number Diff line change
@@ -1 +1 @@
201905101159134_V320Resources
201905271110370_V321Resources

0 comments on commit bef2b8f

Please sign in to comment.