Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added zh-TW translate #93

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [v5.5.5] (28-01-2022)
###### Added support for Visual Studio 2022!

## [v5.5.4] (26-09-2021)
###### Fixed error message "bad exception"!

Expand Down
3 changes: 2 additions & 1 deletion Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public static class Constants
public static readonly Dictionary<Int32, String> IdeVersions = new Dictionary<Int32, String>
{
{ 15, "2017" },
{ 16, "2019" }
{ 16, "2019" },
{ 17, "2022" }
};
}
}
14 changes: 7 additions & 7 deletions DiscordRPforVS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DiscordRPforVS</RootNamespace>
<AssemblyName>DiscordRPforVS</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<GeneratePkgDefFile>true</GeneratePkgDefFile>
<UseCodebase>true</UseCodebase>
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
Expand Down Expand Up @@ -124,24 +124,24 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="DiscordRichPresence">
<Version>1.0.169</Version>
<Version>1.0.175</Version>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers">
<Version>3.3.0-beta2.final</Version>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers">
<Version>6.0.0</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.LiveShare">
<Version>1.1.57</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.SDK">
<Version>16.0.206</Version>
<Version>17.0.32112.339</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Validation">
<Version>15.5.31</Version>
<Version>17.0.34</Version>
</PackageReference>
<PackageReference Include="Microsoft.VSSDK.BuildTools">
<Version>16.8.8</Version>
<Version>17.0.5234</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
8 changes: 4 additions & 4 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
using System.Resources;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("A Discord Rich Presence extension for Visual Studio 2017 and 2019")]
[assembly: AssemblyDescription("A Discord Rich Presence extension for Visual Studio 2017 and 2019")]
[assembly: AssemblyTitle("A Discord Rich Presence extension for Visual Studio 2017, 2019 and 2022")]
[assembly: AssemblyDescription("A Discord Rich Presence extension for Visual Studio 2017, 2019 and 2022")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("1TheNikita")]
[assembly: AssemblyProduct("Discord Rich Presence VS extension")]
[assembly: AssemblyCopyright("Copyright 1TheNikita 2021")]
[assembly: AssemblyTrademark("1TheNikita")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("6.0.0")]
[assembly: AssemblyFileVersion("6.0.0")]
[assembly: AssemblyVersion("6.0.1")]
[assembly: AssemblyFileVersion("6.0.1")]
[assembly: NeutralResourcesLanguage("en")]
10 changes: 5 additions & 5 deletions Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</p>
</div>

This extension enables on [Discord Rich Presence](https://discordapp.com/rich-presence) for Visual Studio 2017 and 2019.
This extension enables on [Discord Rich Presence](https://discordapp.com/rich-presence) for Visual Studio 2017, 2019 and 2022.

As you're developing, this extension will automatically update your status on Discord to tell the world what you're coding.

Expand All @@ -40,7 +40,7 @@ Here's a demonstration of how it looks in Discord
* The ability to turn Rich Presence completely on or off.
* The ability to toggle it starting up at startup.
* The ability to use secret mode.
* Ability to use different languages. Available languages: English, Russian, Hungarian and Polish
* Ability to use different languages. Available languages: English, Russian, Hungarian, Polish and Chinese (Traditional)

# Toggling Display
A neat feature with this extension compared to others is you can completely customize your Rich Presence and display only what you want.
Expand Down
22 changes: 22 additions & 0 deletions Translates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static string Title(string translate)
else if (translate == "ru-RU") { return "Discord Rich Presence настройки"; }
else if (translate == "hu-HU") { return "Discord Rich Presence beállítások"; }
else if (translate == "pl-PL") { return "Ustawienia Discord Rich Presence"; }
else if (translate == "zh-TW") { return "Discord Rich Presence 設定"; }
else { return "Discord Rich Presence Settings"; }
}

Expand All @@ -41,6 +42,7 @@ public static string IsPresenceEnabled(string translate)
else if (translate == "ru-RU") { return "Включить"; }
else if (translate == "hu-HU") { return "Discord Rich Presence engedélyezése"; }
else if (translate == "pl-PL") { return "Włącz Discord Rich Presence"; }
else if (translate == "zh-TW") { return "啟用 Discord Rich Presence"; }
else { return "Enable Discord Rich Presence"; }
}

Expand All @@ -55,6 +57,7 @@ public static string IsFileNameShown(string translate)
else if (translate == "ru-RU") { return "Показывать имя файла"; }
else if (translate == "hu-HU") { return "Fájlnév megjelenítése"; }
else if (translate == "pl-PL") { return "Pokazuj nazwę pliku"; }
else if (translate == "zh-TW") { return "顯示檔案名稱"; }
else { return "Show file name"; }
}

Expand All @@ -69,6 +72,7 @@ public static string IsSolutionNameShown(string translate)
else if (translate == "ru-RU") { return "Показывать имя проекта"; }
else if (translate == "hu-HU") { return "Projekt nevének megjelenítése"; }
else if (translate == "pl-PL") { return "Pokazuj nazwę rozwiązania"; }
else if (translate == "zh-TW") { return "顯示方案名稱"; }
else { return "Show solution name"; }
}

Expand All @@ -83,6 +87,7 @@ public static string IsTimestampShown(string translate)
else if (translate == "ru-RU") { return "Показывать время работы"; }
else if (translate == "hu-HU") { return "Időbélyeg megjelenítése"; }
else if (translate == "pl-PL") { return "Pokazuj czas pracy"; }
else if (translate == "zh-TW") { return "顯示經過時間"; }
else { return "Show timestamp"; }
}

Expand All @@ -97,6 +102,7 @@ public static string IsTimestampResetEnabled(string translate)
else if (translate == "ru-RU") { return "Перезапускать таймер при изменении файла"; }
else if (translate == "hu-HU") { return "Időbélyeg visszaállítása fájl módosításkor"; }
else if (translate == "pl-PL") { return "Resetuj czas pracy co zmianę pliku"; }
else if (translate == "zh-TW") { return "切換檔案時重製經過時間"; }
else { return "Reset timestamp on file change"; }
}

Expand All @@ -111,6 +117,7 @@ public static string IsLanguageImageLarge(string translate)
else if (translate == "ru-RU") { return "Большая картинка языка программирования"; }
else if (translate == "hu-HU") { return "Nagy nyelv kép"; }
else if (translate == "pl-PL") { return "Duży obraz języka programowania"; }
else if (translate == "zh-TW") { return "使用放大版的程式語言圖片"; }
else { return "Large language image"; }
}

Expand All @@ -125,6 +132,7 @@ public static string SecretMode(string translate)
else if (translate == "ru-RU") { return "Секретный режим"; }
else if (translate == "hu-HU") { return "Titkos mód"; }
else if (translate == "pl-PL") { return "Tryb tajny"; }
else if (translate == "zh-TW") { return "隱身模式"; }
else { return "Secret mode"; }
}

Expand All @@ -139,6 +147,7 @@ public static string LoadOnStartup(string translate)
else if (translate == "ru-RU") { return "Автоматический запуск"; }
else if (translate == "hu-HU") { return "Automatikus indítás"; }
else if (translate == "pl-PL") { return "Automatyczny start"; }
else if (translate == "zh-TW") { return "開啟時載入"; }
else { return "Load on startup"; }
}

Expand All @@ -153,6 +162,7 @@ public static string UseEnglish(string translate)
else if (translate == "ru-RU") { return "Использовать Английский язык"; }
else if (translate == "hu-HU") { return "Angol nyelv használata"; }
else if (translate == "pl-PL") { return "Używanie języka angielskiego"; }
else if (translate == "zh-TW") { return "使用英文翻譯"; }
else { return "Use English language"; }
}
}
Expand All @@ -168,6 +178,7 @@ public static string Settings(string translate)
else if (translate == "ru-RU") { return "Настройки"; }
else if (translate == "hu-HU") { return "Beállítások"; }
else if (translate == "pl-PL") { return "Ustawienia"; }
else if (translate == "zh-TW") { return "設定"; }
else { return "Settings"; }
}

Expand All @@ -182,6 +193,7 @@ public static string TextDocument(string translate)
else if(translate == "ru-RU") { return "Текстовый"; }
else if(translate == "hu-HU") { return "Szövegfájl"; }
else if (translate == "pl-PL") { return "Tekstowy"; }
else if (translate == "zh-TW") { return "文字文件"; }
else { return "Text"; }
}

Expand All @@ -196,6 +208,7 @@ public static string LogDocument(string translate)
else if (translate == "ru-RU") { return "Log"; }
else if (translate == "hu-HU") { return "Log fájl"; }
else if (translate == "pl-PL") { return "Dziennik"; }
else if (translate == "zh-TW") { return "記錄"; }
else { return "Log"; }
}

Expand Down Expand Up @@ -224,6 +237,7 @@ public static string Text(string translate)
else if (translate == "ru-RU") { return "текст"; }
else if (translate == "hu-HU") { return "szöveg"; }
else if (translate == "pl-PL") { return "tekst"; }
else if (translate == "zh-TW") { return "文字"; }
else { return "text"; }
}

Expand All @@ -238,6 +252,7 @@ public static string File(string translate)
else if (translate == "ru-RU") { return "файл"; }
else if (translate == "hu-HU") { return "fájl"; }
else if (translate == "pl-PL") { return "plik"; }
else if (translate == "zh-TW") { return "檔案"; }
else { return "file"; }
}

Expand All @@ -252,6 +267,7 @@ public static string LogError(string translate)
else if (translate == "ru-RU") { return "Не удалось запустить RP"; }
else if (translate == "hu-HU") { return "Nem sikerült elindítani az RP-t"; }
else if (translate == "pl-PL") { return "Nie udało się uruchomić RP"; }
else if (translate == "zh-TW") { return "無法設定RP"; }
else { return "Could not start RP"; }
}

Expand All @@ -266,6 +282,7 @@ public static string PresenceDetails(string translate)
else if (translate == "ru-RU") { return "Я работаю над тем, о чем"; }
else if (translate == "hu-HU") { return "Egy olyan projekten dolgozom,"; }
else if (translate == "pl-PL") { return "Pracuję nad czymś, o czym"; }
else if (translate == "zh-TW") { return "我正在做些 *秘密* 的事情"; }
else { return "I'm working on something you're"; }
}

Expand All @@ -280,6 +297,7 @@ public static string PresenceState(string translate)
else if (translate == "ru-RU") { return "тебе не положено знать, извини."; }
else if (translate == "hu-HU") { return "amit nem láthatsz, sajnálom."; }
else if (translate == "pl-PL") { return "nie możesz wiedzieć, sorry."; }
else if (translate == "zh-TW") { return "但是你不能知道細節,抱歉"; }
else { return "not allowed to know about, sorry."; }
}

Expand Down Expand Up @@ -308,6 +326,7 @@ public static string UnrecognizedExtension(string translate)
if (translate == "ru-RU") { return "Незарегистрированное расширение"; }
if (translate == "hu-HU") { return "Ismeretlen bővítmény"; }
if (translate == "pl-PL") { return "Nierozpoznane rozszerzenie"; }
if (translate == "zh-TW") { return "未識別的副檔名"; }
else { return "Unrecognized extension"; }
}

Expand All @@ -322,6 +341,7 @@ public static string NoFile(string translate)
if (translate == "ru-RU") { return "Файл не выбран."; }
if (translate == "hu-HU") { return "Nincs fájl."; }
if (translate == "pl-PL") { return "Nie wybrano pliku."; }
if (translate == "zh-TW") { return "無檔案"; }
else { return "No File."; }
}

Expand All @@ -336,6 +356,7 @@ public static string Idling(string translate)
if (translate == "ru-RU") { return "Выбирает проект"; }
if (translate == "hu-HU") { return "Üresjárat"; }
if (translate == "pl-PL") { return "Bezczynność"; }
if (translate == "zh-TW") { return "閒置中"; }
else { return "Idling"; }
}

Expand All @@ -350,6 +371,7 @@ public static string Developing(string translate)
if (translate == "ru-RU") { return "Работает в проекте"; }
if (translate == "hu-HU") { return "Fejleszti a következő fájlt: "; }
if (translate == "pl-PL") { return "Pracuję nad"; }
if (translate == "zh-TW") { return "開發"; }
else { return "Developing"; }
}

Expand Down
Loading