Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
translations:test-po-file [2012/06/11 07:21] – criada rafaelff1 | translations:test-po-file [2012/06/11 07:33] (current) – Wrong page to translate. Reverted rafaelff1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | Quando um aplicativo está sendo traduzido, é interessante que seja visto seu resultado. Isso permite que você identifique diversas questões. Pode, por exemplo, apreciar seu trabalho, verificar mensagens horríveis | + | When an application is being translated it is interesting to see the result. This allows you to figure several points, e.g. to appreciate your labour, to check for ugly vs pretty messages, to spot mistakes, etc. |
- | Os arquivos | + | The PO files are compiled into MO files with the command line tool '' |
- | ===== A Teoria | + | ===== The theory |
- | **1. Faça um backup** \\ | + | **1. Make a backup** \\ |
- | + | NB: replace | |
- | Substitua | + | |
< | < | ||
cd / | cd / | ||
- | sudo cp <APLICATIVO>.mo <APLICATIVO>.mo~ | + | sudo cp <APPLICATION>.mo <APPLICATION>.mo~ |
</ | </ | ||
- | **2. Compile | + | **2. Compile |
< | < | ||
- | msgfmt -o <APLICATIVO>.mo < | + | msgfmt -o <APPLICATION>.mo < |
</ | </ | ||
- | **3. Instale o arquivo | + | **3. Install the MO file** |
< | < | ||
- | sudo cp <APLICATIVO>.mo / | + | sudo cp <APPLICATION>.mo / |
</ | </ | ||
- | **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 | + | NB: you can test an application in several languages by tweaking the environment variable |
- | Você pode exibir os locales | + | NB: you can display available |
< | < | ||
- | LANG=< | + | LANG=< |
</ | </ | ||
- | ===== Um Exemplo Real ===== | + | ===== A real example |
< | < | ||
- | ... conecte a https:// | + | ... connect to https:// |
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: | ||
</ | </ | ||
- | 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... |
< | < |