summaryrefslogtreecommitdiffstats
path: root/apps/files/l10n/sv.json
diff options
context:
space:
mode:
authorNextcloud bot <bot@nextcloud.com>2023-10-18 00:52:44 +0000
committerNextcloud bot <bot@nextcloud.com>2023-10-18 00:52:44 +0000
commit02676462d0fe587ee210f01c3f482d1081ff88e5 (patch)
tree72ca22f262aff4079078340cea70108b5a2987db /apps/files/l10n/sv.json
parent62fde219af0135ea9bfa367530f3a347b5e11b30 (diff)
downloadnextcloud-server-02676462d0fe587ee210f01c3f482d1081ff88e5.tar.gz
nextcloud-server-02676462d0fe587ee210f01c3f482d1081ff88e5.zip
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Diffstat (limited to 'apps/files/l10n/sv.json')
-rw-r--r--apps/files/l10n/sv.json17
1 files changed, 9 insertions, 8 deletions
diff --git a/apps/files/l10n/sv.json b/apps/files/l10n/sv.json
index 97cc1a1250a..90e493d75b4 100644
--- a/apps/files/l10n/sv.json
+++ b/apps/files/l10n/sv.json
@@ -171,15 +171,14 @@
"Go to the \"{dir}\" directory" : "Gå till \"{dir}\" mappen",
"Drag and drop files here to upload" : "Dra och släpp filer här för att ladda upp",
"Upload successful" : "Uppladdningen lyckades",
+ "\"{displayName}\" action executed successfully" : "\"{displayName}\"-åtgärden har utförts",
+ "\"{displayName}\" action failed" : "\"{displayName}\"-åtgärden misslyckades",
"Select the row for {displayName}" : "Välj raden för {displayName}",
"Rename file" : "Byt namn på fil",
- "A long time ago" : "För länge sedan",
- "This node is unavailable" : "Den här noden är inte tillgänglig",
- "Download file {name}" : "Ladda ner filen {name}",
"File name" : "Filnamn",
"Folder name" : "Mappnamn",
- "\"{displayName}\" action executed successfully" : "\"{displayName}\"-åtgärden har utförts",
- "\"{displayName}\" action failed" : "\"{displayName}\"-åtgärden misslyckades",
+ "This node is unavailable" : "Den här noden är inte tillgänglig",
+ "Download file {name}" : "Ladda ner filen {name}",
"\"{name}\" is not an allowed filetype." : "\"{name}\" är inte en tillåten filtyp.",
"{newName} already exists." : "{newName} finns redan.",
"\"{char}\" is not allowed inside a file name." : "\"{char}\" är inte tillåtet i ett filnamn.",
@@ -189,6 +188,7 @@
"Could not rename \"{oldName}\", it does not exist any more" : "Kunde inte byta namn på \"{oldName}\", den finns inte längre",
"The name \"{newName}\" is already used in the folder \"{dir}\". Please choose a different name." : "Namnet \"{newName}\" används redan i mappen \"{dir}\". Välj ett annat namn.",
"Could not rename \"{oldName}\"" : "Kunde inte byta namn på \"{oldName}\"",
+ "A long time ago" : "För länge sedan",
"Could not copy {file}. {message}" : "Kunde inte kopiera {file}. {message}",
"Could not move {file}. {message}" : "Kunde inte flytta {file}. {message}",
"Total rows summary" : "Sammanfattning antal rader",
@@ -227,6 +227,7 @@
"Share" : "Dela",
"Shared by link" : "Delad via länk",
"Shared" : "Delad",
+ "Switch to list view" : "Växla till listvy",
"Open the files app settings" : "Öppna filappens inställningar",
"Files settings" : "Filinställningar",
"File cannot be accessed" : "Det går inte att komma åt filen",
@@ -263,11 +264,10 @@
"Open folder {displayName}" : "Öppna mappen {displayName}",
"Open in Files" : "Öppna i Filer",
"Open details" : "Öppna detaljer",
- "Created new folder \"{name}\"" : "Skapat ny mapp \"{name}\"",
- "Set up templates folder" : "Skapa en mapp för mallar",
- "Templates" : "Mallar",
"Create new templates folder" : "Skapa ny mallmapp",
+ "Templates" : "Mallar",
"Unable to initialize the templates directory" : "Kunde inte initialisera mall-mappen",
+ "Created new folder \"{name}\"" : "Skapat ny mapp \"{name}\"",
"_{folderCount} folder_::_{folderCount} folders_" : ["{folderCount} mapp","{folderCount} mappar"],
"_{fileCount} file_::_{fileCount} files_" : ["{fileCount} fil","{fileCount} filer"],
"_1 file and {folderCount} folder_::_1 file and {folderCount} folders_" : ["1 fil och {folderCount} mapp","1 fil och {folderCount} mappar"],
@@ -292,6 +292,7 @@
"Unlimited" : "Obegränsad",
"Search users" : "Sök användare",
"Cancel" : "Avbryt",
+ "Set up templates folder" : "Skapa en mapp för mallar",
"%s used" : "%s använt",
"%s%%" : "%s%%",
"%1$s of %2$s used" : "%1$s av %2$s använt",
* it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License, version 3, * along with this program. If not, see <http://www.gnu.org/licenses/> * */ namespace OC\Preview; use Imagick; /** * Creates a PNG preview using ImageMagick via the PECL extension * * @package OC\Preview */ abstract class Bitmap extends Provider { /** * {@inheritDoc} */ public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) { $tmpPath = $fileview->toTmpFile($path); if (!$tmpPath) { return false; } // Creates \Imagick object from bitmap or vector file try { $bp = $this->getResizedPreview($tmpPath, $maxX, $maxY); } catch (\Exception $e) { \OC_Log::write('core', 'ImageMagick says: ' . $e->getmessage(), \OC_Log::ERROR); return false; } unlink($tmpPath); //new bitmap image object $image = new \OC_Image(); $image->loadFromData($bp); //check if image object is valid return $image->valid() ? $image : false; } /** * Returns a preview of maxX times maxY dimensions in PNG format * * * The default resolution is already 72dpi, no need to change it for a bitmap output * * It's possible to have proper colour conversion using profileimage(). * ICC profiles are here: http://www.color.org/srgbprofiles.xalter * * It's possible to Gamma-correct an image via gammaImage() * * @param string $tmpPath the location of the file to convert * @param int $maxX * @param int $maxY * * @return \Imagick */ private function getResizedPreview($tmpPath, $maxX, $maxY) { $bp = new Imagick(); // Layer 0 contains either the bitmap or a flat representation of all vector layers $bp->readImage($tmpPath . '[0]'); $bp = $this->resize($bp, $maxX, $maxY); $bp->setImageFormat('png'); return $bp; } /** * Returns a resized \Imagick object * * If you want to know more on the various methods available to resize an * image, check out this link : @link https://stackoverflow.com/questions/8517304/what-the-difference-of-sample-resample-scale-resize-adaptive-resize-thumbnail-im * * @param \Imagick $bp * @param int $maxX * @param int $maxY * * @return \Imagick */ private function resize($bp, $maxX, $maxY) { list($previewWidth, $previewHeight) = array_values($bp->getImageGeometry()); // We only need to resize a preview which doesn't fit in the maximum dimensions if ($previewWidth > $maxX || $previewHeight > $maxY) { // TODO: LANCZOS is the default filter, CATROM could bring similar results faster $bp->resizeImage($maxX, $maxY, imagick::FILTER_LANCZOS, 1, true); } return $bp; } }