Translations - related to FileBasedDocument

Hi !

I am working on a program with multiple languages, and using the TRANS macro and LocationStrings etc.. to handle my translations. However for some dialog boxes that appears as the result of the FileBasedDocument message boxes - I cannot find the texts Strings…

An examle: “File.ext” already exists. Do you want to replace it? and hence the following text in the same dialog. box: A file or folder with the same name already exists in the folder “MyFolder”. Replacing it will overwrite its current contents.

-where File.ext and MyFolder is my unique names… I have been through the whole JUCE::FileBasedDocument.cpp and ensure translations are in my translation file, but text string in the FileBasedDocument is not similar to those popping up in the dialog box.

Now, do any of you have a good idea of where to look in the JUCE library for these additional text strings ??

Thanks and Best regs

Bo

Is it possibly a native dialog? If so, then it may be that the OS is handling that rather than JUCE. Alternatively I suspect if you could call setUsingNativeAlertWindows (false) on your default look and feel you should then be able to control the text via TRANS.

1 Like

Hi Anthony,

Thanks - I will investiate… but you are probably right about the native OS dialogs - it could look like this.. - I never thought of this “setUsingNativeAlertWindows” - didn’t know it so far… JUCE is a large bundle… :slight_smile:

BR

Bo