~siretart/vlc/debian-packaging

« back to all changes in this revision

Viewing changes to modules/gui/macosx/simple_prefs.m

  • Committer: Sebastian Ramacher
  • Date: 2016-01-31 20:58:37 UTC
  • mfrom: (1.2.39)
  • Revision ID: git-v1:b7ac1de93ecf7cd3d86898544433974ce0af7086
Merge tag 'upstream/2.2.2'

Upstream version 2.2.2

# gpg: Signature made Sun 31 Jan 2016 21:57:53 CET using RSA key ID 6EA71993
# gpg: Good signature from "Sebastian Ramacher <sebastian@ramacher.at>"
# gpg:                 aka "Sebastian Ramacher <s.ramacher@gmail.com>"
# gpg:                 aka "Sebastian Ramacher <s.ramacher@gmx.at>"
# gpg:                 aka "Sebastian Ramacher <s.ramacher@student.tugraz.at>"
# gpg:                 aka "Sebastian Ramacher <sramacher@debian.org>"
# gpg:                 aka "Sebastian Ramacher <sebastian.ramacher@iaik.tugraz.at>"

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
* simple_prefs.m: Simple Preferences for Mac OS X
3
3
*****************************************************************************
4
4
* Copyright (C) 2008-2014 VLC authors and VideoLAN
5
 
* $Id: ddc0957455efe1a5b61a247629904b4661481532 $
 
5
* $Id: 06bb9e3cdff800a7fb4112d7843086ad8e70b2c3 $
6
6
*
7
7
* Authors: Felix Paul Kühne <fkuehne at videolan dot org>
8
8
*
88
88
    "nn",
89
89
    "kk",
90
90
    "km",
 
91
    "ks_IN",
 
92
    "mai",
91
93
    "ne",
92
94
    "oc",
93
95
    "fa",
105
107
    "es",
106
108
    "es_MX",
107
109
    "sv",
 
110
    "ta",
108
111
    "te",
109
112
    "th",
110
113
    "tr",
162
165
    "Nynorsk",
163
166
    "Қазақ тілі",
164
167
    "ភាសាខ្មែរ",
 
168
    "कॉशुर",
 
169
    "मैथिली",
165
170
    "नेपाली",
166
171
    "Occitan",
167
172
    "ﻑﺍﺮﺳی",
179
184
    "Español",
180
185
    "Español mexicano",
181
186
    "Svenska",
 
187
    "தமிழ்",
182
188
    "తెలుగు",
183
189
    "ภาษาไทย",
184
190
    "Türkçe",
719
725
 
720
726
    [self setupButton: o_input_mkv_preload_dir_ckb forBoolValue: "mkv-preload-local-dir"];
721
727
 
 
728
    /* do not trust translators to do the correct thing,
 
729
     * so re-build the menu in an unorthodox way (#15106) */
722
730
    [o_input_cachelevel_pop removeAllItems];
723
 
    [o_input_cachelevel_pop addItemsWithTitles: [NSArray arrayWithObjects:_NS("Custom"), _NS("Lowest latency"),
724
 
     _NS("Low latency"), _NS("Normal"), _NS("High latency"), _NS("Higher latency"), nil]];
725
 
    [[o_input_cachelevel_pop itemAtIndex: 0] setTag: 0];
726
 
    [[o_input_cachelevel_pop itemAtIndex: 1] setTag: 100];
727
 
    [[o_input_cachelevel_pop itemAtIndex: 2] setTag: 200];
728
 
    [[o_input_cachelevel_pop itemAtIndex: 3] setTag: 300];
729
 
    [[o_input_cachelevel_pop itemAtIndex: 4] setTag: 500];
730
 
    [[o_input_cachelevel_pop itemAtIndex: 5] setTag: 1000];
 
731
    NSArray *plainTitles = [NSArray arrayWithObjects: @"Custom", @"Lowest latency", @"Low latency", @"Normal", @"High latency", @"Higher latency", nil];
 
732
    NSMenuItem *workerItem;
 
733
    [o_input_cachelevel_pop addItemsWithTitles: plainTitles];
 
734
    workerItem = [o_input_cachelevel_pop itemAtIndex: 0];
 
735
    [workerItem setTag: 0];
 
736
    [workerItem setTitle:_NS("Custom")];
 
737
    workerItem = [o_input_cachelevel_pop itemAtIndex: 1];
 
738
    [workerItem setTag: 100];
 
739
    [workerItem setTitle:_NS("Lowest Latency")];
 
740
    workerItem = [o_input_cachelevel_pop itemAtIndex: 2];
 
741
    [workerItem setTag: 200];
 
742
    [workerItem setTitle:_NS("Low Latency")];
 
743
    workerItem = [o_input_cachelevel_pop itemAtIndex: 3];
 
744
    [workerItem setTag: 300];
 
745
    [workerItem setTitle:_NS("Normal")];
 
746
    workerItem = [o_input_cachelevel_pop itemAtIndex: 4];
 
747
    [workerItem setTag: 500];
 
748
    [workerItem setTitle:_NS("Higher Latency")];
 
749
    workerItem = [o_input_cachelevel_pop itemAtIndex: 5];
 
750
    [workerItem setTag: 1000];
 
751
    [workerItem setTitle:_NS("Highest Latency")];
731
752
 
732
753
    #define TestCaC(name, factor) \
733
754
    b_cache_equal =  b_cache_equal && \