add/remove terms through code
			
	
						10 years 3 months ago				#843
		by Deadcow
	
	
		
			
	
			
			 		
													
	
				add/remove terms through code was created by Deadcow			
			
				Is there a way to add/remove terms through code? I've got my own dialogue system, it allows to add/remove dialogs and add/remove messages in this dialogs through inspector of object, which will cause dialog to open on interaction, and each message is currently refers to string. I want to modify this system and refer to localization terms instead of strings, but keep this dynamic of creation. Is this possible? (I dont fount api documentation)			
					Please Log in or Create an account to join the conversation.
			
	
						10 years 3 months ago				#844
		by Frank
	
	
		
			
					
Are you
  Give I2L 
	5 stars!
Are you
  Please lets us know how to improve it!
					
	
			
			 		
													
	
				Replied by Frank on topic add/remove terms through code			
			
				In your editor code you can use:
Then fill the content of data with the new term translations.
You can also use
Hope that helps,
Frank
							LocalizationManager.UpdateSources();
var languageSource = LocalizationManager.Sources[0];
TermData data = languageSource.AddTerm("My Term", eTermType.Text);Then fill the content of data with the new term translations.
You can also use
languageSource.RemoveTerm( term )Hope that helps,
Frank
Are you
Are you
To get the betas as soon as they are ready, 
	check this out
				Please Log in or Create an account to join the conversation.
			
	
						10 years 3 months ago				#847
		by Deadcow
	
	
		
			
	
			
			 		
													
	
				Replied by Deadcow on topic add/remove terms through code			
			
				This is exactly what I wanted, thanks			
					Please Log in or Create an account to join the conversation.
		Time to create page: 0.149 seconds