How to parser these files in Studio 2014?

Hi,

How to parser these TXT files in one single project in Studio 2014 to extract the translatable content?

File #1:

IDT_EVENTNAME16                               "Error, Guest card overridden"   
IDT_EVENTNAME17                               "Error, Guest card overridden"   
IDT_EVENTNAME18                               "Error, Card not valid yet"      

 > The translatable content is between the quotes. So the flooding regex should work in the TXT filter configuration, right?

- Opening pattern: ^.*?(")

- Closing pattern: (")$

 Files #2:

       12000  "Guest" // "Guest"
       12001  "Staff" // "Staff"
       12002  "Emergency" // "Emergency"

> The translatable content is the one between the first quotes. All other content is comments, etc.

File #3:

IDS_ACCOUNT_CONFIRM=Confirm password:
IDS_ACCOUNT_TITLE=Select Account
IDS_ACCOUNT_MESSAGE=Please enter the account name and password for the components.

 > The translatable content is the one after the equal symbol.

File #4:

DESCRIPTION_CLIENT  Client  program files     
DESCRIPTION_DATABASE      Database     
DESCRIPTION_SERVER  Server program files  

> The translatable content here is the one after the tab space. It's a tab separated file. 

Thank you in advance for your help on this!

Best regards,

Carla

Parents Reply
  • Paul,

    Don't take into account my last reply, I just deleted the default regex that was already on each file type and Studio could process the batch task Prepare. Now, my problem is the content extraction:

    File #1: all the content is not extracted, only few of the strings


    File #2: all the content in quotes is extracted, even the comments. It appears as follow in the Editor view:
    Guest" // "Guest
    Staff" // "Staff
    Emergency" // "Emergency

    For the strings like this one, it's split into two segments in Studio:
    10002 "User group:" // Label "User group:"
    User group:"
    // Label "User group:


    File #3: all content is extracted properly! :-)


    File #4: all the content is not extracted, only two sentences.

    Thanks!

    Carla
Children