moet36 Posted January 30, 2018 Posted January 30, 2018 Curious what the best approach to this might be? Or if perhaps I'm already using it. So its standard procedure where I work to include detailed logging/reports/prompts to the end user as the script is being executed to perform its function. Living here in Canada means that I need to respect the possibility of language barriers in Quebec for instance, where it may include offices that are operating completely in French rather than English. My current approach is leveraging a simple @OSLang check and an IF statement to relay a preconfigured message in the case of an English return, and an already translated version of the same message in the case a French Windows installation is detected. Looking for a more sophisticated method....if there is any available? I'm guessing it's likely a pretty tall order to expect autoit to suddenly translate text for me but because I'm still learning, I figured I'd ask and see what options there might be out there. Thanks!
Earthshine Posted January 30, 2018 Posted January 30, 2018 (edited) Back in VB six days I used an INI file with all the translations and looked them up from there Edited January 30, 2018 by Earthshine My resources are limited. You must ask the right questions
orbs Posted January 30, 2018 Posted January 30, 2018 if you do not wish customers to make fun of your program, then stick to your current method and translate every text displayed to the user yourself (or with the help of a colleague speaking the language). i maintain a software that supports multiple languages. i made it so that i create an array of text messages, initialized by default in English, and the program can read an .ini file with translated text in it. so i made it very easy to integrate and maintain translations (and even potentially switch language at run-time), and indeed some of the non-English users have kindly submitted translations (which i then integrated into the official download package). i'm certain you can easily apply something similar. give it a shot, and feel free to ask if you encounter any difficulties. Earthshine 1 Signature - my forum contributions: Reveal hidden contents UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now