Пример #1
0
        public void init()
        {
            Globalization g = new Globalization(1, "/Home", true, 1); //page id for index is 1

            g.AppendTranslation(new Translation(1, "Home"));
            g.AppendTranslation(new Translation(2, "ホーム"));
            this.globalization.Add(g);

            g = new Globalization(2, "/Products", true, 1);
            g.AppendTranslation(new Translation(1, "Products"));
            g.AppendTranslation(new Translation(2, "プロダクト"));
            this.globalization.Add(g);

            g = new Globalization(2, "/News", true, 1);
            g.AppendTranslation(new Translation(1, "News"));
            g.AppendTranslation(new Translation(2, "ログアウト"));
            this.globalization.Add(g);

            g = new Globalization(3, "/AboutUs", true, 1);
            g.AppendTranslation(new Translation(1, "About Us"));
            g.AppendTranslation(new Translation(2, "私たちに関しては"));
            this.globalization.Add(g);

            g = new Globalization(4, "/AdminDashboard", true, 1);
            g.AppendTranslation(new Translation(1, "Admin Dashboard"));
            g.AppendTranslation(new Translation(2, "管理ダッシュボード"));
            this.globalization.Add(g);

            g = new Globalization(5, "/ContactUs", true, 1);
            g.AppendTranslation(new Translation(1, "Contact Us"));
            g.AppendTranslation(new Translation(2, "お問い合わせ"));
            this.globalization.Add(g);

            g = new Globalization(6, "/Login", false, 1);
            g.AppendTranslation(new Translation(1, "Log out"));
            g.AppendTranslation(new Translation(2, "ログアウト"));
            this.globalization.Add(g);

            //admin navbar case 2
            g = new Globalization(6, "secInbox", true, 2);
            g.AppendTranslation(new Translation(1, "Inbox"));
            g.AppendTranslation(new Translation(2, "受信トレイ"));
            this.globalization.Add(g);

            g = new Globalization(7, "secNews", true, 2);
            g.AppendTranslation(new Translation(1, "Post A News"));
            g.AppendTranslation(new Translation(2, "ポストAニュース"));
            this.globalization.Add(g);

            g = new Globalization(8, "secConcern", true, 2);
            g.AppendTranslation(new Translation(1, "Concerns"));
            g.AppendTranslation(new Translation(2, "懸念"));
            this.globalization.Add(g);

            g = new Globalization(9, "secAdminToolBar", true, 2);
            g.AppendTranslation(new Translation(1, "Admin Tool Bar"));
            g.AppendTranslation(new Translation(2, "管理ツールバー"));
            this.globalization.Add(g);
        }