Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. @using System.Collections
  2. <!DOCTYPE HTML>
  3. <html>
  4. <head runat="server">
  5. <title>Supported Cultures</title>
  6.  
  7. <meta charset="utf-8">
  8. <style>
  9. table.minimalistBlack {
  10. border: 2px solid #000000;
  11. width: 100%;
  12. text-align: center;
  13. border-collapse: collapse;
  14. }
  15.  
  16. table.minimalistBlack td, table.minimalistBlack th {
  17. border: 1px solid #000000;
  18. padding: 4px 4px;
  19. }
  20.  
  21. table.minimalistBlack tbody td {
  22. font-size: 15px;
  23. }
  24.  
  25. table.minimalistBlack thead {
  26. background: #CFCFCF;
  27. background: -moz-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
  28. background: -webkit-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
  29. background: linear-gradient(to bottom, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
  30. border-bottom: 2px solid #000000;
  31. }
  32.  
  33. table.minimalistBlack thead th {
  34. font-size: 17px;
  35. font-weight: bold;
  36. color: #000000;
  37. text-align: center;
  38. }
  39.  
  40. table.minimalistBlack tfoot td {
  41. font-size: 14px;
  42. }
  43. </style>
  44. </head>
  45. <body id="body">
  46. <table class="minimalistBlack">
  47. <thead>
  48. <tr>
  49. <th>Display Name</th>
  50. <th>Native Name</th>
  51. <th>Language ISO Code</th>
  52. <th>Language</th>
  53. <th>Country/region code</th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. @foreach (var culture in System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.SpecificCultures))
  58. {
  59. <tr>
  60. <td>@culture.DisplayName</td>
  61. <td>@culture.NativeName</td>
  62. <td>@culture.TextInfo.CultureName</td>
  63. <td>@culture.Parent.Name</td>
  64. <td>@culture.TextInfo.CultureName.Replace(culture.Parent.Name, string.Empty).TrimStart('-')</td>
  65. </tr>
  66. }
  67. </tbody>
  68. </table>
  69. </body>
  70. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement