Skip to content

Commit

Permalink
Messages and translations
Browse files Browse the repository at this point in the history
  • Loading branch information
madmurphy committed Oct 9, 2020
1 parent 1f8f86d commit 4daee8d
Show file tree
Hide file tree
Showing 10 changed files with 137 additions and 28 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ Change Log
==========


## 0.1.1

Changes:

* Messages and translations


## 0.1.0

**Nautilus Launch** has been published.
14 changes: 5 additions & 9 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# Process this file with automake to produce Makefile.in


ACLOCAL_AMFLAGS = -I m4

SUBDIRS = \
src


dist_doc_DATA = \
AUTHORS \
COPYING \
ChangeLog \
NEWS \
README


INTLTOOL_FILES = \
intltool-extract.in \
intltool-merge.in \
intltool-update.in


EXTRA_DIST = \
ChangeLog.md \
INSTALL \
Expand All @@ -27,7 +27,6 @@ EXTRA_DIST = \
package.json \
$(INTLTOOL_FILES)


DISTCLEANFILES = \
intltool-extract \
intltool-merge \
Expand All @@ -40,21 +39,18 @@ if NLS_ENABLED
SUBDIRS += \
po

else
else !NLS_ENABLED

EXTRA_DIST += \
po


endif
endif !NLS_ENABLED


# Remove doc directory on uninstall
uninstall-local:
-rm -r '$(DESTDIR)$(docdir)'


ACLOCAL_AMFLAGS = -I m4

# EOF

6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ language is missing and you wish to get involved, here is what to do.
Let's say you want to create a Dutch translation of **Nautilus Launch**. This
package comes with only eight strings to translate:

1. “Error accessing file's path”
1. “Error retrieving file's path”
2. “Launcher has become invalid”
3. “Error accessing current working directory”
4. “Error accessing launcher's path”
3. “Error retrieving current working directory”
4. “Error retrieving launcher's path”
5. “Launch all”
6. “Launch all the selected applications”
7. “Launch”
Expand Down
8 changes: 6 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ dnl ***************************************************************************

AC_PREREQ([2.69])

AC_INIT([nautilus-launch], [0.1], [madmurphy333@gmail.com], [nautilus-launch], [https://github.com/madmurphy/nautilus-launch])
AC_INIT([Nautilus Launch],
[0.1.1],
[madmurphy333@gmail.com],
[nautilus-launch],
[https://github.com/madmurphy/nautilus-launch])

AC_CONFIG_MACRO_DIR([m4])

Expand Down Expand Up @@ -45,7 +49,7 @@ IT_PROG_INTLTOOL([0.35.0])
AM_CONDITIONAL([NLS_ENABLED], [test "x${USE_NLS}" != xno])

AM_COND_IF([NLS_ENABLED],
[AC_SUBST([GETTEXT_PACKAGE], AC_PACKAGE_NAME)
[AC_SUBST([GETTEXT_PACKAGE], AC_PACKAGE_TARNAME)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["${GETTEXT_PACKAGE}"], [GETTEXT package name])
AM_GLIB_GNU_GETTEXT
AM_GLIB_DEFINE_LOCALEDIR([NAUTILUS_LAUNCH_LOCALEDIR])])
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Nautilus Launch",
"version": "0.1.0",
"version": "0.1.1",
"description": "A simple Nautilus extension that allows to run executables and launchers via right-click menu",
"homepage": "https://github.com/madmurphy/nautilus-launch",
"author": "madmurphy",
Expand Down
2 changes: 2 additions & 0 deletions po/LINGUAS
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# please keep this list sorted alphabetically
#

es
it
la
50 changes: 50 additions & 0 deletions po/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Spanish translations for PACKAGE package.
# Copyright (C) 2020 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FULL NAME <EMAIL@ADDRESS>, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-09 13:22+0100\n"
"PO-Revision-Date: 2020-10-09 13:22+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Spanish <es@tp.org.es>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: ../src/nautilus-launch.c:93
msgid "Error retrieving file's path"
msgstr "Error al recuperar la posición del archivo"

#: ../src/nautilus-launch.c:111
msgid "Launcher has become invalid"
msgstr "El lanzador ya no es válido"

#: ../src/nautilus-launch.c:150
msgid "Error retrieving current working directory"
msgstr "Error al recuperar el directorio de trabajo actual"

#: ../src/nautilus-launch.c:237
msgid "Error retrieving launcher's path"
msgstr "Error al recuperar la posición del lanzador"

#: ../src/nautilus-launch.c:294
msgid "Launch all"
msgstr "Lanzar todo"

#: ../src/nautilus-launch.c:295
msgid "Launch all the selected applications"
msgstr "Lanzar todas las aplicaciones seleccionadas"

#: ../src/nautilus-launch.c:301
msgid "Launch"
msgstr "Lanzar"

#: ../src/nautilus-launch.c:302
msgid "Launch the selected application"
msgstr "Lanzar la aplicación seleccionada"
16 changes: 8 additions & 8 deletions po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-08 09:52+0100\n"
"PO-Revision-Date: 2020-10-08 09:52+0100\n"
"POT-Creation-Date: 2020-10-09 13:22+0100\n"
"PO-Revision-Date: 2020-10-09 13:22+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Italian <tp@lists.linux.it>\n"
"Language: it\n"
Expand All @@ -18,20 +18,20 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: ../src/nautilus-launch.c:93
msgid "Error accessing file's path"
msgstr "Errore nell'accedere alla posizione del file"
msgid "Error retrieving file's path"
msgstr "Errore nel recuperare la posizione del file"

#: ../src/nautilus-launch.c:111
msgid "Launcher has become invalid"
msgstr "Il lanciatore non è più valido"

#: ../src/nautilus-launch.c:150
msgid "Error accessing current working directory"
msgstr "Errore nell'accedere alla directory di lavoro corrente"
msgid "Error retrieving current working directory"
msgstr "Errore nel recuperare la directory di lavoro corrente"

#: ../src/nautilus-launch.c:237
msgid "Error accessing launcher's path"
msgstr "Errore nell'accedere alla posizione del lanciatore"
msgid "Error retrieving launcher's path"
msgstr "Errore nel recuperare la posizione del lanciatore"

#: ../src/nautilus-launch.c:294
msgid "Launch all"
Expand Down
50 changes: 50 additions & 0 deletions po/la.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Latin translations for PACKAGE package.
# Copyright (C) 2020 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-09 13:22+0100\n"
"PO-Revision-Date: 2020-10-09 13:22+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Latin\n"
"Language: la\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=20; plural=(n != 1);\n"

#: ../src/nautilus-launch.c:93
msgid "Error retrieving file's path"
msgstr "Error per locum fasciculi recipiendum"

#: ../src/nautilus-launch.c:111
msgid "Launcher has become invalid"
msgstr "Pultrum illegitimum factus est"

#: ../src/nautilus-launch.c:150
msgid "Error retrieving current working directory"
msgstr "Error per plicum operis recipiendum"

#: ../src/nautilus-launch.c:237
msgid "Error retrieving launcher's path"
msgstr "Error per locum pultri recipiendum"

#: ../src/nautilus-launch.c:294
msgid "Launch all"
msgstr "Pellere omnia"

#: ../src/nautilus-launch.c:295
msgid "Launch all the selected applications"
msgstr "Pellere omnia selecta programmata"

#: ../src/nautilus-launch.c:301
msgid "Launch"
msgstr "Pellere"

#: ../src/nautilus-launch.c:302
msgid "Launch the selected application"
msgstr "Pellere selectum programma"
10 changes: 5 additions & 5 deletions src/nautilus-launch.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static GObjectClass * parent_class;

static void nautilus_launch_clicked (
NautilusMenuItem * const menu_item,
gpointer user_data
gpointer v_unused
) {

gchar * argv[] = { NULL, NULL };
Expand All @@ -90,7 +90,7 @@ static void nautilus_launch_clicked (

if (!argv[0]) {

fprintf(stderr, "Nautilus Launch: %s\n", _("Error accessing file's path"));
fprintf(stderr, "Nautilus Launch: %s\n", _("Error retrieving file's path"));
continue;

}
Expand Down Expand Up @@ -147,7 +147,7 @@ static void nautilus_launch_clicked (

if (!wdir) {

fprintf(stderr, "Nautilus Launch: %s\n", _("Error accessing current working directory"));
fprintf(stderr, "Nautilus Launch: %s\n", _("Error retrieving current working directory"));

}

Expand Down Expand Up @@ -234,7 +234,7 @@ static GList * nautilus_launch_get_file_items (

if (!fpath) {

fprintf(stderr, "Nautilus Launch: %s\n", _("Error accessing launcher's path"));
fprintf(stderr, "Nautilus Launch: %s\n", _("Error retrieving launcher's path"));
return NULL;

}
Expand Down Expand Up @@ -307,7 +307,7 @@ static GList * nautilus_launch_get_file_items (
menu_item,
"activate",
G_CALLBACK(nautilus_launch_clicked),
provider
NULL
);

g_object_set_data_full(
Expand Down

0 comments on commit 4daee8d

Please sign in to comment.