Home › Forums › Community Forum › S2 Profile form not completely translatable
This topic contains 12 replies, has 2 voices. Last updated by Cristián Lávaque 3 years, 6 months ago.
| Topic Author | Topic |
|---|---|
| Posted: Wednesday Jun 5th, 2013 at 3:43 am #51395 | |
|
|
|
|
Hi, I use the “[s2Member-Profile /]” shortcode on my website which I have translated into german. But two fields do not show the translated strings but the original english ones: Username and Password titles:
I have places the file “s2member-de_DE.mo” into the plugin directory and it seems to work (except for the mentioned strings). How do I solve this? |
|
List Of Topic Replies
| Author | Replies |
|---|---|
| Author | Replies |
| Posted: Thursday Jun 6th, 2013 at 5:39 am #51468 | |
|
|
|
|
I see both strings in the s2member.pot file, did you translate them there? s2member\includes\translations\s2member.pot |
|
| Posted: Thursday Jun 6th, 2013 at 8:04 am #51485 | |
|
|
|
|
Hi Cristian, yes, I translated both strings. But the translation is not applied. This is from my po-file: #: s2member/includes/classes/profile-in.inc.php:78 #: s2member/includes/classes/profile-in.inc.php:234 |
|
| Posted: Thursday Jun 6th, 2013 at 8:14 am #51486 | |
|
|
|
|
I have found additional places where “please type it twice” is used but not declared in the po file: \s2member\includes\classes\profile-in.inc.php (1 hits) Line 234: echo ‘‘ . _x (“New Password?”, “s2member-front”, “s2member”) . ‘ ‘ . _x (“(please type it twice)”, “s2member-front”, “s2member”) . ‘ \s2member\includes\classes\sc-profile-in.inc.php (1 hits) Line 250: echo ‘‘ . _x (“New Password?”, “s2member-front”, “s2member”) . ‘ ‘ . _x (“(please type it twice)”, “s2member-front”, “s2member”) . ‘ Could this be the problem? |
|
| Posted: Friday Jun 7th, 2013 at 5:28 am #51581 | |
|
|
|
|
I don’t think that’s the problem, but I’m not sure what is… You can try this hack to complement your translations file: Create this dir/file: /wp-content/mu-plugins/s2hacks.php |
|
| Posted: Friday Jun 7th, 2013 at 11:15 am #51612 | |
|
|
|
|
Ok, this has worked. But could you please issue a bug report since I have translated the strings in the mo-file but it is not displayed properly. Thanks! Best |
|
| Posted: Saturday Jun 8th, 2013 at 6:01 am #51663 | |
|
|
|
|
I’m glad that helped. :) Sure, I’ll pass it on to Jason, but could you please provide a link to download your translation file? I’d like to review and try it to see if I can find what the problem is. Thanks! |
|
| Posted: Monday Jun 10th, 2013 at 4:51 am #51711 | |
|
|
|
|
Sure, here is the download-link: |
|
| Posted: Tuesday Jun 11th, 2013 at 2:55 pm #51778 | |
|
|
|
|
Additional fields that are not translated: (Registration for level 0 in PP Pro form): #: s2member-pro/includes/templates/forms/authnet-checkout-form.php:69 #: s2member-pro/includes/templates/forms/authnet-checkout-form.php:75 |
|
| Posted: Thursday Jun 13th, 2013 at 1:32 am #51846 | |
|
|
|
Thanks! I should have asked for the .po file. Could you share the s2member-de_DE.po file as well so I can read it? I forgot .mo is a binary file. Thanks!
Thanks, I’ll tell Jason about these as well. You can use the hack I gave you to take care of these too. |
|
| Posted: Thursday Jun 13th, 2013 at 6:36 am #51879 | |
|
|
|
|
Yes, I again used the hacks-file. You can just replace the ending and then you can download to po file. |
|
| Posted: Friday Jun 14th, 2013 at 5:27 am #51927 | |
|
|
|
|
Cool. Thanks! |
|
| Posted: Monday Jun 17th, 2013 at 11:54 pm #52061 | |
|
|
|
|
Found the problem, it’s because those entries have the “fuzzy” attribute, so they’re being ignored and the original string used instead. http://www.gnu.org/software/gettext/manual/html_node/Fuzzy-Entries.html Jason updated the documentation in s2Member to warn about these. /s2member/includes/translations/translators.txt
|
|
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.








Pre-Sale FAQs
Video Tutorials
Community Forum
Knowledge Base
News/Updates
s2 Codex / Docs
GPL v2 License
Contact A Human
About Us
Our Customers
Support Policy
Privacy Policy


