stefanoa Active Member Licensed User Longtime User Nov 5, 2011 #1 I have to translate all text in my app and i'm using AHLocale and AHTranslator. Everything works except for the hint property example: surnameEditText.text =trans.GetText("Surname") >>> OK amountEditText.Hint =trans.GetText("Amount") >>> does NOT WORK any ideas? thanks
I have to translate all text in my app and i'm using AHLocale and AHTranslator. Everything works except for the hint property example: surnameEditText.text =trans.GetText("Surname") >>> OK amountEditText.Hint =trans.GetText("Amount") >>> does NOT WORK any ideas? thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 6, 2011 #2 What error do you get? What is the value of trans.GetText("Amount")? Upvote 0
stefanoa Active Member Licensed User Longtime User Nov 6, 2011 #3 no error, does not translate the hint property (amountEditText.Hint =trans.GetText("Amount")). the fields with EditText.text work correctly. in file myapp_it.lng: ..... New\ Event=Nuovo\ Evento Alarm=Allarme Alarm\ Date=Data\ Allarme Alarm\ Time=Ora\ All. Amount=Importo ..... thanks Last edited: Nov 6, 2011 Upvote 0
no error, does not translate the hint property (amountEditText.Hint =trans.GetText("Amount")). the fields with EditText.text work correctly. in file myapp_it.lng: ..... New\ Event=Nuovo\ Evento Alarm=Allarme Alarm\ Date=Data\ Allarme Alarm\ Time=Ora\ All. Amount=Importo ..... thanks
agraham Expert Licensed User Longtime User Nov 6, 2011 #4 Look in the log. GetText writes every call to the log so you can see the translation. Check your file contents. If the key is missing GetText returns the same text as you gave it to translate and writes it to the MissingtranslationMap. Upvote 0
Look in the log. GetText writes every call to the log so you can see the translation. Check your file contents. If the key is missing GetText returns the same text as you gave it to translate and writes it to the MissingtranslationMap.