diff --git a/Makefile b/Makefile index 3f4271f..72dd06d 100644 --- a/Makefile +++ b/Makefile @@ -1,79 +1,81 @@ VERSION = 0.91 ALL_LINGUAS = be bg br ca ca@valencia cs da de el es fr gd gl hu id it lt lv nl nn pl pt pt_BR ro ru sk sl sr sv ta th uk zh_TW #ALL_LINGUAS = fr POFILES=$(shell LINGUAS="$(ALL_LINGUAS)"; for lang in $$LINGUAS; do printf "locale/$$lang.po "; done) CATALOGS=$(shell LINGUAS="$(ALL_LINGUAS)"; for lang in $$LINGUAS; do printf "locale/$$lang.mo "; done) sources = \ gcompris.py \ template/base.html \ template/buy.html \ template/downloads.html \ template/download_macosx.html \ template/index.html \ template/news.html \ template/newsall.html \ template/onenews.html \ template/screenshot.html \ template/screenshots.html \ template/social.html \ template/test.html i18_sources = template/base.html \ template/buy.html \ - template/index.html + template/downloads.html \ + template/index.html \ + template/screenshot.html all: linguas="$(ALL_LINGUAS)"; \ for lang in $$linguas; do \ ./gcompris.py $(VERSION) $$lang "$(ALL_LINGUAS)" $(GCOMPRIS_DIR); \ done; \ ./gcompris.py $(VERSION) en "$(ALL_LINGUAS)" $(GCOMPRIS_DIR); \ cp template/mobile-privacy-policy.html . # # Run it to update the translation. This requires the .po from the -qt version. update: linguas="$(ALL_LINGUAS)"; \ python2 l10n-fetch-po-files.py "$(ALL_LINGUAS)"; \ for lang in $$linguas; do \ if test ! -f locale/$$lang.po; then \ cp locale/messages.pot locale/$$lang.po; \ touch -d yesterday locale/$$lang.po; \ fi; \ if test locale/messages.pot -nt locale/$$lang.po; then \ cd locale; intltool-update --dist --gettext-package=messages $$lang; cd ..; \ fi; \ header_end=`grep -n '^$$' locale/$$lang.po | head -1 | sed s/://`; \ tail -n +$$header_end locale/$$lang.po > locale/tempfile; \ mkdir -p locale/$$lang/LC_MESSAGES; \ cat $(GCOMPRIS_DIR)/po/gcompris_$$lang.po locale/tempfile | grep -v "^#~" > locale/$$lang/LC_MESSAGES/gcompris.po; \ rm -f locale/tempfile; \ sed '/^msgctxt "ActivityInfo|"/ d' < locale/$$lang/LC_MESSAGES/gcompris.po > locale/$$lang/LC_MESSAGES/gcompris_tmp.po; \ sed '/^msgctxt "DialogHelp/ d' < locale/$$lang/LC_MESSAGES/gcompris_tmp.po > locale/$$lang/LC_MESSAGES/gcompris_tmp2.po; \ msguniq --use-first locale/$$lang/LC_MESSAGES/gcompris_tmp2.po -o locale/$$lang/LC_MESSAGES/gcompris.po; \ rm -f locale/tempfile locale/$$lang/LC_MESSAGES/gcompris_tmp.po locale/$$lang/LC_MESSAGES/gcompris_tmp2.po; \ msgfmt --use-fuzzy locale/$$lang/LC_MESSAGES/gcompris.po -o locale/$$lang/LC_MESSAGES/gcompris.mo; \ python3 tools/convertPoToNews.py $$lang locale/$$lang.po; \ done; # # Run this when new strings are added in the templates extract: $(i18_sources) pybabel extract -F babel.cfg -o locale/messages.pot ./ if test $(shell git diff locale/messages.pot | grep "^+[^+]" | wc -l) -eq 1; then \ git checkout locale/messages.pot; \ touch locale/messages.pot; \ fi #%.po : # pybabel init -d locale -l `echo $* | cut -d/ -f2` -i locale/messages.pot -o $*.po online: rsync -az --copy-unsafe-links --exclude .git --exclude .rcc --exclude template . maintener@gcompris.net:/var/www/ clean: rm -Rf *.html feed-*.xml *.pyc locale/* diff --git a/babel.cfg b/babel.cfg index 0155bab..6a6f0f4 100644 --- a/babel.cfg +++ b/babel.cfg @@ -1,12 +1,14 @@ [jinja2: template/base.html] encoding = utf-8 [jinja2: template/index.html] encoding = utf-8 [jinja2: template/buy.html] encoding = utf-8 [jinja2: template/screenshot.html] encoding = utf-8 +[jinja2: template/downloads.html] +encoding = utf-8 #All strings in the python part comes from the software #[python: *.py] [extractors] jinja2 = jinja2.ext:babel_extract diff --git a/template/buy.html b/template/buy.html index eeb2349..a5534e3 100644 --- a/template/buy.html +++ b/template/buy.html @@ -1,112 +1,112 @@ {% extends "template/base.html" %} {% import "template/social.html" as social %} {% set page = 'buy' %} {% set title = _('Buy / Donate') + " - GCompris" %} {% block content %}

{% trans %}Buy / Donate{% endtrans %}

{{ social.block(locale) }}
{% trans %}Buying the full version{% endtrans %}

{% trans %}On proprietary operating systems (Windows/Mac/Android...), the full version of GCompris has a cost.{% endtrans %}
{% trans %}We provide a free demo with a limited number of activities, {{ demo_activities }} on the {{ total_activities }} available.{% endtrans %}
{% trans %}Follow the instructions below to buy the full version.{% endtrans %}

  • Windows
  • {% trans %}For Windows, you can get the demo from the download page, and buy here the activation code to unlock the full version. The cost is 9€.{% endtrans %}


    {% trans %}Notes:{% endtrans %}

    {% trans %}For personal use, it is possible to use this code on several computers.
    For schools and other institutions, please contact us to get a quote.{% endtrans %}

    -

    {% trans %}After the payment you will immediately receive an email with instructions (check your spam folder). If you do not receive this email please contact us at sales@gcompris.net .{% endtrans %}

    +

    {% trans %}After the payment you will immediately receive an email with instructions (check your spam folder). If you do not receive this email please contact us at sales@gcompris.net.{% endtrans %}

    {% trans %}This registration gives you the right to update to any new release of GCompris for 2 years. After that period, you can continue to use the latest release you got for as long as you wish.{% endtrans %}


    {% trans %}Alternatively, you can also buy the full version of GCompris directly from the Windows Store.{% endtrans %}


  • MacOSX
  • {% trans %}For MacOSX, the current version is not available anymore, we are working to bring it back soon. It will use the same code as the Windows version.{% endtrans %}


  • Android
  • {% trans %}For Android, the recommended way is to directly buy the full version from Google Play store.{% endtrans %}

    {% trans %}You can also install the demo available in the store, and use the in-app purchase button to unlock the full version from it. Note however that this second method doesn't allow to use the Google Play Family Library to share it with your family. Also, a few users reported issues to unlock the demo.{% endtrans %}


  • GNU/Linux
  • {% trans %}For users of Free-Software operating systems, the full version is always free.
    This means that for GNU/Linux, the installer we provide and the distribution packages have the full version. There is no need for any activation code.{% endtrans %}
    {% trans %}However, you can still support us with a donation, see below.{% endtrans %}


    {% trans %}Thanks for supporting Free Software in education.{% endtrans %}

    Timothée Giet.

    {% trans %}Legal reference: Company{% endtrans %} Timothée Giet RCS RENNES France 537 873 986.

    {% trans %}Schools{% endtrans %}

    {% trans %}For schools and other institutions, you need a site license.{% endtrans %}
    {% trans %}The price of a site license depends on the number of installations.{% endtrans %}

    {% trans %}Please contact us at sales@gcompris.net to request a quote.{% endtrans %}

    {% trans %}Donate{% endtrans %}

    {% trans %}You, your children or your school love GCompris. You can support the project with a donation.{% endtrans %}

    {% trans %}Developing software takes a lot of time, it needs hardware, and other requirements that have a cost. Currently all sales and donations are used to support one of the main contributors, a professional graphic artist and developer who is now in charge of the graphics and co-maintaining the application.{% endtrans %}

    {% trans %}You can donate the amount of your choice by clicking on the button below:{% endtrans %}


    {% trans %}Thanks for supporting Free Software in education.{% endtrans %}

    Timothée Giet.

    {% endblock %}