Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Cleaning.
· 40ae5670
Canek Peláez Valdés
authored
Nov 27, 2021
40ae5670
Updated the translation.
· 117dc2cd
Canek Peláez Valdés
authored
Nov 27, 2021
117dc2cd
Hide whitespace changes
Inline
Side-by-side
lib/orientation.vala
View file @
117dc2cd
...
...
@@ -45,6 +45,10 @@ namespace GQPE {
*/
REVERSE_PORTRAIT
=
8
;
/**
* Returns a string representation of the orientation.
* @return a string representation of the orientation.
*/
public
string
to_string
()
{
switch
(
this
)
{
case
LANDSCAPE
:
return
"landscape"
;
...
...
lib/photograph.vala
View file @
117dc2cd
...
...
@@ -201,6 +201,10 @@ namespace GQPE {
return
this
.
datetime
.
compare
(
photograph
.
datetime
);
}
/**
* Copies the GPS data from the received photograph.
* @param photo the photograph.
*/
public
void
copy_gps_data
(
Photograph
photo
)
{
latitude
=
photo
.
latitude
;
longitude
=
photo
.
longitude
;
...
...
@@ -210,6 +214,12 @@ namespace GQPE {
has_geolocation
=
photo
.
has_geolocation
;
}
/**
* Copies the metadata from the received photograph.
* @param photo the photograph.
* @param no_gps whether to skip the GPS data.
* @param no_datetime whether to skip the datetime data.
*/
public
void
copy_metadata
(
Photograph
photo
,
bool
no_gps
=
false
,
bool
no_datetime
=
false
)
{
...
...
@@ -317,8 +327,8 @@ namespace GQPE {
private
void
get_metadata
()
throws
GLib
.
Error
{
title
=
(
metadata
.
has_tag
(
Tag
.
TITLE
.
tag
()))
?
metadata
.
try_get_tag_string
(
Tag
.
TITLE
.
tag
()).
strip
()
:
""
;
album
=
(
metadata
.
has_tag
(
Tag
.
SUBJECT
.
tag
()))
?
metadata
.
try_get_tag_string
(
Tag
.
SUBJECT
.
tag
()).
strip
()
:
""
;
album
=
(
metadata
.
has_tag
(
Tag
.
ALBUM
.
tag
()))
?
metadata
.
try_get_tag_string
(
Tag
.
ALBUM
.
tag
()).
strip
()
:
""
;
comment
=
(
metadata
.
has_tag
(
Tag
.
DESCRIPTION
.
tag
()))
?
metadata
.
try_get_tag_string
(
Tag
.
DESCRIPTION
.
tag
()).
strip
()
:
""
;
...
...
@@ -373,8 +383,8 @@ namespace GQPE {
private
void
set_metadata
()
throws
GLib
.
Error
{
metadata
.
clear_tag
(
Tag
.
TITLE
.
tag
());
metadata
.
try_set_tag_string
(
Tag
.
TITLE
.
tag
(),
title
);
metadata
.
clear_tag
(
Tag
.
SUBJECT
.
tag
());
metadata
.
try_set_tag_string
(
Tag
.
SUBJECT
.
tag
(),
album
);
metadata
.
clear_tag
(
Tag
.
ALBUM
.
tag
());
metadata
.
try_set_tag_string
(
Tag
.
ALBUM
.
tag
(),
album
);
metadata
.
clear_tag
(
Tag
.
DESCRIPTION
.
tag
());
metadata
.
try_set_tag_string
(
Tag
.
DESCRIPTION
.
tag
(),
comment
);
metadata
.
clear_tag
(
Tag
.
DATETIME
.
tag
());
...
...
lib/pretty-box.vala
View file @
117dc2cd
...
...
@@ -199,8 +199,8 @@ namespace GQPE {
r
+=
s
;
s
=
s
.
next_char
();
}
r
+=
"
...
"
;
for
(
int
i
=
0
;
i
<
word
.
char_count
()
-
width
-
3
;
i
++)
r
+=
"
…
"
;
for
(
int
i
=
0
;
i
<
word
.
char_count
()
-
width
-
1
;
i
++)
s
=
s
.
next_char
();
for
(
int
i
=
width
/
2
+
2
;
i
<
width
;
i
++)
{
r
+=
s
;
...
...
lib/tag.vala
View file @
117dc2cd
...
...
@@ -24,39 +24,39 @@ namespace GQPE {
public
enum
Tag
{
/**
*
Date and tim
e tag.
*
Titl
e tag.
*/
DATETIM
E
,
TITL
E
,
/**
*
The timezone offset
*
Album tag.
*/
TIMEZONE_OFFSET
,
ALBUM
,
/**
*
Orienta
tion tag.
*
Descrip
tion tag.
*/
ORIENTA
TION
,
DESCRIP
TION
,
/**
*
Thumbnail orientation
tag.
*
Date and time
tag.
*/
THUMB_ORIENTATION
,
DATETIME
,
/**
*
Subject tag.
*
The timezone offset
*/
SUBJEC
T
,
TIMEZONE_OFFSE
T
,
/**
*
Cap
tion tag.
*
Orienta
tion tag.
*/
TITLE
,
ORIENTATION
,
/**
*
Descrip
tion tag.
*
Thumbnail orienta
tion tag.
*/
DESCRIP
TION
,
THUMB_ORIENTA
TION
,
/**
* Latitude tag.
...
...
@@ -109,13 +109,13 @@ namespace GQPE {
*/
public
string
tag
()
{
switch
(
this
)
{
case
TITLE
:
return
"Iptc.Application2.Caption"
;
case
ALBUM
:
return
"Xmp.dc.subject"
;
case
DESCRIPTION
:
return
"Exif.Image.ImageDescription"
;
case
DATETIME
:
return
"Exif.Photo.DateTimeOriginal"
;
case
TIMEZONE_OFFSET
:
return
"Exif.Image.TimeZoneOffset"
;
case
ORIENTATION
:
return
"Exif.Image.Orientation"
;
case
THUMB_ORIENTATION
:
return
"Exif.Thumbnail.Orientation"
;
case
SUBJECT
:
return
"Xmp.dc.subject"
;
case
TITLE
:
return
"Iptc.Application2.Caption"
;
case
DESCRIPTION
:
return
"Exif.Image.ImageDescription"
;
case
LATITUDE
:
return
"Exif.GPSInfo.GPSLatitude"
;
case
LONGITUDE
:
return
"Exif.GPSInfo.GPSLongitude"
;
case
LATITUDE_REF
:
return
"Exif.GPSInfo.GPSLatitudeRef"
;
...
...
lib/util.vala
View file @
117dc2cd
...
...
@@ -128,12 +128,23 @@ namespace GQPE {
return
""
;
}
/**
* Returns a normalized basename; ASCII, no spaces, no uppercase
* letters, no symbols.
* @param basename the basename.
* @return a normalized basename.
*/
public
static
string
normalize_basename
(
string
basename
)
{
var
n
=
Util
.
normalize
(
Util
.
get_name
(
basename
));
var
e
=
Util
.
normalize
(
Util
.
get_extension
(
basename
));
return
"%s.%s"
.
printf
(
n
,
e
);
}
/**
* Returns a path without extension.
* @param path the path.
* @return a path without extension.
*/
public
static
string
get_name
(
string
path
)
{
int
i
=
path
.
last_index_of
(
"."
);
if
(
i
==
0
||
i
==
-
1
)
...
...
@@ -141,6 +152,11 @@ namespace GQPE {
return
path
[:
i
];
}
/**
* Returns a path extension.
* @param path the path.
* @return a path extension.
*/
public
static
string
get_extension
(
string
path
)
{
int
i
=
path
.
last_index_of
(
"."
);
if
(
i
==
0
||
i
==
-
1
)
...
...
@@ -148,6 +164,11 @@ namespace GQPE {
return
path
[
i
+
1
:];
}
/**
* Returns the message with its first letter capitalized.
* @param message the message.
* @return the message with its first letter capitalized.
*/
public
static
string
capitalize
(
string
message
)
{
int
i
=
message
.
index_of_nth_char
(
1
);
return
message
.
up
(
1
)
+
message
.
substring
(
i
);
...
...
@@ -188,7 +209,10 @@ namespace GQPE {
longitude
=
(
longitude1
+
longitude2
)
/
2.0
;
}
/* Prints an error message and exits.*/
/**
* Prints an error message and exits.
* @param format the format.
*/
[
PrintfFormat
]
public
static
void
error
(
string
format
,
...)
{
var
full_format
=
format
+
"\n"
;
...
...
po/es.po
View file @
117dc2cd
...
...
@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gqpe 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-2
6 03:08
-0600\n"
"PO-Revision-Date: 2021-11-2
6 03:1
1-0600\n"
"POT-Creation-Date: 2021-11-2
7 17:47
-0600\n"
"PO-Revision-Date: 2021-11-2
7 17:5
1-0600\n"
"Last-Translator: Canek Peláez Valdés <canek@ciencias.unam.mx>\n"
"Language-Team: es\n"
"Language: es\n"
...
...
@@ -49,6 +49,14 @@ msgstr "Ir a geolocalización"
msgid "Save picture"
msgstr "Guardar imagen"
#: data/application-window.ui:379
msgid "Open Google Maps on this location"
msgstr "Abrir Mapas de Google en esta localización"
#: data/application-window.ui:380
msgid "Google Maps"
msgstr "Mapas de Google"
#: data/gqpe.desktop.in:3
msgid "GQPE"
msgstr "GQPE"
...
...
@@ -65,80 +73,80 @@ msgstr "Editor rápido para etiquetas de fotografía"
msgid "A Gtk+ based quick photo editor"
msgstr "Un rápido editor de fotos basado en Gtk+"
#: src/store.vala:5
2
#: src/store.vala:5
1
msgid "INPUTDIR OUTPUTDIR - Store images to a normalized location."
msgstr "ENTRADA SALIDA - Almacena imágenes a una dirección normalizada."
#: src/store.vala:5
8
#: src/store.vala:5
7
msgid "Use location look up"
msgstr "Usar búsqueda de ubicación"
#: src/store.vala:
60
#: src/store.vala:
59
msgid "Update the metadata of the photograph"
msgstr "Acutalizar los metadatos de la fotografía"
#: src/store.vala:6
2
src/tags.vala:11
7
#: src/store.vala:6
1
src/tags.vala:11
6
msgid "Be quiet"
msgstr "No producir salida"
#: src/store.vala:8
6
#: src/store.vala:8
5
#, c-format
msgid "Invalid city record: %s"
msgstr "Registro de ciudad inválido: %s"
#: src/store.vala:10
1
#: src/store.vala:10
0
#, c-format
msgid "An error ocurred while parsing %s"
msgstr "Ocurrió un error al analizar %s"
#: src/store.vala:10
4
#: src/store.vala:10
3
msgid "Cities database not found"
msgstr "Base de datos de ciudades no encontrada"
#. Translators: Month name and day
#: src/store.vala:1
30
#: src/store.vala:1
29
#, c-format
msgid "%s %d"
msgstr "%s %d"
#: src/store.vala:13
3
#: src/store.vala:13
2
#, c-format
msgid "%s, near %s"
msgstr "%s, cerca de %s"
#: src/store.vala:16
2
#: src/store.vala:16
1
#, c-format
msgid "There was an error processing %s: %s. "
msgstr "Hubo un error al procesar %s: %s."
#: src/store.vala:16
4
#: src/store.vala:16
3
msgid "Skipping.\n"
msgstr "Omitiendo.\n"
#: src/store.vala:23
9
src/tags.vala:30
8
#: src/store.vala:23
8
src/tags.vala:30
7
#, c-format
msgid "Run ‘%s --help’ for a list of options
.\n
"
msgstr "Ejecute ‘%s --help’ para una lista de opciones
.\n
"
msgid "Run ‘%s --help’ for a list of options"
msgstr "Ejecute ‘%s --help’ para una lista de opciones"
#: src/store.vala:24
6
msgid "Exactly one output and one input directory needed
.\n
"
msgstr "Se necesitan exactamente un directorio entrada y de salida
.\n
"
#: src/store.vala:24
3
msgid "Exactly one output and one input directory needed"
msgstr "Se necesitan exactamente un directorio entrada y de salida"
#: src/store.vala:25
8
#: src/store.vala:25
2
#, c-format
msgid "%s is not a directory\n"
msgstr "%s no es un directorio\n"
#: src/store.vala:2
6
5
#: src/store.vala:25
7
#, c-format
msgid "There was an error while storing: %s\n"
msgstr "Ocurrió un error al almacenar: %s\n"
#: src/tags.vala:6
6
#: src/tags.vala:6
5
msgid "[FILENAME…] - Edit and show the image tags."
msgstr "[ARCHIVO
...
] - Edita y muestra las etiquetas de imagen."
msgstr "[ARCHIVO
…
] - Edita y muestra las etiquetas de imagen."
#: src/tags.vala:7
1
#: src/tags.vala:7
0
msgid ""
"With no flags the tags are printed. An empty string as parameter\n"
"removes an individual tag.\n"
...
...
@@ -174,170 +182,170 @@ msgstr ""
" %Y: La latitud\n"
" %X: La longitud\n"
#: src/tags.vala:9
4
#: src/tags.vala:9
3
msgid "Set the title"
msgstr "Define el título"
#: src/tags.vala:9
6
#: src/tags.vala:9
5
msgid "Set the comment"
msgstr "Define el comentario"
#: src/tags.vala:9
8
#: src/tags.vala:9
7
msgid "Set the album"
msgstr "Define el álbum"
#: src/tags.vala:
100
#: src/tags.vala:
99
msgid "Set the date and time"
msgstr "Define la fecha y hora"
#: src/tags.vala:10
2
#: src/tags.vala:10
1
msgid "Set the timezone offset"
msgstr "Define el desplazamiento de la zona de tiempo"
#: src/tags.vala:10
4
#: src/tags.vala:10
3
msgid "Set the orientation"
msgstr "Define la orientación"
#: src/tags.vala:10
6
#: src/tags.vala:10
5
msgid "Set the latitude"
msgstr "Define la latitud"
#: src/tags.vala:10
8
#: src/tags.vala:10
7
msgid "Set the longitude"
msgstr "Define la longitud"
#: src/tags.vala:1
1
0
#: src/tags.vala:10
9
msgid "Shift the time in this amount of hours"
msgstr "Desplaza el tiempo por esta cantidad de horas"
#: src/tags.vala:11
2
#: src/tags.vala:11
1
msgid "Resets the file timestamp to the photograph one"
msgstr "Reajusta la estampa de tiempo del archivo al de la fotografía"
#: src/tags.vala:11
5
#: src/tags.vala:11
4
msgid "Prints the tags with format"
msgstr "Imprime las etiquetas con formato"
#: src/tags.vala:12
7
#: src/tags.vala:12
6
#, c-format
msgid "No such file: ‘%s’\n"
msgstr "No hay tal archivo: ‘%s’\n"
#: src/tags.vala:13
4
#: src/tags.vala:13
3
#, c-format
msgid "Error loading: ‘%s’\n"
msgstr "Error cargando: ‘%s’\n"
#: src/tags.vala:14
6
#: src/tags.vala:14
5
msgid "Title"
msgstr "Título"
#: src/tags.vala:14
8
#: src/tags.vala:14
7
msgid "Album"
msgstr "Álbum"
#: src/tags.vala:1
50
#: src/tags.vala:1
49
msgid "Comment"
msgstr "Comentario"
#: src/tags.vala:15
7
#: src/tags.vala:15
6
msgid "Date and time"
msgstr "Fecha y hora"
#: src/tags.vala:15
9
#: src/tags.vala:15
8
msgid "Orientation"
msgstr "Orientación"
#: src/tags.vala:16
2
#: src/tags.vala:16
1
msgid "Latitude"
msgstr "Latitud"
#: src/tags.vala:16
4
#: src/tags.vala:16
3
msgid "Longitude"
msgstr "Longitud"
#: src/tags.vala:16
6
#: src/tags.vala:16
5
msgid "GPS tag"
msgstr "Etiqueta GPS"
#: src/tags.vala:16
7
#: src/tags.vala:16
6
msgid "GPS version"
msgstr "Versión GPS"
#: src/tags.vala:16
8
#: src/tags.vala:16
7
msgid "GPS datum"
msgstr "Dato GPS"
#: src/tags.vala:22
2
#: src/tags.vala:22
1
#, c-format
msgid "Resetting time for %s
...
\n"
msgstr "Reajustando tiempo para %s
...
\n"
msgid "Resetting time for %s
…
\n"
msgstr "Reajustando tiempo para %s
…
\n"
#: src/tags.vala:2
30
#: src/tags.vala:2
29
#, c-format
msgid "Shifting time for %s
...
\n"
msgid "Shifting time for %s
…
\n"
msgstr "Desplazando tiempo para %s...\n"
#: src/tags.vala:26
2
#: src/tags.vala:26
1
#, c-format
msgid "Updating %s
...
\n"
msgstr "Actualizando %s
...
\n"
msgid "Updating %s
…
\n"
msgstr "Actualizando %s
…
\n"
#: src/tags.vala:26
6
#: src/tags.vala:26
5
#, c-format
msgid "%s updated.\n"
msgstr "% actualizado.\n"
#: src/tags.vala:28
1
#: src/tags.vala:28
0
#, c-format
msgid "There was an error saving %s: %s\n"
msgstr "Hubo un error guardando %s: %s\n"
#: src/tags.vala:31
4
msgid "Missing files
.\n
"
msgstr "Archivos faltantes
.\n
"
#: src/tags.vala:31
1
msgid "Missing files"
msgstr "Archivos faltantes"
#: src/tags.vala:31
9
msgid "You cannot shift time and edit
at the same time\n
"
msgstr "No puede desplazar tiempo y editar
al mismo tiempo\n
"
#: src/tags.vala:31
4
msgid "You cannot shift time and edit
tags
"
msgstr "No puede desplazar tiempo y editar"
#: src/tags.vala:3
25
msgid "You cannot reset time and edit
at the same time\n
"
msgstr "No puede desplazar tiempo y editar
al mismo tiempo\n
"
#: src/tags.vala:3
17
msgid "You cannot reset time and edit
tags
"
msgstr "No puede desplazar tiempo y editar"
#: src/tags.vala:3
31
msgid "You cannot shift and reset time
at the same time\n
"
msgstr "No puede desplazar tiempo y
editar al mismo
tiempo
\n
"
#: src/tags.vala:3
20
msgid "You cannot shift and reset time"
msgstr "No puede desplazar tiempo y
reajustar
tiempo"
#: src/tags.vala:3
39
#: src/tags.vala:3
25
#, c-format
msgid "Invalid orientation: %s
\n
"
msgstr "Orientación inválida: %s
\n
"
msgid "Invalid orientation: %s"
msgstr "Orientación inválida: %s"
#: src/tags.vala:35
1
#: src/tags.vala:3
3
5
#, c-format
msgid "Invalid date and time: %s
\n
"
msgstr "Fecha y tiempo inválidos: %s
\n
"
msgid "Invalid date and time: %s"
msgstr "Fecha y tiempo inválidos: %s"
#: src/tags.vala:3
58
#: src/tags.vala:3
39
#, c-format
msgid "Invalid timezone offset: %s
\n
"
msgstr "Desplazamiento de zona de tiempo inválida: %s
\n
"
msgid "Invalid timezone offset: %s"
msgstr "Desplazamiento de zona de tiempo inválida: %s"
#: src/tags.vala:3
6
4
#: src/tags.vala:34
3
#, c-format
msgid "Invalid latitude: %s
\n
"
msgstr "Latitud inválida: %s
\n
"
msgid "Invalid latitude: %s"
msgstr "Latitud inválida: %s"
#: src/tags.vala:3
69
#: src/tags.vala:3
47
#, c-format
msgid "Invalid longitude: %s
\n
"
msgstr "Longitud inválida: %s
\n
"
msgid "Invalid longitude: %s"
msgstr "Longitud inválida: %s"
#: src/tags.vala:3
7
5
msgid "Latitude will only be set on photos with GPS data
\n
"
msgstr "La latitud sólo se definirá para fotografías con información GPS
\n
"
#: src/tags.vala:35
1
msgid "Latitude will only be set on photos with GPS data"
msgstr "La latitud sólo se definirá para fotografías con información GPS"
#: src/tags.vala:3
80
msgid "Longitude will only be set on photos with GPS data
\n
"
msgstr "La longitud sólo se definirá para fotografías con información GPS
\n
"
#: src/tags.vala:3
54
msgid "Longitude will only be set on photos with GPS data"
msgstr "La longitud sólo se definirá para fotografías con información GPS"
po/gqpe.pot
View file @
117dc2cd
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: gqpe\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-2
6 03:08
-0600\n"
"POT-Creation-Date: 2021-11-2
7 17:47
-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
...
@@ -49,6 +49,14 @@ msgstr ""
msgid "Save picture"
msgstr ""
#: data/application-window.ui:379
msgid "Open Google Maps on this location"
msgstr ""
#: data/application-window.ui:380
msgid "Google Maps"
msgstr ""
#: data/gqpe.desktop.in:3
msgid "GQPE"
msgstr ""
...
...
@@ -65,80 +73,80 @@ msgstr ""
msgid "A Gtk+ based quick photo editor"
msgstr ""
#: src/store.vala:5
2
#: src/store.vala:5
1
msgid "INPUTDIR OUTPUTDIR - Store images to a normalized location."
msgstr ""
#: src/store.vala:5
8
#: src/store.vala:5
7
msgid "Use location look up"
msgstr ""
#: src/store.vala:
60
#: src/store.vala:
59
msgid "Update the metadata of the photograph"
msgstr ""
#: src/store.vala:6
2
src/tags.vala:11
7
#: src/store.vala:6
1
src/tags.vala:11
6
msgid "Be quiet"
msgstr ""
#: src/store.vala:8
6
#: src/store.vala:8
5
#, c-format
msgid "Invalid city record: %s"
msgstr ""
#: src/store.vala:10
1
#: src/store.vala:10
0
#, c-format
msgid "An error ocurred while parsing %s"
msgstr ""
#: src/store.vala:10
4
#: src/store.vala:10
3
msgid "Cities database not found"
msgstr ""
#. Translators: Month name and day
#: src/store.vala:1
30
#: src/store.vala:1
29
#, c-format
msgid "%s %d"
msgstr ""
#: src/store.vala:13
3
#: src/store.vala:13
2
#, c-format
msgid "%s, near %s"
msgstr ""
#: src/store.vala:16
2
#: src/store.vala:16
1
#, c-format
msgid "There was an error processing %s: %s. "
msgstr ""
#: src/store.vala:16
4
#: src/store.vala:16
3
msgid "Skipping.\n"
msgstr ""
#: src/store.vala:23
9
src/tags.vala:30
8
#: src/store.vala:23
8
src/tags.vala:30
7
#, c-format
msgid "Run ‘%s --help’ for a list of options
.\n
"
msgid "Run ‘%s --help’ for a list of options"
msgstr ""
#: src/store.vala:24
6
msgid "Exactly one output and one input directory needed
.\n
"
#: src/store.vala:24
3
msgid "Exactly one output and one input directory needed"
msgstr ""
#: src/store.vala:25
8
#: src/store.vala:25
2
#, c-format
msgid "%s is not a directory\n"
msgstr ""
#: src/store.vala:2
6
5
#: src/store.vala:25
7
#, c-format
msgid "There was an error while storing: %s\n"
msgstr ""
#: src/tags.vala:6
6
#: src/tags.vala:6
5
msgid "[FILENAME…] - Edit and show the image tags."
msgstr ""
#: src/tags.vala:7
1
#: src/tags.vala:7
0
msgid ""
"With no flags the tags are printed. An empty string as parameter\n"
"removes an individual tag.\n"
...
...
@@ -158,170 +166,170 @@ msgid ""
" %X: The longitude\n"
msgstr ""
#: src/tags.vala:9
4
#: src/tags.vala:9
3
msgid "Set the title"
msgstr ""
#: src/tags.vala:9
6
#: src/tags.vala:9
5
msgid "Set the comment"
msgstr ""
#: src/tags.vala:9
8
#: src/tags.vala:9
7
msgid "Set the album"
msgstr ""
#: src/tags.vala:
100
#: src/tags.vala:
99
msgid "Set the date and time"
msgstr ""
#: src/tags.vala:10
2
#: src/tags.vala:10
1
msgid "Set the timezone offset"
msgstr ""
#: src/tags.vala:10
4
#: src/tags.vala:10
3
msgid "Set the orientation"
msgstr ""
#: src/tags.vala:10
6
#: src/tags.vala:10
5
msgid "Set the latitude"
msgstr ""
#: src/tags.vala:10
8
#: src/tags.vala:10
7
msgid "Set the longitude"
msgstr ""
#: src/tags.vala:1
1
0
#: src/tags.vala:10
9
msgid "Shift the time in this amount of hours"
msgstr ""
#: src/tags.vala:11
2
#: src/tags.vala:11
1
msgid "Resets the file timestamp to the photograph one"
msgstr ""
#: src/tags.vala:11
5
#: src/tags.vala:11
4
msgid "Prints the tags with format"
msgstr ""
#: src/tags.vala:12
7
#: src/tags.vala:12
6
#, c-format
msgid "No such file: ‘%s’\n"
msgstr ""
#: src/tags.vala:13
4
#: src/tags.vala:13
3
#, c-format
msgid "Error loading: ‘%s’\n"
msgstr ""
#: src/tags.vala:14
6
#: src/tags.vala:14
5
msgid "Title"
msgstr ""
#: src/tags.vala:14
8
#: src/tags.vala:14
7
msgid "Album"
msgstr ""
#: src/tags.vala:1
50
#: src/tags.vala:1
49
msgid "Comment"
msgstr ""
#: src/tags.vala:15
7
#: src/tags.vala:15
6
msgid "Date and time"
msgstr ""
#: src/tags.vala:15
9
#: src/tags.vala:15
8
msgid "Orientation"
msgstr ""
#: src/tags.vala:16
2
#: src/tags.vala:16
1
msgid "Latitude"
msgstr ""
#: src/tags.vala:16
4
#: src/tags.vala:16
3
msgid "Longitude"
msgstr ""
#: src/tags.vala:16
6
#: src/tags.vala:16
5
msgid "GPS tag"
msgstr ""
#: src/tags.vala:16
7
#: src/tags.vala:16
6
msgid "GPS version"
msgstr ""
#: src/tags.vala:16
8
#: src/tags.vala:16
7
msgid "GPS datum"
msgstr ""
#: src/tags.vala:22
2
#: src/tags.vala:22
1
#, c-format
msgid "Resetting time for %s
...
\n"
msgid "Resetting time for %s
…
\n"
msgstr ""
#: src/tags.vala:2
30
#: src/tags.vala:2
29
#, c-format
msgid "Shifting time for %s
...
\n"
msgid "Shifting time for %s
…
\n"
msgstr ""
#: src/tags.vala:26
2
#: src/tags.vala:26
1
#, c-format
msgid "Updating %s
...
\n"
msgid "Updating %s
…
\n"
msgstr ""
#: src/tags.vala:26
6
#: src/tags.vala:26
5
#, c-format
msgid "%s updated.\n"
msgstr ""
#: src/tags.vala:28
1
#: src/tags.vala:28
0
#, c-format
msgid "There was an error saving %s: %s\n"
msgstr ""
#: src/tags.vala:31
4
msgid "Missing files
.\n
"
#: src/tags.vala:31
1
msgid "Missing files"
msgstr ""
#: src/tags.vala:31
9
msgid "You cannot shift time and edit
at the same time\n
"
#: src/tags.vala:31
4
msgid "You cannot shift time and edit
tags
"
msgstr ""
#: src/tags.vala:3
25
msgid "You cannot reset time and edit
at the same time\n
"
#: src/tags.vala:3
17
msgid "You cannot reset time and edit
tags
"
msgstr ""
#: src/tags.vala:3
31
msgid "You cannot shift and reset time
at the same time\n
"
#: src/tags.vala:3
20
msgid "You cannot shift and reset time"
msgstr ""
#: src/tags.vala:3
39
#: src/tags.vala:3
25
#, c-format
msgid "Invalid orientation: %s
\n
"
msgid "Invalid orientation: %s"
msgstr ""
#: src/tags.vala:35
1
#: src/tags.vala:3
3
5
#, c-format
msgid "Invalid date and time: %s
\n
"
msgid "Invalid date and time: %s"
msgstr ""
#: src/tags.vala:3
58
#: src/tags.vala:3
39
#, c-format
msgid "Invalid timezone offset: %s
\n
"
msgid "Invalid timezone offset: %s"
msgstr ""
#: src/tags.vala:3
6
4
#: src/tags.vala:34
3
#, c-format
msgid "Invalid latitude: %s
\n
"
msgid "Invalid latitude: %s"
msgstr ""
#: src/tags.vala:3
69
#: src/tags.vala:3
47
#, c-format
msgid "Invalid longitude: %s
\n
"
msgid "Invalid longitude: %s"
msgstr ""
#: src/tags.vala:3
7
5
msgid "Latitude will only be set on photos with GPS data
\n
"
#: src/tags.vala:35
1
msgid "Latitude will only be set on photos with GPS data"
msgstr ""
#: src/tags.vala:3
80
msgid "Longitude will only be set on photos with GPS data
\n
"
#: src/tags.vala:3
54
msgid "Longitude will only be set on photos with GPS data"
msgstr ""
src/application-window.vala
View file @
117dc2cd
...
...
@@ -374,10 +374,11 @@ namespace GQPE {
GLib
.
Idle
.
add
(
lazy_load
);
}
/* Loads the photographs lazily. */
private
bool
lazy_load
()
{
if
(
pmap
.
is_empty
)
{
progress_bar
.
visible
=
false
;
return
false
;
return
GLib
.
Source
.
REMOVE
;
}
var
path
=
pmap
.
ascending_keys
.
first
();
var
photo
=
pmap
[
path
];
...
...
@@ -391,7 +392,7 @@ namespace GQPE {
pmap
.
unset
(
photo
.
path
);
double
t
=
photographs
.
size
-
pmap
.
size
;
progress_bar
.
fraction
=
t
/
photographs
.
size
;
return
true
;
return
GLib
.
Source
.
CONTINUE
;
}
/* Initializes the iterators. */
...
...
src/copy.vala
View file @
117dc2cd
...
...
@@ -51,6 +51,7 @@ namespace GQPE {
return
options
;
}
/* Copies the tags. */
private
static
void
copy_tags
()
throws
GLib
.
Error
{
var
i
=
new
Photograph
(
GLib
.
File
.
new_for_commandline_arg
(
input
));
var
o
=
new
Photograph
(
GLib
.
File
.
new_for_commandline_arg
(
output
));
...
...
src/interpolate-gps.vala
View file @
117dc2cd
...
...
@@ -51,7 +51,7 @@ namespace GQPE {
/*Loads the photos from the input directory. */
private
static
void
load_photos
()
throws
GLib
.
Error
{
stdout
.
printf
(
_
(
"Loading photos
...
\n"
));
stdout
.
printf
(
_
(
"Loading photos
…
\n"
));
int
c
=
0
;
var
root
=
GLib
.
File
.
new_for_path
(
input
);
Gee
.
ArrayQueue
<
File
>
queue
=
new
Gee
.
ArrayQueue
<
File
>();
...
...
@@ -73,7 +73,7 @@ namespace GQPE {
try
{
var
photo
=
new
Photograph
(
file
);
photos
.
add
(
photo
);
stderr
.
printf
(
_
(
"Loaded %d photos
...
\r\b"
),
c
++);
stderr
.
printf
(
_
(
"Loaded %d photos
…
\r\b"
),
c
++);
}
catch
(
GLib
.
Error
e
)
{
var
m
=
_
(
"There was an error processing %s: %s. "
);
stderr
.
printf
(
m
,
path
,
e
.
message
);
...
...
@@ -85,7 +85,7 @@ namespace GQPE {
photographs
=
new
Photograph
[
photos
.
size
];
foreach
(
var
photo
in
photos
)
photographs
[
i
++]
=
photo
;
stdout
.
printf
(
_
(
"Loaded %d photos
...
\n"
),
c
++);
stdout
.
printf
(
_
(
"Loaded %d photos
…
\n"
),
c
++);
}
/* Recursively interpolates the coordinates for a range. */
...
...
@@ -127,7 +127,7 @@ namespace GQPE {
int
c
=
0
;
for
(
int
x
=
i
+
1
;
x
<
j
;
x
++)
{
int
y
=
(
int
)(((
double
)(
x
-
i
))
/
n
)
+
1
;
stderr
.
printf
(
_
(
"Updating %s
...
\n"
),
stderr
.
printf
(
_
(
"Updating %s
…
\n"
),
photographs
[
x
].
path
);
c
++;
photographs
[
x
].
set_coordinates
(
lats
[
y
],
lons
[
y
]);
...
...
@@ -196,14 +196,14 @@ namespace GQPE {
var
file
=
GLib
.
File
.
new_for_path
(
args
[
i
]);
try
{
photographs
[
i
-
1
]
=
new
Photograph
(
file
);
stderr
.
printf
(
_
(
"Loaded %d photos
...
\r\b"
),
c
++);
stderr
.
printf
(
_
(
"Loaded %d photos
…
\r\b"
),
c
++);
}
catch
(
GLib
.
Error
e
)
{
var
m
=
_
(
"There was an error processing %s: %s. "
);
stderr
.
printf
(
m
,
args
[
i
],
e
.
message
);
stderr
.
printf
(
_
(
"Skipping.\n"
));
}
}
stderr
.
printf
(
_
(
"Loaded %d photos
...
\n"
),
c
);
stderr
.
printf
(
_
(
"Loaded %d photos
…
\n"
),
c
);
int
n
=
photographs
.
length
;
if
(!
photographs
[
0
].
has_geolocation
||
!
photographs
[
n
-
1
].
has_geolocation
)
...
...
src/tags.vala
View file @
117dc2cd
...
...
@@ -218,7 +218,7 @@ Format for printing:
var
dt
=
Util
.
get_file_datetime
(
photo
.
path
);
if
(
dt
.
compare
(
photo
.
datetime
)
==
0
)
continue
;
stderr
.
printf
(
_
(
"Resetting time for %s
...
\n"
),
photo
.
path
);
stderr
.
printf
(
_
(
"Resetting time for %s
…
\n"
),
photo
.
path
);
Util
.
set_file_datetime
(
photo
.
path
,
photo
.
datetime
);
}
}
...
...
@@ -226,7 +226,7 @@ Format for printing:
/* Shifts time. */
private
static
void
do_shift_time
()
{
foreach
(
var
photo
in
photos
)
{
stderr
.
printf
(
_
(
"Shifting time for %s
...
\n"
),
photo
.
path
);
stderr
.
printf
(
_
(
"Shifting time for %s
…
\n"
),
photo
.
path
);
photo
.
datetime
=
photo
.
datetime
.
add_hours
(
shift_time
);
save
(
photo
);
}
...
...
@@ -258,7 +258,7 @@ Format for printing:
photo
.
set_coordinates
(
latitude
,
longitude
);
}
if
(!
quiet
)
stderr
.
printf
(
_
(
"Updating %s
...
\n"
),
stderr
.
printf
(
_
(
"Updating %s
…
\n"
),
GLib
.
Filename
.
display_basename
(
photo
.
path
));
save
(
photo
);
if
(!
quiet
)
...
...