[Solved] The problem with the translation of the phrase. Please fix it!
By the way, "wpDiscuz" has exactly the same problem!!! 😉Β
I see the same here > https://wpforo.ru/
wpForo.ru - not a standard. There are the same problems. And, at the time, they corrected some mistakes in translation much later than I corrected them.
@adler11 I have sort of the same issue on my Spanish forum. I posted here a couple of years ago, and I could never find a solution to the issue. If you translate the phrase "% Reply" it changes it in two places, in English is fine, but in Spanish and other languages you need two different phrases for that.
I was lucky to find a neutral word in Spanish that works kind of the same way as "Reply" in English with the word "Respuesta" which is what I use now, but it still doesn't sound very natural.
I have attached a screenshot showing where the issue occurs. In #1 I need it to be "Respuesta/s" (Just same usage as in English) however in #2 I need it to be "Responder" and I can't. Because if I change it then it looks perfect in #2, but it totally makes no sense in #1 when I do change it to "Responder".
Sorry for having hijacked this thread, but maybe it helps, so the devs see there are some customers with this issue.
This is the PHP code that is used
<?php ( $topic['answers'] > 1 ) ? printf( wpforo_phrase('%d Answers', false), $topic['answers'] ) : printf( wpforo_phrase('%d Answer', false), $topic['answers'] ) ; ?>
so you have to translate Answers and Answer correctly
%d Answers and Answer not only %s Replies
try, translate directly in code (layout 4 post.php Line 112)
<?php ( $reply_count == 1 ) ? wpforo_phrase('Reply') : wpforo_phrase('Replies'); ?></span>
example
<?php ( $reply_count == 1 ) ? wpforo_phrase('translation') : wpforo_phrase('translation'); ?></span>
edit > layout 4
Yes, I found it and corrected it. And this has already allowed me to make the translation EXACTLY in the place I need, regardless of the phrase on the main page of the forum. Half the work is done! But this solution, unfortunately, is half-hearted. Can you tell me how to swap the number (number of replies) and the word "Replies"? That would be a complete solution to the problem (in my particular case)! See screenshot:
@tutrix Thanks bud, I tried that, but then it changes on the top, which I don't need it to because in there it is correct in Spanish, but not on the actual post "Reply" icon.
See my screenshot changing in the code like you explained changes #1 in my case I need to change #2 ONLY.
I think I have found the line and word where I need to change it. But if I change "reply" there for the word I need, then no word is displayed on the forum and only the vote icon shows up, the actual word next to the voting or reply icons which should be the word for Reply I want to replace disappears.
There are three phrases and you should use theme. There are no other phrases for different number of replies, they are only designed for singular and plural. They can be edited in wpForo > Phrases admin page:
- %s Replies
- Replies
- Reply
In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.
It's a pity if this is the final answer. Because in many cases (for example, mine and RealAct) translations into our native languages look childishly ridiculous and cause confusion and questions from forum visitors, they say, is it really impossible to fix these minor flaws? It turns out that it is IMPOSSIBLE, because the THEME!
Thank you to everyone who participated in the discussion of the topic! I was able, with the invaluable help of a very positive and responsive person, Tutrix, to find a way out of the situation. Made changes to the file post.php:
112 <span class="wpf-post-replies-title"><?php ( $reply_count == 1 ) ? wpforo_phrase('ΠΡΠ²Π΅Ρ') : wpforo_phrase('ΠΡΠ²Π΅ΡΠΎΠ²:'); ?></span>
113 <span class="wpf-post-replies-count"><?php echo wpforo_print_number($reply_count); ?></span>
As we can see, lines 112 and 113 have been swapped, a colon has been added. In my particular case, this solved the problem. Maybe it will help someone too. Thank you all!
You can use (add if they don't exist) the following phrases, the value of these phrase can be changed by relocating the %s part, %s will show the number of replies:
- Phrase key: %s RepliesΒ | Phrase Value: Replies %s
- Phrase key: %s Reply Β Β | Phrase Value: Reply %s
Β
They'll work fine in the upcoming version, because the two lines you've mentioned have been changed to one line:
<span class="wpf-post-replies-title"><?php ( (int) $reply_count > 1 ) ? printf( wpforo_phrase('%s Replies', false), wpforo_print_number($reply_count) ) : printf( wpforo_phrase('%s Reply', false), wpforo_print_number($reply_count) ); ?></span>
Β
In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.
Thank you for the answer! I did all this before asking for help, but the main problem was that the phrase change was happening in two places at the SAME time!!! First:
In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.
In line 104, please correct "1" to "2"! Then the problem with a single number of posts will disappear. I checked on myself. Works. See the screenshot:
In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.
@robert Thanks for looking into this, it's hard to explain what the issue is, but based on your interest in this topic, I'm hopeful that we will find a solution. I pasted a little table below where I try to explain what my particular issue is, which I believe is pretty similar to @adler11's issue.Β
|
Code |
Spanish |
English |
Outcome in Spanish |
|
% Replies |
% Respuestas |
How many replies |
OK |
|
Replies |
Respuestas |
Just the word βRepliesβ |
OK |
|
Reply |
Respuesta |
Just the word βReplyβ |
OK |
|
X |
Responder |
The act of βReplying toβ |
MISSING STRING |
I will also be uploading it as a graphic, just in case. As you can see, the word "Reply" in English is used to #1 meaning the act of actually replying to someone or #2 just plain and simple the word "Reply". With just one word, you can express two different things.Β
In Spanish and probably other languages, however, that is NOT the case. The ACT OF REPLYING TO someone or something utilizes yet another word.
To kind of solve the issue on my forum I have used the word "Respuesta" which means "Reply" in Spanish and sort of also implies "To Reply To" but it's not very natural or clear to the Spanish reader. To truly solve my issue with the right translation I would need yet another string which I could translate as "Responder" but I can't at the moment because that string doesn't exist.
Hopefully this helps clarify the issue and not bring more confusion into it.
Thanks taking the time of looking into this.
To fix my issue I would need to be able to change the word "reply" on code line 81 to "Responder" but if I go ahead and change it, then no word shows up at all on the forum pages next to the "Reply" icon because the string that I want and placed there doesn't exist.
I also cannot create a new one, because it's the same word that already exists in with the string "reply"🤣. Yeah my head hurts trying to explain this.
-
Information on translating wpForo into Italian
1 week ago
-
Do you have WP Foro available in Haitian (Creole)?
2 weeks ago
-
Forum in Englisch und keine deutsche Sprache
1 year ago
-
WPFORO + WPML
2 years ago
-
Multilanguage
2 years ago
- 19 Forums
- 14.2 K Topics
- 71.2 K Posts
- 34 Online
- 6,081 Members












