"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Duplicati/Library/Localization/Short.cs" between
duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25.tar.gz and duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11.tar.gz

About: Duplicati is a backup client that securely stores encrypted, incremental, compressed backups on local devices, cloud storage services and remote file servers (for Windows, macOS and Linux). A remark: This officially "pre-release" seems to run stable.

Short.cs  (duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25):Short.cs  (duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11)
skipping to change at line 23 skipping to change at line 23
// Lesser General Public License for more details. // Lesser General Public License for more details.
// //
// You should have received a copy of the GNU Lesser General Public // You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software // License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
using System; using System;
namespace Duplicati.Library.Localization.Short namespace Duplicati.Library.Localization.Short
{ {
/// <summary> /// <summary>
/// Localization using the default (invariant) culture
/// </summary>
public static class LD
{
/// <summary>
/// The instance for translation
/// </summary>
private static readonly ILocalizationService LS = LocalizationService.In
variant;
/// <summary>
/// Localizes the string similar to how string.Format works
/// </summary>
/// <param name="message">The string to localize</param>
/// <returns>The localized string</returns>
public static string L(string message)
{
return LS.Localize(message);
}
/// <summary>
/// Localizes the string similar to how string.Format works
/// </summary>
/// <param name="message">The string to localize</param>
/// <param name="arg0">The first argument</param>
/// <returns>The localized string</returns>
public static string L(string message, object arg0)
{
return LS.Localize(message, arg0);
}
/// <summary>
/// Localizes the string similar to how string.Format works
/// </summary>
/// <param name="message">The string to localize</param>
/// <param name="arg0">The first argument</param>
/// <param name="arg1">The second argument</param>
/// <returns>The localized string</returns>
public static string L(string message, object arg0, object arg1)
{
return LS.Localize(message, arg0, arg1);
}
/// <summary>
/// Localizes the string similar to how string.Format works
/// </summary>
/// <param name="message">The string to localize</param>
/// <param name="arg0">The first argument</param>
/// <param name="arg1">The second argument</param>
/// <param name="arg2">The third argument</param>
/// <returns>The localized string</returns>
public static string L(string message, object arg0, object arg1, object
arg2)
{
return LS.Localize(message, arg0, arg1, arg2);
}
/// <summary>
/// Localizes the string similar to how string.Format works
/// </summary>
/// <param name="message">The string to localize</param>
/// <param name="args">The arguments</param>
/// <returns>The localized string</returns>
public static string L(string message, params object[] args)
{
return LS.Localize(message, args);
}
}
/// <summary>
/// Localization using the current culture /// Localization using the current culture
/// </summary> /// </summary>
public static class LC public static class LC
{ {
/// <summary> /// <summary>
/// The instance for translation /// The instance for translation
/// </summary> /// </summary>
private static ILocalizationService LS = LocalizationService.Current; private static ILocalizationService LS = LocalizationService.Current;
/// <summary> /// <summary>
skipping to change at line 118 skipping to change at line 50
/// <summary> /// <summary>
/// Localizes the string similar to how string.Format works /// Localizes the string similar to how string.Format works
/// </summary> /// </summary>
/// <param name="message">The string to localize</param> /// <param name="message">The string to localize</param>
/// <returns>The localized string</returns> /// <returns>The localized string</returns>
public static string L(string message) public static string L(string message)
{ {
return LS.Localize(message); return LS.Localize(message);
} }
/// <summary>
/// Localizes the string similar to how string.Format works
/// </summary>
/// <param name="message">The string to localize</param>
/// <param name="arg0">The first argument</param>
/// <returns>The localized string</returns>
public static string L(string message, object arg0)
{
return LS.Localize(message, arg0);
}
/// <summary>
/// Localizes the string similar to how string.Format works
/// </summary>
/// <param name="message">The string to localize</param>
/// <param name="arg0">The first argument</param>
/// <param name="arg1">The second argument</param>
/// <returns>The localized string</returns>
public static string L(string message, object arg0, object arg1)
{
return LS.Localize(message, arg0, arg1);
}
/// <summary>
/// Localizes the string similar to how string.Format works
/// </summary>
/// <param name="message">The string to localize</param>
/// <param name="arg0">The first argument</param>
/// <param name="arg1">The second argument</param>
/// <param name="arg2">The third argument</param>
/// <returns>The localized string</returns>
public static string L(string message, object arg0, object arg1, object
arg2)
{
return LS.Localize(message, arg0, arg1, arg2);
}
/// <summary>
/// Localizes the string similar to how string.Format works
/// </summary>
/// <param name="message">The string to localize</param>
/// <param name="args">The arguments</param>
/// <returns>The localized string</returns>
public static string L(string message, params object[] args)
{
return LS.Localize(message, args);
}
}
/// <summary>
/// Localization using the OS install culture
/// </summary>
public static class LI
{
/// <summary>
/// The instance for translation
/// </summary>
private static readonly ILocalizationService LS = LocalizationService.In
stalled;
/// <summary>
/// Localizes the string similar to how string.Format works
/// </summary>
/// <param name="message">The string to localize</param>
/// <returns>The localized string</returns>
public static string L(string message)
{
return LS.Localize(message);
}
/// <summary> /// <summary>
/// Localizes the string similar to how string.Format works /// Localizes the string similar to how string.Format works
/// </summary> /// </summary>
/// <param name="message">The string to localize</param> /// <param name="message">The string to localize</param>
/// <param name="arg0">The first argument</param> /// <param name="arg0">The first argument</param>
/// <returns>The localized string</returns> /// <returns>The localized string</returns>
public static string L(string message, object arg0) public static string L(string message, object arg0)
{ {
return LS.Localize(message, arg0); return LS.Localize(message, arg0);
 End of changes. 2 change blocks. 
140 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)