-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MISC - Experimental Google! Translate compatibility endpoint that services requests out-of-process * MISC - Updated default user agents * MISC - Minor changes to Google! translate TKK timing logic * MISC - Allow translation of placeholder text with UGUI and TextMesh Pro texts * BUG FIX - Disallow outputting of IMGUI templated texts that are not considered translatable
- Loading branch information
randoman
committed
Jan 5, 2020
1 parent
a194e58
commit f60f6bc
Showing
25 changed files
with
569 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/Translators/Common.ExtProtocol/Utilities/StringBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Common.ExtProtocol.Utilities | ||
{ | ||
/// <summary> | ||
/// StringBuilder extensions. | ||
/// </summary> | ||
public static class StringBuilderExtensions | ||
{ | ||
/// <summary> | ||
/// Gets a bool indicating if the current line ends in whitespace or newline. | ||
/// </summary> | ||
/// <param name="builder"></param> | ||
/// <returns></returns> | ||
public static bool EndsWithWhitespaceOrNewline( this StringBuilder builder ) | ||
{ | ||
if( builder.Length == 0 ) return true; | ||
|
||
var lastChar = builder[ builder.Length - 1 ]; | ||
return char.IsWhiteSpace( lastChar ) || lastChar == '\n'; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Translators/GoogleTranslateCompat.ExtProtocol/GoogleTranslateCompat.ExtProtocol.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net45</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Common.ExtProtocol\Common.ExtProtocol.csproj" /> | ||
<ProjectReference Include="..\Http.ExtProtocol\Http.ExtProtocol.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="UnityEngine"> | ||
<HintPath>..\..\..\libs\UnityEngine.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
|
||
<Target Name="PostBuild" AfterTargets="PostBuildEvent"> | ||
<Exec Command="if $(ConfigurationName) == Release (
 XCOPY /Y /I "$(TargetDir)$(TargetName)$(TargetExt)" "$(SolutionDir)dist\Translators\FullNET\"
)" /> | ||
</Target> | ||
|
||
</Project> |
Oops, something went wrong.