]> granicus.if.org Git - postgis/commitdiff
Add transifex configuration and a few words about using `tx'
authorSandro Santilli <strk@keybit.net>
Tue, 14 Oct 2014 23:00:27 +0000 (23:00 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 14 Oct 2014 23:00:27 +0000 (23:00 +0000)
See http://docs.transifex.com/developer/client/set

git-svn-id: http://svn.osgeo.org/postgis/trunk@13073 b70326c6-7e19-0410-871a-916f4a2858ee

doc/.tx/config [new file with mode: 0644]
doc/Makefile.in
doc/po/README

diff --git a/doc/.tx/config b/doc/.tx/config
new file mode 100644 (file)
index 0000000..e7cf803
--- /dev/null
@@ -0,0 +1,168 @@
+[main]
+host = https://www.transifex.com
+
+[postgis-1.extrasxmlpot]
+file_filter = po/<lang>/extras.xml.po
+source_file = po/templates/extras.xml.pot
+source_lang = en
+
+[postgis-1.extras_address_standardizerxmlpot]
+file_filter = po/<lang>/extras_address_standardizer.xml.po
+source_file = po/templates/extras_address_standardizer.xml.pot
+source_lang = en
+
+[postgis-1.extras_historytablexmlpot]
+file_filter = po/<lang>/extras_historytable.xml.po
+source_file = po/templates/extras_historytable.xml.pot
+source_lang = en
+
+[postgis-1.extras_tigergeocoderxmlpot]
+file_filter = po/<lang>/extras_tigergeocoder.xml.po
+source_file = po/templates/extras_tigergeocoder.xml.pot
+source_lang = en
+
+[postgis-1.extras_topologyxmlpot]
+file_filter = po/<lang>/extras_topology.xml.po
+source_file = po/templates/extras_topology.xml.pot
+source_lang = en
+
+[postgis-1.faqxmlpot]
+file_filter = po/<lang>/faq.xml.po
+source_file = po/templates/faq.xml.pot
+source_lang = en
+
+[postgis-1.faq_rasterxmlpot]
+file_filter = po/<lang>/faq_raster.xml.po
+source_file = po/templates/faq_raster.xml.pot
+source_lang = en
+
+[postgis-1.installationxmlpot]
+file_filter = po/<lang>/installation.xml.po
+source_file = po/templates/installation.xml.pot
+source_lang = en
+
+[postgis-1.introductionxmlpot]
+file_filter = po/<lang>/introduction.xml.po
+source_file = po/templates/introduction.xml.pot
+source_lang = en
+
+[postgis-1.performance_tipsxmlpot]
+file_filter = po/<lang>/performance_tips.xml.po
+source_file = po/templates/performance_tips.xml.pot
+source_lang = en
+
+[postgis-1.postgisxmlpot]
+file_filter = po/<lang>/postgis.xml.po
+source_file = po/templates/postgis.xml.pot
+source_lang = en
+
+[postgis-1.referencexmlpot]
+file_filter = po/<lang>/reference.xml.po
+source_file = po/templates/reference.xml.pot
+source_lang = en
+
+[postgis-1.reference_accessorxmlpot]
+file_filter = po/<lang>/reference_accessor.xml.po
+source_file = po/templates/reference_accessor.xml.pot
+source_lang = en
+
+[postgis-1.reference_constructorxmlpot]
+file_filter = po/<lang>/reference_constructor.xml.po
+source_file = po/templates/reference_constructor.xml.pot
+source_lang = en
+
+[postgis-1.reference_editorxmlpot]
+file_filter = po/<lang>/reference_editor.xml.po
+source_file = po/templates/reference_editor.xml.pot
+source_lang = en
+
+[postgis-1.reference_exceptionxmlpot]
+file_filter = po/<lang>/reference_exception.xml.po
+source_file = po/templates/reference_exception.xml.pot
+source_lang = en
+
+[postgis-1.reference_gucxmlpot]
+file_filter = po/<lang>/reference_guc.xml.po
+source_file = po/templates/reference_guc.xml.pot
+source_lang = en
+
+[postgis-1.reference_lrsxmlpot]
+file_filter = po/<lang>/reference_lrs.xml.po
+source_file = po/templates/reference_lrs.xml.pot
+source_lang = en
+
+[postgis-1.reference_managementxmlpot]
+file_filter = po/<lang>/reference_management.xml.po
+source_file = po/templates/reference_management.xml.pot
+source_lang = en
+
+[postgis-1.reference_measurexmlpot]
+file_filter = po/<lang>/reference_measure.xml.po
+source_file = po/templates/reference_measure.xml.pot
+source_lang = en
+
+[postgis-1.reference_miscxmlpot]
+file_filter = po/<lang>/reference_misc.xml.po
+source_file = po/templates/reference_misc.xml.pot
+source_lang = en
+
+[postgis-1.reference_operatorxmlpot]
+file_filter = po/<lang>/reference_operator.xml.po
+source_file = po/templates/reference_operator.xml.pot
+source_lang = en
+
+[postgis-1.reference_outputxmlpot]
+file_filter = po/<lang>/reference_output.xml.po
+source_file = po/templates/reference_output.xml.pot
+source_lang = en
+
+[postgis-1.reference_processingxmlpot]
+file_filter = po/<lang>/reference_processing.xml.po
+source_file = po/templates/reference_processing.xml.pot
+source_lang = en
+
+[postgis-1.reference_rasterxmlpot]
+file_filter = po/<lang>/reference_raster.xml.po
+source_file = po/templates/reference_raster.xml.pot
+source_lang = en
+
+[postgis-1.reference_sfcgalxmlpot]
+file_filter = po/<lang>/reference_sfcgal.xml.po
+source_file = po/templates/reference_sfcgal.xml.pot
+source_lang = en
+
+[postgis-1.reference_transactionxmlpot]
+file_filter = po/<lang>/reference_transaction.xml.po
+source_file = po/templates/reference_transaction.xml.pot
+source_lang = en
+
+[postgis-1.reference_typexmlpot]
+file_filter = po/<lang>/reference_type.xml.po
+source_file = po/templates/reference_type.xml.pot
+source_lang = en
+
+[postgis-1.release_notesxmlpot]
+file_filter = po/<lang>/release_notes.xml.po
+source_file = po/templates/release_notes.xml.pot
+source_lang = en
+
+[postgis-1.reportingxmlpot]
+file_filter = po/<lang>/reporting.xml.po
+source_file = po/templates/reporting.xml.pot
+source_lang = en
+
+[postgis-1.using_postgis_appxmlpot]
+file_filter = po/<lang>/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/<lang>/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/<lang>/using_raster_dataman.xml.po
+source_file = po/templates/using_raster_dataman.xml.pot
+source_lang = en
+
index bd94603f673d0dd7635a26802616427b8033fbde..3b236bfd29726ddb3688e5bd65445162250ac91a 100644 (file)
@@ -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/<lang>/$${f}.po" \
+           --source-lang en --source-file "po/templates/$${f}.pot" \
+           --execute; \
+  done
+
+
 ifeq ($(XSLTPROC),)
 postgis_aggs_mm.xml: requirements_not_met_xsltproc
 else
index 36f6f5f6e09d17a4326d09ad38d78c370290bee8..d854730762cb0bfc47ca0b3db071468a91cef593 100644 (file)
@@ -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``.