Skip to content

gettext #4

@sixtyseven-multimedia

Description

@sixtyseven-multimedia

I probably found a little issue:

add_settings_error( $this->page, 'settings_reset', __( 'Default settings have been reset.' ), 'updated' );

shouldn't this be

add_settings_error( $this->page, 'settings_reset', __( 'Default settings have been reset.', 'wm-settings' ), 'updated' );

or does the translation come from the wordpress core?

And while talking about this, could you give me a hint, how to get the language properly loaded into the gettext context? I assume, I create the .po and .mo files and place them in my plugins language folder. But what's next? load_textdomain ('wm-settings','path to proper .mo') ? How do I create the name of the .mo, i.e. wm-settings-de_DE.mo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions