How to localize built-in strings in a future-proof manner?

i think you need the gettext filter. lifted directly from the codex, here is an example: add_filter( ‘gettext’, ‘theme_change_comment_field_names’, 20, 3 ); /** * Change comment form default field names. * * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function theme_change_comment_field_names( $translated_text, $text, $domain ) { if ( is_singular() ) { switch ( $translated_text ) { case ‘Name’ : … Read more

wordpress localization extending

If dont use the strings inside the theme or plugin the function for localisation, then it is not possible to add this to the mo/po file. You must change the source of the theme or plugin. But used the theme or plugin the functions, than parse the source via plugin or desktop tools to add … Read more

Localization Problem: Doesn’t Display Translated Words

First make sure the language file is found. In your development environment (and only there!) add the following code: $path = plugin_dir_path( __FILE__ ) . ‘lang’; $loaded = load_plugin_textdomain( ‘LSample’, false, dirname( $path ); if ( ! $loaded ) { print “File not found: $path”; exit; } Then … I would use lowercase text domains … Read more

Localise settings section headline

Localize the headings in your initial array: $sections = array( ‘notifcations’ => __( ‘Notifications’, ‘your_text_domain’ ), ‘updates’ => __( ‘Updates’, ‘your_text_domain’ ) ); foreach ($sections as $section => $header ) { add_settings_section( $section .’_section’, $header, array( $this, ‘disable_callback_warnings’ ), ‘sgnc’ ); }

Prevent Company Name From Translating

In your example, the company name will not be translated. However, you should at least make it possible to write the name in the native alphabet. Latin letters look really odd in some other alphabets. There is also a legal issue: in some countries it is not allowed to use capital letters for anything but … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)