Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Icon properties as NonLocalizable #1224

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Fluent.Ribbon/Controls/BackstageTabItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public class BackstageTabItem : ContentControl, IHeaderedControl, IKeyTipedContr

/// <summary>
/// Gets or sets Icon for the element
/// </summary>
/// </summary>
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? Icon
{
get => this.GetValue(IconProperty);
Expand Down
13 changes: 10 additions & 3 deletions Fluent.Ribbon/Controls/Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Fluent;

using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation.Peers;
Expand Down Expand Up @@ -113,7 +114,9 @@ public DataTemplateSelector? HeaderTemplateSelector

#region Icon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? Icon
{
get => this.GetValue(IconProperty);
Expand All @@ -127,7 +130,9 @@ public object? Icon

#region LargeIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? LargeIcon
{
get => this.GetValue(LargeIconProperty);
Expand All @@ -141,7 +146,9 @@ public object? LargeIcon

#region MediumIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? MediumIcon
{
get => this.GetValue(MediumIconProperty);
Expand Down
13 changes: 10 additions & 3 deletions Fluent.Ribbon/Controls/CheckBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Fluent;

using System.Collections;
using System.ComponentModel;
using System.Windows;
using System.Windows.Automation.Peers;
using System.Windows.Controls;
Expand Down Expand Up @@ -113,7 +114,9 @@ public DataTemplateSelector? HeaderTemplateSelector

#region Icon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? Icon
{
get => this.GetValue(IconProperty);
Expand All @@ -127,7 +130,9 @@ public object? Icon

#region LargeIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? LargeIcon
{
get => this.GetValue(LargeIconProperty);
Expand All @@ -141,7 +146,9 @@ public object? LargeIcon

#region MediumIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? MediumIcon
{
get => this.GetValue(MediumIconProperty);
Expand Down
9 changes: 7 additions & 2 deletions Fluent.Ribbon/Controls/ComboBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ namespace Fluent;

using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation.Peers;
Expand Down Expand Up @@ -148,7 +149,9 @@ public DataTemplateSelector? HeaderTemplateSelector

#region Icon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? Icon
{
get => this.GetValue(IconProperty);
Expand All @@ -162,7 +165,9 @@ public object? Icon

#region MediumIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? MediumIcon
{
get => this.GetValue(MediumIconProperty);
Expand Down
13 changes: 10 additions & 3 deletions Fluent.Ribbon/Controls/DropDownButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace Fluent;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Threading.Tasks;
using System.Windows;
Expand Down Expand Up @@ -163,7 +164,9 @@ public DataTemplateSelector? HeaderTemplateSelector

#region Icon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? Icon
{
get => this.GetValue(IconProperty);
Expand All @@ -177,7 +180,9 @@ public object? Icon

#region LargeIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? LargeIcon
{
get => this.GetValue(LargeIconProperty);
Expand All @@ -191,7 +196,9 @@ public object? LargeIcon

#region MediumIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? MediumIcon
{
get => this.GetValue(MediumIconProperty);
Expand Down
13 changes: 10 additions & 3 deletions Fluent.Ribbon/Controls/InRibbonGallery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace Fluent;
using System.Collections;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Automation.Peers;
Expand Down Expand Up @@ -167,7 +168,9 @@ public DataTemplateSelector? HeaderTemplateSelector

#region Icon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? Icon
{
get => this.GetValue(IconProperty);
Expand Down Expand Up @@ -744,7 +747,9 @@ public bool IsCollapsed

#region LargeIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? LargeIcon
{
get => this.GetValue(LargeIconProperty);
Expand All @@ -758,7 +763,9 @@ public object? LargeIcon

#region MediumIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? MediumIcon
{
get => this.GetValue(MediumIconProperty);
Expand Down
9 changes: 7 additions & 2 deletions Fluent.Ribbon/Controls/RadioButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Fluent;

using System.Collections;
using System.ComponentModel;
using System.Windows;
using System.Windows.Automation.Peers;
using System.Windows.Controls;
Expand Down Expand Up @@ -113,7 +114,9 @@ public DataTemplateSelector? HeaderTemplateSelector

#region Icon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? Icon
{
get => this.GetValue(IconProperty);
Expand Down Expand Up @@ -141,7 +144,9 @@ public object? LargeIcon

#region MediumIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? MediumIcon
{
get => this.GetValue(MediumIconProperty);
Expand Down
4 changes: 3 additions & 1 deletion Fluent.Ribbon/Controls/RibbonControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public DataTemplateSelector? HeaderTemplateSelector

#region Icon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? Icon
{
get => this.GetValue(IconProperty);
Expand Down
12 changes: 9 additions & 3 deletions Fluent.Ribbon/Controls/RibbonGroupBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,9 @@ public bool IsDropDownOpen

/// <summary>
/// Gets or sets icon
/// </summary>
/// </summary>
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? Icon
{
get => this.GetValue(IconProperty);
Expand All @@ -580,7 +582,9 @@ public object? Icon

#region MediumIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? MediumIcon
{
get => this.GetValue(MediumIconProperty);
Expand All @@ -594,7 +598,9 @@ public object? MediumIcon

#region LargeIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? LargeIcon
{
get => this.GetValue(LargeIconProperty);
Expand Down
5 changes: 4 additions & 1 deletion Fluent.Ribbon/Controls/Spinner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ namespace Fluent;

using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Windows;
Expand Down Expand Up @@ -54,7 +55,9 @@ public RibbonControlSizeDefinition SimplifiedSizeDefinition

#region MediumIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? MediumIcon
{
get => this.GetValue(MediumIconProperty);
Expand Down
13 changes: 10 additions & 3 deletions Fluent.Ribbon/Controls/ToggleButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Fluent;

using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation.Peers;
Expand Down Expand Up @@ -128,7 +129,9 @@ public DataTemplateSelector? HeaderTemplateSelector

#region Icon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? Icon
{
get => this.GetValue(IconProperty);
Expand All @@ -142,7 +145,9 @@ public object? Icon

#region LargeIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? LargeIcon
{
get => this.GetValue(LargeIconProperty);
Expand All @@ -156,7 +161,9 @@ public object? LargeIcon

#region MediumIcon

/// <inheritdoc />
/// <inheritdoc />
[Localizability(LocalizationCategory.NeverLocalize)]
[Localizable(false)]
public object? MediumIcon
{
get => this.GetValue(MediumIconProperty);
Expand Down