The Spanish button in our test game switched languages, but Mara spoke half an English sentence. The problem was in the CSV row. An unquoted comma after her name had shifted the rest of the English text into the Spanish column.
A developer working in Calc and Google Sheets ran into a related problem: they wanted the quotation marks to appear in the dialogue. After trying several escape sequences, they sometimes saw the translation key itself. They later reported that Sheets worked for them and that Calc’s automatic quote replacement was one setting to check. Our small example lets you see what reaches the actual game. Original discussion
Play the line before editing it
Download the Godot scene and editable dialogue sheet. Unzip it, open game/project.godot in Godot 4.7.2, and press F5. Click English or Español. The keys 1 and 2 also switch languages.
Mara’s English lines are:
Mara whispered, "Take gate three."
Don't look back.
The Spanish cell starts with:
Mara susurró: "Toma la puerta tres".
No mires atrás.
The line break belongs inside the dialogue cell. There is only one translation key, MARA_GATE, in the worksheet.
Put the quotation marks in the cell once
Open dialogue.xlsx in Google Sheets or Calc. Cell B2 contains the words as the player should see them. Leave the comma, the ordinary quotation marks and the apostrophe in the cell.
When the spreadsheet writes CSV, it wraps a field containing a comma, quote or line break in double quotes. It doubles the quotation marks inside that field. Those extra characters belong to the CSV file. We also typed the doubled quotation marks into B2 and re-exported. The game showed two quote marks on each side of the spoken words. Godot’s guide shows the sheet and its corresponding raw CSV side by side. Godot spreadsheet localization guide
In a separate malformed control we flattened the lines and hand-joined the cells with commas. Godot showed only Mara whispered in English. The Spanish button showed Take gate three. Don't look back. This reproduced a shifted-column failure. The original author did not publish their exact file, so we can’t say their missing-key symptom had that same cause.
Change just the Spanish gate
- In C2, change puerta tres to puerta cuatro. Keep the punctuation and the line break.
- In Sheets, download the current tab as comma-separated values. If using Calc, save a copy as UTF-8 Text CSV with a comma separator, a double-quote text delimiter and no byte order mark.
- Replace game/dialogue.csv with that export. Return to Godot, let it reimport, and restart the scene.
- Switch languages again. The Spanish line now says puerta cuatro. The English line still says gate three.
We ran the original and revised Calc exports in Godot 4.7.2. The Spanish text and rendered frame changed. The English frame remained identical pixel for pixel, and both languages kept two visible lines. The original scene and worksheet include an MIT license for teams that want to adapt the example.
