Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
translations:test-po-file [2010/07/31 14:37] – created 80.185.32.195 | translations:test-po-file [2012/06/11 07:21] – criada rafaelff1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | 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. | + | 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 |
- | The PO files are compiled into MO files with the command line tool '' | + | Os arquivos |
- | ===== The theory | + | ===== A Teoria |
- | **1. Make a backup** \\ | + | **1. Faça um backup** \\ |
- | NB: replace | + | |
+ | Substitua | ||
< | < | ||
cd / | cd / | ||
- | sudo cp <APPLICATION>.mo <APPLICATION>.mo~ | + | sudo cp <APLICATIVO>.mo <APLICATIVO>.mo~ |
</ | </ | ||
- | **2. Compile | + | **2. Compile |
< | < | ||
- | msgfmt -o <APPLICATION>.mo < | + | msgfmt -o <APLICATIVO>.mo < |
</ | </ | ||
- | **3. Install the MO file** | + | **3. Instale o arquivo |
< | < | ||
- | sudo cp <APPLICATION>.mo / | + | sudo cp <APLICATIVO>.mo / |
</ | </ | ||
- | **4. Run the application** \\ | + | **4. Execute o APLICATIVO** \\ |
- | NB: you can test an application in several languages by tweaking the environment variable | + | Você pode testar um APLICATIVO em diversos idiomas com simples alteração da variável de ambiente |
- | NB: you can display available | + | Você pode exibir os locales |
< | < | ||
- | LANG=< | + | LANG=< |
</ | </ | ||
- | ===== A real example | + | ===== Um Exemplo Real ===== |
< | < | ||
- | ... connect to https:// | + | ... conecte a https:// |
poedit xfburn.master.de.po | poedit xfburn.master.de.po | ||
- | ... labour labour labour | + | ... traduz, traduz, traduz |
msgfmt xfburn.master.de.po -o xfburn.mo | msgfmt xfburn.master.de.po -o xfburn.mo | ||
Line 51: | Line 52: | ||
</ | </ | ||
- | Afterwards if you are unhappy with the translations and want to test a new version... | + | Depois, se você não estiver satisfeito com as traduções e quiser testar uma nova versão... |
< | < |