The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

Hello
I use Godot 3.5.1 stable and I have a problem with my csv translation files.
Some days ago, I load some csv files in my project and they work properly. Now I want to add a new one, but for some reason the translations in it are not properly used, while the file is correctly imported.

So I have Divers.csv, working correctly. I create Ennemis.csv with this content :
keys;fr;en
NOMGOBELIN;Gobelin;Goblin
NOM
ORQUE;Orque;Orc
NOM_SUCCUBE;Succube;Succubus

I load it in godot, the engine create Ennemis.en.translation and Ennemis.fr.translation files, but when I run the game, the tags NOMGOBELIN, NOMORQUE and NOM_SUCCUBE are not replaced. If I switch the content of Divers.csv and Ennemis.csv and load them in godot, what was previously in Divers.csv and now in Ennemis.csv does not work anymore while the previous content of Ennemis.csv (now in Divers.csv) now works properly.

I don't have any error when I load the files. I don't understand why this new file is not working.

Godot version 3.5.1
in Engine by (16 points)

You have not provided enough information to levy a proper response.
Only a situation that will be up to your assistant's guess work.

What kind of information could be useful ?

2 Answers

0 votes

Please share your code so we can understand it better. But maybe this will help:

  • Print your goblin name or something at the end of important functions, so you can test where in your code something is going wrong
  • Check that you're not loading your csv data into a local variable that isn't being shared/updated properly
by (35 points)
0 votes

Ok, I found the problem, I was just stupid. I totally forgot that, after loading the files in Godot I have to add the .translation files in Project --> Parameters --> Localisation. I made the first csv files few days ago, and when I add the new one I was thinking I only need to import it...

Sorry

by (16 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.