diff --git a/src/capture/capturewidget.cpp b/src/capture/capturewidget.cpp index 00794d26..e1bddc13 100644 --- a/src/capture/capturewidget.cpp +++ b/src/capture/capturewidget.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include // CaptureWidget is the main component used to capture the screen. It contains an @@ -437,7 +438,18 @@ void CaptureWidget::openURL(QNetworkReply *reply) { QString data = QString::fromUtf8(reply->readAll()); QString imageID = data.split("\"").at(5); QString url = QString("http://i.imgur.com/%1.png").arg(imageID); - QDesktopServices::openUrl(url); + bool successful = QDesktopServices::openUrl(url); + if (!successful) { + QMessageBox openErrBox(QMessageBox::Warning, QObject::tr("Resource Error"), + QObject::tr("Unable to open the URL.")); + openErrBox.setWindowIcon(QIcon(":img/flameshot.png")); + openErrBox.exec(); + } + } else { + QMessageBox netErrBox(QMessageBox::Warning, "Network Error", + reply->errorString()); + netErrBox.setWindowIcon(QIcon(":img/flameshot.png")); + netErrBox.exec(); } close(); } diff --git a/translation/Internationalization_es.qm b/translation/Internationalization_es.qm index 538269ad..671ec607 100644 Binary files a/translation/Internationalization_es.qm and b/translation/Internationalization_es.qm differ diff --git a/translation/Internationalization_es.ts b/translation/Internationalization_es.ts index b4945216..a2448e93 100644 --- a/translation/Internationalization_es.ts +++ b/translation/Internationalization_es.ts @@ -4,172 +4,172 @@ Button - + Shows the dimensions of the selection (X Y) Muestra la dimensión de la selección (X Y) - + Sets the visibility of the mouse pointer Selecciona la visibilidad del puntero del ratón - + Leaves the capture screen Cierra la pantalla de captura - + Copies the selecion into the clipboard Copia la selección al portapapeles - + Opens the save image window Abre la ventana de guardar imagen - + Opens the color picker widget Abre el selector de color - + Undo the last modification Deshace la última modificación - + Sets the Pencil as the paint tool Establece el Lápiz como herramienta de dibujo - + Sets the Line as the paint tool Establece la Línea como herramienta de dibujo - + Sets the Arrow as the paint tool Establece la Flecha como herramienta de dibujo - + Sets the Rectangle as the paint tool Establece el Rectángulo como herramienta de dibujo - + Sets the Circle as the paint tool Establece el Círculo como herramienta de dibujo - + Sets the Marker as the paint tool Establece el Marcador como herramienta de dibujo - + Sets the Text as the paint tool Establece el Texto como herramienta de dibujo - + Uploads the selection to Imgur Sube la selección a Imgur - + Sets the Selection as the paint tool Establece la Selección como herramienta de dibujo - + Move the selection area Mueve la selección - + Selection Size Indicator Indicador de Tamaño de Selección - + Mouse Visibility Visibilidad del Ratón - + Exit Salir - + Copy Copiar - + Save Guardar - + Pencil Lápiz - + Line Línea - + Arrow Flecha - + Rectangle Rectángulo - + Circle Círculo - + Marker Marcador - + Text Texto - + Color Picker Selector de Color - + Undo Deshacer - + Image Uploader Subir Imagen - + Rectangular Selection Selección Rectangular - + Move Mover Selección @@ -177,7 +177,7 @@ CaptureWidget - + Select an area with the mouse, or press Esc to exit. Press Enter to capture the screen. Press Right Click to show the color picker. @@ -186,13 +186,13 @@ Presiona Enter para capturar la pantalla. Presiona click derecho para mostrar el selector de color. - - + + Capture saved in Captura guardada en - + Uploading image... Subiendo imagen... @@ -223,17 +223,17 @@ Presiona click derecho para mostrar el selector de color. Controller - + &Configuration &Configuración - + &Information &Información - + &Quit &Salir @@ -241,8 +241,8 @@ Presiona click derecho para mostrar el selector de color. FlameshotDBusAdapter - - + + Capture saved in Captura guardada en @@ -392,21 +392,31 @@ Presiona click derecho para mostrar el selector de color. Invalid path. Rura inválida. + + + Resource Error + Error de Recurso + + + + Unable to open the URL. + No puede abrir la URL. + UIcolorEditor - + Change the color moving the selectors and see the changes in the preview buttons. Cambia el color moviendo los selectores y observa los cambios en los botones de previsualización. - + Select a Button to modify it Selecciona un Botón para modificarlo - + Main Color Color Principal @@ -416,12 +426,12 @@ Presiona click derecho para mostrar el selector de color. Clica en este botón para aplicar el modo edición para el color primario. - + Contrast Color Color de Contraste - + Click on this button to set the edition mode of the contrast color. Clica en este botón para aplicar el modo edición para el color de contraste.