auto detect mingw in mingw32/mingw64

remove spaces in "小熊猫C++"
This commit is contained in:
Roy Qu 2024-04-07 23:21:53 +08:00
parent e953de2eee
commit fd0d4d9f26
2 changed files with 14 additions and 14 deletions

View File

@ -3267,9 +3267,9 @@ void Settings::CompilerSets::findSets()
QStringList pathList = path.split(PATH_SEPARATOR);
#ifdef Q_OS_WIN
pathList = QStringList{
mSettings->dirs().appDir() + "/Clang64/bin",
mSettings->dirs().appDir() + "/MinGW64/bin",
mSettings->dirs().appDir() + "/MinGW32/bin",
mSettings->dirs().appDir() + "/clang64/bin",
mSettings->dirs().appDir() + "/mingw64/bin",
mSettings->dirs().appDir() + "/mingw32/bin",
} + pathList;
#endif
QString folder, canonicalFolder;
@ -3381,8 +3381,8 @@ void Settings::CompilerSets::loadSets()
QString msg = QObject::tr("Compiler set not configuared.")
+"<br /><br />"
+QObject::tr("Would you like Red Panda C++ to search for compilers in the following locations: <BR />'%1'<BR />'%2'? ")
.arg(includeTrailingPathDelimiter(pSettings->dirs().appDir()) + "MinGW32")
.arg(includeTrailingPathDelimiter(pSettings->dirs().appDir()) + "MinGW64");
.arg(includeTrailingPathDelimiter(pSettings->dirs().appDir()) + "mingw32")
.arg(includeTrailingPathDelimiter(pSettings->dirs().appDir()) + "mingw64");
#else
QString msg = QObject::tr("Compiler set not configuared.")
+"<br /><br />"

View File

@ -44,20 +44,20 @@ LangString StrHeaderFile 1033 "Header File"
LangString StrUninstallerAppName 1033 "Uninstall ${APP_NAME_EN}"
/* Simplified Chinese 2052 */
LangString MessageSectionMain 2052 "小熊猫 C++ IDE集成开发环境"
LangString MessageSectionMain 2052 "小熊猫C++IDE集成开发环境"
LangString MessageSectionIcons 2052 "项目模板使用的图标文件"
LangString MessageSectionMinGW32 2052 "${MINGW32_COMPILER_NAME} 编译器和相关的工具、头文件和库"
LangString MessageSectionMinGW64 2052 "${MINGW64_COMPILER_NAME} 编译器和相关的工具、头文件和库"
LangString MessageSectionLlvm 2052 "LLVM-MinGW 编译器和相关的工具、头文件和库"
LangString MessageSectionLangs 2052 "小熊猫 C++ 翻译文件"
LangString MessageSectionAssocs 2052 "使用小熊猫 C++ 打开这些文件"
LangString MessageSectionAssocs 2052 "使用小熊猫C++ 打开这些文件"
LangString MessageSectionShortcuts 2052 "开始菜单和快捷方式"
LangString MessageSectionCompress 2052 "压缩小熊猫 C++ 安装目录(需要 Windows 10 或更高版本)"
LangString MessageSectionCompress 2052 "压缩小熊猫C++ 安装目录(需要 Windows 10 或更高版本)"
LangString MessageSectionConfig 2052 "删除之前安装遗留的所有配置文件"
LangString MessageUninstallText 2052 "将要删除小熊猫 C++, 是否继续?"
LangString MessageUninstallV2 2052 "本机上已经安装了旧版本小熊猫 C++。$\n$\n点击 “确定” 以将其删除并继续,或者 “取消” 中止安装。"
LangString MessageUninstallText 2052 "将要删除小熊猫C++, 是否继续?"
LangString MessageUninstallV2 2052 "本机上已经安装了旧版本小熊猫C++。$\n$\n点击 “确定” 以将其删除并继续,或者 “取消” 中止安装。"
LangString MessageUninstallingExisting 2052 "正在删除旧版本..."
LangString MessageCompressing 2052 "正在压缩小熊猫 C++ 安装目录..."
LangString MessageCompressing 2052 "正在压缩小熊猫C++ 安装目录..."
LangString MessageRemoveConfig 2052 "你想要删除所有的配置文件吗?"
LangString SectionMainName 2052 "程序文件(必需)"
LangString SectionIconsName 2052 "图标文件"
@ -65,9 +65,9 @@ LangString SectionLangsName 2052 "语言文件"
LangString SectionMinGW32Name 2052 "${MINGW32_COMPILER_NAME} 编译器"
LangString SectionMinGW64Name 2052 "${MINGW64_COMPILER_NAME} 编译器"
LangString SectionLlvmName 2052 "LLVM-MinGW 编译器"
LangString SectionAssocsName 2052 "关联文件到小熊猫 C++"
LangString SectionAssocsName 2052 "关联文件到小熊猫C++"
LangString SectionAssocExtNameBegin 2052 "将"
LangString SectionAssocExtNameEnd 2052 "文件关联到小熊猫 C++"
LangString SectionAssocExtNameEnd 2052 "文件关联到小熊猫C++"
LangString SectionShortcutsName 2052 "快捷方式"
LangString SectionMenuLaunchName 2052 "创建开始菜单程序项"
LangString SectionDesktopLaunchName 2052 "创建桌面快捷方式"
@ -77,7 +77,7 @@ LangString SectionConfigName 2052 "删除原有配置文件"
LangString ErrorArchMismatch 2052 "架构不匹配。此软件包适用于 ${ARCH},但操作系统是 $osArch。"
LangString ErrorWindowsBuildRequired 2052 "不支持的操作系统。需要 ${REQUIRED_WINDOWS_NAME} (${REQUIRED_WINDOWS_BUILD}) 或更高版本。"
LangString WarningArchMismatch 2052 "注意:在 $osArch 操作系统上安装小熊猫 C++ ${ARCH} 版本。你可能想要安装本机版本。"
LangString WarningArchMismatch 2052 "注意:在 $osArch 操作系统上安装小熊猫C++ ${ARCH} 版本。你可能想要安装本机版本。"
LangString StrAppName 2052 "${APP_NAME_ZH_CN}"
LangString StrInstTypeFull 2052 "完整"