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

资源简介

GlobalResources实现多语言建站例子

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Data.Entity;

namespace MultiLanguageDemo
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode 
    // visit http://go.microsoft.com/?linkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
        }

        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute(“{resource}.axd/{*pathInfo}“);

            routes.MapRoute(
                “Default“ // Route name
                “{controller}/{action}/{id}“ // URL with parameters
                new { controller = “Home“ action = “Index“ id = UrlParameter.Optional } // Parameter defaults
            );

        }

        protected void Application_Start()
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-12-30 13:39  MultiLanguage-master\
     文件        2518  2014-12-30 13:39  MultiLanguage-master\.gitattributes
     文件        2233  2014-12-30 13:39  MultiLanguage-master\.gitignore
     目录           0  2014-12-30 13:39  MultiLanguage-master\App_Data\
     文件       65536  2014-12-30 13:39  MultiLanguage-master\App_Data\Movies.sdf
     目录           0  2014-12-30 13:39  MultiLanguage-master\App_GlobalResources\
     文件        5258  2014-12-30 13:39  MultiLanguage-master\App_GlobalResources\Language.designer.cs
     文件           0  2014-12-30 13:39  MultiLanguage-master\App_GlobalResources\Language.en-US.Designer.cs
     文件        6323  2014-12-30 13:39  MultiLanguage-master\App_GlobalResources\Language.en-US.resx
     文件        6401  2014-12-30 13:39  MultiLanguage-master\App_GlobalResources\Language.resx
     文件           0  2014-12-30 13:39  MultiLanguage-master\App_GlobalResources\Language.zh-cn.designer.cs
     文件        6408  2014-12-30 13:39  MultiLanguage-master\App_GlobalResources\Language.zh-cn.resx
     目录           0  2014-12-30 13:39  MultiLanguage-master\Content\
     文件        5341  2014-12-30 13:39  MultiLanguage-master\Content\Site.css
     目录           0  2014-12-30 13:39  MultiLanguage-master\Content\themes\
     目录           0  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\
     目录           0  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\
     文件         180  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-bg_flat_0_aaaaaa_40x100.png
     文件         178  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-bg_flat_75_ffffff_40x100.png
     文件         120  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-bg_glass_55_fbf9ee_1x400.png
     文件         105  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-bg_glass_65_ffffff_1x400.png
     文件         111  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-bg_glass_75_dadada_1x400.png
     文件         110  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-bg_glass_75_e6e6e6_1x400.png
     文件         119  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-bg_glass_95_fef1ec_1x400.png
     文件         101  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-bg_highlight-soft_75_cccccc_1x100.png
     文件        4369  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-icons_222222_256x240.png
     文件        4369  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-icons_2e83ff_256x240.png
     文件        4369  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-icons_454545_256x240.png
     文件        4369  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-icons_888888_256x240.png
     文件        4369  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\images\ui-icons_cd0a0a_256x240.png
     文件        1373  2014-12-30 13:39  MultiLanguage-master\Content\themes\base\jquery.ui.accordion.css
............此处省略54个文件信息

评论

共有 条评论