]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make all filepicker strings translatable 14804/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 22 Mar 2019 09:22:07 +0000 (10:22 +0100)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 22 Mar 2019 09:22:07 +0000 (10:22 +0100)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
core/js/oc-dialogs.js
core/templates/filepicker.html

index c9aeaa0b336715b0a017faeb8d0e8ceeb8a2dddd..c08b72bf1835be5018350ce08751737a2ccace72 100644 (file)
@@ -235,7 +235,10 @@ var OCdialogs = {
                                dialog_name: dialogName,
                                title: title,
                                emptytext: emptyText,
-                               newtext: newText
+                               newtext: newText,
+                               nameCol: t('core', 'Name'),
+                               sizeCol: t('core', 'Size'),
+                               modifiedCol: t('core', 'Modified')
                        }).data('path', path).data('multiselect', multiselect).data('mimetype', mimetypeFilter);
 
                        if (modal === undefined) {
index b88c8f308de95c34e8e9bbcd5e378d40a3aebc94..49e2baa82ec383c2426fb459c9e3437b7a196d4a 100644 (file)
                                        <th id="headerName" class="column-name">
                                                <div id="headerName-container">
                                                        <a class="name sort columntitle" data-sort="name">
-                                                               <span>Name</span>
+                                                               <span>{nameCol}</span>
                                                                <span class="sort-indicator hidden icon-triangle-n"></span>
                                                        </a>
                                                </div>
                                        </th>
                                        <th id="headerSize" class="column-size">
                                                <a class="size sort columntitle" data-sort="size">
-                                                       <span>Size</span>
+                                                       <span>{sizeCol}</span>
                                                        <span class="sort-indicator hidden icon-triangle-n"></span></a>
                                        </th>
                                        <th id="headerDate" class="column-mtime">
                                                <a id="modified" class="columntitle" data-sort="mtime">
-                                                       <span>Modified</span>
+                                                       <span>{modifiedCol}</span>
                                                        <span class="sort-indicator hidden icon-triangle-n"></span></a>
                                        </th>
                                </tr>