Skip to content

Commit 8892d4f

Browse files
authored
Update Server Localization sample app (#256)
1 parent 1b14f2f commit 8892d4f

14 files changed

+8837
-1246
lines changed

common/localization/ServerLocalizationResx/Pages/Index.razor

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
<TelerikGrid Data="@forecasts"
1515
Pageable="true" Groupable="true" Sortable="true"
1616
OnUpdate="@UpdateHandler" OnDelete="@DeleteHandler" OnCreate="@CreateHandler">
17-
<GridToolBar>
18-
<GridCommandButton Command="Add" Icon="add">@Localizer[nameof(TelerikMessages.Grid_Create)]</GridCommandButton>
19-
</GridToolBar>
17+
<GridToolBarTemplate>
18+
<GridCommandButton Command="Add" Icon="@SvgIcon.Plus">@Localizer[nameof(TelerikMessages.Grid_Create)]</GridCommandButton>
19+
</GridToolBarTemplate>
2020
<GridColumns>
2121
<GridColumn Field="@(nameof(WeatherForecast.Date))">
2222
<Template>
@@ -27,10 +27,10 @@
2727
<GridColumn Field="@(nameof(WeatherForecast.TemperatureF))" />
2828
<GridColumn Field="@(nameof(WeatherForecast.Summary))" />
2929
<GridCommandColumn>
30-
<GridCommandButton Command="Edit" Icon="edit">@Localizer[nameof(TelerikMessages.Grid_Edit)]</GridCommandButton>
31-
<GridCommandButton Command="Delete" Icon="delete">@Localizer[nameof(TelerikMessages.Grid_Delete)]</GridCommandButton>
32-
<GridCommandButton Command="Save" Icon="save" ShowInEdit="true">@Localizer[nameof(TelerikMessages.Grid_Update)]</GridCommandButton>
33-
<GridCommandButton Command="Cancel" Icon="cancel" ShowInEdit="true">@Localizer[nameof(TelerikMessages.Grid_Cancel)]</GridCommandButton>
30+
<GridCommandButton Command="Edit" Icon="@SvgIcon.Pencil">@Localizer[nameof(TelerikMessages.Grid_Edit)]</GridCommandButton>
31+
<GridCommandButton Command="Delete" Icon="@SvgIcon.Trash">@Localizer[nameof(TelerikMessages.Grid_Delete)]</GridCommandButton>
32+
<GridCommandButton Command="Save" Icon="@SvgIcon.Save" ShowInEdit="true">@Localizer[nameof(TelerikMessages.Grid_Update)]</GridCommandButton>
33+
<GridCommandButton Command="Cancel" Icon="@SvgIcon.Cancel" ShowInEdit="true">@Localizer[nameof(TelerikMessages.Grid_Cancel)]</GridCommandButton>
3434
</GridCommandColumn>
3535
</GridColumns>
3636
</TelerikGrid>

common/localization/ServerLocalizationResx/Pages/_Host.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<base href="~/" />
1414
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
1515
<link href="css/site.css" rel="stylesheet" />
16-
<link rel="stylesheet" href="https://unpkg.com/@@progress/kendo-theme-default@@latest/dist/all.css" />
16+
<link rel="stylesheet" href="_content/Telerik.UI.for.Blazor/css/kendo-theme-default/all.css" />
1717
<script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js" defer></script>
1818
</head>
1919
<body>

common/localization/ServerLocalizationResx/Properties/launchSettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"ServerLocalizationResx": {
1919
"commandName": "Project",
2020
"launchBrowser": true,
21+
"applicationUrl": "https://localhost:5001;http://localhost:5000",
2122
"environmentVariables": {
2223
"ASPNETCORE_ENVIRONMENT": "Development"
23-
},
24-
"applicationUrl": "https://localhost:5001;http://localhost:5000"
24+
}
2525
}
2626
}
2727
}

0 commit comments

Comments
 (0)