You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Check for some sort of english locale and if not found, include
398
-
// translate this for us message
399
-
if ( !lang.contains( "en_" ) )
400
-
{
401
-
helpContents = "<i>" + tr( "This help file is not available in your language %1. If you would like to translate it, please contact the QGIS development team." ).arg( lang ) + "</i><hr />";
if ( !file.open( QIODevice::ReadOnly | QIODevice::Text ) )
402
+
// Check for some sort of english locale and if not found, include
403
+
// translate this for us message
404
+
if ( !lang.contains( "en_" ) )
406
405
{
407
-
helpContents = tr( "This help file does not exist for your language:<p><b>%1</b><p>If you would like to create it, contact the QGIS development team" )
408
-
.arg( fullHelpPath );
406
+
helpContents = "<i>" + tr( "This help file is not available in your language %1. If you would like to translate it, please contact the QGIS development team." ).arg( lang ) + "</i><hr />";
409
407
}
410
-
else
408
+
409
+
}
410
+
if ( !file.open( QIODevice::ReadOnly | QIODevice::Text ) )
411
+
{
412
+
helpContents = tr( "This help file does not exist for your language:<p><b>%1</b><p>If you would like to create it, contact the QGIS development team" )
413
+
.arg( fullHelpPath );
414
+
}
415
+
else
416
+
{
417
+
QTextStream in( &file );
418
+
in.setCodec( "UTF-8" ); // Help files must be in Utf-8
419
+
while ( !in.atEnd() )
411
420
{
412
-
QTextStream in( &file );
413
-
in.setCodec( "UTF-8" ); // Help files must be in Utf-8
0 commit comments