From 4f81ed06520cd1ecafce29cf36b543b3ffda0c8d Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Thu, 2 Apr 2015 16:37:32 +0100 Subject: ats: readme file update --- extras/contributed/ats/readme.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'extras/contributed') diff --git a/extras/contributed/ats/readme.txt b/extras/contributed/ats/readme.txt index 9e6941e6..55213279 100644 --- a/extras/contributed/ats/readme.txt +++ b/extras/contributed/ats/readme.txt @@ -8,3 +8,34 @@ use the ats editor to edit that *.ats file. The editor was planned to support *.ats, *.inc and *.csv file formats, but not all of them are implemented. + +Usage (2015-04-02): +I modified the project a bit to make it more user friendly and to show +how it is used. Basically it maintains a list of Resource/Text ID's and +then the translation for each of those in a language column. Any number +of languages can be added. The editor is optimised for quick keyboard +usage, so translation can be done very quickly. You will have to include +a few of the ats units in your own project to use it - just like the +ats_editor project does itself. + +The editor maintains an "atstable.inc" file which is just an array of +text strings. To add a new language, it still needs to be done manually +by editing the atstable.inc file (improving the editor to do this should +be easy) and just adding one or more new language codes. + +I did the following change in the atstable.inc: + + ,' RU="Русский" HU="Magyar"' + +After that you run the ats_editor and edit the Resource ID's for those +new languages. + +You set the current language by calling atstable.SelectLang() + +You retrieve the translated text for a specific Resource ID by calling + + atsText() + +eg: ShowMessage(atsText('rsCancel'); + + --------[ end ]--------- -- cgit v1.2.3-70-g09d2