Missing Translations

Support MB Group Missing Translations

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #48335
    pluginovenpluginoven
    Participant

    While trying to figure out why the confirmation message for removing a cloned group was not being translated I ran across this thread.

    After digging into the source for meta-box-group I found the following issues.
    1. there is no .pot language file for translation
    2. the only .po file delivered was for pt-BR, provided by WPML
    3. the new confirmation message from the update mentioned in the thread above is not included in the WPML .po file
    4. the meta-box-group language domain is not even defined or being loaded in the plugin.

    I would be happy to submit a pull request with the missing .pot file, a german translation, and the patched meta-box-group.php that loads the text domain.

    regardless, I have included my patch below:
    user_meta_boxes.php

    
    ...
     * Text Domain: meta-box-group
     * Domain Path: /languages
     * License:     GPL2+
    ...
    
    public function __construct() {
    ...
    			add_action( 'init', [ $this, 'load_textdomain' ] );
    ...
    		}
    ...
    public function load_textdomain() {
    			load_plugin_textdomain( 'meta-box-group', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    		}
    ...

    Missing de_DE_formal Translation:

    # group-field.php 49
    msgid "Are you sure you want to remove %s?"
    msgstr "Sind Sie sicher, dass Sie %s entfernen möchten?"
    #48337
    PeterPeter
    Moderator

    Hello,

    Thank you for your contribution.

    The text Are you sure you want to remove %s? is ready for translation by using the gettext function of WordPress. You can use a translation plugin like Loco Translate to scan texts in the plugin and translate them as well.

    Let me know if it helps.

    #48340
    pluginovenpluginoven
    Participant

    wow..

    The Text Domain needs to be added to the plugin header.

    Maybe this helps?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.