Skip to content

[BUG] Duplicate entry on french translation. #1161

@glaplace

Description

@glaplace

Hello,

from the last version sourcegit does not start with error

System.ArgumentException: An item with the same key has already been added. Key: Text.CommitCM.Checkout
at System.Collections.Generic.Dictionary2.TryInsert(TKey, TValue, InsertionBehavior) + 0x297 at CompiledAvaloniaXaml.!AvaloniaResources.Populate:/Resources/Locales/fr_FR.axaml(IServiceProvider, ResourceDictionary) + 0x12c3 at SourceGit.App.XamlClosure_1.Build_3(IServiceProvider) + 0x6a at Avalonia.Markup.Xaml.XamlIl.Runtime.XamlIlRuntimeHelpers.DeferredContent1.Build(IServiceProvider serviceProvider) + 0xd7
at Avalonia.Controls.ResourceDictionary.TryGetValue(Object, Object&) + 0x87
at Avalonia.Controls.ResourceDictionary.get_Item(Object) + 0x10
at SourceGit.App.SetLocale(String localeKey) + 0x78
at SourceGit.App.Initialize() + 0x6f
at Avalonia.AppBuilder.SetupUnsafe() + 0x10d
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder, String[], Action`1) + 0x34
at SourceGit.App.Main(String[] args) + 0xe0

the key Text.CommitCM.Checkout are duplicated since the commit 904432a

another key are duplicated
Text.StashCM.SaveAsPatch line 619 and 765
Text.Stash.AutoRestore.Tip ligne 763 and 609
Text.Stash.AutoRestore 609 and 762
Text.SHALinkCM.NavigateTo line 602 and 761
Text.SetUpstream.Upstream 600 and 760
Text.SetUpstream.Unset 599 and 759
Text.SetUpstream.Local line 598 and 760
Text.SetUpstream line 597 and 757
Text.CreateBranch.Name.WarnSpace ligne 200 and 714

Text.CommitCM.Checkout line 103 and 101
Text.BranchUpstreamInvalid line 64 and 710
Text.BranchCM.CustomAction line 48 and 709
Text.ApplyStash.Stash line 708 and 31
Text.ApplyStash.RestoreIndex line 707 and 30
Text.ApplyStash.DropAfterApply line 706 and 29
Text.ApplyStash line 705 and 28

Text.AIAssistant.Use line 704 and 21
Text.AIAssistant.Regen line 703 and 19

without duplicated key sourcegit start.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions