genrb

genrb is a command line tool for the resource files compilation. It reads the list of resource bundle source files and creates a binary version of resource bundles (.res files)

Syntax

genrb [options] [files]

Options

-h [ --help ]

Displays usage information

-q [ --quiet ]

Suppresses warnings

-v [ --verbose ]

Provides detailed processing information

-V [--version] prints out version number and exits
-c [--copyright] include copyright notice

-e [ --encoding ]

Specifies encoding of source files

-d [ --destdir ]

Sets the destination directory

-s [ --sourcedir ]

Specifies the source directory

-i or --icudatadir directory for locating any needed intermediate data files, followed by path
-j or --write-java write a Java ListResourceBundle for ICU4J, followed by optional encoding defaults to ASCII and \uXXXX format.
--java-package For --write-java: package name for writing the ListResourceBundle, defaults to com.ibm.icu.impl.data
-b or --bundle-name For --write-java: root resource bundle name for writing the ListResourceBundle, defaults to LocaleElements
-x or --write-xliff write an XLIFF file for the resource bundle. Followed by an optional output file name.
-k or --strict use pedantic parsing of syntax
-l or --language for XLIFF: language code compliant with BCP 47.
-C or --noBinaryCollation o not generate binary collation image; makes .res file smaller but collator instantiation much slower; maintains ability to get tailoring rules
-R or --omitCollationRules do not include collation (tailoring) rules; makes .res file smaller and maintains collator instantiation speed but tailoring rules will not be available (they are rarely used)
--formatVersion write a .res file compatible with the requested formatVersion (single digit); for example, --formatVersion 1
--writePoolBundle write a pool.res file with all of the keys of all input bundles
--usePoolBundle [path-to-pool.res] point to keys from the pool.res keys pool bundle if they are available there; makes .res files smaller but dependent on the pool bundle (--writePoolBundle and --usePoolBundle cannot be combined)

Example:

genrb -v -d ./output ./source/hello_world.4s

 

Contact Us

Privacy Policy

Copyright © 2026 Querix, (UK) Ltd.