fixed comment into code
This commit is contained in:
@@ -6,7 +6,8 @@ using CommunityToolkit.Mvvm.ComponentModel;
|
||||
namespace CursorLang.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Берёт строки из ресурсов и при смене языка просит WPF перечитать все привязки.
|
||||
/// Takes the strings from the resources and, when the language changes, asks WPF to
|
||||
/// re-read every binding.
|
||||
/// </summary>
|
||||
public sealed class LocalizationService : ObservableObject, ILocalizationService
|
||||
{
|
||||
@@ -38,8 +39,8 @@ public sealed class LocalizationService : ObservableObject, ILocalizationService
|
||||
|
||||
OnPropertyChanged(nameof(CurrentLanguage));
|
||||
|
||||
// Сообщаем об изменении индексатора: так обновляются все привязки
|
||||
// вида {Binding Localization[Key]}, то есть весь текст интерфейса
|
||||
// We report a change of the indexer: that is how every binding of the
|
||||
// {Binding Localization[Key]} kind updates, that is, all the interface text
|
||||
OnPropertyChanged(Binding.IndexerName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user