vista internationalization open source project group...

Post on 15-Aug-2020

20 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

VistA Internationalization Open Source Project Group—Localization Using Kryvich’s

Sam Habiel, PharmD

OCTOBER 1, 2018

2

• https://sites.google.com/site/kryvich/localizer

• Why we chose this– Interoperable with ITE– Limited source code changes specific to get it

working– Simple output format

Kryvich’s Localizer

3

• Add KDL tools to our source tree• Need to compile CPRS first and create

initial set of translation files– Run kdlscan.exe against CPRS; and it will

give you the files– Copy these files to our repository into new

folders

Bootstrapping Process

3

4

kdlscan.exe "..\..\..\..\..\..\build\CPRS\CPRS-Chart\CPRSChart.exe"

K.D.L. Scanner 4.1: gets localizable strings from EXE, BPL, DLL and DRC files=============================================================================

Old language file was found. SVCS activated...

Language file "..\..\..\..\..\..\build\CPRS\CPRS-Chart\CPRSChart.lng" created.

Boot Strapping Process

4

5

CMake files modified

6

7

Result

8

• The way to localize embedded strings in CPRS• Steps

– Modify CPRS source code to convert the embedded strings to resource strings

– Compile– Run kdlscan.exe on CPRSChart.exe– Copy CPRSChart.lng to Translations folder– Run lngupdate.exe to update the translated file– Update the translation in a text editor– Copy back to CPRS runtime folder (or use Cmake)

Resource Strings

8

9

Cover sheet: fFrame.pas

9

10

kdlscan.exe "..\..\..\..\..\..\build\CPRS\CPRS-Chart\CPRSChart.exe"

K.D.L. Scanner 4.1: gets localizable strings from EXE, BPL, DLL and DRC files=============================================================================

Old language file was found. SVCS activated...

Language file "..\..\..\..\..\..\build\CPRS\CPRS-Chart\CPRSChart.lng" created.

kdlscan

10

11

cd ..\Translations\kryvichcopy ..\..\..\..\..\..\build\CPRS\CPRS-Chart\CPRSChart.lng ...\..\Translation-Frameworks\kryvich\lngupdate.exeCPRSChart.ko.lng CPRSChart.lng

lngupdate

11

12

Translate

12

13

Result

top related