mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-08-31 09:45:24 +02:00
Plenty of strings are legitimately identical in the target language - "Vsync", "Status", "Ad Hoc multiplayer" - but the only test we had for "is this translated" is "does it differ from English", so those got sent to the AI again on every single run of finish-language-with-ai, costing tokens and giving it another chance to translate something that shouldn't be. They now get a "# same as English" comment and are skipped. finish-language-with-ai writes it when the AI hands the English string back unchanged (which the validation added earlier was throwing away as an error), and import-single writes it when a language's line matches the en_US one. Deleting the comment puts the key back in play. Also stop comparing values with their comments still attached while working out what's untranslated, which was leaking "# AI translated" into the context block of the prompt. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0164UKoXpz9r155TRfQsoc3H