anonymousException / renpy-translator

A translator for renpy based on google | youdao | deepl | open-ai | offline-ai tranlation supports extract untranslated words and translate
MIT License
108 stars 11 forks source link

When the content is the same but the translation ID is different, only one will be translated, and the others will not be translated. #20

Closed wqerrewetw closed 7 months ago

wqerrewetw commented 7 months ago

Describe the bug When the content is the same but the translation ID is different, only one will be translated, and the others will not be translated. Local Glossary also not work.

To Reproduce Steps to reproduce the behavior:

This is a minimum reproduction test case

# game/test.rpy:936
translate japanese test1_63f8804b:

    # pc "This is a test String"
    pc "This is a test String"

# game/work.rpy:945
translate japanese test1_63f8804b_1:

    # pc "This is a test String"
    pc "This is a test String"

# game/test.rpy:1980
translate japanese test2_63f8804b:

    # pc "This is a test String"
    pc "This is a test String"

Expected behavior A clear and concise description of what you expected to happen.

# game/test.rpy:936
translate japanese test1_63f8804b:

    # pc "This is a test String"
    pc "これはテスト文字列です"

# game/work.rpy:945
translate japanese test1_63f8804b_1:

    # pc "This is a test String"
    pc "これはテスト文字列です"

# game/test.rpy:1980
translate japanese test2_63f8804b:

    # pc "This is a test String"
    pc "これはテスト文字列です"

Screenshots If applicable, add screenshots to help explain your problem.

# game/test.rpy:936
translate japanese test1_63f8804b:

    # pc "This is a test String"
    pc "This is a test String"

# game/work.rpy:945
translate japanese test1_63f8804b_1:

    # pc "This is a test String"
    pc "This is a test String"

# game/test.rpy:1980
translate japanese test2_63f8804b:

    # pc "This is a test String"
    pc "これはテスト文字列です"

Version The version you meet the bug , such as v1.6.0

Additional context Add any other context about the problem here.

anonymousException commented 7 months ago

Thanks for your issue! Fixed in latest