mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 07:19:42 +01:00
Show localized wikipedia context
This commit is contained in:
parent
41e908bb34
commit
64d220d9c5
@ -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() ) );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user