Changeset 71fc0c72c7b716de080e109d8aa5d83bb46bc1c0

Show
Ignore:
Timestamp:
04/15/06 16:18:13 (2 years ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1145110693 +0000
git-parent:

[e67aa8aaf61864b4266dd63ea8e4e83b03c88dbb]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1145110693 +0000
Message:

Do not provide a broken language option on Linux and similar OSes
where the user normally use LANG, LANGUAGE, etc to define his/her
language(s). It didn't work anyway (refs #638).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc.c

    r4ba34e1 r71fc0c7  
    459459#if defined( ENABLE_NLS ) \ 
    460460     && ( defined( HAVE_GETTEXT ) || defined( HAVE_INCLUDED_GETTEXT ) ) 
    461  
     461# if defined (WIN32) || defined (__APPLE__) 
    462462    /* This ain't really nice to have to reload the config here but it seems 
    463463     * the only way to do it. */ 
     
    473473        /* Reset the default domain */ 
    474474        SetLanguage( psz_language ); 
    475  
    476         /* Should not be needed (otherwise, fixes should rather be 
    477          * attempted on vlc_current_charset(). 
    478          * Also, if the locale charset is overriden, anything that has been 
    479          * translated until now would have to be retranslated. */ 
    480         /*LocaleDeinit(); 
    481         LocaleInit( (vlc_object_t *)p_vlc );*/ 
    482475 
    483476        /* Translate "C" to the language code: "fr", "en_GB", "nl", "ru"... */ 
     
    491484    } 
    492485    if( psz_language ) free( psz_language ); 
     486# endif 
    493487#endif 
    494488 
  • src/libvlc.h

    r79f9f30 r71fc0c7  
    15331533#endif 
    15341534 
     1535#if defined (WIN32) || defined (__APPLE__) 
    15351536    add_string( "language", "auto", NULL, LANGUAGE_TEXT, LANGUAGE_LONGTEXT, 
    15361537                VLC_FALSE ); 
    15371538        change_string_list( ppsz_language, ppsz_language_text, 0 ); 
     1539#endif 
     1540 
    15381541    add_bool( "color", 0, NULL, COLOR_TEXT, COLOR_LONGTEXT, VLC_TRUE ); 
    15391542    add_bool( "advanced", 0, NULL, ADVANCED_TEXT, ADVANCED_LONGTEXT,