Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
b3807154
Commit
b3807154
authored
Jan 29, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: displayed ocalizable sstrings correctly
parent
49972383
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+4
-4
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+2
-5
No files found.
modules/gui/macosx/MainWindow.m
View file @
b3807154
...
...
@@ -332,7 +332,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
switch
(
*
p_category
)
{
case
SD_CAT_INTERNET
:
{
[
internetItems
addObject
:
[
SideBarItem
itemWithTitle
:
[
NSString
stringWithCString
:
*
ppsz_longname
encoding
:
NSUTF8StringEncoding
]
identifier
:
o_identifier
]];
[
internetItems
addObject
:
[
SideBarItem
itemWithTitle
:
_NS
(
*
ppsz_longname
)
identifier
:
o_identifier
]];
if
(
!
strncmp
(
*
ppsz_name
,
"podcast"
,
7
))
[[
internetItems
lastObject
]
setIcon
:
[
NSImage
imageNamed
:
@"sidebar-podcast"
]];
else
...
...
@@ -342,21 +342,21 @@ static VLCMainWindow *_o_sharedInstance = nil;
break
;
case
SD_CAT_DEVICES
:
{
[
devicesItems
addObject
:
[
SideBarItem
itemWithTitle
:
[
NSString
stringWithCString
:
*
ppsz_longname
encoding
:
NSUTF8StringEncoding
]
identifier
:
o_identifier
]];
[
devicesItems
addObject
:
[
SideBarItem
itemWithTitle
:
_NS
(
*
ppsz_longname
)
identifier
:
o_identifier
]];
[[
devicesItems
lastObject
]
setIcon
:
[
NSImage
imageNamed
:
@"NSApplicationIcon"
]];
[[
devicesItems
lastObject
]
setSdtype
:
SD_CAT_DEVICES
];
}
break
;
case
SD_CAT_LAN
:
{
[
lanItems
addObject
:
[
SideBarItem
itemWithTitle
:
[
NSString
stringWithCString
:
*
ppsz_longname
encoding
:
NSUTF8StringEncoding
]
identifier
:
o_identifier
]];
[
lanItems
addObject
:
[
SideBarItem
itemWithTitle
:
_NS
(
*
ppsz_longname
)
identifier
:
o_identifier
]];
[[
lanItems
lastObject
]
setIcon
:
[
NSImage
imageNamed
:
@"sidebar-local"
]];
[[
lanItems
lastObject
]
setSdtype
:
SD_CAT_LAN
];
}
break
;
case
SD_CAT_MYCOMPUTER
:
{
[
mycompItems
addObject
:
[
SideBarItem
itemWithTitle
:
[
NSString
stringWithCString
:
*
ppsz_longname
encoding
:
NSUTF8StringEncoding
]
identifier
:
o_identifier
]];
[
mycompItems
addObject
:
[
SideBarItem
itemWithTitle
:
_NS
(
*
ppsz_longname
)
identifier
:
o_identifier
]];
if
(
!
strncmp
(
*
ppsz_name
,
"video_dir"
,
9
))
[[
mycompItems
lastObject
]
setIcon
:
[
NSImage
imageNamed
:
@"sidebar-movie"
]];
else
if
(
!
strncmp
(
*
ppsz_name
,
"audio_dir"
,
9
))
...
...
modules/gui/macosx/open.m
View file @
b3807154
...
...
@@ -346,8 +346,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
for
(
i_index
=
0
;
i_index
<
p_item
->
i_list
;
i_index
++
)
{
[
o_file_sub_align_pop
addItemWithTitle
:
[
NSString
stringWithUTF8String
:
p_item
->
ppsz_list_text
[
i_index
]]];
_NS
(
p_item
->
ppsz_list_text
[
i_index
])];
}
[
o_file_sub_align_pop
selectItemAtIndex
:
p_item
->
value
.
i
];
}
...
...
@@ -358,9 +357,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
{
for
(
i_index
=
0
;
i_index
<
p_item
->
i_list
;
i_index
++
)
{
[
o_file_sub_size_pop
addItemWithTitle
:
[
NSString
stringWithUTF8String
:
p_item
->
ppsz_list_text
[
i_index
]]];
[
o_file_sub_size_pop
addItemWithTitle
:
_NS
(
p_item
->
ppsz_list_text
[
i_index
])];
if
(
p_item
->
value
.
i
==
p_item
->
pi_list
[
i_index
]
)
{
[
o_file_sub_size_pop
selectItemAtIndex
:
i_index
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment