Commit c58fa43a authored by madmurphy's avatar madmurphy
Browse files

Commit #4

parent 0c02e191
madmurphy333 AT gmail DOT com
madmurphy333@gmail.com
......@@ -2,6 +2,14 @@ Change Log
==========
0.1.1
-----
Changes:
* Added German translation
0.1.0
-----
......
......@@ -20,7 +20,6 @@ EXTRA_DIST = \
README.md \
autogen.sh \
package.json \
m4/ChangeLog \
$(INTLTOOL_FILES)
DISTCLEANFILES = \
......
......@@ -2,6 +2,12 @@ NEWS
====
0.1.1
-----
* Added German translation
0.1.0
-----
......
......@@ -9,12 +9,12 @@ Get involved
The package needs help with internationalization. If a translation into your language is missing and you wish to get involved, here is what to do.
There are only two strings to translate:
Let's say you want to create a Dutch translation of **nautilus-bluetooth**. The package comes with only two strings to translate:
1. “Send via Bluetooth”
2. “Send the selected files to a Bluetooth device”
Let's say you want to create a Dutch translation of **nautilus-bluetooth**. First thing to do is to make sure that `gettext` is installed in your system. Then clone this repository and launch the following two commands:
First thing to do is to make sure that `gettext` is installed in your system. Then clone this repository and launch the following two commands:
```
cd nautilus-bluetooth/po
......@@ -23,4 +23,9 @@ msginit -l nl
Enter your email address and press enter. Now edit the `po/LINGUAS` file and add a new line containing the abbreviated name of the new language (`nl`).
Finally, open the file `po/nl.po`, translate the two strings above, et voila. All you have to do now is to commit your changes.
Finally, open the file `po/nl.po` and translate the two strings above. All you have to do now is to commit your changes.
For any issue, [drop me a message][1].
[1]: https://github.com/madmurphy/nautilus-bluetooth/issues
......@@ -73,8 +73,6 @@ dnl ***************************************************************************
IT_PROG_INTLTOOL([0.35.0])
AC_CHECK_FUNCS([setlocale])
AC_SUBST([GETTEXT_PACKAGE], ['nautilus-bluetooth'])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [GETTEXT package name])
......
{
"name": "nautilus-bluetooth",
"version": "0.1.0",
"version": "0.1.1",
"description": "A simple Nautilus extension that adds a \"Send via Bluetooth\" entry to Nautilus' right-click menu",
"homepage": "https://madmurphy.github.io/nautilus-bluetooth/",
"homepage": "https://github.com/madmurphy/nautilus-bluetooth",
"author": "madmurphy333@gmail.com",
"license": "GPL-3.0",
"main": "nautilus-bluetooth",
......
# please keep this list sorted alphabetically
#
de
es
fr
it
......
# German translations for PACKAGE package.
# German translations for nautilus-bluetooth package.
# Copyright (C) 2019 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# <jschmidt@posteo.de>, 2019.
# Jannis Schmidt <jschmidt@posteo.de>, 2019.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 15:50+0100\n"
"POT-Creation-Date: 2019-09-01 14:57+0100\n"
"PO-Revision-Date: 2019-09-01 00:19+0200\n"
"Last-Translator: <jschmidt@posteo.de>\n"
"Last-Translator: Jannis Schmidt <jschmidt@posteo.de>\n"
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ASCII\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/nautilus-bluetooth.c:160
#: ../src/nautilus-bluetooth.c:154
msgid "Send via Bluetooth"
msgstr "Via Bluetooth senden"
#: ../src/nautilus-bluetooth.c:161
#: ../src/nautilus-bluetooth.c:155
msgid "Send the selected files to a Bluetooth device"
msgstr "Versende die ausgewählten Dateien an ein Bluetooth-Gerät"
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 15:49+0100\n"
"POT-Creation-Date: 2019-09-01 14:57+0100\n"
"PO-Revision-Date: 2019-08-28 13:59+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Spanish <es@tp.org.es>\n"
......@@ -17,10 +17,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/nautilus-bluetooth.c:160
#: ../src/nautilus-bluetooth.c:154
msgid "Send via Bluetooth"
msgstr "Enviar por Bluetooth"
#: ../src/nautilus-bluetooth.c:161
#: ../src/nautilus-bluetooth.c:155
msgid "Send the selected files to a Bluetooth device"
msgstr "Enviar los archivos seleccionados a un dispositivo Bluetooth"
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 15:49+0100\n"
"POT-Creation-Date: 2019-09-01 14:57+0100\n"
"PO-Revision-Date: 2019-08-28 13:59+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: French <traduc@traduc.org>\n"
......@@ -17,10 +17,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: ../src/nautilus-bluetooth.c:160
#: ../src/nautilus-bluetooth.c:154
msgid "Send via Bluetooth"
msgstr "Envoyer via Bluetooth"
#: ../src/nautilus-bluetooth.c:161
#: ../src/nautilus-bluetooth.c:155
msgid "Send the selected files to a Bluetooth device"
msgstr "Envoyer les fichiers sélectionnés à un périphérique Bluetooth"
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 15:49+0100\n"
"POT-Creation-Date: 2019-09-01 14:57+0100\n"
"PO-Revision-Date: 2019-08-26 17:05+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Italian <tp@lists.linux.it>\n"
......@@ -17,10 +17,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/nautilus-bluetooth.c:160
#: ../src/nautilus-bluetooth.c:154
msgid "Send via Bluetooth"
msgstr "Invia tramite Bluetooth"
#: ../src/nautilus-bluetooth.c:161
#: ../src/nautilus-bluetooth.c:155
msgid "Send the selected files to a Bluetooth device"
msgstr "Invia i file selezionati a un dispositivo Bluetooth"
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 15:49+0100\n"
"POT-Creation-Date: 2019-09-01 14:57+0100\n"
"PO-Revision-Date: 2019-08-28 02:30+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Latin\n"
......@@ -16,10 +16,10 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../src/nautilus-bluetooth.c:160
#: ../src/nautilus-bluetooth.c:154
msgid "Send via Bluetooth"
msgstr "Mitte per Bluetooth"
#: ../src/nautilus-bluetooth.c:161
#: ../src/nautilus-bluetooth.c:155
msgid "Send the selected files to a Bluetooth device"
msgstr "Mitte electos codicillos ad Bluetooth apparatum"
......@@ -8,19 +8,19 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 15:50+0100\n"
"POT-Creation-Date: 2019-09-01 16:52+0100\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"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../src/nautilus-bluetooth.c:160
#: ../src/nautilus-bluetooth.c:154
msgid "Send via Bluetooth"
msgstr ""
#: ../src/nautilus-bluetooth.c:161
#: ../src/nautilus-bluetooth.c:155
msgid "Send the selected files to a Bluetooth device"
msgstr ""
......@@ -4,7 +4,7 @@
|*|
|*| nautilus-bluetooth.c
|*|
|*| https://madmurphy.github.io/nautilus-bluetooth/
|*| https://github.com/madmurphy/nautilus-bluetooth
|*| Copyright (C) 2019 Stefano Gioffr&eacute; <madmurphy333@gmail.com>
|*|
|*| nautilus-bluetooth is free software: you can redistribute it and/or modify it
......@@ -92,7 +92,7 @@ static void nautilus_bluetooth_sendto (
} else if (proc_id > 0) {
/* parent */
/* Parent */
for (idx = 1; idx < argv_last; g_free(argv[idx++]));
......@@ -100,7 +100,7 @@ static void nautilus_bluetooth_sendto (
} else {
/* child */
/* Child */
if (execv(*argv, argv) == -1) {
......@@ -108,7 +108,6 @@ static void nautilus_bluetooth_sendto (
}
/* should never get here */
_exit(1);
}
......@@ -140,12 +139,7 @@ static GList * nautilus_bluetooth_get_file_items (
for (iter = file_selection; iter; iter = iter->next) {
/*
The "Send via Bluetooth" menu entry will not be shown if a
directory is found among the selected files.
*/
/* Avoid directories */
if (nautilus_file_info_is_directory(NAUTILUS_FILE_INFO(iter->data))) {
......@@ -232,10 +226,7 @@ void nautilus_module_initialize (GTypeModule * module) {
#ifdef ENABLE_NLS
setlocale(LC_ALL, "");
bindtextdomain(GETTEXT_PACKAGE, NAUTILUS_BLUETOOTH_LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
// textdomain(GETTEXT_PACKAGE);
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment