latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

translation front end

Home Forums Community Forum Translations translation front end

This topic contains 17 replies, has 5 voices. Last updated by  DHCS 3 years, 9 months ago.

Topic Author Topic
Posted: Friday Apr 20th, 2012 at 4:38 am #11344
kati
Username: hifidunn

Here
http://www.s2member.com/faqs/#s2-faqs-translations
you write:

Quick Tip: If you only need to translate the front-end of s2Member®, please ignore entries in the s2member.pot file with a context matching s2member-admin. Those sections of s2Member® are only seen by site Administrators; they are NOT used in s2Member’s front-end integration with WordPress®. Skipping over translation entries with a context matching s2member-admin can save you time.

Can you see this some way or do you just have to try to guess it?

  • This topic was modified 4 years, 8 months ago by  Cristián Lávaque. Reason: Moved to the Translations forum

List Of Topic Replies

Viewing 17 replies - 1 through 17 (of 17 total)
Author Replies
Author Replies
Posted: Saturday Apr 21st, 2012 at 7:15 am #11491

Can you see this some way or do you just have to try to guess it?

Hi Kati. Could you explain what you mean? Thanks!

Posted: Monday Apr 23rd, 2012 at 3:14 am #11583
kati
Username: hifidunn

If I only want to translate frontend (which is what I want) I should ignore entries matching admin. How do I know what is the admin part? Is this marked in some way or how do I know what is the admin part?

Posted: Monday Apr 23rd, 2012 at 3:24 am #11584

Oh, you’d recognize them. The front end strings are actually few.

Posted: Monday Apr 23rd, 2012 at 5:41 pm #11639

Hi Kati

Just a tip from me.
Hf you havent used it before, use the plugin Codestyling Localization to translate the front-end strings. Its free and its a must have…

Link to plugin: http://wordpress.org/extend/plugins/codestyling-localization/

Link to screenshot when i translate S2 Member: https://www.dropbox.com/s/vcs9bgq3x832773/codestyling-localization-s2member.png

Link to review: http://wpengineer.com/750/plugin-review-codestyling-localization/

Link to tutorial: http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en

Good luck.

Hey support guys. It would be great if you could set up a repo of localizationfiles. Then the community could translate S2 to more languages. A great way to add value to the product.
WordPress solution:http://blog.glotpress.org/
Read this post by Yast in the subject: http://yoast.com/translate-yoast-plugins/
Pagelines setup: http://www.pagelines.com/translation-localization-center/

Posted: Monday Apr 23rd, 2012 at 6:47 pm #11645

Torbjörn, that looks brilliant! Thank you so much for the tip! :D

Yes, we’re planning to create a repo for localization files soon. We want to finish the new generation of s2Member first and then we’ll be updating the site to have that repo too. In the meantime we created the translations forum so users could share their files there.

* I’m going to move this thread there.

Posted: Tuesday Apr 24th, 2012 at 8:19 am #11674
kati
Username: hifidunn

Fantastic. This is so much easier than using poedit. Tak Torbjorn!

Posted: Tuesday Apr 24th, 2012 at 10:17 am #11689
Staff Member
Thanks for that tip. We’ve added a note here in our FAQs regarding this helpful plugin.
http://www.s2member.com/faqs/#s2-faqs-translations
Posted: Tuesday Apr 24th, 2012 at 10:31 am #11693

Great! Always happy to share tips to the community. Could you please have a look at my redirection problem in my other topic. Its driving me crazy.

Posted: Thursday Jan 31st, 2013 at 4:09 pm #40199
DHCS
Username: dhcs

Hi!
Tried to translate the file with poedit, which was fine if I translated it all in once (which I didn’t and don’t want to start over from zero). Got an error. Then found this post and was happy to see that Codestyling Localization works great on all the plugins except for s2member.
Is the (my) pot-file corrupted/what can I do??

Getting this error:

Error: The actual loaded translation content does not match the textdomain: s2member
Expect, that any text you translate will not occure as long as the textdomain is mismatching!
This is a coding issue at the source files you try to translate, please contact the original Author and explain this mismatch.

Warning: The actual loaded translation content contains mixed textdomains and is not pure translateable within one textdomain.
It seems, that there is code contained extracted out of other plugins, themes or widgets and used by copy & paste inside some source files.
The affected unknown textdomains are: ?

Posted: Thursday Feb 28th, 2013 at 8:14 am #43402
DHCS
Username: dhcs

Any chance I could get a reply on this one? Please?

Posted: Thursday Feb 28th, 2013 at 8:25 am #43403

Hi DHCS.

Sorry, I had not seen your post before.

Do you have the latest version of s2Member installed?

I haven’t used Codestyling Localization myself. I wonder if there’s a conflict with another plugin causing that error you got…

In your current installation, or a new one for this test, could you have just s2Member active and try the translation again to see if you get the error?

Posted: Wednesday Mar 6th, 2013 at 5:09 pm #43904
DHCS
Username: dhcs

I hadn’t seen the reply in my mailbox:-)
I deactivated all other plugins, i changed the theme and still the same errors.
I found one extra error though connected to s2member which was there before but didn’t see it:

PHP runtime error reporting detected !
Reason: some executed PHP code is not written proper | Originator: onbekend (probably by Theme or Plugin)
Below listed error reports has been traced and removed during page creation:

NOTICE Error: [8] Undefined variable: cache_needs_updating /home/dhcs/public_html/wp-content/plugins/s2member/includes/classes/cache.inc.php on line 94

Posted: Saturday Mar 9th, 2013 at 9:00 am #44148
DHCS
Username: dhcs

Tried to find an answer myself but instead I ended up with more people having the same issue asking YOU about it without getting an answer either. Would be great if you could get this fixed asap.

See same questions in following topics:
http://www.s2member.com/forums/topic/customized-e-mail-when-manual-level-change/
http://wordpress.org/support/topic/translate-form-labels
http://www.s2member.com/forums/topic/unable-to-translate-form-labels/

It seems to be more than just my problem.

Posted: Thursday Mar 14th, 2013 at 5:26 pm #44649
DHCS
Username: dhcs

Anyone?

Posted: Thursday Mar 21st, 2013 at 3:26 pm #45382
DHCS
Username: dhcs

If you don’t know the answer, I’d like to know that too… right now I’m getting quite frustrated as I cannot possibly translate the whole file in one as I don’t have the time for that. I’m not the only one having this problem doing it in a different language.

Posted: Tuesday Mar 26th, 2013 at 5:35 am #45706

I hadn’t seen the reply in my mailbox:-)
I deactivated all other plugins, i changed the theme and still the same errors.
I found one extra error though connected to s2member which was there before but didn’t see it:

PHP runtime error reporting detected !
Reason: some executed PHP code is not written proper | Originator: onbekend (probably by Theme or Plugin)
Below listed error reports has been traced and removed during page creation:

NOTICE Error: [8] Undefined variable: cache_needs_updating /home/dhcs/public_html/wp-content/plugins/s2member/includes/classes/cache.inc.php on line 94

Do you have that error in a clean installation of WordPress with just s2Member? I’m not getting that in my installation.

If you have [hilite mono]WP_DEBUG[/hilite] enabled, then you’ll see warnings for undefined variables in s2Member that won’t prevent it from working, but not errors. http://codex.wordpress.org/WP_DEBUG

Knowledge Base » Common Troubleshooting Tips

Getting this error:

Error: The actual loaded translation content does not match the textdomain: s2member
Expect, that any text you translate will not occure as long as the textdomain is mismatching!
This is a coding issue at the source files you try to translate, please contact the original Author and explain this mismatch.

Warning: The actual loaded translation content contains mixed textdomains and is not pure translateable within one textdomain.
It seems, that there is code contained extracted out of other plugins, themes or widgets and used by copy & paste inside some source files.
The affected unknown textdomains are: ?

Where did you get this error? As far as I know, all the s2Member strings have the domain “s2member”.

Could you tell me how to reproduce that error so I can see where it’s happening?

Posted: Tuesday Mar 26th, 2013 at 8:26 am #45733
DHCS
Username: dhcs

Both errors I’m getting when trying to translate with Codestyling Localization plugin. Even when I deactivated all other plugins.
Yesterday I downloaded the latest files on your site again and tried to translate the .pot-file with Poedit. Getting errors there still, so this is totally apart from WordPress.
I did get a file out though (both a .mo and .po) which seemed to be totally ignored when I put it in the same directory as the .pot-file (don’t have the files here, but naming it s2member-nl_NL.po/mo or whatever it should be called, I checked so I would have the name right anyway).
Did a new translation with Poedit for just “remember me” which is in the s2 widget, and nothing.

Codestyling Localization is happily translating all the other (few) plugins I have without problems except for s2member which gives all errors as stated in your post above.

As all other plugins seem to take the Dutch files, I presume the s2member should also take the Dutch files.

The only thing I can think of now is that I use the wrong name for the .mo/.po files but Codestyling Localization generated the file with a name which I then presume is right. After creating it, it refuses to open it because of the errors described above.

So when you say that you could not reproduce the errors, do you mean you have Codestyling Localization installed och checked it there?

I have a Dutch version of WordPress, so no “clean-standard, english” install, but this still doesn’t explain the errors I’m getting from Poedit.

Amen

Viewing 17 replies - 1 through 17 (of 17 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.