Mtf.LanguageService 1.0.1

Suggested Alternatives

Mtf.Windows.Forms.LanguageService

Additional Details

This package has been separated into Mtf.Windows.Forms.LanguageService and Mtf.WPF.LanguageService.
You should use the correct one for your project.
Ionic.Zip has also been added to the new packages as a dependency.

dotnet add package Mtf.LanguageService --version 1.0.1
NuGet\Install-Package Mtf.LanguageService -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mtf.LanguageService" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mtf.LanguageService --version 1.0.1
#r "nuget: Mtf.LanguageService, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Mtf.LanguageService as a Cake Addin
#addin nuget:?package=Mtf.LanguageService&version=1.0.1

// Install Mtf.LanguageService as a Cake Tool
#tool nuget:?package=Mtf.LanguageService&version=1.0.1

In the downloaded package, you can found Languages.ods file, which must be copied into the folder of your application. This ods file already contains a bunch of translation, but you can add new lines if needed.

Usage in WPF:

public partial class MainWindow : Window { public MainWindow() { InitializeComponent();

	lv.ItemsSource = new[] { Lng.Elem("Users"), Lng.Elem("Groups") };
	rtb.Document.Blocks.Add(new Paragraph(new Run(Lng.Elem("File name"))));

	Translator.Translate(this);
}

} Usage in Windows.Forms:

public partial class MainForm : Form { public MainForm() { InitializeComponent();

	Translator.Translate(this);
}

}

If you need to translate to Hungarian, just use this code snippet. Lng.DefaultLanguage = LanguageService.Language.Hungarian; Translator.Translate(this);

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 591 5/3/2020
1.0.0 412 4/22/2020