[genius] Add some docs for translators
- From: George Lebl <jirka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [genius] Add some docs for translators
- Date: Sat, 29 Apr 2017 22:09:16 +0000 (UTC)
commit c98f48a4b2651f506e15c53e40d2d277ffc82b8f
Author: Jiri (George) Lebl <jiri lebl gmail com>
Date: Sat Apr 29 17:08:52 2017 -0500
Add some docs for translators
help/HOWTO-FOR-TRANSLATORS | 31 +++++++++++++++++++++++++++++++
help/update-xml-to-txt-html.sh | 2 +-
2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/help/HOWTO-FOR-TRANSLATORS b/help/HOWTO-FOR-TRANSLATORS
new file mode 100644
index 0000000..09ac3f1
--- /dev/null
+++ b/help/HOWTO-FOR-TRANSLATORS
@@ -0,0 +1,31 @@
+The setup is similar to the previous. You should run
+
+./update-po.sh LANG
+
+to update your langauge (where LANG is the language code). That updates the
+.po file for translations.
+
+The whole thing is translated into HTML which are stored in git, so that we
+don't depend on docbook stuff to build.
+
+./update-xml-to-txt-html.sh
+Does all the conversions and so on, and also runs ./make-makefile-am.sh.
+Really does not need to be run often, really only before distribution I'd say.
+No need to continually update the html files. This needs to be updated when a
+new language is added: the LANGS="" at the top of the file.
+
+./make-makefile-am.sh
+Since automake is dumb and can't handle having files that I can't predict in
+the distribution. This needs to be updated when a new language is added: the
+LANGS="" at the top of the file.
+
+To add a new language you just add the subdirectory, generate a .po file fro
+genius.xml with xml2po then add the directory language to the two scripts
+above. If you add figures, just add the figures subdirectory and the figures
+with same file names as the C ones in there. The script above will take care
+of adding them to the Makefile.am.
+
+The genius.txt is just autogenerated, and not really used much, it's really
+just a backup, don't worry about it.
+
+Let me know if you have any questions: jirka 5z com or jiri lebl gmail com
diff --git a/help/update-xml-to-txt-html.sh b/help/update-xml-to-txt-html.sh
index f9d7d90..5b81618 100755
--- a/help/update-xml-to-txt-html.sh
+++ b/help/update-xml-to-txt-html.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+LANGS="cs de el es fr pt_BR ru sv"
echo Running xmlto -o C/html/ html C/genius.xml
xmlto -o C/html/ html C/genius.xml || exit 1
@@ -8,7 +9,6 @@ docbook2txt C/genius.xml || exit 1
echo Running dos2unix genius.txt
dos2unix genius.txt || exit 1
-LANGS="cs de el es fr pt_BR ru sv"
for n in $LANGS ; do
echo Running xml2po -e -p $n/$n.po -o $n/genius.xml C/genius.xml
xml2po -e -p $n/$n.po -o $n/genius.xml C/genius.xml || exit 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]