Skip to content

Commit

Permalink
Fix project translation files encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea committed Jan 27, 2023
1 parent 0b59017 commit 07a6c49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgstranslationcontext.cpp
Expand Up @@ -86,6 +86,9 @@ void QgsTranslationContext::writeTsFile( const QString &locale ) const
QFile tsFile( fileName() );
tsFile.open( QIODevice::WriteOnly );
QTextStream stream( &tsFile );
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
stream.setCodec( "UTF-8" );
#endif
stream << doc.toString();
tsFile.close();
}

0 comments on commit 07a6c49

Please sign in to comment.