Skip to content

Commit

Permalink
Renamed various resource strings related to the UserAgent header.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvitaly committed Oct 23, 2024
1 parent 24c600d commit 2df4190
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/corelib/CurrentApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public CurrentApp(bool IsPortable, string AppName)
}

// Generating User-Agent header for outgoing HTTP queries...
UserAgent = string.Format(Properties.Resources.AppDefUA, Platform.OSFriendlyName, Platform.UASuffix, Environment.OSVersion.Version.Major, Environment.OSVersion.Version.Minor, CultureInfo.CurrentCulture.Name, AppVersion, AppName, SystemArch);
UserAgent = string.Format(Properties.Resources.AppUserAgentTemplate, Platform.OSFriendlyName, Platform.UserAgentSuffix, Environment.OSVersion.Version.Major, Environment.OSVersion.Version.Minor, CultureInfo.CurrentCulture.Name, AppVersion, AppName, SystemArch);
}
}
}
2 changes: 1 addition & 1 deletion src/corelib/CurrentPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public virtual void StartServiceRepair(string FullBinPath)
/// <summary>
/// Get platform-dependent suffix for HTTP_USER_AGENT header.
/// </summary>
public virtual string UASuffix => Properties.Resources.AppUASuffixOther;
public virtual string UserAgentSuffix => Properties.Resources.AppUserAgentSuffixOther;

/// <summary>
/// Get current operating system ID.
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/IPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public interface IPlatform
/// <summary>
/// Get platform-dependent suffix for HTTP_USER_AGENT header.
/// </summary>
string UASuffix { get; }
string UserAgentSuffix { get; }

/// <summary>
/// Show the specified file in default file manager.
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/PlatformWindows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public override int StartElevatedProcess(string FileName, string Arguments)
/// <summary>
/// Get platform-dependent suffix for HTTP_USER_AGENT header.
/// </summary>
public override string UASuffix => Properties.Resources.AppUASuffixWin;
public override string UserAgentSuffix => Properties.Resources.AppUserAgentSuffixWin;

/// <summary>
/// Get current operating system ID.
Expand Down
26 changes: 13 additions & 13 deletions src/corelib/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/corelib/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AppDefUA" xml:space="preserve">
<value>Mozilla/5.0 ({0} {1} {2}.{3}; {4}; rv:{5}) {6} ({7})</value>
</data>
<data name="AppOpenHandlerEscapeTemplate" xml:space="preserve">
<value>"{0}"</value>
</data>
Expand All @@ -129,12 +126,15 @@
<data name="AppOpenHandlerMac" xml:space="preserve">
<value>open</value>
</data>
<data name="AppUASuffixOther" xml:space="preserve">
<data name="AppUserAgentSuffixOther" xml:space="preserve">
<value>(mono)</value>
</data>
<data name="AppUASuffixWin" xml:space="preserve">
<data name="AppUserAgentSuffixWin" xml:space="preserve">
<value>NT</value>
</data>
<data name="AppUserAgentTemplate" xml:space="preserve">
<value>Mozilla/5.0 ({0} {1} {2}.{3}; {4}; rv:{5}) {6} ({7})</value>
</data>
<data name="BackUpLocalDir" xml:space="preserve">
<value>backups</value>
</data>
Expand Down

0 comments on commit 2df4190

Please sign in to comment.