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)
2929
3030 public ( string translation , TranslationMapping map ) Translate ( string content )
3131 {
32- if ( _settings . ShouldUseDoublePin )
32+ if ( _settings . ShouldUsePinyin )
3333 {
3434 if ( ! _doublePinCache . ContainsKey ( content ) )
3535 {
@@ -57,7 +57,7 @@ public bool CanBeTranslated(string stringToTranslate)
5757 {
5858 if ( content [ i ] >= 0x3400 && content [ i ] <= 0x9FD5 )
5959 {
60- string dp = ToDoublePin ( resultList [ i ] . ToLower ( ) ) ;
60+ string dp = _settings . ShouldUseDoublePin ? resultList [ i ] : ToDoublePin ( resultList [ i ] . ToLower ( ) ) ;
6161 map . AddNewIndex ( i , resultBuilder . Length , dp . Length + 1 ) ;
6262 resultBuilder . Append ( ' ' ) ;
6363 resultBuilder . Append ( dp ) ;
You can’t perform that action at this time.
0 commit comments