SkillAgentSearch skills...

ResgenEx

Convert Gnu .po translation/localization files to or from Inno Setup .isl files and .net .resx files, forked from mono's resgen util

Install / Use

/learn @Treer/ResgenEx
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

resgenEx

convert Gnu .PO localization files to/from other formats such as .isl and .resx

For Gnu .po language translation files. See the GNU gettext documentation for information about PO files.

resgenEx is a fork of mono's resgen, made to move and maintain a Windows .Net project to .po files, so it focuses on preserving/automating comments during file conversions, and adds support for .isl files (localization files for the Windows installation builder "Inno Setup").

To support IDs being used in msgids, instead of the english version of the msgstr, resgenEx adds an "#. Original message text: " comment when converting from other formats into .po. If you wish to add these comments to an existing .po file you can convert it to .resx then back to .po

In future I may add WiX .wxl files.

The Windows executable can be downloaded here (v0.11)

Usage:

resgenex [options] source.ext [dest.ext]

Convert a resource file from one format to another. The currently supported formats are: '.resx' '.po' '.pot' '.isl'. If the destination file is not specified, source.resources will be used.

Options:

  • -nocomments, /noComments

don't export the rawComments from the source file to the destination format, and don't include automatically created comments.

  • -sourcecommentsonly, /sourceCommentsOnly

only export comments to the destination format that existed in the source file. Do not include automatically created comments.

  • -addformatflags, /addFormatFlags

when exporting to .po or .pot, flags such as csharp-format will be added to strings which contain format specifications, e.g. "{0}"

  • -usesourcepath, /useSourcePath

to resolve relative file paths, use the directory of the resource file as current directory.

Related Skills

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated1y ago
Forks3

Languages

C#

Security Score

60/100

Audited on Oct 25, 2024

No findings