- Adding a module for content item localization.

--HG--
branch : dev
This commit is contained in:
Suha Can
2010-06-07 11:22:40 -07:00
parent a17e5a625c
commit 887439352d
6 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
using System.Web.Mvc;
using Orchard.ContentManagement;
namespace Orchard.Core.Localization.Models {
public sealed class Localized : ContentPart<LocalizedRecord> {
[HiddenInput(DisplayValue = false)]
public int Id { get { return ContentItem.Id; } }
}
}

View File

@@ -0,0 +1,6 @@
using Orchard.ContentManagement.Records;
namespace Orchard.Core.Localization.Models {
public class LocalizedRecord : ContentPartRecord {
}
}

View File

@@ -0,0 +1,11 @@
name: Localization
antiforgery: enabled
author: The Orchard Team
website: http://orchardproject.net
version: 0.1
orchardversion: 0.1.2010.0312
description: Support for localizing content items for cultures.
features:
Localization:
Description: Localize content items.
Category: Core

View File

@@ -0,0 +1,4 @@
namespace Orchard.Core.Localization.Services {
public interface IContentItemLocalizationService : IDependency {
}
}

View File

@@ -119,6 +119,9 @@
<Compile Include="Indexing\Services\CreateIndexingTaskHandler.cs" />
<Compile Include="Indexing\Services\IndexingTaskExecutor.cs" />
<Compile Include="Indexing\Services\IndexingTaskManager.cs" />
<Compile Include="Localization\Models\Localized.cs" />
<Compile Include="Localization\Models\LocalizedRecord.cs" />
<Compile Include="Localization\Services\IContentItemLocalizationService.cs" />
<Compile Include="Navigation\AdminMenu.cs" />
<Compile Include="Navigation\Controllers\AdminController.cs" />
<Compile Include="Navigation\Models\MenuItem.cs" />
@@ -180,6 +183,7 @@
<ItemGroup>
<Content Include="Common\Module.txt" />
<Content Include="Indexing\Module.txt" />
<Content Include="Localization\Module.txt" />
<Content Include="Settings\Module.txt" />
<Content Include="Settings\Views\Admin\Index.ascx" />
<Content Include="Web.config" />

View File

@@ -63,6 +63,7 @@ namespace Orchard.Setup.Services {
"Navigation",
"Scheduling",
"Indexing",
"Localization",
"Settings",
"XmlRpc",
"Orchard.Users",