Generate JSON files for language translation from po file without wp-cli i18n make-json
Generate JSON files for language translation from po file without wp-cli i18n make-json
Generate JSON files for language translation from po file without wp-cli i18n make-json
The problem here is that WordPress project folder is a shared folder on Ubuntu VirtualBox guest OS with guest additions. Searching in wp cli source code, I found that to scan the directory is used: $files = new IteratorIterator( new DirectoryIterator( $this->source ) ); and I could verify that it returns only . and .. … Read more
Working with .po and .mo files translation
Translation for frontend
I was able to fix the problem by switching the xdebug extension. I had a vc9-nts version installed and switched to vc6-nts which solved the issue.
You need create a es_ES.mo file, using the .po file included with the Theme. Try using something like POEdit or a similar utility.
I haven’t tried this myself but theoretically it should work. It just requires some hacking. First of all, this involves using qTranslate. If you don’t want a multilingual site, you can always fill only the default language. Then to force display only the default language on the post pages, you will need to modify the … Read more
You’ll first need to create your .POT file, here are some instructions: http://weblogtoolscollection.com/archives/2007/08/27/localizing-a-wordpress-plugin-using-poedit/
When every message is hard coded in the theme files there can be no problem with gettext anymore. So, yes, depending on the theme WordPress can use different templates for home and other pages. But no, this has nothing to do with automatic translations. You have simply forgot to translate some strings, possibly in front-page.php … Read more
Most translation tools are really hard to use when you try to handle a long text, so the translators have to use a HTML editor anyway. Use separate files, but use the language prefix as directory name: en main.html help-main-options.html help-special-options.html de main.html help-main-options.html help-special-options.html That’s easier to handle for translators and for you too. … Read more