• Using WP 4.0.1, Customizr 3.2.8 child theme.
    Verified translations exists in .po/.mo files on mother theme. (inc/lang/…)
    1. “entry posted … on … by …” does not pick the translation.
    2. “Recently Updated” does not appear in .pot file

    Source code modification of class-content-post_metas.php
    did the (temporary) trick.

    Please advise
    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author presscustomizr

    (@nikeo)

    Hi, those translations string will be updated in the coming days.
    The Customizr translations are handled by a distributed team of volunteer translators. There are cases unfortunately where I can’t coordinate the theme releases with the translation updates.

    Thanks for your understanding and stay tuned!

    Hi Sir,
    In the article “Remove Post Meta Details” the author explains how to change default english text, but the instructions seem to be outdated; the code that is suggested doesn’t work…

    //Change meta text
    add_filter('tc_meta_utility_text', 'rdc_meta_utility_text');
    function rdc_meta_utility_text($output) {
    // CHANGE TO DEFAULT TEXT IF NON-ENGLISH LANGUAGE
    $oldentry1      =   'This entry ';
    $oldposted1     =   'was posted in ';
    $oldposted2     =   'was posted on ';
    $oldtagged1     =   'and tagged ';
    $olddate1       =   'on ';
    $oldby1         =   'by ';
    $oldfullstop    =   '.';
    // CHANGE TO DEFAULT TEXT IF NON-ENGLISH LANGUAGE
    
    // Edit this wording to your needs, to remove completely use ''
    $newentry1      =   'This entry ';
    $newposted1     =   'was posted in ';   // Category
    $newposted2     =   'was posted on ';
    $newtagged1     =   'and tagged ';      // Tag
    $newdate1       =   'on ';              // Date
    $newby1         =   'by ';              // Author
    $newfullstop    =   '.';
    // Edit above wording only
    
        return str_replace(array(
            $oldentry1, $oldposted1, $oldposted2, $oldtagged1, $olddate1, $oldby1, $oldfullstop
        ), array(
            $newentry1, $newposted1, $newposted2, $newtagged1, $newdate1, $newby1, $newfullstop
        ), $output);
    }

    Maybe the variables $oldentry1, $oldposted1, $oldposted2, $oldtagged1 etc. are changed…? is it possible? Can you tell me what’s wrong? Thanks for your help and your great job!

    Looks like code changed in 3.2.6 so I’ll need to revise that snippet. Thanks for pointing it out.

    It’s fixed. @d4z pointed out a missing priority on this line:
    add_filter('tc_meta_utility_text', 'rdc_meta_utility_text', 15);

    Hi Rdellconsulting,
    Firstly, thanks for your attention; I’ve done what you suggested but nothing, I can’t change the default english text before the post’s date…

    I’ve just tested it again and it works for me. Which text precisely?

    This is the piece of code that I have added to my theme-child’s function.php:

    add_filter('tc_meta_utility_text', 'rdc_meta_utility_text', 15);
    function rdc_meta_utility_text($output) {
    // CHANGE TO DEFAULT TEXT IF NON-ENGLISH LANGUAGE
    $oldentry1      =   'Articolo ';
    $oldposted1     =   'pubblicato in ';
    $oldposted2     =   'pubblicato il ';
    $oldtagged1     =   'and tagged ';
    $olddate1       =   'il ';
    $oldby1         =   'da ';
    $oldfullstop    =   '.';
    // CHANGE TO DEFAULT TEXT IF NON-ENGLISH LANGUAGE
    
    // Edit this wording to your needs, to remove completely use ''
    $newentry1      =   'Articolo ';
    $newposted1     =   'pubblicato in ';   // Category
    $newposted2     =   'pubblicato il ';
    $newtagged1     =   'and tagged ';      // Tag
    $newdate1       =   'il ';              // Date
    $newby1         =   'da ';              // Author
    $newfullstop    =   '.';
    // Edit above wording only
    
        return str_replace(array(
            $oldentry1, $oldposted1, $oldposted2, $oldtagged1, $olddate1, $oldby1, $oldfullstop
        ), array(
            $newentry1, $newposted1, $newposted2, $newtagged1, $newdate1, $newby1, $newfullstop
        ), $output);
    }

    Before this I’ve added other filters that work fine…

    OK, but what your code is doing is changing xxx to xxx, ie not changing anything!

    The point of the snippet is to change the standard text ($oldxxx) to non-standard text ($newxxx)

    To experiment, change $newentry1 to ‘XXXXX’ and you should see what I mean.

    Oh my god, what kind of stupid am I? Finally, I’ve understood what you say, and it is so logic…. thanks very much for your patience!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘No translation for Post Meta Data (2 Issues)’ is closed to new replies.