Commit c68943f1 authored by WolfgangSchweer's avatar WolfgangSchweer

Simplify and improve translation framework.

Remove Makefile, rely on po4a which can do things easier, adjust po4a.cfg
accordingly.
Adjust READMEs, add file containing language links.
parent e314ffc2
WEBPAGES = \
index.de.html \
all: $(WEBPAGES)
$(WEBPAGES): %.po
%.po: index.en.html
po4a po4a.cfg
stats:
@echo "edu webpage translations"
@for f in *.po; do printf " $$f: " ; msgfmt --statistics -o /dev/null $$f; done
pot:
@po4a-gettextize -M UTF-8 -f xhtml -m index.html > index.pot
@cp index.html index.en.html
clean:
To apply changes edit the index.html master file.
Then run 'make pot' to re-generate index.en.html, POT and PO files.
Run 'make all' to re-generate index.$lang.html
Run 'make stats' to see the translation status for all $lang
To adjust the website content edit the index.html master file.
Please note: the link index.en.html is needed for the language choice to work.
Make sure the po4a package is installed.
Run 'po4a po4a.cfg' to re-build the POT file as well as all PO and
index.$lang.html files.
As translator:
- Copy index.pot to your language (eg. cp index.pot da.po for Danish)
- Trranslate like usual and send the PO file to debian-edu@lists.debian.org
- Copy index.pot to your language (eg. 'cp index.pot da.po' for Danish).
- Translate like usual and send the PO file to the Debian Edu mailing list
(debian-edu@lists.debian.org).
As blends-team member:
- Add new translation to the Makefile (like 'de' has already been done)
- Run 'make pot' to re-generate the index.pot file
- Run 'make all' to generate all index.$lang.html files
- Run 'make stats' to get the translation status for each $lang
- Copy $lang.po to the www/edu/ folder.
- Adjust the language choice (located in the footer div of 'index.html'); the
needed stanza can be copied from the language_links file.
- Run 'po4a po4a.cfg' to (re)build the POT file as well as all PO and
index.$lang.html files.
- Unfuzzy all $lang.po files (footer) and run 'po4a po4a.cfg' again.
<a href="index.ar.html" title="Arabic" hreflang="ar" lang="ar" rel="alternate">&#1593;&#1585;&#1576;&#1610;&#1577;&nbsp;(Arabiya)</a>
<a href="index.bg.html" title="Bulgarian" hreflang="bg" lang="bg" rel="alternate">&#1041;&#1098;&#1083;&#1075;&#1072;&#1088;&#1089;&#1082;&#1080;&nbsp;(B&#601;lgarski)</a>
<a href="index.ca.html" title="Catalan" hreflang="ca" lang="ca" rel="alternate">catal&agrave;</a>
<a href="index.cs.html" title="Czech" hreflang="cs" lang="cs" rel="alternate">&#269;esky</a>
<a href="index.da.html" title="Danish" hreflang="da" lang="da" rel="alternate">dansk</a>
<a href="index.de.html" title="German" hreflang="de" lang="de" rel="alternate">Deutsch</a>
<a href="index.el.html" title="Greek" hreflang="el" lang="el" rel="alternate">&#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940;&nbsp;(Ellinika)</a>
<a href="index.es.html" title="Spanish" hreflang="es" lang="es" rel="alternate">espa&ntilde;ol</a>
<a href="index.eo.html" title="Esperanto" hreflang="eo" lang="eo" rel="alternate">Esperanto</a>
<a href="index.fa.html" title="Persian" hreflang="fa" lang="fa" rel="alternate">&#x0641;&#x0627;&#x0631;&#x0633;&#x06cc;&nbsp;(Farsi)</a>
<a href="index.fr.html" title="French" hreflang="fr" lang="fr" rel="alternate">fran&ccedil;ais</a>
<a href="index.gl.html" title="Galician" hreflang="gl" lang="gl" rel="alternate">Galego</a>
<a href="index.hy.html" title="Armenian" hreflang="hy" lang="hy" rel="alternate">&#1344;&#1377;&#1397;&#1381;&#1408;&#1381;&#1398;&nbsp;(hayeren)</a>
<a href="index.hr.html" title="Croatian" hreflang="hr" lang="hr" rel="alternate">hrvatski</a>
<a href="index.id.html" title="Indonesian" hreflang="id" lang="id" rel="alternate">Indonesia</a>
<a href="index.it.html" title="Italian" hreflang="it" lang="it" rel="alternate">Italiano</a>
<a href="index.he.html" title="Hebrew" hreflang="he" lang="he" rel="alternate">&#1506;&#1489;&#1512;&#1497;&#1514;&nbsp;(ivrit)</a>
<a href="index.ko.html" title="Korean" hreflang="ko" lang="ko" rel="alternate">&#54620;&#44397;&#50612;&nbsp;(Korean)</a>
<a href="index.lt.html" title="Lithuanian" hreflang="lt" lang="lt" rel="alternate">Lietuvi&#371;</a>
<a href="index.hu.html" title="Hungarian" hreflang="hu" lang="hu" rel="alternate">magyar</a>
<a href="index.nl.html" title="Dutch" hreflang="nl" lang="nl" rel="alternate">Nederlands</a>
<a href="index.ja.html" title="Japanese" hreflang="ja" lang="ja" rel="alternate">&#26085;&#26412;&#35486;&nbsp;(Nihongo)</a>
<a href="index.nb.html" title="Norwegian" hreflang="nb" lang="nb" rel="alternate">norsk&nbsp;(bokm&aring;l)</a>
<a href="index.pl.html" title="Polish" hreflang="pl" lang="pl" rel="alternate">polski</a>
<a href="index.pt.html" title="Portuguese" hreflang="pt" lang="pt" rel="alternate">Portugu&ecirc;s</a>
<a href="index.ro.html" title="Romanian" hreflang="ro" lang="ro" rel="alternate">rom&acirc;n&#259;</a>
<a href="index.ru.html" title="Russian" hreflang="ru" lang="ru" rel="alternate">&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;&nbsp;(Russkij)</a>
<a href="index.sk.html" title="Slovak" hreflang="sk" lang="sk" rel="alternate">slovenčina</a>
<a href="index.fi.html" title="Finnish" hreflang="fi" lang="fi" rel="alternate">suomi</a>
<a href="index.sv.html" title="Swedish" hreflang="sv" lang="sv" rel="alternate">svenska</a>
<a href="index.ta.html" title="Tamil" hreflang="ta" lang="ta" rel="alternate">&#2980;&#2990;&#3007;&#2996;&#3021;&nbsp;(Tamil)</a>
<a href="index.vi.html" title="Vietnamese" hreflang="vi" lang="vi" rel="alternate">Ti&#7871;ng Vi&#7879;t</a>
<a href="index.tr.html" title="Turkish" hreflang="tr" lang="tr" rel="alternate">T&uuml;rk&ccedil;e</a>
<a href="index.uk.html" title="Ukrainian" hreflang="uk" lang="uk" rel="alternate">&#1091;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072;&nbsp;(ukrajins'ka)</a>
<a href="index.zh-cn.html" title="Chinese (China)" hreflang="zh-CN" lang="zh-CN" rel="alternate">&#20013;&#25991;(&#31616;)</a>
<a href="index.zh-hk.html" title="Chinese (Hong Kong)" hreflang="zh-HK" lang="zh-HK" rel="alternate">&#20013;&#25991;(HK)</a>
<a href="index.zh-tw.html" title="Chinese (Taiwan)" hreflang="zh-TW" lang="zh-TW" rel="alternate">&#20013;&#25991;(&#32321;)</a>
[po_directory] .
[type: xhtml] index.html $lang:index.$lang.html
[options] opt:"-v --package-name edu-website --package-version 0.1.0 \
--msgid-bugs-address debian-edu@lists.debian.org \
--copyright-holder 'Debian Pure Blends Team debian-blends@lists.debian.org'"
Markdown is supported
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