So question is how to calculate percentage of translated text in strings.xml from values-(lang) against values (default language).
I know how to access string from resources but there is no option to set language code. I found some answer with changing locale but I'm "scared" of blinking UI with another language even for few ms.
Plan will be that I will count strings in default language /values/ and count also in /values-(userlang)/ and if percentage will be lower than for example 90% I will ask user (someone who uses my app often and longer time) for help with translation.
Don't need full function, just safe method to access strings (in loop) from other locale without changing user locale.
There is no goal to do it manualy. Making manually diff is no way.
So I have made a solution Custom made class, but I guess by my rating that nobody will appreciate it, so just result what I was looking for:
myTranslationRatio=new TranslationRatio(context,"en",deviceLang);
Log.d("my","myTranslationRatio getLangCore: "+myTranslationRatio.getLangCore());
Log.d("my","myTranslationRatio getLangCurrent: "+myTranslationRatio.getLangCurrent());
Log.d("my","myTranslationRatio getTranslatedRatio: "+myTranslationRatio.getTranslatedRatio());
Log.d("my","myTranslationRatio getCountCore: "+myTranslationRatio.getCountCore());
Log.d("my","myTranslationRatio getCountCurrent: "+myTranslationRatio.getCountCurrent());
Log.d("my","myTranslationRatio getCountToTranslate: "+myTranslationRatio.getCountToTranslate());
result
: myTranslationRatio getLangCore: en
: myTranslationRatio getLangCurrent: cs
: myTranslationRatio getTranslatedRatio: 0.972973
: myTranslationRatio getCountCore: 148
: myTranslationRatio getCountCurrent: 144
: myTranslationRatio getCountToTranslate: 4