Skip to content

Commit

Permalink
Update about
Browse files Browse the repository at this point in the history
  • Loading branch information
FangCunWuChang committed Jan 9, 2024
1 parent 258536b commit 1d86786
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/translates/zh-CN/about.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ countries: cn
"Open Source Digital Audio Workstation" = "开源数字音频工作站"
"Branch:" = "分支:"
"Compile Time:" = "编译时间:"
"Compiler:" = "编译器:"
"JUCE Version:" = "JUCE版本:"
"VST3 SDK Version:" = "VST3 SDK版本:"
"VST2 SDK Version:" = "VST2 SDK版本:"
Expand Down Expand Up @@ -35,6 +36,7 @@ countries: cn

"Special Thanks" = "鸣谢"
"GeraintDou" = "少灬杰"
"SineStriker" = "至精至简"
"xemisyah" = "雨宫花梨"
"Yukitoha" = "雪葉"
"Lin Yuansu P" = "磷元素P"
Expand Down
15 changes: 15 additions & 0 deletions src/audioCore/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,21 @@ namespace utils {
return DMDA_VERSION;
}

juce::String getCompilerVersion() {
#if JUCE_MSVC
return juce::String{ "MSVC " } + juce::String{ (uint64_t)_MSC_FULL_VER };

#elif JUCE_GCC
return juce::String{ "GCC " } + juce::String{ __GNUC__ } + "." + juce::String{ __GNUC_MINOR__ } + "." + juce::String{ __GNUC_PATCHLEVEL__ };

#elif JUCE_CLANG
return juce::String{ "Clang " } + juce::String{ __clang_major__ } + "." + juce::String{ __clang_minor__ } + "." + juce::String{ __clang_patchlevel__ };

#else
return "Unknown";
#endif
}

juce::String getLegalFileName(const juce::String& name) {
return name.replaceCharacters(
"\\/:*?\"<>|", "_________");
Expand Down
1 change: 1 addition & 0 deletions src/audioCore/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ namespace utils {
juce::String getVST2SDKVersion();
juce::String getLV2Version();
juce::String getDMDAVersion();
juce::String getCompilerVersion();

juce::String getLegalFileName(const juce::String& name);
juce::String getSourceDefaultPathForAudio(int id, const juce::String& name);
Expand Down
2 changes: 2 additions & 0 deletions src/ui/component/AboutComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ AboutComponent::AboutComponent() {
TRANS("Open Source Digital Audio Workstation") + "\n" +
TRANS("Branch:") + " " + utils::getReleaseBranch() + "\n" +
TRANS("Compile Time:") + " " + utils::getAudioPlatformCompileTime() + "\n" +
TRANS("Compiler:") + " " + utils::getCompilerVersion() + "\n" +
TRANS("JUCE Version:") + " " + utils::getJUCEVersion() + "\n" +
#if JUCE_PLUGINHOST_VST3
TRANS("VST3 SDK Version:") + " " + utils::getVST3SDKVersion() + "\n" +
Expand Down Expand Up @@ -58,6 +59,7 @@ AboutComponent::AboutComponent() {
this->thanksTitle = TRANS("Special Thanks");
this->thanksList =
TRANS("GeraintDou") + "\n" +
TRANS("SineStriker") + "\n" +
TRANS("xemisyah") + "\n" +
TRANS("Yukitoha") + "\n" +
TRANS("Lin Yuansu P") + "\n" +
Expand Down

0 comments on commit 1d86786

Please sign in to comment.