Here is the best instructions I could find:
http://boren.nu/archives/2004/11/01/localizing-plugins-and-themes/
It means you have to create a POT file from the theme > .po file to make the translation (e.g. with poEdit) and then save it as .mo: basically, a different .mo file for the theme only and have the changes in the code as described in Ryan’s article.
Thread Starter
maujor
(@maujor)
I did what Ryan’s article states using the pt_BR.mo file that I’m using for the main translation.
Made a copy of that file hosted at language folder and put the copy on themes folder (and also on mytheme folder) and it didn’t works.
The authors theme doesn’t provide a file.po for his theme.
According Moshu I must generate a specific PO file for the theme.
Can anyone point me a resource or tutorial explaining how to generate it. I’ve poEdit in my machine.
The .mo file translate only the WP engine.
Yes, you have to generate a new .po(t) file and then a .mo file. See if this helps:
http://codex.wordpress.org/User:Skippy/Creating_POT_Files
Thread Starter
maujor
(@maujor)
Hi moshu,
The link you pointed out explain in a clear way what to do.
But I’m doing something wrong here and can´t figure out how to fix it.
poEdit returns ‘Cannot find any file in the folder’ and so doesn’t populates the fields with english words to translate.
The theme I want translate is located at: C:\Inetpub\wwwroot\blog\wp-content\themes\blue-elegance-10
and this is the path I typed in poEdit Configurations.
Thanks for your kindness and I suspect that is hard for you to find the solution. I’ll try to fix it for myself in a couple of days.
Poedit have some problem on windows doing this. It works fine under linux.