I am trying to translate Stellaris game files to turkish language using deep translate library.
toBeTranslated = "Scans indicate the presence of a foreign, alien-made object on one of §H[Root.GetName]'s§! many frozen mountain tops."
translated = GoogleTranslator(source='en', target='tr').translate(text=toBeTranslated)
Problem is that it is going to translate variables too. Variables are in this case what is between [ and ]. Other variables can be between § and §. So in this case I dont want string §H[Root.GetName]'s§ to be translated but everything else should be translated. How can I achieve this?