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
Next revision
Previous revision
translations:test-po-file [2012/06/11 07:21] – criada rafaelff1translations:test-po-file [2026/09/09 05:31] (current) – Add section dividers & link back to wiki translation main page kevinbowen
Line 1: Line 1:
-====== Teste Suas Traduções ======+~~NOTOC~~ 
 +====== 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 useful 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 =====+----
  
-**1. Faça um backup** \\+===== The theory =====
  
-Substitua <LANG> <APLICATIVOapropriadamente (ex: na tradução para alemão do Xfburn o caminho seria ''/usr/share/locale/**de**/LC_MESSAGES/**xfburn**.mo'').+**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'').
  
 <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 =====+[[|Back to Top]] 
 +---- 
 + 
 +===== 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 57:
 </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>
Line 60: Line 65:
 LANG=de_DE.utf8 xfburn LANG=de_DE.utf8 xfburn
 </code> </code>
 +
 +[[|Back to Top]]
 +----
 +[[:translations:|Return to main Wiki translations page]]