Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix project translation files encoding
  • Loading branch information
agiudiceandrea authored and github-actions[bot] committed Jan 29, 2023
1 parent 73f3beb commit edf8f1f
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 edf8f1f

Please sign in to comment.