Mtf.LanguageService
1.0.1
Mtf.Windows.Forms.LanguageService
Additional DetailsThis 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
<PackageReference Include="Mtf.LanguageService" Version="1.0.1" />
paket add Mtf.LanguageService --version 1.0.1
#r "nuget: Mtf.LanguageService, 1.0.1"
// 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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
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 |
---|