Why is this csv file not taken in account ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Miceldars

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 :

I load it in godot, the engine create Ennemis.en.translation and Ennemis.fr.translation files, but when I run the game, the tags NOM_GOBELIN, NOM_ORQUE 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.

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

Wakatta | 2022-11-03 09:24

What kind of information could be useful ?

Miceldars | 2022-11-03 16:26

:bust_in_silhouette: Reply From: matthewjw

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
:bust_in_silhouette: Reply From: Miceldars

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…