|Syntactic Confectionery Delight|
Translation selection adviseby johnfl68 (Beadle)
|on Sep 04, 2015 at 02:30 UTC||Need Help??|
johnfl68 has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, looking for advise. I have some stock phrases that need to show up in different languages. Looking for the best means to do this.
Language is set with a variable, and then that is used to select which phrase to use at different places to display. There are only about 20 or so phrases that I need, but I keep adding additional languages.
I started out doing it this way (striped down a bit, but you should get the idea):
But maybe it would be better to do it like this, as each phrase set would be together and cleaner code:
Or is there maybe a better way, that I am not thinking of?
Please let me know your thoughts?