|
It might be possible to set placeholders into a translation string, which should be replaced by any variable part, e.g. a default file name with the program name. In this case you can add a unique set of characters to the translation and let these unique set of characters replace by the desired program name in the returned translation.
def replaceNLS(instring, searchstr, replacestr):
Parameter instring : the string containing the to be replaced placeholder
Parameter searchstr : the unique set of characters to be replaced
Parameter replacestr : the string that will replaces the searchstr
The string with the replaced section will be returned
Example:
|