Delphi resourcestring localization process

  

Even if I have found a lot online I still am not able to find how to really use resourcestrings. I have an iOS only application made with seattle and I have a file called italian.pas which is the following:

unit italian;

interface

resourcestring
word1 = “parola1”;
test1 = “prova1”;

implementation

end.

I don’t want to use localization tools. From what I have understood the compiler generates a .drc file containing my resourcestrings. What to do now to localize my iOS app? (or android)

I have created other 2 files like above called french.pas and american.pas. They are the copy of italian.pas but the string values are of course different according with the language. In this answer Allen Bauer said:

This .drc file can then be translated or otherwise processed and then recompiled into a .res file This .res file can then be linked into a special “resource-only” dll with a specific extension other than “.dll” that indicates the language.

First of all consider that I am not a Delphi expert! From what I have understood here the compiler should generate somewhere a drc file from my italian.pas and the drc is going to contain my strings. Now (from the quote above) I should edit the drc adding the localization that I need.

How do I edit the drc file with the localization? Also I guess that the edited drc files containing the localizations must be linked with the executable somehow. Do I really need to create 3 different pas files files or I just need a single drc file and then localize it?

Comments are closed.