-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
abyyxwang
committed
May 24, 2021
1 parent
e24db23
commit 0ff967f
Showing
96 changed files
with
5,688 additions
and
1,040 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
iOS/Demo/ReplaykitUpload/Localized/English.lproj/ReplayKitLocalized.strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
ReplayKitLocalized.strings | ||
TXLiteAVDemo | ||
|
||
Created by adams on 2021/3/22. | ||
Copyright © 2021 Tencent. All rights reserved. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// ReplayKitLocalized.h | ||
// TXLiteAVDemo | ||
// | ||
// Created by adams on 2021/3/22. | ||
// Copyright © 2021 Tencent. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
#pragma mark - Base | ||
|
||
extern NSString *ReplayKitLocalizeFromTable(NSString *key, NSString *table); | ||
extern NSString *ReplayKitLocalizeFromTableAndCommon(NSString *key, NSString *common, NSString *table); | ||
|
||
#pragma mark - Replace String | ||
extern NSString *ReplayKitLocalizeReplaceXX(NSString *origin, NSString *xxx_replace); | ||
extern NSString *ReplayKitLocalizeReplace(NSString *origin, NSString *xxx_replace, NSString *yyy_replace); | ||
extern NSString *ReplayKitLocalizeReplaceThreeCharacter(NSString *origin, NSString *xxx_replace, NSString *yyy_replace, NSString *zzz_replace); | ||
extern NSString *ReplayKitLocalizeReplaceFourCharacter(NSString *origin, NSString *xxx_replace, NSString *yyy_replace, NSString *zzz_replace, NSString *mmm_replace); | ||
extern NSString *ReplayKitLocalizeReplaceFiveCharacter(NSString *origin, NSString *xxx_replace, NSString *yyy_replace, NSString *zzz_replace, NSString *mmm_replace, NSString *nnn_replace); | ||
|
||
#pragma mark - ReplayKit | ||
extern NSString *const ReplayKit_Localize_TableName; | ||
extern NSString *ReplayKitLocalize(NSString *key); | ||
|
||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// | ||
// ReplayKitLocalized.m | ||
// TXLiteAVDemo | ||
// | ||
// Created by adams on 2021/3/22. | ||
// Copyright © 2021 Tencent. All rights reserved. | ||
// | ||
|
||
#import "ReplayKitLocalized.h" | ||
|
||
#pragma mark - Base | ||
NSString *ReplayKitLocalizeFromTable(NSString *key, NSString *table) { | ||
return [NSBundle.mainBundle localizedStringForKey:key value:@"" table:table]; | ||
} | ||
|
||
NSString *ReplayKitLocalizeFromTableAndCommon(NSString *key, NSString *common, NSString *table) { | ||
return ReplayKitLocalizeFromTable(key, table); | ||
} | ||
|
||
#pragma mark - Replace String | ||
NSString *ReplayKitLocalizeReplaceXX(NSString *origin, NSString *xxx_replace) { | ||
return [origin stringByReplacingOccurrencesOfString:@"xxx" withString:xxx_replace]; | ||
} | ||
|
||
NSString *ReplayKitLocalizeReplace(NSString *origin, NSString *xxx_replace, NSString *yyy_replace) { | ||
return [[origin stringByReplacingOccurrencesOfString:@"xxx" withString:xxx_replace] stringByReplacingOccurrencesOfString:@"yyy" withString:yyy_replace]; | ||
} | ||
|
||
NSString *ReplayKitLocalizeReplaceThreeCharacter(NSString *origin, NSString *xxx_replace, NSString *yyy_replace, NSString *zzz_replace) { | ||
return [[[origin stringByReplacingOccurrencesOfString:@"xxx" withString:xxx_replace] stringByReplacingOccurrencesOfString:@"yyy" withString:yyy_replace] | ||
stringByReplacingOccurrencesOfString:@"zzz" withString:zzz_replace]; | ||
} | ||
|
||
NSString *ReplayKitLocalizeReplaceFourCharacter(NSString *origin, NSString *xxx_replace, NSString *yyy_replace, NSString *zzz_replace, NSString *mmm_replace) { | ||
return [[[[origin stringByReplacingOccurrencesOfString:@"xxx" withString:xxx_replace] stringByReplacingOccurrencesOfString:@"yyy" withString:yyy_replace] | ||
stringByReplacingOccurrencesOfString:@"zzz" withString:zzz_replace] | ||
stringByReplacingOccurrencesOfString:@"mmm" withString:mmm_replace]; | ||
} | ||
|
||
NSString *ReplayKitLocalizeReplaceFiveCharacter(NSString *origin, NSString *xxx_replace, NSString *yyy_replace, NSString *zzz_replace, NSString *mmm_replace, NSString *nnn_replace) { | ||
return [[[[[origin stringByReplacingOccurrencesOfString:@"xxx" withString:xxx_replace] stringByReplacingOccurrencesOfString:@"yyy" withString:yyy_replace] | ||
stringByReplacingOccurrencesOfString:@"zzz" withString:zzz_replace] | ||
stringByReplacingOccurrencesOfString:@"mmm" withString:mmm_replace] | ||
stringByReplacingOccurrencesOfString:@"nnn" withString:nnn_replace]; | ||
} | ||
|
||
#pragma mark - ReplayKit | ||
NSString *const ReplayKit_Localize_TableName = @"ReplayKitLocalized"; | ||
NSString *ReplayKitLocalize(NSString *key) { | ||
return ReplayKitLocalizeFromTable(key, ReplayKit_Localize_TableName); | ||
} |
9 changes: 9 additions & 0 deletions
9
iOS/Demo/ReplaykitUpload/Localized/en.lproj/InfoPlist.strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
InfoPlist.strings | ||
TXLiteAVDemo | ||
|
||
Created by adams on 2021/3/24. | ||
Copyright © 2021 Tencent. All rights reserved. | ||
*/ | ||
|
||
CFBundleDisplayName = "TRTC"; |
21 changes: 21 additions & 0 deletions
21
iOS/Demo/ReplaykitUpload/Localized/en.lproj/ReplayKitLocalized.strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
ReplayKitLocalized.strings | ||
TXLiteAVDemo | ||
|
||
Created by adams on 2021/3/22. | ||
Copyright © 2021 Tencent. All rights reserved. | ||
*/ | ||
|
||
"ReplayKitUpload.SampleHandler.tencentcloudpushstream" = "Stream Screen Recording"; | ||
"ReplayKitUpload.SampleHandler.pushstreamstop" = "Push stopped"; | ||
"ReplayKitUpload.SampleHandler.exchangeerror" = "Switch failed"; | ||
"ReplayKitUpload.SampleHandler.replaystart" = "Screen recording has started. Return to Cloud Video Toolkit -> MLVB -> Push (Screen Recording) to set the push URL, page orientation, and definition. "; | ||
"ReplayKitUpload.SampleHandler.replaystop" = "Screen recording paused"; | ||
"ReplayKitUpload.SampleHandler.replayrestored" = "Screen recording resumed"; | ||
"ReplayKitUpload.SampleHandler.replayend" = "Screen recording ended"; | ||
"ReplayKitUpload.SampleHandler.replayfailed" = "Push failed. Please try again."; | ||
"ReplayKitUpload.SampleHandler.connectsuccess" = "Connected. Start pushing."; | ||
"ReplayKitUpload.SampleHandler.networkuplink" = "Insufficient upstream bandwidth"; | ||
"ReplayKitUpload.SampleHandler.screenshareend" = "Screen sharing ended"; | ||
"ReplayKitUpload.SampleHandler.applicationtodisconnect" = "Disconnected"; | ||
"ReplayKitUpload.SampleHandler.integrationerror" = "Integration error (inconsistent SDK version)"; |
9 changes: 9 additions & 0 deletions
9
iOS/Demo/ReplaykitUpload/Localized/zh-Hans.lproj/InfoPlist.strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
InfoPlist.strings | ||
TXLiteAVDemo | ||
|
||
Created by adams on 2021/3/24. | ||
Copyright © 2021 Tencent. All rights reserved. | ||
*/ | ||
|
||
CFBundleDisplayName = "TRTC多人会议录屏"; |
21 changes: 21 additions & 0 deletions
21
iOS/Demo/ReplaykitUpload/Localized/zh-Hans.lproj/ReplayKitLocalized.strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
ReplayKitLocalized.strings | ||
TXLiteAVDemo | ||
|
||
Created by adams on 2021/3/22. | ||
Copyright © 2021 Tencent. All rights reserved. | ||
*/ | ||
|
||
"ReplayKitUpload.SampleHandler.tencentcloudpushstream" = "腾讯云录屏推流"; | ||
"ReplayKitUpload.SampleHandler.pushstreamstop" = "推流已停止"; | ||
"ReplayKitUpload.SampleHandler.exchangeerror" = "切换失败"; | ||
"ReplayKitUpload.SampleHandler.replaystart" = "录屏已开始,请从这里点击回到Demo->直播->录屏推流->设置推流URL与横竖屏和清晰度"; | ||
"ReplayKitUpload.SampleHandler.replaystop" = "录屏已暂停"; | ||
"ReplayKitUpload.SampleHandler.replayrestored" = "录屏已恢复"; | ||
"ReplayKitUpload.SampleHandler.replayend" = "录屏已结束"; | ||
"ReplayKitUpload.SampleHandler.replayfailed" = "推流失败!请换个姿势再来一次"; | ||
"ReplayKitUpload.SampleHandler.connectsuccess" = "连接成功!开始推流"; | ||
"ReplayKitUpload.SampleHandler.networkuplink" = "网络上行带宽不足"; | ||
"ReplayKitUpload.SampleHandler.screenshareend" = "屏幕共享已结束"; | ||
"ReplayKitUpload.SampleHandler.applicationtodisconnect" = "应用断开"; | ||
"ReplayKitUpload.SampleHandler.integrationerror" = "集成错误(SDK 版本号不相符合)"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
File.strings | ||
TXLiteAVDemo | ||
|
||
Created by adams on 2021/3/24. | ||
Copyright © 2021 Tencent. All rights reserved. | ||
*/ | ||
CFBundleDisplayName = "TCToolkit"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
File.strings | ||
TXLiteAVDemo | ||
|
||
Created by adams on 2021/3/24. | ||
Copyright © 2021 Tencent. All rights reserved. | ||
*/ | ||
CFBundleDisplayName = "腾讯云工具包"; |
Oops, something went wrong.