How to internationalize the sub menu name “categories” in Custom post type?
How to internationalize the sub menu name “categories” in Custom post type?
How to internationalize the sub menu name “categories” in Custom post type?
If anyone is looking for a solution, here is a way (probably not the better one) to achieve it: add_filter(‘widget_text’, ‘filtering_form_labels’); function filtering_form_labels($html) { if ( ICL_LANGUAGE_CODE==’en’ ) {/*ICL_LANGUAGE_CODE used in WPML to know the active language*/ $esp = array(‘Nombre’, ‘Apellidos’, ‘Suscribirse’); /*Array with words to be replaced*/ $eng = array(‘First Name’, ‘Last Name’, ‘Subscribe’); … Read more
Just as any regular string, you can use <?php esc_attr_e( ‘Your Search term here’, ‘your_theme_slug’ ); ?> So your code for the <input> would look like <input type=”search” class=”search-field” placeholder=”<?php esc_attr_e( ‘Your Search term here’, ‘your_theme_slug’ ); ?>” value=”<?php echo esc_attr( $search ); ?>” name=”s”> WPML, as well as WordPress, uses the PHP get_text() function. … Read more
The actual code is <?php /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( ”, __( ‘, ‘, ‘timo’ ) ); if ( $tags_list ) : ?> <span class=”tags-links”> <?php printf( __( ‘Tagged %1$s’, ‘timo’ ), $tags_list ); ?> </span> <?php endif; // End if $tags_list ?> … Read more
I think what you want is rather easy… check out the wp_login_form function. You could use it in a page template for example.
Localize tinymce in WordPress 3.9?
Tweak the loop for translation
Language & translation
You can not translated dynamic strings with he translation API, you can translate only static strings that you know in advance.
In wp-includes/l10n.php you will find the function get_locale(). It offers a filter; you can set the language and ignore the constant: function get_locale() { global $locale; if ( isset( $locale ) ) return apply_filters( ‘locale’, $locale ); // WPLANG is defined in wp-config. if ( defined( ‘WPLANG’ ) ) $locale = WPLANG; // If multisite, … Read more