How can I add Brazilian Portuguese to the SRT translation options?..

*.68.225.5 /
How can I add Brazilian Portuguese to the SRT translation options?
回复
  • #1 / **.158.90.42
    For Google Translate, there is a difference between Portuguese and Brazilian Portuguese, but deepl does not distinguish between the two.

    If you want to change Google Translate to Brazilian Portuguese

    1. Source code deployment
    2. Open videotrans/translator/__init__.py, change line 152 from `pt` to `pt-PT`
    3. For AI translation, change line 159 to `Brazilian Portuguese language`

  • #2 / **.71.218.23
    Thank you for your instructions. However, I have checked 2 SRT files and the translation results are still the same. I am using the GG GEMINI pro API key.
  • #3 / **.70.207.109
    update new
问答模块基于php8.1/sqlite/webman/layui构建 © pyvideotrans.com