Well the reason none of your methods are working is because right at the beginning of the controlEvent() method, you are assigning false to textfieldeventhappened. So whenever an event happens, textfieldeventhappened will always be false, no matter what, and none of your conditionals will be met.
I've found that when using controlP5, it's much easier to create custom methods for each event, rather than having a cluttered controlEvent() method. I'm not sure if you know how to do this already, but it may help. Here's how you would do it:
Code:
//you created a textfield called myTextfield
//you can set up a custom method like this:
public void myTextfield(String _theText){
translateThis(_theText);
}
So that method above would fire every time that text field was submitted. So then to submit the text field, you just create a custom method for your button to submit the text field. Like this:
Code:
public void ger(int theValue){
String language = "GERMAN";
myTextfield.submit();
}
The submit() button is automatically assigned to your text field, so you can call that anywhere, and it will trigger your text field to submit itself, which will then trigger the method that we created above automatically.
I hope this helps. I struggled a lot with ControlP5 as well when I was first starting out, and this helped me organize my sketch a lot better and keep track of everything without a ton of conditionals stacking up in my controlEvent() method.