No it can't be disabled, because there are people who can use it without any issue. You just need to know these simple rules:
1. You should collect all missing phrases and update XML before importing (optional)
2. Phrase values should not be empty ('key' => 'value'). All should be translated or just left with English phrase.
3. Phrase keys should not be changed, you should only translate values ('key' => 'value')
But we work to create automatic XML updater and eliminate issues related #2 before adding XML info in doc.
Ok, I'll keep an eye on this forum
Hello, I found this thread while working on getting my Spanish phrases translated and added to wpForo.
I translated half of the phrases, added the XML, verified everything was working properly, and then translated the other half of the phrases. When I re-uploaded the XML file, I was surprised to see that wpForo did not update my phrases. It seems a very straightforward update operation. Worse, there is not even the option to entirely delete the language and start over.
I eventually did find a solution using PHPMyAdmin:
- I took note of the langid for the Spanish language in the wp_wpforo_languages table, then deleted that row.
- I subsequently deleted all rows with that langid in the wp_wpforo_phrases table.
- Finally, I again uploaded the XML file through the wpForo dashboard.
Worked like a charm! All my phrases are now correctly translated.
Again, this process should be automated. I appreciate the ability to translate phrases through the admin interface, but I prefer to have all translated phrases in an XML file, easily transferable to a new forum install.
Thanks
The new language XML file doesn't update current phrases. You're adding a new language with the same phrases but with translated value. You're not updating existing phrases. So you'll have two sets of all phrases with to different languages. You just need to change the Forum Language drop-down menu to Spanish in Dashboard > Forums > Settings admin page and wpForo will use the uploaded XML phrases. Now you've deleted the default english phrases so wpForo has no other options and displays Spanshish language. This is not correct.
Also please note, after uploading new language you should navigate to Dashboard > Forums > Dashboard admin page and click on [Delete Phrase Cache] button.
Did you edit the "language" tag of the XML file?
To insert French translation and keep the English one, I had to change the second line of the XML to:
<language name="MASTER" language="Français" encoding="UTF-8" version="1.0.0" code="fr">