Base solution for your next web application
Open Closed

Unable to change text for newly added Language Tamil (ta) #10143


User avatar
0
ngarimalla created

Prerequisites

Please answer the following questions before submitting an issue.

  • What is your product version? 10.0.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

Hello Support, We have added new language Tamil (ta) using "Administration => Languages" screen; However, we are unable to change the texts for the newly added language; Getting the "Internal Server Error" in GetLanguageTexts API; Please let us know if you need further information; Your input on this would be greatly appreciated; Thank you;

Error from API Log (For your reference):

INFO 2021-03-03 03:19:54,201 [88 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'FindGood.Localization.LanguageAppService.GetLanguageTexts (FindGood.Application)' INFO 2021-03-03 03:19:54,260 [88 ] c.Infrastructure.ControllerActionInvoker - Route matched with {area = "app", action = "GetLanguageTexts", controller = "Language"}. Executing controller action with signature System.Threading.Tasks.Task1[Abp.Application.Services.Dto.PagedResultDto1[FindGood.Localization.Dto.LanguageTextListDto]] GetLanguageTexts(FindGood.Localization.GetLanguageTextsInput) on controller FindGood.Localization.LanguageAppService (FindGood.Application). ERROR 2021-03-03 03:19:55,441 [85 ] Mvc.ExceptionHandling.AbpExceptionFilter - Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List1.get_Item(Int32 index) at FindGood.Localization.LanguageAppService.<>c__DisplayClass10_0.<GetLanguageTexts>b__2(LocalizedString t, Int32 i) in FindGood\FindGood\aspnet-core\src\FindGood.Application\Localization\LanguageAppService.cs:line 141 at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable1 source, Func3 selector)+MoveNext() at System.Linq.Enumerable.Count[TSource](IEnumerable1 source) at System.Linq.EnumerableExecutor1.Execute() at System.Linq.EnumerableQuery1.System.Linq.IQueryProvider.Execute[TElement](Expression expression) at System.Linq.Queryable.Count[TSource](IQueryable1 source) at FindGood.Localization.LanguageAppService.GetLanguageTexts(GetLanguageTextsInput input) in FindGood\FindGood\aspnet-core\src\FindGood.Application\Localization\LanguageAppService.cs:line 159 at lambda_method1419(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) INFO 2021-03-03 03:19:55,447 [85 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. INFO 2021-03-03 03:19:55,450 [85 ] c.Infrastructure.ControllerActionInvoker - Executed action FindGood.Localization.LanguageAppService.GetLanguageTexts (FindGood.Application) in 1188.9862ms INFO 2021-03-03 03:19:55,450 [85 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'FindGood.Localization.LanguageAppService.GetLanguageTexts (FindGood.Application)'


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ngarimalla

    Could you restart your app and try again ? When a new language is added, app must be restarted. This is required by ASP.NET Core.

  • User Avatar
    0
    ngarimalla created

    Hello @ismcagdas, Thank you for your response; We have restarted the APP; Still no luck; Please advise; Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry for the delay. I have fixed this problem, please apply changes in https://github.com/aspnetzero/aspnet-zero-core/pull/3843 to your solution.

    Thanks,