OpenDCL Forums

OpenDCL => Show and Tell => Topic started by: Slavko Ivanovic on November 25, 2009, 07:09:18 PM

Title: OpenDCL Language File Demo, and More
Post by: Slavko Ivanovic on November 25, 2009, 07:09:18 PM
(http://img18.imageshack.us/img18/4845/lngf.jpg) (http://img18.imageshack.us/i/lngf.jpg/)

I have decided to extract pieces from one of the project that i currently developing,
assemble this Demo, and share, before my project gone to be more application specific,
and include more resources and connections.

Concept is that (if well prepared) OpenDCL can employ external/editable language (.lng) files
to fill "translatable" controls.

In this demo, initialization of proper .lng file is accomplished with a single function call immediately
after dcl_Project_Load is called.
-------
Plot 1.
Lng file (actually support for lng files) can be included in Project, if this function is putted.
Language files can be distributed with project to end users, and they can create (translate)
project interface to match their needs, and maybe spread around this .lng files, or upload
back to author, or Author can expose option inside application for changing languages.

Plot 2.
Lng files can be used by author only in developing stage for easier translation.
- Demo include function for creation base (starting) .lng file from the .odcl file. (C:LNGEN)
After translation of extracted .lng file, author can merge .lng file data with .odcl file data,
and save as new .odcl file. Function (c:lng2odcl).
-------

This demo is combined (rich) with some of the functions that i pull out from my library
so maybe this also can be interested.

Put all files (9) in ACAD support file and appload "LNGF-DEMO.LSP".

Enjoy
Title: Re: OpenDCL Language File Demo, and More
Post by: owenwengerd on November 25, 2009, 08:15:55 PM
Thanks for sharing, Slavko.
Title: Re: OpenDCL Language File Demo, and More
Post by: Slavko Ivanovic on November 25, 2009, 11:45:29 PM
No problem Owen.
It's for keeping Show and Tell board from shutdown ;).

I think that OpenDCL users are gonna like this demo and it's content.
I know I would  :D.

Slavko
Title: Re: OpenDCL Language File Demo, and More
Post by: Kerry on November 26, 2009, 01:38:48 AM

Thanks Slavko ... that looks like a very interesting project.
Title: Re: OpenDCL Language File Demo, and More
Post by: Slavko Ivanovic on November 27, 2009, 04:31:46 AM

I have published a demo for a concept...

...but currently on my desk it has:
- support for Unicode
- automatic font type switching
- auto text box translator (optional)
- easy translator (c:LNGTRANS)
- project collection handling (one .lng for multiple projects)
- intelligent .lng auto-finder
...
...and still with single call.

Slavko