[Pas2js] Resource strings, part 2
Michael Van Canneyt
michael at freepascal.org
Sat Jul 20 14:13:45 CEST 2019
Hello,
The compiler now can generate (as FPC itself does) a file with all the resource
strings in your unit or program.
The generating of this file is controlled by the new -Jr option. It can take 3 possible arguments:
none: This is the default, no file is generated.
unit: one file per compiled unit will be generated. This file will contain all resource strings of the unit.
program: one file is generated for the main file. This fill will contain all used resource strings for the main file and all the units it uses.
If you compile a program, then the program option will generate a file with all the used resource strings in your program.
The rstranslate unit (announced earlier this week) can read this (translated) file and translate all resource strings.
This is not yet in fixes, just in trunk.
See also:
https://wiki.freepascal.org/pas2js#Resource_strings
Michael.
More information about the Pas2js
mailing list