Notifications
Clear all

[Closed] wpForo Translations

15 Posts
6 Users
2 Reactions
10.3 K Views
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

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.

Posts: 11
Topic starter
(@tagene)
Active Member
Joined: 8 years ago

Ok, I'll keep an eye on this forum

Posts: 14
(@joekotvas)
Eminent Member
Joined: 8 years ago

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

Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

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.

1 Reply
(@joekotvas)
Joined: 8 years ago

Eminent Member
Posts: 14

Now you've deleted the default english phrases so wpForo has no other options and displays Spanshish language. This is not correct.

No, I did not delete the default English phrases; I deleted the Spanish language and all the Spanish phrases, (In my case, langid 2). English is langid 1.

After modifying the database with phpMyAdmin, all I had available was the default English. Then, I followed the procedure to add Spanish again through the wpForo dashboard. Everything worked correctly, and I could change back to English at any time.

after uploading new language you should navigate to Dashboard > Forums > Dashboard admin page and click on [Delete Phrase Cache] button.

I tried that button. I also tried clearing all the caches. It didn't help. The only way to update previously added phrases was to delete the Spanish translation and re-upload, and the only way to achieve that was to modify the database. I posted the steps here in case anyone else is having the same issue.

The XML functionality is extremely useful, but there are some simple changes needed. Uploading an updated XML file for a language that has already been added should update all phrases, not just add new phrases.

Posts: 15
(@tristanleboss)
Eminent Member
Joined: 7 years ago

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">
Page 2 / 2