Commit 582efa4e authored by Gleb Pinigin's avatar Gleb Pinigin

Add localization for <TV connected> placeholder

parent 567d2557
......@@ -40,7 +40,10 @@
@property (nonatomic, retain) IBOutlet UIButton *audioSwitcherButton;
@property (nonatomic, retain) IBOutlet UIToolbar *toolbar;
@property (nonatomic, retain) IBOutlet UIView *controllerPanel;
@property (nonatomic, retain) IBOutlet UIView *playingExternallyView;
@property (nonatomic, retain) IBOutlet UILabel *playingExternallyTitle;
@property (nonatomic, retain) IBOutlet UILabel *playingExternallyDescription;
@property (strong, nonatomic) MLFile *mediaItem;
......
......@@ -16,7 +16,8 @@
@implementation VLCMovieViewController
@synthesize movieView=_movieView, backButton=_backButton, positionSlider=_positionSlider, timeDisplay=_timeDisplay, playPauseButton = _playPauseButton, bwdButton = _bwdButton, fwdButton = _fwdButton, subtitleSwitcherButton = _subtitleSwitcherButton, audioSwitcherButton = _audioSwitcherButton;
@synthesize toolbar = _toolbar, controllerPanel = _controllerPanel, playingExternallyView = _playingExternallyView;
@synthesize toolbar = _toolbar, controllerPanel = _controllerPanel, playingExternallyView = _playingExternallyView,
playingExternallyTitle = _playingExternallyTitle, playingExternallyDescription = _playingExternallyDescription;
- (void)dealloc
{
......@@ -35,6 +36,8 @@
[_audioSwitcherButton release];
[_controllerPanel release];
[_playingExternallyView release];
[_playingExternallyTitle release];
[_playingExternallyDescription release];
[_mediaPlayer stop];
[_mediaPlayer release];
......@@ -71,6 +74,8 @@
name:UIScreenDidDisconnectNotification object:nil];
[center addObserver:self selector:@selector(appWillResign:) name:UIApplicationWillResignActiveNotification object:nil];
_playingExternallyTitle.text = NSLocalizedString(@"PLAYING_EXTERNALLY_TITLE", @"");
_playingExternallyDescription.text = NSLocalizedString(@"PLAYING_EXTERNALLY_DESC", @"");
if ([self hasExternalDisplay]) {
[self showOnExternalDisplay];
}
......
......@@ -483,6 +483,22 @@
</object>
<int key="connectionID">131</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">playingExternallyDescription</string>
<reference key="source" ref="841351856"/>
<reference key="destination" ref="971492616"/>
</object>
<int key="connectionID">132</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">playingExternallyTitle</string>
<reference key="source" ref="841351856"/>
<reference key="destination" ref="613689066"/>
</object>
<int key="connectionID">133</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
......@@ -648,7 +664,7 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">131</int>
<int key="maxID">133</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
......@@ -710,6 +726,8 @@
<string key="fwdButton">UIButton</string>
<string key="movieView">UIView</string>
<string key="playPauseButton">UIButton</string>
<string key="playingExternallyDescription">UILabel</string>
<string key="playingExternallyTitle">UILabel</string>
<string key="playingExternallyView">UIView</string>
<string key="positionSlider">UISlider</string>
<string key="subtitleSwitcherButton">UIButton</string>
......@@ -745,6 +763,14 @@
<string key="name">playPauseButton</string>
<string key="candidateClassName">UIButton</string>
</object>
<object class="IBToOneOutletInfo" key="playingExternallyDescription">
<string key="name">playingExternallyDescription</string>
<string key="candidateClassName">UILabel</string>
</object>
<object class="IBToOneOutletInfo" key="playingExternallyTitle">
<string key="name">playingExternallyTitle</string>
<string key="candidateClassName">UILabel</string>
</object>
<object class="IBToOneOutletInfo" key="playingExternallyView">
<string key="name">playingExternallyView</string>
<string key="candidateClassName">UIView</string>
......
......@@ -495,6 +495,22 @@
</object>
<int key="connectionID">112</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">playingExternallyDescription</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="360323160"/>
</object>
<int key="connectionID">113</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">playingExternallyTitle</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="529141063"/>
</object>
<int key="connectionID">114</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">switchSubtitleTrack:</string>
......@@ -722,7 +738,7 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">112</int>
<int key="maxID">114</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
......@@ -784,6 +800,8 @@
<string key="fwdButton">UIButton</string>
<string key="movieView">UIView</string>
<string key="playPauseButton">UIButton</string>
<string key="playingExternallyDescription">UILabel</string>
<string key="playingExternallyTitle">UILabel</string>
<string key="playingExternallyView">UIView</string>
<string key="positionSlider">UISlider</string>
<string key="subtitleSwitcherButton">UIButton</string>
......@@ -819,6 +837,14 @@
<string key="name">playPauseButton</string>
<string key="candidateClassName">UIButton</string>
</object>
<object class="IBToOneOutletInfo" key="playingExternallyDescription">
<string key="name">playingExternallyDescription</string>
<string key="candidateClassName">UILabel</string>
</object>
<object class="IBToOneOutletInfo" key="playingExternallyTitle">
<string key="name">playingExternallyTitle</string>
<string key="candidateClassName">UILabel</string>
</object>
<object class="IBToOneOutletInfo" key="playingExternallyView">
<string key="name">playingExternallyView</string>
<string key="candidateClassName">UIView</string>
......
B"Choose Audio Track"="Choose Audio Track";
......
B"Choose Audio Track"="Выберите аудио поток";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment