13
VistA Internationalization Open Source Project Group— Localization Using Kryvich’s Sam Habiel, PharmD OCTOBER 1, 2018

VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

  • Upload
    others

  • View
    11

  • Download
    0

Embed Size (px)

Citation preview

Page 1: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

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

Sam Habiel, PharmD

OCTOBER 1, 2018

Page 2: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

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

Page 3: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

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

Page 4: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

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

Page 5: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

5

CMake files modified

Page 6: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

6

Page 7: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

7

Result

Page 8: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

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

Page 9: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

9

Cover sheet: fFrame.pas

9

Page 10: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

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

Page 11: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

11

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

lngupdate

11

Page 12: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

12

Translate

12

Page 13: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using

13

Result