[vlc-commits] macosx/addons: add missing l10n and ignore skins

Felix Paul Kühne git at videolan.org
Wed Feb 12 20:21:27 CET 2014


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Feb 12 20:21:08 2014 +0100| [f7016207781555610a1f012c5ef33e487c8c449f] | committer: Felix Paul Kühne

macosx/addons: add missing l10n and ignore skins

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7016207781555610a1f012c5ef33e487c8c449f
---

 modules/gui/macosx/AddonManager.m |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/modules/gui/macosx/AddonManager.m b/modules/gui/macosx/AddonManager.m
index d81901f..b64db48 100644
--- a/modules/gui/macosx/AddonManager.m
+++ b/modules/gui/macosx/AddonManager.m
@@ -89,8 +89,9 @@ static VLCAddonManager *_o_sharedInstance = nil;
     [_typeSwitcher removeAllItems];
     [_typeSwitcher addItemWithTitle:_NS("All")];
     [[_typeSwitcher lastItem] setTag: -1];
+    /* no skins on OS X so far
     [_typeSwitcher addItemWithTitle:_NS("Skins")];
-    [[_typeSwitcher lastItem] setTag:ADDON_SKIN2];
+    [[_typeSwitcher lastItem] setTag:ADDON_SKIN2]; */
     [_typeSwitcher addItemWithTitle:_NS("Playlist parsers")];
     [[_typeSwitcher lastItem] setTag:ADDON_PLAYLIST_PARSER];
     [_typeSwitcher addItemWithTitle:_NS("Service discovery")];
@@ -188,7 +189,10 @@ static VLCAddonManager *_o_sharedInstance = nil;
                                          [NSNumber numberWithInt:p_entry->e_type], @"type",
                                          [NSValue valueWithPointer:&p_entry->uuid], @"uuid",
                                          nil];
-        [_addons addObject:addonProperties];
+
+        /* no skin support on OS X so far */
+        if ([[addonProperties objectForKey:@"type"] intValue] != ADDON_SKIN2)
+            [_addons addObject:addonProperties];
     }
 }
 
@@ -271,15 +275,15 @@ static VLCAddonManager *_o_sharedInstance = nil;
     switch (i_type)
     {
         case ADDON_SKIN2:
-            return @"Skins";
+            return _NS("Skins");
         case ADDON_PLAYLIST_PARSER:
-            return @"Playlist parsers";
+            return _NS("Playlist parsers");
         case ADDON_SERVICE_DISCOVERY:
-            return @"Service Discovery";
+            return _NS("Service Discovery");
         case ADDON_EXTENSION:
-            return @"Extensions";
+            return _NS("Extensions");
         default:
-            return @"Unknown";
+            return _NS("Unknown");
     }
 }
 



More information about the vlc-commits mailing list