Hi everyone,
Is there way that global strings of generic messages, such as "That doesn't work" which is commonly used in else statements when using items on random things, could be included in the translation file?
I made some global strings in a game I'm working on so I'll only have to write them once, and then I call for them from any scenario that I like, preventing any duplications of the same line in the translation file. Though, I found that they don't get included when the translation file is generated...
If not, where would you put your generic messages in a way that they will be included in the translation file?
I've read here and found that I can just create a new script in the Scripts tree and that as long as the script will be above the other scripts, that I could call for things in it from the entire project. However, when I try to declare a string variable name and set it to store the actua text string that I wish to show to the screen, I get the error that type 'string' is no longer supported; use String instead. But when I try String with capital 'S', I get the error "cannot assign initial value to global pointer", so I'm not sure what I'm doing wrong.
Would appreciate some help.
Thanks
Is there way that global strings of generic messages, such as "That doesn't work" which is commonly used in else statements when using items on random things, could be included in the translation file?
I made some global strings in a game I'm working on so I'll only have to write them once, and then I call for them from any scenario that I like, preventing any duplications of the same line in the translation file. Though, I found that they don't get included when the translation file is generated...
If not, where would you put your generic messages in a way that they will be included in the translation file?
I've read here and found that I can just create a new script in the Scripts tree and that as long as the script will be above the other scripts, that I could call for things in it from the entire project. However, when I try to declare a string variable name and set it to store the actua text string that I wish to show to the screen, I get the error that type 'string' is no longer supported; use String instead. But when I try String with capital 'S', I get the error "cannot assign initial value to global pointer", so I'm not sure what I'm doing wrong.
Would appreciate some help.
Thanks