wan24-Poedit
1.0.0
Please consider using wan24-I8N or wan24-I8N-Compressed instead.
dotnet add package wan24-Poedit --version 1.0.0
NuGet\Install-Package wan24-Poedit -Version 1.0.0
<PackageReference Include="wan24-Poedit" Version="1.0.0" />
<PackageVersion Include="wan24-Poedit" Version="1.0.0" />
<PackageReference Include="wan24-Poedit" />
paket add wan24-Poedit --version 1.0.0
#r "nuget: wan24-Poedit, 1.0.0"
#:package wan24-Poedit@1.0.0
#addin nuget:?package=wan24-Poedit&version=1.0.0
#tool nuget:?package=wan24-Poedit&version=1.0.0
wan24-Poedit
This library contains an adapter for using Poedit PO files with wan24-Core
translation helpers. Karambolo.PO is being
referenced for that, 'cause no PO format parsing is implemented in
wan24-Poedit
.
Usage
How to get it
This library is available as NuGet package "wan24-Poedit".
Loading a translation from Poedit PO format
// From a PO file
PoeditTranslationTerms terms = PoeditTranslationTerms.FromFile("/path/to/file.po");
PoeditTranslationTerms terms = await PoeditTranslationTerms.FromFileAsync("/path/to/file.po");
// From a PO stream
PoeditTranslationTerms terms = PoeditTranslationTerms.FromStream(poStream);
PoeditTranslationTerms terms = await PoeditTranslationTerms.FromStreamAsync(poStream);
// From a PO string
PoeditTranslationTerms terms = PoeditTranslationTerms.FromString(poString);
// From a byte array (UTF-8 encoded PO string)
PoeditTranslationTerms terms = PoeditTranslationTerms.FromBytes(poData);
// From a POCatalog
PoeditTranslationTerms terms = new(poCatalog);
The created terms
instance can be used for the wan24-Core
Translation
.
Please refer to the wan24-Core
documentation for more details about that.
Creating a PO file from source code
This library only contains PO reading helpers for working with the
wan24-Core
translation helpers. For creating a PO file you might want to use
the dotnet tool
wan24-PoeditParser, which is
able to parse C# source code (and any other source language code) and create a
PO file, which can be used with Poedit. Also the wan24-PoeditParser
can be
used as custom extractor for the Poedit GUI.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Karambolo.PO (>= 1.11.0)
- wan24-Core (>= 2.11.0)
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 |
---|