Hi,
I am trying to write a script for a multi-lingual application. Here is my code-
[b]Repeat with each line of file “C:\ProfileScreen_Greek.txt”
put item 2 of it into ls_StringID_String.(word 1 of item 1 of it)
end repeat
put “1170,1171,1173,1178,1179,1205” into ls_IdList
Put fun_VerifyText(ls_IdList,ls_StringID_String)
Function fun_VerifyText(ls_IdList,ls_StringID_String)
repeat with each item x of ls_IdList
put ls_StringID_String.(x) into strString
log strString
end repeat
end function[/b]
The data file ProfileScreen_Greek.txt looks like this -
1170,Μετρητής
1171,Μετρητής συνδεδεμένος
1173,ΗΜΕΡΟΜΗΝΙΑ ΜΕΤΡΗΤΗ
1178,ΩΡΑ ΜΕΤΡΗΤΗ
1179,ΤΥΠΟΣ ΜΕΤΡΗΤΗ:
1205,Μάθετε περισσότερα
When I execute the script I get the error "
STUnknownMessage ERROR: No Such Function: ‘1170’
Execution Time 0:00:00 Untitled.script" on the line “put ls_StringID_String.(x) into strString”
This code works perfectly if I use English alphabet characters in the data file instead of Greek or German or Dutch (basically any language that has characters which are not in the english alphabets.) Does that mean that the list ls_StringID_String cannot hold characters which are not english? In that case what is the solution? How can I pass the test data for languages other than english?
Will greatly appreciate your help. Thanks!