Explorar o código

Replace 'from your iOS device' wording with the proper device model name

Felix Paul Kühne %!s(int64=11) %!d(string=hai) anos
pai
achega
213e9bb7be
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. BIN=BIN
      Resources/en.lproj/Localizable.strings
  2. 3 2
      Sources/VLCHTTPConnection.m

BIN=BIN
Resources/en.lproj/Localizable.strings


+ 3 - 2
Sources/VLCHTTPConnection.m

@@ -278,12 +278,13 @@
             }
         }
 
+        NSString *deviceModel = [[UIDevice currentDevice] model];
         NSDictionary *replacementDict = @{@"FILES" : [mediaInHtml componentsJoinedByString:@" "],
                                           @"WEBINTF_TITLE" : NSLocalizedString(@"WEBINTF_TITLE", nil),
                                           @"WEBINTF_DROPFILES" : NSLocalizedString(@"WEBINTF_DROPFILES", nil),
-                                          @"WEBINTF_DROPFILES_LONG" : NSLocalizedString(@"WEBINTF_DROPFILES_LONG", nil),
+                                          @"WEBINTF_DROPFILES_LONG" : [NSString stringWithFormat:NSLocalizedString(@"WEBINTF_DROPFILES_LONG", nil), deviceModel],
                                           @"WEBINTF_DOWNLOADFILES" : NSLocalizedString(@"WEBINTF_DOWNLOADFILES", nil),
-                                          @"WEBINTF_DOWNLOADFILES_LONG" : NSLocalizedString(@"WEBINTF_DOWNLOADFILES_LONG", nil)};
+                                          @"WEBINTF_DOWNLOADFILES_LONG" : [NSString stringWithFormat: NSLocalizedString(@"WEBINTF_DOWNLOADFILES_LONG", nil), deviceModel]};
 
         return [[HTTPDynamicFileResponse alloc] initWithFilePath:[self filePathForURI:path]
                                                    forConnection:self