Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @using System.Collections
- <!DOCTYPE HTML>
- <html>
- <head runat="server">
- <title>Supported Cultures</title>
- <meta charset="utf-8">
- <style>
- table.minimalistBlack {
- border: 2px solid #000000;
- width: 100%;
- text-align: center;
- border-collapse: collapse;
- }
- table.minimalistBlack td, table.minimalistBlack th {
- border: 1px solid #000000;
- padding: 4px 4px;
- }
- table.minimalistBlack tbody td {
- font-size: 15px;
- }
- table.minimalistBlack thead {
- background: #CFCFCF;
- background: -moz-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
- background: -webkit-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
- background: linear-gradient(to bottom, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
- border-bottom: 2px solid #000000;
- }
- table.minimalistBlack thead th {
- font-size: 17px;
- font-weight: bold;
- color: #000000;
- text-align: center;
- }
- table.minimalistBlack tfoot td {
- font-size: 14px;
- }
- </style>
- </head>
- <body id="body">
- <table class="minimalistBlack">
- <thead>
- <tr>
- <th>Display Name</th>
- <th>Native Name</th>
- <th>Language ISO Code</th>
- <th>Language</th>
- <th>Country/region code</th>
- </tr>
- </thead>
- <tbody>
- @foreach (var culture in System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.SpecificCultures))
- {
- <tr>
- <td>@culture.DisplayName</td>
- <td>@culture.NativeName</td>
- <td>@culture.TextInfo.CultureName</td>
- <td>@culture.Parent.Name</td>
- <td>@culture.TextInfo.CultureName.Replace(culture.Parent.Name, string.Empty).TrimStart('-')</td>
- </tr>
- }
- </tbody>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement