-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8271 from abpframework/multi-lingual-refactor
Remove multi-lingual objects feature
- Loading branch information
Showing
32 changed files
with
75 additions
and
524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 0 additions & 54 deletions
54
framework/src/Volo.Abp.AutoMapper/AutoMapper/AbpAutoMapperMultiLingualDtoExtensions.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
framework/src/Volo.Abp.MultiLingualObject/Volo/Abp/MultiLingualObject/IHasMultiLingual.cs
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...src/Volo.Abp.MultiLingualObject/Volo/Abp/MultiLingualObject/IMultiLingualObjectManager.cs
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...k/src/Volo.Abp.MultiLingualObject/Volo/Abp/MultiLingualObject/IMultiLingualTranslation.cs
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...gualObject/AbpMultiLingualObjectModule.cs → ...alObjects/AbpMultiLingualObjectsModule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
using Volo.Abp.Localization; | ||
using Volo.Abp.Modularity; | ||
|
||
namespace Volo.Abp.MultiLingualObject | ||
namespace Volo.Abp.MultiLingualObjects | ||
{ | ||
[DependsOn( | ||
typeof(AbpLocalizationModule))] | ||
public class AbpMultiLingualObjectModule : AbpModule | ||
public class AbpMultiLingualObjectsModule : AbpModule | ||
{ | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...work/src/Volo.Abp.MultiLingualObjects/Volo/Abp/MultiLingualObjects/IMultiLingualObject.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Volo.Abp.MultiLingualObjects | ||
{ | ||
public interface IMultiLingualObject<TTranslation> | ||
where TTranslation : class, IObjectTranslation | ||
{ | ||
ICollection<TTranslation> Translations { get; set; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...c/Volo.Abp.MultiLingualObjects/Volo/Abp/MultiLingualObjects/IMultiLingualObjectManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Threading.Tasks; | ||
|
||
namespace Volo.Abp.MultiLingualObjects | ||
{ | ||
public interface IMultiLingualObjectManager | ||
{ | ||
Task<TTranslation> GetTranslationAsync<TMultiLingual, TTranslation>( | ||
TMultiLingual multiLingual, | ||
string culture = null, | ||
bool fallbackToParentCultures = true) | ||
where TMultiLingual : IMultiLingualObject<TTranslation> | ||
where TTranslation : class, IObjectTranslation; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ework/src/Volo.Abp.MultiLingualObjects/Volo/Abp/MultiLingualObjects/IObjectTranslation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Volo.Abp.MultiLingualObjects | ||
{ | ||
public interface IObjectTranslation | ||
{ | ||
string Language { get; set; } | ||
} | ||
} |
Oops, something went wrong.