فهرست منبع

web intf: localize helper strings

Felix Paul Kühne 11 سال پیش
والد
کامیت
9ebbc97cc7
3فایلهای تغییر یافته به همراه8 افزوده شده و 9 حذف شده
  1. BIN
      Resources/en.lproj/Localizable.strings
  2. 4 9
      Resources/web/index.html
  3. 4 0
      Sources/VLCHTTPConnection.m

BIN
Resources/en.lproj/Localizable.strings


+ 4 - 9
Resources/web/index.html

@@ -26,19 +26,14 @@
       </div>
 
       <div class="messageUpload">
-        <h1>Drop files</h1>
-        <p>
-          Drop files in the window to add them to your iOS device. <br>
-          Or click on the "+" button to use the file picker dialog.
-        </p>
+        <h1>%%WEBINTF_DROPFILES%%</h1>
+        <p>%%WEBINTF_DROPFILES_LONG%%</p>
       </div>
 
       <hr>
       <div class="messageDownload">
-          <h1>Download files </h1>
-          <p>
-          Just click the file you want to download from your iOS device.
-          </p>
+          <h1>%%WEBINTF_DOWNLOADFILES%%</h1>
+          <p>%%WEBINTF_DOWNLOADFILES_LONG%%</p>
       </div>
 
       <ul class="downloads">

+ 4 - 0
Sources/VLCHTTPConnection.m

@@ -115,6 +115,10 @@
 
         NSMutableDictionary *replacementDict = [NSMutableDictionary new];
         [replacementDict setObject:fileList forKey:@"FILES"];
+        [replacementDict setObject:NSLocalizedString(@"WEBINTF_DROPFILES", nil) forKey:@"WEBINTF_DROPFILES"];
+        [replacementDict setObject:NSLocalizedString(@"WEBINTF_DROPFILES_LONG", nil) forKey:@"WEBINTF_DROPFILES_LONG"];
+        [replacementDict setObject:NSLocalizedString(@"WEBINTF_DOWNLOADFILES", nil) forKey:@"WEBINTF_DOWNLOADFILES"];
+        [replacementDict setObject:NSLocalizedString(@"WEBINTF_DOWNLOADFILES_LONG", nil) forKey:@"WEBINTF_DOWNLOADFILES_LONG"];
         return [[HTTPDynamicFileResponse alloc] initWithFilePath:[self filePathForURI:path]
                                                    forConnection:self
                                                        separator:@"%%"