logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic [227I] Localized strings structures (Read 372 times)
Alien3674
New Member
*
Offline



Posts: 18
Joined: Aug 11th, 2017
Gender: Male
[227I] Localized strings structures
Dec 9th, 2019 at 1:53am
Print Post  
Hello.

The localization variable located in the structure cannot be translated in *.int or *.rut files?

Code (Javascript)
Select All
struct sPulldownMenuItem
{
	var class<ASWindowPulldownMenu> MenuItemClass; //item class name
	var localized string MenuItemText;             //item text (descriptor)
	var localized string MenuItemHelp;             //item help text
};
var config sPulldownMenuItem MainPulldowns[8]; 

  

Warning: SubSystem is not Initialized or Shut Down
---
I am sorry for my english...
Back to top
IP Logged
 
Masterkent
Developer Team
Offline



Posts: 1337
Location: Russia
Joined: Apr 5th, 2013
Gender: Male
Re: [227I] Localized strings structures
Reply #1 - Dec 10th, 2019 at 2:10pm
Print Post  
As far as I remember, the localized keyword is supposed to be used as the top-level variable specifier (that is, for variables which are direct members of a class). I dunno what happens if you apply it to fields of a structure (probably, nothing?).
  
Back to top
 
IP Logged
 
[]KAOS[]Casey
Developer Team
Betatester
Offline


nedm

Posts: 3189
Joined: Aug 7th, 2011
Gender: Male
Re: [227I] Localized strings structures
Reply #2 - Dec 10th, 2019 at 9:00pm
Print Post  
UCC DumpInt could reveal if it's exportable as the current statement is. SaveConfig() on an instance of that object would reveal how it could be changed in an ini, which isn't ideal... given that the top level is Config i think it's not localizeable and probably needs to be changed.
  
Back to top
 
IP Logged
 
Alien3674
New Member
*
Offline



Posts: 18
Joined: Aug 11th, 2017
Gender: Male
Re: [227I] Localized strings structures
Reply #3 - Dec 12th, 2019 at 7:58pm
Print Post  
Masterkent wrote on Dec 10th, 2019 at 2:10pm:
...probably, nothing?
Yes, nothing).

[]KAOS[]Casey wrote on Dec 10th, 2019 at 9:00pm:
UCC DumpInt could reveal if it's exportable as the current statement is.
How to use it?
[]KAOS[]Casey wrote on Dec 10th, 2019 at 9:00pm:
given that the top level is Config i think it's not localizeable and probably needs to be changed.
The problem is not in the config specifier (can write in any language in a * .ini file, which is not convenient). Localization (in * .ini and * .rut files) does not work if the variable is in the structure.

For example, such entries are correctly translated when using different languages of the game:
Code (Javascript)
Select All
var config string MainPulldownClass[16]; //item class name
var localized config string MainPulldownText[16]; //item text (descriptor)
var localized config string MainPulldownHelp[16]; //item help text 

(although now the config in the last two is superfluous).
  

Warning: SubSystem is not Initialized or Shut Down
---
I am sorry for my english...
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo