From: Sandro Santilli Date: Tue, 14 Oct 2014 23:00:27 +0000 (+0000) Subject: Add transifex configuration and a few words about using `tx' X-Git-Tag: 2.2.0rc1~777 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7cf697b2b61bf71846a8b6f39e376792a5f1221;p=postgis Add transifex configuration and a few words about using `tx' See http://docs.transifex.com/developer/client/set git-svn-id: http://svn.osgeo.org/postgis/trunk@13073 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/.tx/config b/doc/.tx/config new file mode 100644 index 000000000..e7cf803fd --- /dev/null +++ b/doc/.tx/config @@ -0,0 +1,168 @@ +[main] +host = https://www.transifex.com + +[postgis-1.extrasxmlpot] +file_filter = po//extras.xml.po +source_file = po/templates/extras.xml.pot +source_lang = en + +[postgis-1.extras_address_standardizerxmlpot] +file_filter = po//extras_address_standardizer.xml.po +source_file = po/templates/extras_address_standardizer.xml.pot +source_lang = en + +[postgis-1.extras_historytablexmlpot] +file_filter = po//extras_historytable.xml.po +source_file = po/templates/extras_historytable.xml.pot +source_lang = en + +[postgis-1.extras_tigergeocoderxmlpot] +file_filter = po//extras_tigergeocoder.xml.po +source_file = po/templates/extras_tigergeocoder.xml.pot +source_lang = en + +[postgis-1.extras_topologyxmlpot] +file_filter = po//extras_topology.xml.po +source_file = po/templates/extras_topology.xml.pot +source_lang = en + +[postgis-1.faqxmlpot] +file_filter = po//faq.xml.po +source_file = po/templates/faq.xml.pot +source_lang = en + +[postgis-1.faq_rasterxmlpot] +file_filter = po//faq_raster.xml.po +source_file = po/templates/faq_raster.xml.pot +source_lang = en + +[postgis-1.installationxmlpot] +file_filter = po//installation.xml.po +source_file = po/templates/installation.xml.pot +source_lang = en + +[postgis-1.introductionxmlpot] +file_filter = po//introduction.xml.po +source_file = po/templates/introduction.xml.pot +source_lang = en + +[postgis-1.performance_tipsxmlpot] +file_filter = po//performance_tips.xml.po +source_file = po/templates/performance_tips.xml.pot +source_lang = en + +[postgis-1.postgisxmlpot] +file_filter = po//postgis.xml.po +source_file = po/templates/postgis.xml.pot +source_lang = en + +[postgis-1.referencexmlpot] +file_filter = po//reference.xml.po +source_file = po/templates/reference.xml.pot +source_lang = en + +[postgis-1.reference_accessorxmlpot] +file_filter = po//reference_accessor.xml.po +source_file = po/templates/reference_accessor.xml.pot +source_lang = en + +[postgis-1.reference_constructorxmlpot] +file_filter = po//reference_constructor.xml.po +source_file = po/templates/reference_constructor.xml.pot +source_lang = en + +[postgis-1.reference_editorxmlpot] +file_filter = po//reference_editor.xml.po +source_file = po/templates/reference_editor.xml.pot +source_lang = en + +[postgis-1.reference_exceptionxmlpot] +file_filter = po//reference_exception.xml.po +source_file = po/templates/reference_exception.xml.pot +source_lang = en + +[postgis-1.reference_gucxmlpot] +file_filter = po//reference_guc.xml.po +source_file = po/templates/reference_guc.xml.pot +source_lang = en + +[postgis-1.reference_lrsxmlpot] +file_filter = po//reference_lrs.xml.po +source_file = po/templates/reference_lrs.xml.pot +source_lang = en + +[postgis-1.reference_managementxmlpot] +file_filter = po//reference_management.xml.po +source_file = po/templates/reference_management.xml.pot +source_lang = en + +[postgis-1.reference_measurexmlpot] +file_filter = po//reference_measure.xml.po +source_file = po/templates/reference_measure.xml.pot +source_lang = en + +[postgis-1.reference_miscxmlpot] +file_filter = po//reference_misc.xml.po +source_file = po/templates/reference_misc.xml.pot +source_lang = en + +[postgis-1.reference_operatorxmlpot] +file_filter = po//reference_operator.xml.po +source_file = po/templates/reference_operator.xml.pot +source_lang = en + +[postgis-1.reference_outputxmlpot] +file_filter = po//reference_output.xml.po +source_file = po/templates/reference_output.xml.pot +source_lang = en + +[postgis-1.reference_processingxmlpot] +file_filter = po//reference_processing.xml.po +source_file = po/templates/reference_processing.xml.pot +source_lang = en + +[postgis-1.reference_rasterxmlpot] +file_filter = po//reference_raster.xml.po +source_file = po/templates/reference_raster.xml.pot +source_lang = en + +[postgis-1.reference_sfcgalxmlpot] +file_filter = po//reference_sfcgal.xml.po +source_file = po/templates/reference_sfcgal.xml.pot +source_lang = en + +[postgis-1.reference_transactionxmlpot] +file_filter = po//reference_transaction.xml.po +source_file = po/templates/reference_transaction.xml.pot +source_lang = en + +[postgis-1.reference_typexmlpot] +file_filter = po//reference_type.xml.po +source_file = po/templates/reference_type.xml.pot +source_lang = en + +[postgis-1.release_notesxmlpot] +file_filter = po//release_notes.xml.po +source_file = po/templates/release_notes.xml.pot +source_lang = en + +[postgis-1.reportingxmlpot] +file_filter = po//reporting.xml.po +source_file = po/templates/reporting.xml.pot +source_lang = en + +[postgis-1.using_postgis_appxmlpot] +file_filter = po//using_postgis_app.xml.po +source_file = po/templates/using_postgis_app.xml.pot +source_lang = en + +[postgis-1.using_postgis_datamanxmlpot] +file_filter = po//using_postgis_dataman.xml.po +source_file = po/templates/using_postgis_dataman.xml.pot +source_lang = en + +[postgis-1.using_raster_datamanxmlpot] +file_filter = po//using_raster_dataman.xml.po +source_file = po/templates/using_raster_dataman.xml.pot +source_lang = en + diff --git a/doc/Makefile.in b/doc/Makefile.in index bd94603f6..3b236bfd2 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -164,6 +164,17 @@ update-po: $(XML_INPUTS_POT) done; \ done +# Register transifex resources, run when adding a new .xml file +update-tx: + for f in $(XML_INPUTS_POT); do \ + f=`basename $${f} .pot`; \ + res=`echo "$${f}" | sed 's/\.//g'`pot; \ + tx set --auto-local -r postgis-1.$${res} "po//$${f}.po" \ + --source-lang en --source-file "po/templates/$${f}.pot" \ + --execute; \ + done + + ifeq ($(XSLTPROC),) postgis_aggs_mm.xml: requirements_not_met_xsltproc else diff --git a/doc/po/README b/doc/po/README index 36f6f5f6e..d85473076 100644 --- a/doc/po/README +++ b/doc/po/README @@ -9,3 +9,21 @@ localized manual. Run ``make update-po`` from the parent directory to update the translation files to be in sync with the official documentation. + +Using transifex +--------------- + +Transifex web-ui to translation was setup here: +https://www.transifex.com/projects/p/postgis-1 + +Run ``make update-tx`` from the parent directory to +update the transifex command-line tool configuration, +found in ../.tx/config (only needed when new doc sources +are added); + +Push locally updated templates to transifex with ``tx push -t``. +Push locally updated translations to transifex with ``tx push -s``. + +Pull remotely updated translations with ``tx pull`` + +See ``tx help``.