Skip to content

Commit e15d5dd

Browse files
committed
V22 final resources
1 parent 9488ddb commit e15d5dd

7 files changed

Lines changed: 236 additions & 11 deletions

File tree

src/Libraries/SmartStore.Data/Migrations/201504171629262_V22Final.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: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
namespace SmartStore.Data.Migrations
2+
{
3+
using System;
4+
using System.Data.Entity.Migrations;
5+
using SmartStore.Data.Setup;
6+
using System.Linq;
7+
8+
public partial class V22Final : DbMigration, ILocaleResourcesProvider, IDataSeeder<SmartObjectContext>
9+
{
10+
public override void Up()
11+
{
12+
}
13+
14+
public override void Down()
15+
{
16+
}
17+
18+
public bool RollbackOnFailure
19+
{
20+
get { return false; }
21+
}
22+
23+
public void Seed(SmartObjectContext context)
24+
{
25+
context.MigrateLocaleResources(MigrateLocaleResources);
26+
}
27+
28+
public void MigrateLocaleResources(LocaleResourcesBuilder builder)
29+
{
30+
builder.AddOrUpdate("Common.Date",
31+
"Date",
32+
"Datum");
33+
builder.AddOrUpdate("Common.MoreInfo",
34+
"More info",
35+
"Mehr Info");
36+
builder.AddOrUpdate("Common.Download",
37+
"Download",
38+
"Download");
39+
40+
builder.AddOrUpdate("Admin.CheckUpdate",
41+
"Check for update",
42+
"Auf Aktualisierung prüfen");
43+
builder.AddOrUpdate("Admin.CheckUpdate.UpdateAvailable",
44+
"Update available",
45+
"Update verfügbar");
46+
builder.AddOrUpdate("Admin.CheckUpdate.IsUpToDate",
47+
"SmartStore.NET is up to date",
48+
"SmartStore.NET ist auf dem neuesten Stand");
49+
builder.AddOrUpdate("Admin.CheckUpdate.YourVersion",
50+
"Your version",
51+
"Ihre Version");
52+
builder.AddOrUpdate("Admin.CheckUpdate.CurrentVersion",
53+
"Current version",
54+
"Aktuelle Version");
55+
builder.AddOrUpdate("Admin.CheckUpdate.ReleaseNotes",
56+
"Release Notes",
57+
"Release Notes");
58+
builder.AddOrUpdate("Admin.CheckUpdate.DontNotifyAnymore",
59+
"Don't notify anymore",
60+
"Nicht mehr benachrichtigen");
61+
}
62+
}
63+
}

src/Libraries/SmartStore.Data/Migrations/201504171629262_V22Final.resx

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

src/Libraries/SmartStore.Data/SmartStore.Data.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@
244244
<Compile Include="Migrations\201504131412183_NewCategoryProperties.Designer.cs">
245245
<DependentUpon>201504131412183_NewCategoryProperties.cs</DependentUpon>
246246
</Compile>
247+
<Compile Include="Migrations\201504171629262_V22Final.cs" />
248+
<Compile Include="Migrations\201504171629262_V22Final.Designer.cs">
249+
<DependentUpon>201504171629262_V22Final.cs</DependentUpon>
250+
</Compile>
247251
<Compile Include="Setup\Builder\SettingsBuilder.cs" />
248252
<Compile Include="Setup\Builder\SettingsMigrator.cs" />
249253
<Compile Include="Setup\DbMigrationContext.cs" />
@@ -481,6 +485,9 @@
481485
<EmbeddedResource Include="Migrations\201504131412183_NewCategoryProperties.resx">
482486
<DependentUpon>201504131412183_NewCategoryProperties.cs</DependentUpon>
483487
</EmbeddedResource>
488+
<EmbeddedResource Include="Migrations\201504171629262_V22Final.resx">
489+
<DependentUpon>201504171629262_V22Final.cs</DependentUpon>
490+
</EmbeddedResource>
484491
<EmbeddedResource Include="Sql\Indexes.sql" />
485492
<EmbeddedResource Include="Sql\StoredProcedures.sql" />
486493
</ItemGroup>

src/Presentation/SmartStore.Web/Administration/Views/Common/CheckUpdate.cshtml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,36 @@
1515
@if (!Model.UpdateAvailable)
1616
{
1717
<div class="alert alert-info">
18-
Your SmartStore.NET version is up-to-date
18+
@T("Admin.CheckUpdate.IsUpToDate")
1919
</div>
2020
}
2121
else
2222
{
23-
<h3 class="text-error">Update available!</h3>
23+
<h3 class="text-error">@T("Admin.CheckUpdate.UpdateAvailable")!</h3>
2424
<dl>
25-
<dt>Your Version</dt>
25+
<dt>@T("Admin.CheckUpdate.YourVersion")</dt>
2626
<dd>@Model.CurrentVersion</dd>
27-
<dt>Current Version</dt>
27+
<dt>@T("Admin.CheckUpdate.CurrentVersion")</dt>
2828
<dd class="text-error">@Model.Version</dd>
29-
<dt>Date</dt>
29+
<dt>@T("Common.Date")</dt>
3030
<dd>@Model.ReleaseDateUtc.ToShortDateString()</dd>
3131
</dl>
3232

3333
<div class="admin-config-group">
34-
<div class="title">Release Notes</div>
34+
<div class="title">@T("Admin.CheckUpdate.ReleaseNotes")</div>
3535
<div>@Html.Raw(Model.ReleaseNotes)</div>
3636
</div>
3737

3838
<div style="margin-top: 30px">
39-
<a class="btn btn-primary" href='@Model.InfoUrl' target="UpdateInfoWnd">More Info</a>
39+
<a class="btn btn-primary" href='@Model.InfoUrl' target="UpdateInfoWnd">@T("Common.MoreInfo")</a>
4040
@if (Model.DownloadUrl.HasValue())
4141
{
4242
<a class="btn btn-default" href='@Model.DownloadUrl' style="margin-left: 5px">
4343
<i class="fa fa-download"></i>
44-
Download
44+
@T("Common.Download")
4545
</a>
4646
}
47-
<a class="btn btn-link" href='@Url.Action("CheckUpdateSuppress", new { myVersion = Model.CurrentVersion, newVersion = Model.Version })'>Don't notify anymore</a>
47+
<a class="btn btn-link" href='@Url.Action("CheckUpdateSuppress", new { myVersion = Model.CurrentVersion, newVersion = Model.Version })'>@T("Admin.CheckUpdate.DontNotifyAnymore")</a>
4848
</div>
4949
}
5050
</div>

src/Presentation/SmartStore.Web/Administration/Views/Common/SystemInfo.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</td>
2929
<td class="adminData">
3030
@Html.DisplayFor(model => model.AppVersion)
31-
<a href='@Url.Action("CheckUpdate", new { enforce = true })' style="margin-left: 10px">Check for updates</a>
31+
<a href='@Url.Action("CheckUpdate", new { enforce = true })' style="margin-left: 10px">@T("Admin.CheckUpdate")</a>
3232
</td>
3333
</tr>
3434
<tr>

src/Presentation/SmartStore.Web/Administration/Views/Shared/Navbar.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<li>
6868
<a href='@Url.Action("CheckUpdate", new { area = "Admin" })'>
6969
<i class="fa fa-fw fa-level-up"></i>
70-
<strong>Update available</strong>
70+
<strong>@T("Admin.CheckUpdate.UpdateAvailable")</strong>
7171
<span class="reddot" style="margin-left: 6px"></span>
7272
</a>
7373
</li>

0 commit comments

Comments
 (0)