dmitriychunikhin / pdfium-vfp

PDF Viewer and ReportOutput for Visual FoxPro
The Unlicense
3 stars 1 forks source link

Add Readme and ChangeLog in Simplified Chinese. #4

Closed vfp9 closed 1 month ago

dmitriychunikhin commented 1 month ago

Thank you. Could you add chinese localization in pdfium_i18n class in pdfium-vfp.vcx?

vfp9 commented 1 month ago

yes.

I did a quick check and if I add Simplified Chinese, the code in the French and Russian sections becomes unrecognizable when I submit the update. Do you have a solution for this?

dmitriychunikhin commented 1 month ago

I have no other ideas but to do a codegen from xml files in utf-8 to vfp code. So, I implemented it in that way. The update is pushed a few minutes ago

To add Simplified Chinese localization you just need to edit Source/i18n/text_cn.xml using Source/i18n/text_en.xml as a refrence (source of text id's). Text_cn.xml must be in UTF-8

To generate source code just run build.bat (or build.prg) from pdfium-vfp root folder

FYI: Code generation is implemented in Source/pdfium-vfp-build.vcx in ProjectHook class PdfiumBuild and this hook class is set in Source/pdfiumreport.pjx