Translation already exists?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
thirstyoctopus
Regular
Posts: 72
Joined: Mon Aug 27, 2018 12:04 pm
Projects: Romance Visual Novel story
Organization: Thirsty Octopus
Contact:

Translation already exists?

#1 Post by thirstyoctopus » Wed Feb 16, 2022 4:24 pm

Hey guys

So I'm working on the translation for my game, and there are two language directories, simplified_chinese and traditional_chinese. Everything has been fine so far, but there were a few missing translations due to me moving labels around in a chapter so I put it back to how it was and when I tried to recompile, I got the following traceback error:

Code: Select all

While running game code:
  File "game/tl/traditional_chinese/scripts/chapter_3.rpy", line 3164, in script
    old "I promise I won't"
  File "game/tl/traditional_chinese/scripts/chapter_3.rpy", line 3164, in script
    old "I promise I won't"
Exception: A translation for "I promise I won't" already exists at game/tl/simplified_chinese/scripts/chapter_3.rpy:3165.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "renpy/bootstrap.py", line 326, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 515, in main
    renpy.game.context().run(node)
  File "game/tl/traditional_chinese/scripts/chapter_3.rpy", line 3164, in script
    old "I promise I won't"
  File "game/tl/traditional_chinese/scripts/chapter_3.rpy", line 3164, in script
    old "I promise I won't"
  File "renpy/ast.py", line 2470, in execute
    renpy.translation.add_string_translation(self.language, self.old, self.new, newloc)
  File "renpy/translation/__init__.py", line 453, in add_string_translation
    stl.add(old, new, newloc)
  File "renpy/translation/__init__.py", line 394, in add
    quote_unicode(old), fn, line))
Exception: A translation for "I promise I won't" already exists at game/tl/simplified_chinese/scripts/chapter_3.rpy:3165.
Now this makes sense, because there ARE two translations of this particular line, but they are in different language folders. I don't understand why it's complaining when they are in separate files in separate language directories. Is there something I'm missing? I would appreciate any help with this if someone may have encountered a similar situation.

Thanks

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Translation already exists?

#2 Post by Ocelot » Wed Feb 16, 2022 4:52 pm

What are language names for those lines in both traditional_chinese/scripts/chapter_3.rpy and simplified_chinese/scripts/chapter_3.rpy?
For the record I mean something starting with translate None... just before problem lines in both files. I am interested in what is written instead of None
< < insert Rick Cook quote here > >

User avatar
thirstyoctopus
Regular
Posts: 72
Joined: Mon Aug 27, 2018 12:04 pm
Projects: Romance Visual Novel story
Organization: Thirsty Octopus
Contact:

Re: Translation already exists?

#3 Post by thirstyoctopus » Wed Feb 16, 2022 5:15 pm

Hah, you're right - seems like the simplified chinese translation strings were copy/pasted into the traditional file! Honestly did not notice that until you brought it up, thank you!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]