File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Flow.Launcher.Infrastructure Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public bool CanBeTranslated(string stringToTranslate)
29
29
30
30
public ( string translation , TranslationMapping map ) Translate ( string content )
31
31
{
32
- if ( _settings . ShouldUseDoublePin )
32
+ if ( _settings . ShouldUsePinyin )
33
33
{
34
34
if ( ! _doublePinCache . ContainsKey ( content ) )
35
35
{
@@ -57,7 +57,7 @@ public bool CanBeTranslated(string stringToTranslate)
57
57
{
58
58
if ( content [ i ] >= 0x3400 && content [ i ] <= 0x9FD5 )
59
59
{
60
- string dp = ToDoublePin ( resultList [ i ] . ToLower ( ) ) ;
60
+ string dp = _settings . ShouldUseDoublePin ? resultList [ i ] : ToDoublePin ( resultList [ i ] . ToLower ( ) ) ;
61
61
map . AddNewIndex ( i , resultBuilder . Length , dp . Length + 1 ) ;
62
62
resultBuilder . Append ( ' ' ) ;
63
63
resultBuilder . Append ( dp ) ;
You can’t perform that action at this time.
0 commit comments