Commit 9ebbc97c authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

web intf: localize helper strings

parent 466a4f1f
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -26,19 +26,14 @@ ...@@ -26,19 +26,14 @@
</div> </div>
<div class="messageUpload"> <div class="messageUpload">
<h1>Drop files</h1> <h1>%%WEBINTF_DROPFILES%%</h1>
Drop files in the window to add them to your iOS device. <br>
Or click on the "+" button to use the file picker dialog.
</div> </div>
<hr> <hr>
<div class="messageDownload"> <div class="messageDownload">
<h1>Download files </h1> <h1>%%WEBINTF_DOWNLOADFILES%%</h1>
Just click the file you want to download from your iOS device.
</div> </div>
<ul class="downloads"> <ul class="downloads">
...@@ -115,6 +115,10 @@ ...@@ -115,6 +115,10 @@
NSMutableDictionary *replacementDict = [NSMutableDictionary new]; NSMutableDictionary *replacementDict = [NSMutableDictionary new];
[replacementDict setObject:fileList forKey:@"FILES"]; [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] return [[HTTPDynamicFileResponse alloc] initWithFilePath:[self filePathForURI:path]
forConnection:self forConnection:self
separator:@"%%" separator:@"%%"
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