schmurtzm/Gamelist-Translator

"&" in uri seems have problem

Closed this issue · 4 comments

所在位置 C:\Users\marab\Desktop\Gamelist-Translator-main\Gamelist-Translator.ps1:65 字符: 75

  • ... tps://translate.googleapis.com/translate_a/single?client=gtx&sl=auto& ...
  •                                                             ~
    

不允许使用与号(&)。& 运算符是为将来使用而保留的;请用双引号将与号引起来("&"),以将其作为字符串的一部分传递。
所在位置 C:\Users\marab\Desktop\Gamelist-Translator-main\Gamelist-Translator.ps1:65 字符: 83

  • ... anslate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=$($Ta ...
  •                                                             ~
    

不允许使用与号(&)。& 运算符是为将来使用而保留的;请用双引号将与号引起来("&"),以将其作为字符串的一部分传递。
所在位置 C:\Users\marab\Desktop\Gamelist-Translator-main\Gamelist-Translator.ps1:65 字符: 105

  • ... /translate_a/single?client=gtx&sl=auto&tl=$($TargetLanguage)&dt=t&q=$ ...
  •                                                             ~
    

不允许使用与号(&)。& 运算符是为将来使用而保留的;请用双引号将与号引起来("&"),以将其作为字符串的一部分传递。
所在位置 C:\Users\marab\Desktop\Gamelist-Translator-main\Gamelist-Translator.ps1:65 字符: 110

  • ... slate_a/single?client=gtx&sl=auto&tl=$($TargetLanguage)&dt=t&q=$Text ...
  •                                                             ~
    

不允许使用与号(&)。& 运算符是为将来使用而保留的;请用双引号将与号引起来("&"),以将其作为字符串的一部分传递。
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed

It looks like the ”“ should be ""

Merge done, is it OK like that ?

Yes, fine.

👍