Gå til hovedinnhold

.NET RESX format (.resx, .resw)

The .NET RESX format reads Microsoft ResX 2.0 resource files and their string-only .resw variant, the standard container for translatable resources in .NET applications (locale by satellite filename, e.g. Strings.fr.resx).

String <data> entries become translatable blocks: the name attribute is the block name, <value> is the source, a sibling <comment> becomes a translator note, and xml:space="preserve" is honored. .NET composite-format placeholders such as {0} and {1:t} are protected as inline codes. Typed and binary <data> (those carrying type/mimetype), <metadata>, <assembly>, name-reference entries, and the <resheader> boilerplate pass through untouched. Round-trips are byte-faithful, and only changed <value> content is spliced back into the original document.

IDresx
SourceBuilt-in
Extensions.resx, .resw
MIME Typestext/microsoft-resx
CapabilitiesRead + Write

Parameters

ParameterTypeDefaultDescription
extractCommentsbooleantrueVis hvert <data>-oppførings tilhørende <comment>-element som en oversetternote på den emitterte blokken. Kommentarer gjennomgår alltid uendret tur-retur uavhengig av denne innstillingen.
skipNameDataReferencesbooleantrueUtelat oppføringer med designerreferanser (de hvis navn starter med ">", f.eks. ">>control.Name") fra uttrekk. Disse inneholder WinForms-feltnavn, ikke UI-strenger.

Configure it live

Configuration
Loading form…

Examples

Ignore comments

Do not turn <comment> elements into translator notes.

extractComments: false

Processing notes

  • Only string <data> entries are translatable; typed/binary data, metadata, assembly, and resheader entries pass through untouched.

  • xml:space="preserve" on an entry sets the block's preserve-whitespace flag.

  • .NET composite-format placeholders ({0}, {1:t}) are protected as inline codes.

← Back to the Format Reference