Hello, All.

4D v13 on OS X 10.10.

Two questions:

How can I get *RESOURCE TYPE LIST* and *RESOURCE LIST* called in a method 
residing in a component to access the resources of the host from which the 
method is called?  

Can anyone provide sample code to automate extraction of old STR# resources 
from existing .RSR files and writing them to XLIFF files to be placed in 
Resource folders of DBs upgraded and updated from v13 to v15/16?

Background:  I am exploring upgrading and updating old DBs currently in v13 to 
v15/16.  One of the tasks I have encountered is replacing STR# resources 
previously residing in .RSR files to XLIFF files to be placed in the Resources 
folders of the updated Dbs.  Hopefully without having to update objects that 
reference them within the structure.  

I have created a small component to extract STR# resources from v13 DBs in 
order to write them into XLIFF files.  Its extraction method works fine when it 
resides within the structure of the DB to be extracted.  But when called from a 
component it comes up empty, apparently finding no resources in the component 
itself.  How do I direct the method in the component to extract the resources 
in the host when called from the host?  Any advise would be greatly appreciated.

Thus far my testing has been limited to extracting the STR# resources with the 
above commands, copying and pasting them to text files, and then using the 4D 
Pop XLIFF Component to create a new resource file that will preserve the 
resource structure of the old DB, i.e. not require rewriting references within 
the updated DB.  However, this entails copying and pasting each resource, one 
at a time.  

In his Tech Note on the subject (08-33) Jess Pina wrote:
All string list resources and text resources have been moved to XLIFF files. 
This can be done in a few ways: 1) Programmatically, meaning, extracting the 
old strings by using the String List to Array command and then using the 4D XML 
commands to create XLIFF files.  

I am not familiar with the XML commands of 4d, and giving the theme a once over 
it does not look like a trivial task to figure out how to automate the process 
programmatically as Jesse Pina suggests.  So any examples of such code would 
also be greatly appreciated.  

Also, can anyone provide currently active links to 4D Pop pages at 4D?  My old 
links, i.e. http://www.4d.com/products/4dpop.html 
<http://www.4d.com/products/4dpop.html> go to the 404 Error Page at 4D.com 
<http://4d.com/>.  Have these components been deprecated?  Or rewritten for 
more recent versions?  

Thanks in advance for any help.

Best to all from cold and sunny Santa Fe.  I enjoy following your exchanges on 
the List and learn a lot from them.  Thanks,

Steven Prins
Santa Fe, NM

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to