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

Hi,
Thanks a lot for commenting.
1. I’m not sure how to answer your question, I simply use the plugin at: http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en – is there any setting I need to modify in order to translate the plugin?
2. Thanks, where can I find a donation button?
3. I’m about to pay someone for an RTL conversion. Would you like me to share it with you when he’s done?
4. As for the template, you can be inspired from DW Question Answer – They have a nice layout for the questions page 🙂
5. Can I change the questions’ page permalink from “/anspress_title/” ?

Thanks again!

Eran

About #5, go to the Page edit of your base page and change the permalink to whatever you want. Then you may need to redone the menu with anspress and everything related and also maybe REsave the WP Permalinks once.

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