1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

Show localized wikipedia context

This commit is contained in:
Dominik Schmidt
2011-12-09 03:03:17 +01:00
parent 41e908bb34
commit 64d220d9c5

View File

@@ -31,7 +31,8 @@ WikipediaContext::setArtist( const Tomahawk::artist_ptr& artist )
m_artist = artist;
webView()->load( QString( "http://en.wikipedia.org/w/index.php?useformat=mobile&title=%1" ).arg( m_artist->name() ) );
QString lang = QLocale::system().name().split("_").first();
webView()->load( QString( "http://%1.wikipedia.org/w/index.php?useformat=mobile&title=%2" ).arg( lang ).arg( m_artist->name() ) );
}