Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| pt-br:translations:review-po-file [2012/06/11 07:31] – criada rafaelff1 | pt-br:translations:review-po-file [2026/11/06 03:59] (current) – removed kevinbowen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Revisão de Arquivos PO ====== | ||
| - | |||
| - | Como um revisor, ferramentas para ajudá-lo nesta tarefa não são muito presente, e atualmente a instalação do Transifex também não facilita esta tarefa. | ||
| - | |||
| - | Quando alguém envia a você uma arquivo PO recém-traduzido e você quer verifcar a diferença, você precisará de uma ferramenta para exibir somente as mensagens alteradas. Aqui, você encontrará um shell script rápido-e-direto que usa comandos básicos. | ||
| - | |||
| - | ===== O Script ===== | ||
| - | |||
| - | <code bash> | ||
| - | #!/bin/sh | ||
| - | PO_ORIG=$1 | ||
| - | PO_REVIEW=$2 | ||
| - | PO_TEMPL=$3 | ||
| - | |||
| - | MSGMERGE=msgmerge | ||
| - | DIFF=diff | ||
| - | PAGER=more | ||
| - | RM=/bin/rm | ||
| - | MKTEMP=mktemp | ||
| - | |||
| - | # Usage | ||
| - | if test " | ||
| - | echo Usage: $0 orig.po review.po template.pot | ||
| - | exit 1 | ||
| - | fi | ||
| - | |||
| - | # Merge | ||
| - | TMP_ORIG=`$MKTEMP po-orig.XXX` | ||
| - | TMP_REVIEW=`$MKTEMP po-review.XXX` | ||
| - | $MSGMERGE $PO_ORIG $PO_TEMPL > $TMP_ORIG 2> /dev/null | ||
| - | $MSGMERGE $PO_REVIEW $PO_TEMPL > $TMP_REVIEW 2> /dev/null | ||
| - | |||
| - | # Diff | ||
| - | $DIFF -u $TMP_ORIG $TMP_REVIEW | $PAGER | ||
| - | |||
| - | # Clean up files | ||
| - | $RM $TMP_ORIG $TMP_REVIEW | ||
| - | </ | ||
| - | |||
| - | ===== Exemplo ===== | ||
| - | |||
| - | $ cd xfce4-settings/ | ||
| - | $ msgdiff.sh | ||
| - | Usage: msgdiff.sh orig.po review.po template.pot | ||
| - | $ msgdiff.sh fr.po 127.fr.po xfce4-settings.pot | ||
| - | [...] | ||
| - | @@ -899,15 +899,15 @@ | ||
| - | | ||
| - | #. pixel value for some of the scales in the dialog | ||
| - | #: ../ | ||
| - | -#, c-format | ||
| - | +#, fuzzy, c-format | ||
| - | msgid "%g px" | ||
| - | -msgstr "" | ||
| - | +msgstr "%g px" | ||
| - | | ||
| - | #. miliseconds value for some of the scales in the dialog | ||
| - | #: ../ | ||
| - | -#, c-format | ||
| - | +#, fuzzy, c-format | ||
| - | msgid "%g ms" | ||
| - | -msgstr "" | ||
| - | +msgstr "%g ms" | ||
| - | [...] | ||
| - | |||
| - | ===== Outros Recursos ===== | ||
| - | |||
| - | Há outros scripts que podem ser usados para fazer o trabalho de revisão, é claro, e você encontra alguns deles logo abaixo. | ||
| - | |||
| - | * https:// | ||
| - | * http:// | ||