/rusxmms/librcc

To get this branch, use:
bzr branch http://suren.me/webbzr/rusxmms/librcc

« back to all changes in this revision

Viewing changes to src/lngconfig.c

  • Committer: Suren A. Chilingaryan
  • Date: 2005-07-29 03:26:28 UTC
  • Revision ID: Arch-1:ds@dside.dyndns.org--darksoft-2004%librcc--main--0.1--patch-23
Translation
    - Language Translation using libtranslate is implemented
    - Autoengine sets current charset (option)

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
    }
165
165
 
166
166
    config->fsiconv = NULL;
 
167
    config->trans = NULL;
167
168
 
168
169
    config->ctx = ctx;
169
170
    config->language = NULL;
199
200
void rccConfigClear(rcc_language_config config) {
200
201
    if ((config)&&(config->charset)) {
201
202
        rccConfigFreeIConv(config);
 
203
        if (config->trans) {
 
204
            rccTranslateClose(config->trans);
 
205
            config->trans = NULL;
 
206
        }
202
207
        if (config->iconv_to) {
203
208
            free(config->iconv_to);
204
209
            config->iconv_to = NULL;
521
526
        if ((!charset)||(rccIsUTF8(charset))) continue;
522
527
        config->iconv_to[i] = rccIConvOpen(charset, "UTF-8");
523
528
    }
524
 
    
 
529
 
525
530
    config->configure = 0;
526
531
 
527
532
    return 0;