VSTPluginInstance::getCategory() not localized


#1

VSTPluginInstance::getCategory() doesn’t use TRANS() for the strings.


#2

Why should it? You can translate the value that it returns if you want to, right?


#3

oh hmm…good point!


#4

This is true in theory but I was hoping to write a simple script that searches for calls to TRANS(), extracts the strings, and puts together an automated .cpp file that can be handed to the translators.


#5

Hmm, I see why that’d be handy. But the string isn’t just used for display, people might also be using it for checking plugin types, so pre-translating it could break things.


#6

Well I don’t care too much about getCategory() but in general, it’d be cool if the juce .cpp files used TRANS so I could extract them with the script. Right now there’s a bunch of hard coded strings. For example in juce_win32_DirectSound.cpp there’s the function getDSErrorMessage(). Lots of other places.

Instead of TRANS() maybe it could be another macro like JUCE_TRANS () which users have the option of defining or not?


#7

yes, that’s not a bad idea about the JUCE_TRANS thing. But I think I’ve made most strings translatable where it seemed appropriate - let me know if you see any that seem to have been missed out.