Small cleanup and language detection for apps

Some small cleanup changes that occured while porting the news app to the new changes in core. Porting is done and can be tested in the stable7 branch

@DeepDiver1975 @MorrisJobke @Kondou-ger @LEDfan @bantu @LukasReschke