| Ah, ok, now I think I see the source of your question.
For what you are doing, the way you've written the code is PROBABLY ok.
As a matter of style, if it were me, I'd probably alter the code and make the translation function part of its own class, and make those 'global' variables you are using properties of that class with an accessor function for the purpose of reading the variables. Unfortunately, this would entail a significant rewrite of the code.
__________________ Avatar and sig graphic by Pitch. Subscribers!
Ask about a custom graphic or avatar today! Later, Gizmo   |