In all the countries with such a problem we can use the fact that in some cases it's possible to predict before typing which language should appear here . There are two ways to do this. The first one is to convert all the characters entered into the proper language giving user a chance not to take care of it. This way should be used when the information must be in one language only. So if I start to type something in the browser's top window the browser should always take care that there cannot be any text characters except the English ones.
Many local tasks require a person's name entry.
It is quite clear that for example in Russia there cannot be other language than Russian. The second way is to let the program temporarily switch keyboard layout on the proper one and then switch it back again not burdening the user with extra indicator watching. In the program code text of such systems the local-language symbols could only appear in the string values or in the remarks. Strings usually start from the quotation marks and the remarks start from the special characters too. As user enters this characters the program could admit he is willing to type the local-language text and it could switch on the local keyboard layout by itself.