> >> Does anyone know if there is a list of the internal language codes in
> >> RB 2006? I know that default=0 and english=1, but it appears that
> >> there are hundreds. Is this list available electronically?
> >
> > What are "internal language codes"?

> If I export a constant that has several different language versions  
> attached to it as XML I get something that looks like this:

I don't know of a list, but it's fairly easy to display the details in the
IDE.
1) Export a module which includes a simple constant as XML,
2) Run code to generate replacement "<ConstantInstance>" elements
3) Paste them into the XML with a text editor in place of the originals
4) Import the module into a project

I used this code in a pushbutton

  Dim s() as String
  s.Append "<ConstantInstance>"
  s.Append "<ItemPlatform>0</ItemPlatform>"
  s.Append " "
  s.Append " "
  s.Append "</ConstantInstance>"
  For i as Integer = 0 to 108
    s(2) = "<ItemLanguage>"+str(i)+"</ItemLanguage>"
    s(3) = "<ItemDef>Lang"+str(i)+"</ItemDef>"
    EditField1.AppendText Join(s,EndOfLine)
  Next

and I've put a copy of the resultant module at
<http://rb.sgarman.net/constModule.xml>

If you need a table, I suspect the next operation is a lot of keying.

--
Steve Garman
Using REALbasic 2006r2 Professional on Windows XP Pro



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to