questions of tx push install guide

alick alick9188 at gmail.com
Tue Feb 7 05:58:34 UTC 2012


于 2012年02月04日 16:02, Dimitris Glezos 写道:
> On Fri, Feb 3, 2012 at 11:03 PM, alick <alick9188 at gmail.com> wrote:
> 
>> Another question: currently there are 871 pot files in f16 branch. It
>> means that there should be 871 resources of install-guide on transifex.
>> But now there are only 51 (from 'tx status' output). How should we set
>> up to allow all pot files to appear on transifex?
> 
> Just upload/push them.
> 

I manage to set up 847 resources locally in .tx/config file. 24 from all
871 are excluded because they are not used (from publican print_unused).

However, when tx push -s, I got HTTP 403 error. Seems like I don't have
the privilege to push source files to transifex?

The script used to set up '.tx/config' is as follows. It is modified from
the one in tx client doc.

  #!/bin/bash

  project="fedora-install-guide"
  potfilelist="potfilelist"
  excludefilelist="excludefilelist"

  for POTFILE in `cat potfilelist`; do
  	if ! egrep -q "^${POTFILE}$" ${excludefilelist}; then
  	FILE="${POTFILE%.pot}"
  	#echo $FILE
  	tx set --auto-local -r ${project}.$FILE --source-language=en \
  		--source-file pot/$FILE.pot "<lang>/$FILE.po" --execute
  	fi
  done

Note that the file "potfilelist" can be produced by:

  ls pot/ > potfilelist

And the file "excludefilelist" can be produced by:

  publican print_unused --nocolours > excludefilelist
  (manual edit needed...)

-- 
alick
Fedora 16 (Verne) user
https://fedoraproject.org/wiki/User:Alick


More information about the docs mailing list