[Pas2js] Resource strings, part 2

Michael Van Canneyt michael at freepascal.org
Sat Jul 20 16:03:43 CEST 2019



On Sat, 20 Jul 2019, Mattias Gaertner via Pas2js wrote:

> On Sat, 20 Jul 2019 15:15:13 +0200 (CEST)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
>> On Sat, 20 Jul 2019, Mattias Gaertner via Pas2js wrote:
>> 
>> > On Sat, 20 Jul 2019 14:13:45 +0200 (CEST)
>> > Michael Van Canneyt <michael at freepascal.org> wrote:
>> > 
>> >> Hello,
>> >> 
>> >> The compiler now can generate (as FPC itself does) a file with all
>> >> the resource strings in your unit or program. 
>> >
>> > Great!
>> >
>> > 
>> >> [...]
>> >> See also:
>> >> https://wiki.freepascal.org/pas2js#Resource_strings 
>> >
>> > The format does not look like fpc's rsj. Why has it the same
>> > extension? 
>> 
>> Because it is a logical extension.
>
> IMO the above wiki page should explain shortly why pas2js
> is not using fpc's format and what tools translators can use.

I explained why.

As soon as tools for translators appear, they will be added to the page.

This could in fact be a nice contribution: write a small web-based tool to
translate a .jrs file.

>
> 
>> How else would you abbreviate "Resource String JSON"
>> 
>> We can of course make it JSON Resource String - .jrs - to avoid
>> confusion.

Done.

Michael.


More information about the Pas2js mailing list