Add spanish translation
This commit is contained in:
@@ -17,6 +17,8 @@ PKGCONFIG += x11
|
||||
TARGET = flameshot
|
||||
TEMPLATE = app
|
||||
|
||||
TRANSLATIONS = translation/Internationalization_es.ts
|
||||
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any feature of Qt which as been marked as deprecated (the exact warnings
|
||||
# depend on your compiler). Please consult the documentation of the
|
||||
|
||||
@@ -60,7 +60,7 @@ void Button::initButton() {
|
||||
setMouseTracking(true);
|
||||
setMask(QRegion(QRect(-1,-1,BUTTON_SIZE+2, BUTTON_SIZE+2), QRegion::Ellipse));
|
||||
|
||||
setToolTip(typeTooltip[m_buttonType]);
|
||||
setToolTip(getTypeTooltip(m_buttonType));
|
||||
|
||||
emergeAnimation = new QPropertyAnimation(this, "size", this);
|
||||
emergeAnimation->setEasingCurve(QEasingCurve::InOutQuad);
|
||||
@@ -211,54 +211,54 @@ size_t Button::getButtonBaseSize() {
|
||||
// returns Button::Type::last when the corresponding button is not found.
|
||||
Button::Type Button::getTypeByName(const QString s) {
|
||||
Button::Type res = Type::last;
|
||||
for (auto it = typeName.begin(); it != typeName.end(); ++it )
|
||||
if (it->second == s)
|
||||
res = it->first;
|
||||
for (auto i: typeName.toStdMap())
|
||||
if (i.second == s)
|
||||
res = i.first;
|
||||
return res;
|
||||
}
|
||||
|
||||
QString Button::getTypeName(const Button::Type t) {
|
||||
return typeName[t];
|
||||
return tr(typeName[t]);
|
||||
}
|
||||
|
||||
QString Button::getTypeTooltip(const Button::Type t) {
|
||||
return typeTooltip[t];
|
||||
return tr(typeTooltip[t]);
|
||||
}
|
||||
|
||||
Button::typeData Button::typeTooltip = {
|
||||
{Button::Type::selectionIndicator, tr("Shows the dimensions of the selection (X Y)")},
|
||||
{Button::Type::mouseVisibility, tr("Sets the visibility of the mouse pointer")},
|
||||
{Button::Type::exit, tr("Leaves the capture screen")},
|
||||
{Button::Type::copy, tr("Copies the selecion into the clipboard")},
|
||||
{Button::Type::save, tr("Opens the save image window")},
|
||||
{Button::Type::pencil, tr("Sets the paint tool to a pencil")},
|
||||
{Button::Type::line, tr("Sets the paint tool to a line drawer")},
|
||||
{Button::Type::arrow, tr("Sets the paint tool to an arrow drawer")},
|
||||
{Button::Type::rectangle, tr("Sets the paint tool to a rectagle drawer")},
|
||||
{Button::Type::circle, tr("Sets the paint tool to a circle drawer")},
|
||||
{Button::Type::marker, tr("Sets the paint tool to a marker")},
|
||||
{Button::Type::text, tr("Sets the paint tool to a text creator")},
|
||||
{Button::Type::colorPicker, tr("Opens the color picker widget")},
|
||||
{Button::Type::undo, tr("Undo the last modification")},
|
||||
{Button::Type::imageUploader, tr("Upload the selection to Imgur")},
|
||||
{Button::Type::move, tr("Move the selection area")}
|
||||
};
|
||||
{Button::Type::selectionIndicator, QT_TR_NOOP("Shows the dimensions of the selection (X Y)")},
|
||||
{Button::Type::mouseVisibility, QT_TR_NOOP("Sets the visibility of the mouse pointer")},
|
||||
{Button::Type::exit, QT_TR_NOOP("Leaves the capture screen")},
|
||||
{Button::Type::copy, QT_TR_NOOP("Copies the selecion into the clipboard")},
|
||||
{Button::Type::save, QT_TR_NOOP("Opens the save image window")},
|
||||
{Button::Type::pencil, QT_TR_NOOP("Sets the paint tool to a pencil")},
|
||||
{Button::Type::line, QT_TR_NOOP("Sets the paint tool to a line drawer")},
|
||||
{Button::Type::arrow, QT_TR_NOOP("Sets the paint tool to an arrow drawer")},
|
||||
{Button::Type::rectangle, QT_TR_NOOP("Sets the paint tool to a rectagle drawer")},
|
||||
{Button::Type::circle, QT_TR_NOOP("Sets the paint tool to a circle drawer")},
|
||||
{Button::Type::marker, QT_TR_NOOP("Sets the paint tool to a marker")},
|
||||
{Button::Type::text, QT_TR_NOOP("Sets the paint tool to a text creator")},
|
||||
{Button::Type::colorPicker, QT_TR_NOOP("Opens the color picker widget")},
|
||||
{Button::Type::undo, QT_TR_NOOP("Undo the last modification")},
|
||||
{Button::Type::imageUploader, QT_TR_NOOP("Upload the selection to Imgur")},
|
||||
{Button::Type::move, QT_TR_NOOP("Move the selection area")}
|
||||
};
|
||||
|
||||
Button::typeData Button::typeName = {
|
||||
{Button::Type::selectionIndicator, "Selection Size Indicator"},
|
||||
{Button::Type::mouseVisibility, "Mouse Visibility"},
|
||||
{Button::Type::exit, "Exit"},
|
||||
{Button::Type::copy, "Copy"},
|
||||
{Button::Type::save, "Save"},
|
||||
{Button::Type::pencil, "Pencil"},
|
||||
{Button::Type::line, "Line"},
|
||||
{Button::Type::arrow, "Arrow"},
|
||||
{Button::Type::rectangle, "Rectangle"},
|
||||
{Button::Type::circle, "Circle"},
|
||||
{Button::Type::marker, "Marker"},
|
||||
{Button::Type::text, "Text"},
|
||||
{Button::Type::colorPicker, "Color Picker"},
|
||||
{Button::Type::undo, "Undo"},
|
||||
{Button::Type::imageUploader, "Image Uploader"},
|
||||
{Button::Type::move, "Move"}
|
||||
{Button::Type::selectionIndicator, QT_TR_NOOP("Selection Size Indicator")},
|
||||
{Button::Type::mouseVisibility, QT_TR_NOOP("Mouse Visibility")},
|
||||
{Button::Type::exit, QT_TR_NOOP("Exit")},
|
||||
{Button::Type::copy, QT_TR_NOOP("Copy")},
|
||||
{Button::Type::save, QT_TR_NOOP("Save")},
|
||||
{Button::Type::pencil, QT_TR_NOOP("Pencil")},
|
||||
{Button::Type::line, QT_TR_NOOP("Line")},
|
||||
{Button::Type::arrow, QT_TR_NOOP("Arrow")},
|
||||
{Button::Type::rectangle, QT_TR_NOOP("Rectangle")},
|
||||
{Button::Type::circle, QT_TR_NOOP("Circle")},
|
||||
{Button::Type::marker, QT_TR_NOOP("Marker")},
|
||||
{Button::Type::text, QT_TR_NOOP("Text")},
|
||||
{Button::Type::colorPicker, QT_TR_NOOP("Color Picker")},
|
||||
{Button::Type::undo, QT_TR_NOOP("Undo")},
|
||||
{Button::Type::imageUploader, QT_TR_NOOP("Image Uploader")},
|
||||
{Button::Type::move, QT_TR_NOOP("Move")}
|
||||
};
|
||||
|
||||
@@ -19,13 +19,14 @@
|
||||
#define BUTTON_H
|
||||
|
||||
#include <QPushButton>
|
||||
#include <map>
|
||||
#include <QMap>
|
||||
|
||||
class QWidget;
|
||||
class QPropertyAnimation;
|
||||
|
||||
class Button : public QPushButton {
|
||||
Q_OBJECT
|
||||
Q_ENUMS(Type)
|
||||
|
||||
public:
|
||||
enum class Type {
|
||||
@@ -77,12 +78,12 @@ signals:
|
||||
|
||||
private:
|
||||
Button(QWidget *parent = 0);
|
||||
Type m_buttonType;
|
||||
const Type m_buttonType;
|
||||
bool m_pressed;
|
||||
|
||||
QPropertyAnimation *emergeAnimation;
|
||||
|
||||
typedef std::map<Button::Type, const QString> typeData;
|
||||
typedef QMap<Button::Type, const char *> typeData;
|
||||
static typeData typeTooltip;
|
||||
static typeData typeName;
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@ InfoWindow::InfoWindow(QWidget *parent) : QWidget(parent) {
|
||||
setWindowTitle(tr("About"));
|
||||
|
||||
layout = new QVBoxLayout(this);
|
||||
layout->addWidget(new QLabel("<b>Shortcuts</b>", this));
|
||||
layout->addWidget(new QLabel(tr("<b>Shortcuts</b>"), this));
|
||||
initInfoTable();
|
||||
layout->addWidget(new QLabel("<b>License</b>", this));
|
||||
layout->addWidget(new QLabel(tr("<b>License</b>"), this));
|
||||
layout->addWidget(new QLabel("GPLv3+", this));
|
||||
|
||||
// inform about full screen capture when no selection
|
||||
|
||||
@@ -16,11 +16,18 @@
|
||||
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include "controller.h"
|
||||
#include <QApplication>
|
||||
#include "singleapplication.h"
|
||||
#include <QApplication>
|
||||
#include <QTranslator>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
QTranslator translator;
|
||||
translator.load(QLocale::system().language(),
|
||||
"Internationalization", "_");
|
||||
|
||||
SingleApplication app(argc, argv);
|
||||
app.installTranslator(&translator);
|
||||
|
||||
app.setApplicationName("flameshot");
|
||||
app.setOrganizationName("Dharkael");
|
||||
|
||||
|
||||
302
translation/Internationalization_es.ts
Normal file
302
translation/Internationalization_es.ts
Normal file
@@ -0,0 +1,302 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0" language="es_ES">
|
||||
<context>
|
||||
<name>Button</name>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="229"/>
|
||||
<source>Shows the dimensions of the selection (X Y)</source>
|
||||
<translation>Muestra la dimensión de ls selección (X Y)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="230"/>
|
||||
<source>Sets the visibility of the mouse pointer</source>
|
||||
<translation>Selecciona la visibilidad del puntero del ratón</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="231"/>
|
||||
<source>Leaves the capture screen</source>
|
||||
<translation>Cierra la pantalla de captura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="232"/>
|
||||
<source>Copies the selecion into the clipboard</source>
|
||||
<translation>Copia la selección al portapapeles</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="233"/>
|
||||
<source>Opens the save image window</source>
|
||||
<translation>Abre la ventana de guardar imagen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="234"/>
|
||||
<source>Sets the paint tool to a pencil</source>
|
||||
<translation>Establece el lápiz como herramienta de dibujo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="235"/>
|
||||
<source>Sets the paint tool to a line drawer</source>
|
||||
<translation>Establece la línea como herramienta de dibujo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="236"/>
|
||||
<source>Sets the paint tool to an arrow drawer</source>
|
||||
<translation>Establece la flecha como herramienta de dibujo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="237"/>
|
||||
<source>Sets the paint tool to a rectagle drawer</source>
|
||||
<translation>Establece el rectángulo como herramienta de dibujo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="238"/>
|
||||
<source>Sets the paint tool to a circle drawer</source>
|
||||
<translation>Establece el círculo como herramienta de dibujo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="239"/>
|
||||
<source>Sets the paint tool to a marker</source>
|
||||
<translation>Establece el marcador como herramienta de dibujo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="240"/>
|
||||
<source>Sets the paint tool to a text creator</source>
|
||||
<translation>Establece el texto como herramienta de dibujo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="241"/>
|
||||
<source>Opens the color picker widget</source>
|
||||
<translation>Abre el selector de color</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="242"/>
|
||||
<source>Undo the last modification</source>
|
||||
<translation>Deshace la última modificación</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="243"/>
|
||||
<source>Upload the selection to Imgur</source>
|
||||
<translation>Sube la selección a Imgur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="244"/>
|
||||
<source>Move the selection area</source>
|
||||
<translation>Mueve la selección</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="248"/>
|
||||
<source>Selection Size Indicator</source>
|
||||
<translation>Indicador de Tamaño de Selección</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="249"/>
|
||||
<source>Mouse Visibility</source>
|
||||
<translation>Visibilidad del Ratón</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="250"/>
|
||||
<source>Exit</source>
|
||||
<translation>Salir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="251"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copiar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="252"/>
|
||||
<source>Save</source>
|
||||
<translation>Guardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="253"/>
|
||||
<source>Pencil</source>
|
||||
<translation>Lápiz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="254"/>
|
||||
<source>Line</source>
|
||||
<translation>Línea</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="255"/>
|
||||
<source>Arrow</source>
|
||||
<translation>Flecha</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="256"/>
|
||||
<source>Rectangle</source>
|
||||
<translation>Rectángulo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="257"/>
|
||||
<source>Circle</source>
|
||||
<translation>Círculo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="258"/>
|
||||
<source>Marker</source>
|
||||
<translation>Marcador</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="259"/>
|
||||
<source>Text</source>
|
||||
<translation>Texto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="260"/>
|
||||
<source>Color Picker</source>
|
||||
<translation>Selector de Color</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="261"/>
|
||||
<source>Undo</source>
|
||||
<translation>Deshacer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="262"/>
|
||||
<source>Image Uploader</source>
|
||||
<translation>Subir Imagen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/button.cpp" line="263"/>
|
||||
<source>Move</source>
|
||||
<translation>Mover Selección</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>CaptureWidget</name>
|
||||
<message>
|
||||
<location filename="../src/capture/capturewidget.cpp" line="383"/>
|
||||
<source>Uploading image...</source>
|
||||
<translation>Subiendo imagen...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConfigWindow</name>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="32"/>
|
||||
<source>Configuration</source>
|
||||
<translation>Configuración</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="36"/>
|
||||
<source>UI color editor</source>
|
||||
<translation>Editor de color de interfaz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="41"/>
|
||||
<source>Button selection</source>
|
||||
<translation>Selección de botones</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Controller</name>
|
||||
<message>
|
||||
<location filename="../src/controller.cpp" line="56"/>
|
||||
<source>&Configuration</source>
|
||||
<translation>&Configuración</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/controller.cpp" line="59"/>
|
||||
<source>&Information</source>
|
||||
<translation>&Información</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/controller.cpp" line="62"/>
|
||||
<source>&Quit</source>
|
||||
<translation>&Salir</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>InfoWindow</name>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="32"/>
|
||||
<source>About</source>
|
||||
<translation>Información</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="35"/>
|
||||
<source><b>Shortcuts</b></source>
|
||||
<translation><b>Atajos</b></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="37"/>
|
||||
<source><b>License</b></source>
|
||||
<translation><b>Licencia</b></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="53"/>
|
||||
<source>Right Click</source>
|
||||
<translation>Click Derecho</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="57"/>
|
||||
<source>Move selection 1px</source>
|
||||
<translation>Mueve la selección 1px</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="58"/>
|
||||
<source>Resize selection 1px</source>
|
||||
<translation>Redimensiona la selección 1px</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="59"/>
|
||||
<source>Quit capture</source>
|
||||
<translation>Salir de la captura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="60"/>
|
||||
<source>Copy to clipboard</source>
|
||||
<translation>Copiar al portapapeles</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="61"/>
|
||||
<source>Save selection as a file</source>
|
||||
<translation>Guarda la selección como un archivo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="62"/>
|
||||
<source>Undo the last modification</source>
|
||||
<translation>Deshacer la última modificación</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="63"/>
|
||||
<source>Show color picker</source>
|
||||
<translation>Muestra el selector de color</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="79"/>
|
||||
<source>Key</source>
|
||||
<translation>Tecla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/infowindow.cpp" line="79"/>
|
||||
<source>Description</source>
|
||||
<translation>Descripción</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/capture/screenshot.cpp" line="73"/>
|
||||
<source>/screenshot</source>
|
||||
<translation>/captura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/screenshot.cpp" line="90"/>
|
||||
<source>Save As</source>
|
||||
<translation>Guardar Como</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/screenshot.cpp" line="119"/>
|
||||
<source>Save Error</source>
|
||||
<translation>Error al Guardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/capture/screenshot.cpp" line="120"/>
|
||||
<source>The image could not be saved to "%1".</source>
|
||||
<translation>la imagen no pudo ser guardada en "%1".</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
Reference in New Issue
Block a user