mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 16:22:55 -07:00
fix(translations): 🌐 Localization - Ensuring all of the app including backend are localized #4366
* Localize TV and movies titles in requests * Add missing release statuses * Localize collection request * Localize TV shows in newsletter Uses TMDB instead of TVMaze for title, genres and synopsis * Localize error messages * Localize albums requests * Use current language for TV and movies requests * Remove unecessary console log
This commit is contained in:
parent
d8d1091564
commit
5e140ab618
28 changed files with 205 additions and 137 deletions
|
@ -1,4 +1,7 @@
|
|||
namespace Ombi.Core.Engine
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace Ombi.Core.Engine
|
||||
{
|
||||
public class RequestEngineResult
|
||||
{
|
||||
|
@ -6,6 +9,23 @@
|
|||
public string Message { get; set; }
|
||||
public bool IsError => !string.IsNullOrEmpty(ErrorMessage);
|
||||
public string ErrorMessage { get; set; }
|
||||
public ErrorCode? ErrorCode { get; set; }
|
||||
public int RequestId { get; set; }
|
||||
}
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum ErrorCode {
|
||||
AlreadyRequested,
|
||||
EpisodesAlreadyRequested,
|
||||
NoPermissionsOnBehalf,
|
||||
NoPermissions,
|
||||
RequestDoesNotExist,
|
||||
ChildRequestDoesNotExist,
|
||||
NoPermissionsRequestMovie,
|
||||
NoPermissionsRequestTV,
|
||||
NoPermissionsRequestAlbum,
|
||||
MovieRequestQuotaExceeded,
|
||||
TvRequestQuotaExceeded,
|
||||
AlbumRequestQuotaExceeded,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue