Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
translations:test-po-file [2012/06/11 07:21] – criada rafaelff1translations:test-po-file [2012/06/11 07:33] (current) – Wrong page to translate. Reverted rafaelff1
Line 1: Line 1:
-====== Teste Suas Traduções ======+====== Test your translations ======
  
-Quando um aplicativo está sendo traduzidoé interessante que seja visto seu resultadoIsso permite que você identifique diversas questõesPodepor exemplo, apreciar seu trabalho, verificar mensagens horríveis vs. bem feitasidentificar erros, etc.+When an application is being translated it is interesting to see the result. This allows you to figure several pointse.gto appreciate your labourto check for ugly vs pretty messagesto spot mistakes, etc.
  
-Os arquivos PO são compilados em arquivos MO com a linha de comando ''msgfmt''Esses arquivos são instalados no sistema com o **mesmo prefixo**((/usr/local, /usr, /opt, etc.)) que o aplicativo.+The PO files are compiled into MO files with the command line tool ''msgfmt''These files are installed on the system with the **same prefix**((/usr/local, /usr, /opt, etc)) as the application.
  
-===== A Teoria =====+===== The theory =====
  
-**1. Faça um backup** \\ +**1. Make a backup** \\ 
- +NB: replace <LANG> and <APPLICATIONappropriately (f.e. for the German translation of Xfburn the path would be ''/usr/share/locale/**de**/LC_MESSAGES/**xfburn**.mo'').
-Substitua <LANG> <APLICATIVOapropriadamente (ex: na tradução para alemão do Xfburn o caminho seria ''/usr/share/locale/**de**/LC_MESSAGES/**xfburn**.mo'').+
  
 <code> <code>
 cd /usr/share/locale/<LANG>/LC_MESSAGES/ cd /usr/share/locale/<LANG>/LC_MESSAGES/
-sudo cp <APLICATIVO>.mo <APLICATIVO>.mo~+sudo cp <APPLICATION>.mo <APPLICATION>.mo~
 </code> </code>
  
-**2. Compile o arquivo PO**+**2. Compile the PO file**
  
 <code> <code>
-msgfmt -o <APLICATIVO>.mo <LANG>.po+msgfmt -o <APPLICATION>.mo <LANG>.po
 </code> </code>
  
-**3. Instale o arquivo MO**+**3. Install the MO file**
  
 <code> <code>
-sudo cp <APLICATIVO>.mo /usr/share/locale/<LANG>/LC_MESSAGES/+sudo cp <APPLICATION>.mo /usr/share/locale/<LANG>/LC_MESSAGES/
 </code> </code>
  
-**4. Execute o APLICATIVO** \\ +**4. Run the application** \\ 
-Você pode testar um APLICATIVO em diversos idiomas com simples alteração da variável de ambiente LANG. Porém, os locales devem estar disponíveis no seu sistema (isso é particular do sistema que você estiver usando), do contrário as traduções não aparecerão.+NB: you can test an application in several languages by tweaking the environment variable LANG. However the locales have to be available on the system (this is particular to the underlying system you are running), otherwise the translations won't show up.
  
-Você pode exibir os locales disponíveis com a ferramenta de linha de comando "''locale -a''"Para exibir o locale em uso, execute o comando "''echo $LANG''".+NB: you can display available locales with the command line tool "''locale -a''"To display the current locale run the command "''echo $LANG''".
  
 <code> <code>
-LANG=<LANG> <APLICATIVO>+LANG=<LANG> <APPLICATION>
 </code> </code>
  
-===== Um Exemplo Real =====+===== A real example =====
  
 <code> <code>
-... conecte a https://translations.xfce.org/projects/p/xfburn/ e faça o download do arquivo PO ...+... connect to https://translations.xfce.org/projects/p/xfburn/ and download the PO file ...
  
 poedit xfburn.master.de.po poedit xfburn.master.de.po
  
-... traduz, traduz, traduz ...+... labour labour labour ...
  
 msgfmt xfburn.master.de.po -o xfburn.mo msgfmt xfburn.master.de.po -o xfburn.mo
Line 52: Line 51:
 </code> </code>
  
-Depois, se você não estiver satisfeito com as traduções e quiser testar uma nova versão...+Afterwards if you are unhappy with the translations and want to test a new version...
  
 <code> <code>