We have a small problem. When using a Right to left language - and swapping to a Left to Right language file it will only change if the keyboard is a language that is right to left. But if the user loads a english txt file (Left to right) - and then say a Urdu txt file (right to Left) and doesn't change the keyboard - it won't change direction. Some users may not bring the keyboard up.
A couple of ideas.
If the txt file that is read in has a file name of a lang code that is RtoL - then use that. eg. urd_SomeFilename.txt => Urdu => Right To Left
or if the text file starts with a comment and lang code eg. //urd
use that?
Or maybe we just force it with //rtol or //ltor in the first line.
We have a small problem. When using a Right to left language - and swapping to a Left to Right language file it will only change if the keyboard is a language that is right to left. But if the user loads a english txt file (Left to right) - and then say a Urdu txt file (right to Left) and doesn't change the keyboard - it won't change direction. Some users may not bring the keyboard up.
A couple of ideas.
If the txt file that is read in has a file name of a lang code that is RtoL - then use that. eg. urd_SomeFilename.txt => Urdu => Right To Left
or if the text file starts with a comment and lang code eg. //urd
use that?
Or maybe we just force it with //rtol or //ltor in the first line.