Name: Passa Mak
Submitter: ShaunR
Submitted: 11 Oct 2009
File Updated: 25 Oct 2009
Category: LabVIEW IDE
Version: 2.0.0.0
LabVIEW Version: 2009
License Type: Creative Commons Attribution-Noncommercial-Share Alike 3.0
PassaMak is an API for realising multi-lingual user interfaces in labview.
Overview:
PassaMak is an alternative to the established methods of creating multi-lingual user interfaces that attempts to simplify both their creation and use. It is a wholely Labview native API (with source) that can scan either a directory of files or vis in memory and create language files that (using the same API) can then be used to translate the user interface at run-time. It is a text file (Excel compatible) translation tool, therefore it doesn't require compiling or special proprietry editors to translate.
How It Works:
The API can scan a directory (or memory) and extracts the label (tags),
captions, tip strips and any ancillary text (such as graph axis, plot names etc)
of all controls and indicators on the front panels and any string diagram constants
that have their captions (or labels for digrams) visible to a number of language files.
These files are in a bar "|" delimited spreadsheet format so they can be sent to
translation services where they can easily be edited in a text editor or spreadsheet program.
Once the language files have been translated, they can be loaded dynamically at run-time
to change all the captions and strings in the application on-the-fly.
One, easy to use, vi in your application does all this and supports translations for
most complex controls/indicators such as clusters, graphs, booleans, ring controls and many more.
Installation.
Unzip to a directory of your choice. Do not unzip to the vi.lib directory.
Dependencies:
Labview 9.0
Find Files (Included)
Top Level Vi (Included)
Tick Count+ (Included)
Cut Array Blanks (Included)
LabVIEW Versions:
Created with LabVIEW 9.0
Limitations.
Unicode not supported.
Enumerations not supported.
Known Issues:
None.
License:
Distributed under Creative Commons Attribution-Non-Commercial-Share Alike
See http://creativecommons.org/ for more information
Support:
If you have any problems with this code or want to suggest features:
please go to www.lavag.org and navigate to the discussion page.
Distribution:
Full source including examples is available at www.lavag.org
Contact:
PM ShaunR on www.lava.org
Revision History.
-----------------------
Version 2.0
Added exectable build example.
Added support for Tip Strips.
Added support for diagram scanning.
Fixed bug #PM-00001 in Top Vi's Path.vi preventing correct identifaction of files
when built into executable and no path defined.
Version 1.0
Initial Release.
Click here to download this file