diff --git a/src/aboutdialog.ui b/src/aboutdialog.ui index 88e7de59..2de5b7ca 100755 --- a/src/aboutdialog.ui +++ b/src/aboutdialog.ui @@ -74,12 +74,8 @@ p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Verdana'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Developers:</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Andrey Bayrak &lt;<a href="andrey.bayrak@gmail.com"><span style=" text-decoration: underline; color:#0057ae;">andrey.bayrak@gmail.com</span></a>&gt;</p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Evgeniy Raizner &lt;<a href="razrfalcon@gmail.com"><span style=" text-decoration: underline; color:#0057ae;">razrfalcon@gmail.com</span></a>&gt;</p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Special thanks:</p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Alexandre Prokoudine &lt;<a href="alexandre.prokoudine@gmail.com"><span style=" text-decoration: underline; color:#0057ae;">alexandre.prokoudine@gmail.com</span></a>&gt;</p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Translators:</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Evgeniy Raizner &lt;<a href="razrfalcon@gmail.com"><span style=" text-decoration: underline; color:#0057ae;">razrfalcon@gmail.com</span></a>&gt;<br /><br />Special thanks:</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Alexandre Prokoudine &lt;<a href="alexandre.prokoudine@gmail.com"><span style=" text-decoration: underline; color:#0057ae;">alexandre.prokoudine@gmail.com</span></a>&gt;<br /><br />Translators:</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Czech - Pavel Fric &lt;<a href="pavelfric@seznam.cz"><span style=" text-decoration: underline; color:#0057ae;">pavelfric@seznam.cz</span></a>&gt;</p></body></html> diff --git a/svgcleaner.nsi b/svgcleaner.nsi index 53edb18a..e52953ba 100755 --- a/svgcleaner.nsi +++ b/svgcleaner.nsi @@ -71,6 +71,8 @@ InstallDir "$PROGRAMFILES\${APP_NAME}" !insertmacro MUI_LANGUAGE "English" !insertmacro MUI_LANGUAGE "Russian" +!insertmacro MUI_LANGUAGE "Ukrainian" +!insertmacro MUI_LANGUAGE "Czech" !insertmacro MUI_RESERVEFILE_LANGDLL @@ -99,6 +101,7 @@ MessageBox MB_YESNO "Install Strawberry Perl?" /SD IDYES IDNO endStrawberryPerl mydownload: DetailPrint "Downloading Strawberry Perl..." NSISdl::download http://strawberry-perl.googlecode.com/files/strawberry-perl-5.12.3.0.msi "$EXEDIR\strawberry-perl-5.12.3.0.msi" + DetailPrint "Installing Strawberry Perl..." Pop $R0 StrCmp $R0 "success" +3 MessageBox MB_OK "Download failed: $R0" @@ -120,16 +123,17 @@ MessageBox MB_YESNO "Install Strawberry Perl?" /SD IDYES IDNO endStrawberryPerl File "QtXml4.dll" File "libgcc_s_dw2-1.dll" File "mingwm10.dll" - File "interface.xml" File "7za.exe" SetOutPath "$INSTDIR\imageformats" - File "imageformats\qico4.dll" File "imageformats\qsvg4.dll" SetOutPath "$INSTDIR\presets" - File "presets\normal.preset" - File "presets\optimal.preset" - File "presets\soft.preset" - File "presets\vacuum-defs.preset" + File "presets\Normal.preset" + File "presets\Optimal.preset" + File "presets\Soft.preset" + SetOutPath "$INSTDIR\translations" + File "translations\svgcleaner_cs_CS.qm" + File "translations\svgcleaner_ru_RU.qm" + File "translations\svgcleaner_uk_UA.qm" SetOutPath "C:\strawberry\perl\site\lib\XML" File "XML-Twig\site\lib\XML\Twig.pm" SetOutPath "C:\strawberry\perl\site\lib\XML\Twig" @@ -220,11 +224,10 @@ RmDir /r "$INSTDIR" RmDir "$INSTDIR" MessageBox MB_YESNO "Delete Strawberry Perl?" /SD IDYES IDNO endStrawberryPerl RmDir /r "C:\strawberry" -endStrawberryPerl: - ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "C:\strawberry\c\bin" ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "C:\strawberry\perl\site\bin" ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "C:\strawberry\perl\bin" +endStrawberryPerl: !ifdef REG_START_MENU !insertmacro MUI_STARTMENU_GETFOLDER "Application" $SM_Folder diff --git a/translations/svgcleaner_cs_CS.ts b/translations/svgcleaner_cs_CS.ts index 3d023e24..7aab2235 100644 --- a/translations/svgcleaner_cs_CS.ts +++ b/translations/svgcleaner_cs_CS.ts @@ -36,12 +36,12 @@ p, li { white-space: pre-wrap; } <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">Předem se omlouváme za jakékoli chyby. Hlášení chyb posílejte, prosím, svgcleanerteam@gmail.com.</span></p></body></html> - + Donate Dary - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } @@ -97,7 +97,7 @@ p, li { white-space: pre-wrap; } <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Andrey Bayrak &lt;andrey.bayrak@gmail.com&gt;</p></body></html> - + License Povolení diff --git a/translations/svgcleaner_ru_RU.ts b/translations/svgcleaner_ru_RU.ts index 4e23ff0e..b86cd88a 100644 --- a/translations/svgcleaner_ru_RU.ts +++ b/translations/svgcleaner_ru_RU.ts @@ -37,17 +37,17 @@ p, li { white-space: pre-wrap; } Авторы - + License Лицензия - + Donate Поддержите проект - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } diff --git a/translations/svgcleaner_uk_UA.ts b/translations/svgcleaner_uk_UA.ts index 1817dafd..659bb4dc 100644 --- a/translations/svgcleaner_uk_UA.ts +++ b/translations/svgcleaner_uk_UA.ts @@ -37,17 +37,17 @@ p, li { white-space: pre-wrap; } Автори - + License Ліцензія - + Donate Підтримайте проект - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } diff --git a/translations/svgcleaner_zh_TW.ts b/translations/svgcleaner_zh_TW.ts deleted file mode 100644 index a16c8d53..00000000 --- a/translations/svgcleaner_zh_TW.ts +++ /dev/null @@ -1,871 +0,0 @@ - - - -UTF-8 - - AboutDialog - - - Information - - - - - About - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Verdana'; font-size:10pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">Generally, SVG files produced by vector editors contain a lot of unused elements and attributes that just blow up their size, but not add quality.<br /><br />SVG Cleaner could help you to clean up your SVG files from unnecessary data. It works in batch mode and basically does two things:<br />- removing elements and attributes that don't contribute to the final rendering; <br />- making those elements and attributes that are actually used more compact.<br />The app has a lot of options for cleanup and optimization and provides multithreaded file processing on the multicore processors.<br />Usually, images cleaned by SVG Cleaner may be as small as 10-60% of the original sizes.</span></p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">Important! Internal image viewer in SVG Cleaner uses QtSvg for rendering SVG images. Since Qt supports only the static features of SVG 1.2 Tiny that imposes a number of restrictions on rendering of advanced features. For instance, elements such as clipPath, mask, filters etc. will not be rendered at all.</span></p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">We apologize in advance for any bugs. Please send bug reports to </span><a href="svgcleanerteam@gmail.com"><span style=" text-decoration: underline; color:#0057ae;">svgcleanerteam@gmail.com</span></a></p></body></html> - - - - - Authors - - - - - License - - - - - Donate - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Verdana'; font-size:10pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you like SVG Cleaner and it helps you in your work consider donating any amount of money to show the authors your appreciation. Moreover your donation lets us work on future versions of this program and stay it free.<br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">WebMoney wallets:<br />Z199089038015</p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">E300018186079<br />R622529560927<br />U135420653690<br /></p></body></html> - - - - - CleanerThread - - - You have to install XML::Twig module. - - - - - It's a not well-formed SVG file! - - - - - This file doesn't need cleaning! - - - - - LineEdit - - - %1 files - - - - - MainWindow - - - ToolBar - - - - - Statistics - - - - - Files - - - - - Total count: - - - - - Cleaned: - - - - - Crashed: - - - - - Size before: - - - - - Size after: - - - - - New file sizes - - - - - - Maximum: - - - - - - Minimum: - - - - - - Total: - - - - - Processing time - - - - - Average: - - - - - - - - 000ms - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Verdana'; font-size:10pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Open the wizard <span style=" color:#808080;">Ctrl+W</span></p></body></html> - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Verdana'; font-size:10pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Start processing <span style=" color:#808080;">Ctrl+R</span></p></body></html> - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Verdana'; font-size:10pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Pause processing <span style=" color:#808080;">Ctrl+R</span></p></body></html> - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Verdana'; font-size:10pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Stop cleaning <span style=" color:#808080;">Ctrl+S</span></p></body></html> - - - - - Information - - - - - Compare view - - - - - Sort by name - - - - - Sort by size - - - - - Sort by compression - - - - - Sort by attributes - - - - - Sort by elements - - - - - Sort by time - - - - - Error - - - - - -Processing will stop now. - - - - - Compare view: on - - - - - Compare view: off - - - - - SomeUtils - - - B - - - - - KiB - - - - - MiB - - - - - %1h %2m %3s %4ms - - - - - ThumbWidget - - - <html><head/><body><p><span style=" font-weight:600;">Name:</span></p></body></html> - - - - - Sizes: - - - - - Attributes: - - - - - Elements: - - - - - Processing time: - - - - - WizardDialog - - - Wizard - SVG Cleaner - - - - - Compressing - - - - - Compress level: - - - - - fastest - - - - - fast - - - - - normal - - - - - maximum - - - - - ultra - - - - - Compress all processed files - - - - - Compress processed .svgz files only - - - - - Multithreading - - - - - The number of threads: - - - - - Open files from the input folder and: - - - - - - filename - - - - - - For example: - - - - - Set prefix and/or suffix: - - - - - save cleaned files into the output folder - - - - - save cleaned files into the current folder - - - - - overwrite original files - - - - - Open an input folder - - - - - Input folder: - - - - - Open an output folder - - - - - Output folder: - - - - - Search for SVG files in subfolders - - - - - Recursive folder scanning - - - - - <html><head/><body><p><span style=" font-weight:600; color:#ff0000;">Warning! The original files will be destroyed!</span></p></body></html> - - - - - Select a preset: - - - - - Enter preset name: - - - - - Save - - - - - Remove - - - - - Preset description: - - - - - Remove prolog - - - - - Remove comments - - - - - Remove unused definitions - - - - - Remove non-SVG elements - - - - - Remove metadata elements - - - - - Remove elements from namespaces by the following graphics editors: - - - - - - Inkscape - - - - - - Sodipodi - - - - - - Adobe Illustrator - - - - - - Corel Draw - - - - - - Microsoft Visio - - - - - Remove invisible elements - - - - - Remove empty container elements - - - - - Collapse groups when possible - - - - - Remove duplicated definitions - - - - - Remove gradients that are only referenced by one other gradient - - - - - Remove Gaussian blur filters - - - - - if their standard deviation is less than: - - - - - Remove the SVG language version - - - - - Remove unused namespaces - - - - - Remove unreferenced IDs - - - - - Always keep IDs that contain only letters - - - - - Remove non-SVG attributes - - - - - Remove attributes that are not applicable to elements - - - - - Remove attributes with default SVG values - - - - - Remove attributes from namespaces by the following graphics editors: - - - - - Remove all stroke properties when there's no stroking - - - - - Remove all fill properties when there's no filling - - - - - Remove all unused properties from children of clipPath elements - - - - - Remove gradient coordinates when possible - - - - - Keep existing paths data - - - - - - Remove unnecessary whitespace between commands and coordinates - - - - - Convert absolute paths into relative ones - - - - - Remove empty line and curve segments - - - - - Convert lines into horizontal/vertical equivalents when possible - - - - - Convert straight curves into lines when possible - - - - - Convert cubic curve segments into shorthand equivalents when possible - - - - - Convert quadratic curve segments into shorthand equivalents when possible - - - - - Convert width/height into a viewBox when possible - - - - - Convert style properties into SVG attributes - - - - - Convert units to pixels - - - - - Convert colors to #RRGGBB format - - - - - Convert colors to #RGB format when possible - - - - - Convert basic shapes into paths - - - - - Remove unnecessary whitespace from lists of points - - - - - Convert some transformations into the matrix - - - - - Recalculate coordinates and remove transform attributes when possible - - - - - Sort elements by name inside the defs section - - - - - Round numbers to a given precision - - - - - inside transform attributes: - - - - - inside coordinate attributes: - - - - - inside other attributes: - - - - - The empty tag display style: - - - - - The quote character for attributes: - - - - - The pretty print style: - - - - - The indentation for the pretty print style: - - - - - prefix - - - - - suffix - - - - - Main - - - - - Presets - - - - - Elements - - - - - Attributes - - - - - Paths - - - - - Optimization - - - - - Output - - - - - Select an input folder - - - - - Select an output folder - - - - - An input folder is not selected. - - - - - An output folder is not selected. - - - - - You have to set a prefix or a suffix for this save method. - - - - - An input folder is not exist. - - - - - An input folder did not contain any svg, svgz files. - - - - - You have to install 7-Zip to use SVG Cleaner. - - - - - You have to install Perl to use SVG Cleaner. - - - - - Selected output folder is not writable. - - - - - - Warning - - - - - You have to set preset name. - - - - - This preset already exists. -Overwrite? - - - - diff --git a/translations/translations.pri b/translations/translations.pri index 5d324654..50299f06 100644 --- a/translations/translations.pri +++ b/translations/translations.pri @@ -1,7 +1,6 @@ TRANSLATIONS += translations/svgcleaner_cs_CS.ts \ translations/svgcleaner_ru_RU.ts \ - translations/svgcleaner_uk_UA.ts \ - translations/svgcleaner_zh_TW.ts + translations/svgcleaner_uk_UA.ts CODECFORTR = UTF-8