VistA Internationalization Open Source Project Group...
Transcript of VistA Internationalization Open Source Project Group...
![Page 1: VistA Internationalization Open Source Project Group ...smh101.com/articles/p6/plan6-l10n-kryvich.pdf · VistA Internationalization Open Source Project Group— Localization Using](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/1.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/2.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/3.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/4.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/5.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/6.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/7.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/8.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/9.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/10.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/11.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/12.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062604/5fb6eb188b876d489c38902b/html5/thumbnails/13.jpg)
13
Result