libvips/po/README

70 lines
1.7 KiB
Plaintext
Raw Normal View History

2007-08-29 18:23:50 +02:00
translators
-----------
see this page for a howto:
http://developer.gnome.org/doc/tutorials/gnome-i18n/translator.html
Things like
msgid "/File/_Save Image As ..."
are menu items. You only need to translate the last part (following the final
"/"). The underscore character marks the accelerator (the underlined character
in the menu item). So you could put:
msgstr "Sevy i_mago os ..."
and it would display as "Sevy imago os ...", with the "m" underlined.
tips
----
cd vips-8.x
2020-06-18 14:46:06 +02:00
find cplusplus/include libvips/include \
-name '*deprecated*' -prune -o \
-name '*.h' \
-printf '%h\0%d\0%p\n' | \
sort -t '\0' -n | \
awk -F '\0' '{print $3}' > po/POTFILES.in
find libvips tools cplusplus \
-path libvips/deprecated -prune -o \
2022-06-26 19:59:01 +02:00
-path libvips/foreign/libnsgif -prune -o \
2020-06-18 14:46:06 +02:00
-path cplusplus/examples -prune -o \
\( -name '*.c' -o -name '*.cpp' \) \
-printf '%h\0%d\0%p\n' | \
sort -t '\0' -n | \
awk -F '\0' '{print $3}' >> po/POTFILES.in
2010-06-09 22:54:19 +02:00
cd vips-8.x/po
2007-08-29 18:23:50 +02:00
intltool-update --pot
2017-02-22 14:31:27 +01:00
make a new vips8.x.pot translation template from the sources
2007-08-29 18:23:50 +02:00
add header
# test translation file
2019-08-06 16:33:40 +02:00
# Copyright (C) 2019
# This file is distributed under the same license as the libvips package.
# John Cupitt <jcupitt@gmail.com>, 2019.
2008-10-11 23:29:16 +02:00
#
2019-08-06 16:33:40 +02:00
#, fuzzy
2007-08-29 18:23:50 +02:00
msgid ""
msgstr ""
2019-08-06 16:33:40 +02:00
"Project-Id-Version: vips 8.9.0\n"
2008-10-11 23:29:16 +02:00
"Report-Msgid-Bugs-To: \n"
2019-08-06 16:33:40 +02:00
"POT-Creation-Date: 2019-08-06 15:19+0100\n"
"PO-Revision-Date: 2019-08-06 15:19+0100\n"
2008-10-11 23:29:16 +02:00
"Last-Translator: john <jcupitt@gmail.com>\n"
"Language-Team: \n"
2007-08-29 18:23:50 +02:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
2019-08-06 16:33:40 +02:00
"Plural-Forms: nplurals=2; plural=s;\n"
2007-08-29 18:23:50 +02:00
2017-02-22 14:31:27 +01:00
edits to make vips8.xx.pot into test.po
2007-08-29 18:23:50 +02:00
msgfmt -cv -o /dev/null test.po
check translation for errors