News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Localisation

Started by Yacine, February 17, 2013, 11:24:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yacine

All of you, who ever had to implement a complex software solution (Visio or other) were certainly concerned to avoid cul-de-sacs resulting from hard-coded values. The obvious way – even if more tedious – is to implement an additional layer, in which you implement one internal – and immutable – set of values and one external – visible to your users – that you can modify with small effort.
For Visio shapes I came up with the following solution, which I wanted to share with you.
The values of the shape data (in lists) need to reference to variable lists. These lists would reside either in the user-defined cells section if the shape is only to be modified by Visio experts, or in the shape data section, if your trust in your users is big enough. (These variable lists can easily be made with text editors or as in the enclosed example with excel.)
One major issue in this solution was to be able to remote control the shape without destroying its ability to react to users commands. A "SetF/GetRef" command from a user defined cell (user.ID_Ext) to the aimed shape data value (prop.fruit) did the job.
Extending that reflection, I added a shape in which you can switch the language of preference.
I'd enjoy your comments regarding better solutions, as this one blows up the shapesheet if you have more than one variable to handle.
Yacine

Yacine

Yacine

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 151 (show)
Files included: 32 - 1207KB. (show)
Memory used: 1007KB.
Tokens: post-login.
Cache hits: 13: 0.00160s for 26,725 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]