It seems that...
... you are mixing something up
This class does not translate any strings automaticaly, it helps you to translate your App into different languages...
Short Tutorial:
Lets say, you want to release your app in 3 languages:
1) English (thats the "main" language, if there is no localized app in the language of the User, this language is default used
2) German
3) French
You have to create 3 xml-Files and set them to read-only:
1) strings.xml files in the folder /res/values
That is the main language File (in this case English). If the user has a language selected in the phone which is not supported by your app until now, this language is used.
You can open this file with a text-editor ore notepad++ and copy following information into it:
Code:
<?xml version="1.0" encoding=\"utf-8\"?>
<resources>
<String name="Button1">This is Button1</String>
</resources>
2) strings.xml files in the folder /res/values-de
Code:
<?xml version="1.0" encoding=\"utf-8\"?>
<resources>
<String name="Button1">Das ist Button1</String>
</resources>
2) strings.xml files in the folder /res/values-fr
Code:
<?xml version="1.0" encoding=\"utf-8\"?>
<resources>
<String name="Button1">"C'est Button1"</String>
</resources>
NOTE: If you use in the string any special Charater (like ') the just put the whole String in Quotes, like in the french example above
Now lets assume that you have a Button named Button1:
Code:
Sub Activity_Create
....
Dim trans as ahaTranslate
trans.initialize
Button1.text = trans.GetResourceString("Button1")
...
End Sub
If you set your phone language (in Android System settings) to English, Button1.text will be "This is Button1". However, if you set it to German, it will be "Das ist Button1". If you select Thai as your phone language, it will fall back to English and display "This is Button1", since you have no translation for Thai until now...
If you have any further questions, don't bother to ask
Edit: If you are searching for a library/class that translates strings for you, this migt be helpful
Bing translator class by NeoTechni
B4ATranslator by lonleystar