Hi All,

as mentioned in http://l10n.openoffice.org/L10N_Framework/iso_code_build2.html
we can  extract the strings from particles to a big  khmer.sdf file:
perl -w localize.pl -e -l =en-US -f khmer.sdf

now , how can i extract strings from src files and merge them to sdf files ?

An example of a src resource file( $SRC_ROOT/sd/source/ui/dlg/a.src ):

..
CheckBox CB_WRITE
{
Text [ de ] = "~write" ;
Text [ en-US ] = "~Write" ;
};

CheckBox CB_READ_ONLY
{
Text [ de ] = "Nu~r lesen" ;
Text [ en-US ] = "~Read-only" ;
Text [ km-KH ] = "only-~Read";
};
..

and the sdf file ( in the same dircetory: localize.sdf ):
..
sd      source\ui\dlg\a.src     0       CheckBox        CB_WRITE                
                100     de      ~write                          2002-02-02 
02:02:02
sd      source\ui\dlg\a.src     0       CheckBox        CB_WRITE                
                100     en-US   ~write                          2002-02-02 
02:02:02
sd      source\ui\dlg\a.src     0       CheckBox        CB_READ_ONLY            
        100     de      Nu~r lesen                              2002-02-02 
02:02:02
sd      source\ui\dlg\a.src     0       CheckBox        CB_READ_ONLY            
        100     en-US   ~Read-only                              2002-02-02 
02:02:02
..

i want to  extract the string CB_READ_ONLY in language km-KH from a.src and 
merge it into the file localize.sdf,and the
result would be:

..
sd      source\ui\dlg\a.src     0       CheckBox        CB_WRITE                
                100     de      ~write                          2002-02-02 
02:02:02
sd      source\ui\dlg\a.src     0       CheckBox        CB_WRITE                
                100     en-US   ~write                          2002-02-02 
02:02:02
sd      source\ui\dlg\a.src     0       CheckBox        CB_READ_ONLY            
        100     de      Nu~r lesen                              2002-02-02 
02:02:02
sd      source\ui\dlg\a.src     0       CheckBox        CB_READ_ONLY            
        100     en-US   ~Read-only                              2002-02-02 
02:02:02
sd      source\ui\dlg\a.src     0       CheckBox        CB_READ_ONLY            
        100     km-KH   only-~Read                              2002-02-02 
02:02:02
..

how can i?

and vise virsa,how can i how to extract strings from sdf files and merge them 
to src files  ?


thks a lot!


 best wishes!


                                

        fajun.ma
[EMAIL PROTECTED]
          2006-03-10


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to