• 大小: 0.02M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-25
  • 语言: C#
  • 标签: MVC  语言  asp.net  

资源简介

使用方法:

- <li>@Html.ActionLinkLocalization("English", "Index", "Locales", new { lang = "en_US" })</li>
- <li>@Html.ActionLinkLocalization("Türkçe", "Index", "Locales", new { lang = "tr_TR" })</li>
and more...
Or
- <a href="Locales/?lang=en_US">English</a>
- <a href="Locales/?lang=tr_TR">Türkçe</a>

资源截图

代码片段和文件信息

// @yasinkuyu
// 05/08/2014

namespace Insya.Localization
{

    /// 
    /// Default enums
    /// Get all http://www.csharp-examples.net/culture-names/
    /// 

    public enum Language
    {
        en_US = 0   // English (United States)
        tr_TR = 1   // Turkish
        fa_IR = 2 // Persian (Iran)
        az_AZ = 3  // Azeri

        // and more....
    }


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-01-29 12:57  Localization-Haster\
     文件        2518  2016-01-29 12:57  Localization-Haster\.gitattributes
     文件        2224  2016-01-29 12:57  Localization-Haster\.gitignore
     文件        1076  2016-01-29 12:57  Localization-Haster\LICENSE
     文件        1490  2016-01-29 12:57  Localization-Haster\Localization.sln
     文件        3929  2016-01-29 12:57  Localization-Haster\README.md
     目录           0  2016-01-29 12:57  Localization-Haster\src\
     目录           0  2016-01-29 12:57  Localization-Haster\src\Attributes\
     文件        1327  2016-01-29 12:57  Localization-Haster\src\Attributes\DescriptionLocalizeAttribute.cs
     文件        1359  2016-01-29 12:57  Localization-Haster\src\Attributes\DisplayLocalizeAttribute.cs
     文件         318  2016-01-29 12:57  Localization-Haster\src\Attributes\RequiredLocalizeAttribute.cs
     文件        1905  2016-01-29 12:57  Localization-Haster\src\Attributes\StringLengthAttribute.cs
     文件         396  2016-01-29 12:57  Localization-Haster\src\Enums.cs
     文件         599  2016-01-29 12:57  Localization-Haster\src\GetPropertyValue.cs
     目录           0  2016-01-29 12:57  Localization-Haster\src\Helpers\
     文件        1448  2016-01-29 12:57  Localization-Haster\src\Helpers\ActionlinkLocalization.cs
     文件         950  2016-01-29 12:57  Localization-Haster\src\Helpers\ActionLocalization.cs
     文件        1654  2016-01-29 12:57  Localization-Haster\src\Helpers\LocalizeHelpers.cs
     文件         550  2016-01-29 12:57  Localization-Haster\src\IInline.cs
     文件        3351  2016-01-29 12:57  Localization-Haster\src\Inline.cs
     文件        2006  2016-01-29 12:57  Localization-Haster\src\Localization.cs
     文件        3616  2016-01-29 12:57  Localization-Haster\src\Localization.csproj
     文件        3671  2016-01-29 12:57  Localization-Haster\src\Localizationstartup.cs
     目录           0  2016-01-29 12:57  Localization-Haster\src\Properties\
     文件       23777  2016-01-29 12:57  Localization-Haster\src\Properties\Annotations.cs
     文件        1477  2016-01-29 12:57  Localization-Haster\src\Properties\AssemblyInfo.cs
     文件        1164  2016-01-29 12:57  Localization-Haster\src\Resource.cs

评论

共有 条评论