]> git.sesse.net Git - vlc/blobdiff - src/misc/darwin_specific.m
* ALL: added Nepali as the last of Simos Xenitellis' list of languages
[vlc] / src / misc / darwin_specific.m
index 1f0f26e77d112faee1516fc8c7d3ce4c3d43e089..1314fae74ad1f789b7edb81ff7672edf76763cbf 100644 (file)
@@ -1,17 +1,17 @@
 /*****************************************************************************
- * darwin_specific.m: Darwin specific features 
+ * darwin_specific.m: Darwin specific features
  *****************************************************************************
- * Copyright (C) 2001 VideoLAN
- * $Id: darwin_specific.m,v 1.11 2003/02/17 17:06:19 massiot Exp $
+ * Copyright (C) 2001-2004 VideoLAN
+ * $Id$
  *
- * Authors: Samuel Hocevar <sam@zoy.org>
+ * Authors: Sam Hocevar <sam@zoy.org>
  *          Christophe Massiot <massiot@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
 #include <Cocoa/Cocoa.h>
 
+#ifdef HAVE_LOCALE_H
+#   include <locale.h>
+#endif
+
 /*****************************************************************************
  * system_Init: fill in program path & retrieve language
  *****************************************************************************/
@@ -36,17 +40,29 @@ static int FindLanguage( const char * psz_lang )
     const char ** ppsz_parser;
     const char * ppsz_all[] =
     {
+        "Bengali", "bn",
+        "Danish", "da",
         "German", "de",
+        "Modern Greek", "el",
         "British", "en_GB",
-       "English", "C",
+        "English", "en",
+        "Spanish", "es",
         "French", "fr",
+        "Hindi", "hi",
+        "Hungarian", "hu",
         "Italian", "it",
         "Japanese", "ja",
+        "Burmese", "my",
+        "Nepali", "ne",
         "Dutch", "nl",
         "Norwegian", "no",
         "Polish", "pl",
+        "Pashto", "ps",
+        "Brazillian Portuguese", "pt_BR",
         "Russian", "ru",
         "Swedish", "sv",
+        "Tetum", "tet",
+        "Tagalog", "tl",
         NULL
     };
 
@@ -90,20 +106,20 @@ void system_Init( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
         NSAutoreleasePool * o_pool = [[NSAutoreleasePool alloc] init];
 
         /* Retrieve user's preferences. */
-        NSUserDefaults * o_defs = [NSUserDefaults standardUserDefaults]; 
-        NSArray * o_languages = [o_defs objectForKey:@"AppleLanguages"]; 
-        NSEnumerator * o_enumerator = [o_languages objectEnumerator]; 
+        NSUserDefaults * o_defs = [NSUserDefaults standardUserDefaults];
+        NSArray * o_languages = [o_defs objectForKey:@"AppleLanguages"];
+        NSEnumerator * o_enumerator = [o_languages objectEnumerator];
         NSString * o_lang;
 
         while ( (o_lang = [o_enumerator nextObject]) )
-        { 
+        {
             const char * psz_string = [o_lang lossyCString];
             if ( FindLanguage( psz_string ) )
             {
                 break;
             }
         }
-        
+
         [o_pool release];
     }
 }
@@ -111,7 +127,7 @@ void system_Init( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
 /*****************************************************************************
  * system_Configure: check for system specific configuration options.
  *****************************************************************************/
-void system_Configure( vlc_t *p_this )
+void system_Configure( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
 {
 
 }