ready for translations - see TRANSLATE
This commit is contained in:
parent
c1c10e3a7b
commit
8893ae370d
|
@ -6,6 +6,7 @@
|
|||
[devmon 1.1.2] udevil clean on remove device #6
|
||||
sshfs supplies current user if none specified
|
||||
cifs no user specified try guest mount then current user
|
||||
ready for translations - see TRANSLATE
|
||||
0.3.0 2012-07-13:
|
||||
cifs,ftpfs dont quote username, double quote password #3
|
||||
default udevil.conf: allow option flush
|
||||
|
|
3
README
3
README
|
@ -316,7 +316,8 @@ UNINSTALL
|
|||
|
||||
TRANSLATIONS
|
||||
|
||||
udevil is not yet ready for translators - please check back soon.
|
||||
Adding or updating a translation of udevil doesn't require any special
|
||||
tools, just a text editor. For instructions, see the TRANSLATE file.
|
||||
|
||||
|
||||
LICENSE
|
||||
|
|
79
TRANSLATE
Normal file
79
TRANSLATE
Normal file
|
@ -0,0 +1,79 @@
|
|||
TRANSLATIONS
|
||||
|
||||
Translating udevil doesn't require any special tools - just a text editor.
|
||||
To create a translation of udevil for your language, follow these steps.
|
||||
|
||||
1) Install build dependencies listed in README, download the udevil
|
||||
source code tarball, and extract it.
|
||||
|
||||
2) Open a terminal and enter the source code subdirectory 'po'
|
||||
|
||||
3) Generate a udevil.pot file:
|
||||
|
||||
intltool-update --pot
|
||||
|
||||
4) Create a .po file for your language. This example uses French (fr) -
|
||||
change 'fr' in the examples below to your language code:
|
||||
|
||||
cp udevil.pot fr.po # create a new po file
|
||||
|
||||
5) Open fr.po in your text editor. Complete the comments at the top - for
|
||||
example, change "FIRST AUTHOR <EMAIL@ADDRESS>, YEAR." to your name, email
|
||||
address, and the current year. Be sure to set charset=UTF-8 in the
|
||||
Content-Type line.
|
||||
|
||||
6) Translate each msgid into the corresponding msgstr. (The program poedit
|
||||
has also been suggested as a convenient way to edit po files.)
|
||||
|
||||
7) Open po/LINGUAS in your text editor and add a line for your language code.
|
||||
|
||||
8) cd into the directory containing configure and run make normally:
|
||||
|
||||
cd ..
|
||||
./configure
|
||||
make
|
||||
|
||||
If necessary, correct any syntax errors or warnings produced by make
|
||||
relating to your .po file and run make again.
|
||||
|
||||
9) Test your translation by installing and running udevil:
|
||||
|
||||
sudo make install
|
||||
udevil --help
|
||||
|
||||
To start udevil with a particular locale:
|
||||
|
||||
LANG=fr_FR.utf8 udevil --help
|
||||
|
||||
10) Once translations are the way you want them, release your translated .po
|
||||
file:
|
||||
|
||||
If you are familiar with github, you can clone the udevil repo and do a
|
||||
pull request. https://help.github.com/articles/using-pull-requests/
|
||||
|
||||
OR, add the .po file to a public gist https://gist.github.com/ or host
|
||||
it elsewhere, then open a new issue asking for your file to be merged into
|
||||
the source: https://github.com/IgnorantGuru/udevil/issues/new
|
||||
|
||||
OR, email your .po file: http://igurublog.wordpress.com/contact-ignorantguru/
|
||||
|
||||
11) Translated strings will change occassionally as new udevil versions are
|
||||
released. To update your translation:
|
||||
|
||||
Generate a udevil.pot file:
|
||||
|
||||
intltool-update --pot
|
||||
|
||||
Then merge the new strings with the already translated ones:
|
||||
|
||||
intltool-update --dist fr
|
||||
|
||||
OR, if you don’t want to overwrite fr.po initially, you can merge into a
|
||||
new test file:
|
||||
|
||||
intltool-update --dist --output-file=fr-test.po fr
|
||||
|
||||
Then complete any missing or fuzzy translations in the .po file, and repeat
|
||||
steps 8 through 11.
|
||||
|
||||
|
3
configure
vendored
3
configure
vendored
|
@ -12459,6 +12459,9 @@ cat >>confdefs.h <<_ACEOF
|
|||
_ACEOF
|
||||
|
||||
|
||||
#ALL_LINGUAS="af ar da ca cs de es et eu fa fi fr gl he hr hu id it ja ko lt ml ms nb nl nn pl ps pt pt_BR ru sk sl sv tr uk ur ur_PK vi zh_CN zh_TW"
|
||||
ALL_LINGUAS=""
|
||||
|
||||
for ac_header in locale.h
|
||||
do :
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
|
||||
|
|
|
@ -115,6 +115,10 @@ AC_DEFINE(_LARGEFILE_SOURCE, 1, [Whether to enable large file support])
|
|||
GETTEXT_PACKAGE="udevil"
|
||||
AC_SUBST(GETTEXT_PACKAGE)
|
||||
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
|
||||
|
||||
dnl Add the languages which your application supports here.
|
||||
#ALL_LINGUAS="af ar da ca cs de es et eu fa fi fr gl he hr hu id it ja ko lt ml ms nb nl nn pl ps pt pt_BR ru sk sl sv tr uk ur ur_PK vi zh_CN zh_TW"
|
||||
ALL_LINGUAS=""
|
||||
AM_GLIB_GNU_GETTEXT
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
2012-07-21 IgnorantGuru <ignorantguru@gmx.com>
|
||||
|
||||
* udevil.pot: Tested. To generate udevil.pot use: intltool-update --pot
|
||||
* POTFILES.in: Updated.
|
||||
|
|
@ -1 +1 @@
|
|||
en
|
||||
# keep this file sorted alphabetically, one language code per line
|
||||
|
|
28
po/en.po
28
po/en.po
|
@ -1,28 +0,0 @@
|
|||
# English translation of udevil
|
||||
# Copyright (C) 2012
|
||||
# This file is distributed under the same license as the udevil package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-05-18 12:51-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"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../src/udevil.c:5195
|
||||
#, c-format
|
||||
msgid "udevil version %s\n"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/udevil.c:5196
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Mounts and unmounts devices without password, shows device info, monitors\n"
|
||||
msgstr ""
|
|
@ -1,3 +1,5 @@
|
|||
INCLUDES = -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
|
||||
|
||||
noinst_PROGRAMS = udevil
|
||||
|
||||
udevil_SOURCES = udevil.c device-info.c canonicalize.c
|
||||
|
|
|
@ -276,6 +276,7 @@ target_alias = @target_alias@
|
|||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
INCLUDES = -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
|
||||
udevil_SOURCES = udevil.c device-info.c canonicalize.c
|
||||
bin_SCRIPTS = devmon
|
||||
INSTALL_DIR = $(DESTDIR)/$(prefix)/bin
|
||||
|
|
|
@ -1308,7 +1308,7 @@ gboolean device_get_info( device_t *device, GList* devmounts )
|
|||
}
|
||||
|
||||
char* device_show_info( device_t *device )
|
||||
{
|
||||
{ // no translate
|
||||
gchar* line[140];
|
||||
int i = 0;
|
||||
|
||||
|
|
497
src/udevil.c
497
src/udevil.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user