Home › Forums › Mikmag WordPress theme › Missing translation options in .po and two bugs (write comment and shortcodes)
- This topic has 1 reply, 3 voices, and was last updated 12 years, 5 months ago by Ralf Neugebauer.
-
AuthorPosts
-
-
at #7486Ralf NeugebauerMember
Hi,
it seems that your ticket system isn’t implemented yet, but I have a few serious problems (in response to my [TICKET:004232] No translation possible):
Translation now works with 1.2, I saw that there’s a new folder called “languages” (in the past there was only the folder “lang” available), I uploaded my .mo and .po files for de_DE and now it works!
But there are some missing strings in the .po file of Mikmag, for example “You must login to post a comment” (also parts like “You must” are not within the file). The same with “Related Items”, please see this screenshot:
Also some other strings are not translatable because they are not within the Mikmag .po file, but it’s possible for another reason (because they are embedded in buttons or labels), for example “Read more” or “no comments” – see screenshot at http://www.evernote.com/shard/s1/sh/3ad24eda-57e5-4f3d-a597-a04e44504641/7adc1c8402ed8c597f8be5c9453c02a7
And – unfortunately – there’s a bug while sending comments to posts: I can’t send the comment, the send comment button (“Kommentar absenden”) is klickable but the form is not transferred, the page doesn’t change.
Screenshot:
And a second bug:
I can’t use and render other shortcodes than the codes from the Mikmag theme. If I use other shortcodes (for example “gallery”) I see only the short code syntax text, but it’s not rendered. Can you please fix this?Thanks and bye
RalfPlease help me!
Thanks and bye
Ralf
-
at #7490Ralf NeugebauerMember
Hi theme-dutch,
I get a hint from the developer of “styles with shortcodes”, he looked at my site because other shortcodes than the shortcodes of Mikmag doesn’t render (see post above). Maybe this could help to fix this problem in the next update. He wrote:
Hi,
We modified a theme file and the shortcodes now work. You can download the original file from this url: http://cloud.righthere.com/code/412L2t3M3M2f The file location is at folder /wp-content/themes/Mikmag/core/shortcodes
The change was at line 48: add_filter( ‘the_content’, ‘core_prerun_shortcode’, 7 ); replaced with //add_filter( ‘the_content’, ‘core_prerun_shortcode’, 7 );
This is related to wpautop affecting how the theme shortcodes are rendered.
technical: However i suspect this is a bug related to the latest php where objects are copied by reference.
Anyway, if you get to talk to the theme author point him to that file and tell him that: $orig_shortcode_tags = $shortcode_tags; $shortcode_tags = array(); is not working on the latest php versions because when he empties the $shortcode_tags, the $orig_shortcode_tags seems to be emptied too. but he probably already knows that.
Best regards, Alberto Lau.
---------------------------------------------
The file is:
/wp-content/themes/Mikmag/core/shortcodes/shortcodes.php
and the problem is related to: copying php objects in the latest php version. line 15 of this file $shortcode_tags = array(); if effectively removing all shortcodes.
---------------------------------------------
file: shortcode.php
Bye
Ralf
-
at #7492Ralf NeugebauerMember
A short addition: The comment problem was solved, it depended on the Jetpack plugin, I deactivated it and now the comments are working.
Now are only the following questions open:
How can I translate some strings not in .po file (for example “related items)?
How can I translate some strings not in .po file and arranged in buttons (for example “comments”)
(Pelase see the screenshots in my first post.)And because I possibly don’t want to allow comments at my articles/ posts, how can I deactivate the label “xxx comments” from the pos (see screenshot http://www.evernote.com/shard/s1/sh/70ff648e-6c87-4aec-a653-d714d4d10a5d/0ff6590b59a57e7b95ae319ba011493f).
Thanks and bye
Ralf
-
at #7495AnonymousInactive
Hi Ralf,
We will be fixing the language translation problem on the next update.
Regarding the “xxx comments”: You can check out loop-single.php and delete line 33 to line 35. Also in loop-exceprts.php and delete line 61 to line 63
Le
-
at #7496Ralf NeugebauerMember
Hi Le,
thanks for your fast answer! Can you say something about the estimate time when the next update will come (in days, wekks or months)?
Bye
Ralf
-
at #7503adminKeymaster
Hi Ralf,
Max 2 weeks but maybe sooner.
But you change those two words for now. Just do a search for those words for example with Dreamweaver, and translate the words. -
at #7527Ralf NeugebauerMember
OK, thanks. I guess I’ll waiting for the next update 😉
-
-
AuthorPosts
- The topic ‘Missing translation options in .po and two bugs (write comment and shortcodes)’ is closed to new replies.