• Resolved sixtyseven

    (@sixtyseven)


    Hi from Germany,

    First of all: Your plugin works like a charm and I find it pretty useful. However, there are a whole bunch of hardcoded language strings in the plugin, which makes it pretty hard for my customers to use.

    Could we expect a fully translatable plugin in the future? I gladly chip in the de_DE and the de_DE_formal translations, if needed.

    https://wordpress.org/plugins/wp-team-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sixtyseven

    (@sixtyseven)

    While digging deeper into this problem: I found another issue in inc/customposttype.php!

    You are using a somewhat improper syntax forthe labels. Example:

    'singular_name' => _x( 'Team Member', 'wp-team-manager' ),

    In this case, no translation from the .po file is drawn. You are using the domain as the description. If you really want to add a description for the labels, it should read:

    'singular_name' => _x( 'Team Member', 'WP Team Manager Plugin', 'wp-team-manager' ),

    Or, if that is not needed, you could sipmly replace _x( with __(

    I assume you are running your test site inenglish language, that could be the reason why you have not yet stumbled over this 😉

    Thread Starter sixtyseven

    (@sixtyseven)

    Still looking after the l18n and found another issue: The localization of the metabox is somehow not happening. I double-checked if the proper stings are present in the .po file. Any Ideas about this?

    Sorry to be a menace, but I find your plugin pretty useful and I want to provide it for my customer.

    Thread Starter sixtyseven

    (@sixtyseven)

    And another one: When selecting grid layout in a shorcode, the display will be as list and vice versa. The reason are the wrong named css classes. In tm-styles.css I found the following block:

    .team-list>.grid {
    width: 100%;
    float: left;
    list-style: none;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 20px;
    margin-left: 0px;
    }
    .team-list>.list {
    width: 45%;
    float: left;
    list-style: none;
    border: 1px solid #eee;
    margin-bottom: 20px;
    margin-right: 10px;
    margin-left: 0px;
    padding: 10px;
    -webkit-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    }
    .list .team-member-info {
    width: 100%;
    margin-right: 0;
    text-align: center;
    min-width: 170px;
    float: right;
    }
    .list .team-member-des {
    width: 100%;
    }

    Which should be

    .team-list>.list {
    width: 100%;
    float: left;
    list-style: none;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 20px;
    margin-left: 0px;
    }
    .team-list>.grid {
    width: 45%;
    float: left;
    list-style: none;
    border: 1px solid #eee;
    margin-bottom: 20px;
    margin-right: 10px;
    margin-left: 0px;
    padding: 10px;
    -webkit-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    }
    .grid .team-member-info {
    width: 100%;
    margin-right: 0;
    text-align: center;
    min-width: 170px;
    float: right;
    }
    .grid .team-member-des {
    width: 100%;
    }
    Plugin Author Maidul

    (@maidulcu)

    Hello, I fixed this on new update

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Language strings’ is closed to new replies.