CodeStyling Localization and layout

7.14K viewsWordPress
0

Hi,
How are you?
I’m looking to translate the template’s text via CodeStyling Localization and I’m getting two errors:
1. Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that.
2. Error: The actual loaded translation content does not match the textdomain: anspress-question-answer
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.

Also, how can use the nice layout you have on http://anspress.io/questions/ ?

I’ll be glad to donate to this great plugin.

Thanks,
Eran

I have similar problem. Code style localization plugin shows an error:

Error: The actual loaded translation content does not match the textdomain: ap
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.

I checked – I changed some translations in ap-ru_RU.po but it does not change translation in my interface.

In code you use .__(‘ans’, ‘ap’) but CodeStyleLocalization says that in .po file default text domain. Maybe something wrong with .po files? I do not know yet where .po file keeps textdomains list and how to see it and change.

I will update it to load_plugin_textdomain

1

Welcome Eran,
#1 may be a bug, I will check it and let you know.
#2 I am not using anspress-question-answer as text domain as you can see its too long but WP have solution for it, you can set your own text domain. So I have registered ap as a text domain.
Please tell me which service or script you are using for CodeStyling ? I will check that too.

Wp3 theme is for old version and it have many bugs, I am working on a new theme which will be ready before end of this month.

Donations are always welcome. We are creating some extensions for AnsPress which will be distributed only to our donators.

You are viewing 1 out of 3 answers, click here to view all answers.