How about using the internationalization features provided by Qt? Your message box should then automagically get a correctly translated button text.