diff --git a/CMakeLists.txt b/CMakeLists.txt index 401071518..0f0721504 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -702,8 +702,7 @@ if(NOT BUILD_HYDRA_CORE AND NOT BUILD_LIBRETRO_CORE) ) # Translation files in Qt's .ts format. Will be converted into binary files and embedded into the executable - set(TRANSLATIONS_TS docs/translations/en.ts docs/translations/el.ts docs/translations/es.ts docs/translations/pt-br.ts) - + set(TRANSLATIONS_TS docs/translations/en.ts docs/translations/el.ts docs/translations/es.ts docs/translations/pt_br.ts) set_source_files_properties(${TRANSLATIONS_TS} PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/translations") qt_add_translation(TRANSLATIONS_QM ${TRANSLATIONS_TS}) diff --git a/docs/translations/pt-br.ts b/docs/translations/pt_br.ts similarity index 100% rename from docs/translations/pt-br.ts rename to docs/translations/pt_br.ts diff --git a/src/panda_qt/translations.cpp b/src/panda_qt/translations.cpp index 09667ced6..f6d3c410b 100644 --- a/src/panda_qt/translations.cpp +++ b/src/panda_qt/translations.cpp @@ -50,7 +50,7 @@ static std::array languages = { LanguageInfo(QStringLiteral(u"English"), "en"), // English LanguageInfo(QStringLiteral(u"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"), "el"), // Greek LanguageInfo(QStringLiteral(u"Espa\u00F1ol"), "es"), // Spanish - LanguageInfo(QStringLiteral(u"Portugu\u00EAs (Brasil)"), "pt-br") // Portuguese ( Brazillian ) + LanguageInfo(QStringLiteral(u"Portugu\u00EAs (Brasil)"), "pt_br") // Portuguese ( Brazillian ) }; QComboBox* ConfigWindow::createLanguageSelect() {