Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| translations:test-po-file [2012/06/11 07:21] – criada rafaelff1 | translations:test-po-file [2026/09/09 05:31] (current) – Add section dividers & link back to wiki translation main page kevinbowen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ~~NOTOC~~ |
| + | ====== | ||
| - | 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 useful 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 ===== | + | ---- |
| - | **1. Faça um backup** \\ | + | ===== The theory ===== |
| - | Substitua | + | **1. Make a backup** \\ |
| + | NB: replace | ||
| < | < | ||
| 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 ===== | + | [[|Back to Top]] |
| + | ---- | ||
| + | |||
| + | ===== 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 57: | ||
| </ | </ | ||
| - | 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... |
| < | < | ||
| Line 60: | Line 65: | ||
| LANG=de_DE.utf8 xfburn | LANG=de_DE.utf8 xfburn | ||
| </ | </ | ||
| + | |||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| + | [[: | ||