Ignore:
Timestamp:
Aug 13, 2006, 10:29:52 AM (15 years ago)
Author:
Eugene Romanenko
Message:

Internationalize 'embedded' values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/fontsInfoDlg.cpp

    r91 r99  
    2222 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
    2323 * in which case the provisions of the LGPL are applicable instead of those
    24  * above. If you wish to allow use of your version of this file only under the 
     24 * above. If you wish to allow use of your version of this file only under the
    2525 * terms of the LGPL, and not to allow others to use your version of this file
    2626 * under the terms of the CDDL, indicate your decision by deleting the
    2727 * provisions above and replace them with the notice and other provisions
    2828 * required by the LGPL. If you do not delete the provisions above, a recipient
    29  * may use your version of this file under the terms of any one of the CDDL 
     29 * may use your version of this file under the terms of any one of the CDDL
    3030 * or the LGPL.
    3131 *
     
    5656    type       = newstrdupL( FONTINFO_TYPE );
    5757    embed      = newstrdupL( FONTINFO_EMBEDDED );
     58    emb_notembedded    = newstrdupL( FONTINFO_EMBED_NOT_EMBEDDED );
     59    emb_embedded       = newstrdupL( FONTINFO_EMBED_EMBEDDED );
     60    emb_embeddedsubset = newstrdupL( FONTINFO_EMBED_EMBEDDED_SUBSET );
    5861}
    5962
     
    6366    delete type;
    6467    delete embed;
     68    delete emb_notembedded;
     69    delete emb_embedded;
     70    delete emb_embeddedsubset;
    6571}
    6672
     
    100106            r->miniRecordCore.hptrIcon = NULLHANDLE;
    101107            r->type = newstrdup( fonts->_buffer[i].type );
    102             r->embed = newstrdup( fonts->_buffer[i].embedded );
     108            r->embed = NULL;
     109            switch ( fonts->_buffer[i].embedded )
     110            {
     111                case LU_FONTEMBED_NOT_EMBEDDED:
     112                    r->embed = newstrdup( emb_notembedded );
     113                    break;
     114                case LU_FONTEMBED_EMBEDDED:
     115                    r->embed = newstrdup( emb_embedded );
     116                    break;
     117                case LU_FONTEMBED_EMBEDDED_SUBSET:
     118                    r->embed = newstrdup( emb_embeddedsubset );
     119                    break;
     120            }
    103121
    104122            RECORDINSERT ri;
Note: See TracChangeset for help on using the changeset viewer.