Carret
Forum Replies Created
-
Sorry but I think that changes in link “Flag Image Path” not resolve the issue.
Anything that put in flag link will be append after the path “/wp-content/”:
ztranslate.js, line 499:
ce('img', {src: '/wp-content/'+zTranslateConfig.flag_location+zTranslateConfig.flag[lang]}, tabSwitch);I’ve fixed it for me with this:
Add in ztranslate_core.php, after line 915:
echo "<script>var zT_WP_CONTENT_URL=".json_encode(WP_CONTENT_URL).";</script>";And in ztranslate.js, change line 499 to:
ce('img', {src: zT_WP_CONTENT_URL+'/'+zTranslateConfig.flag_location+zTranslateConfig.flag[lang]}, tabSwitch);Forum: Plugins
In reply to: [qTranslate] How to hide a language?Settings -> Languages, and click disable on the language to hide.
Forum: Plugins
In reply to: [Qtranslate Slug] Pagination issue in searchesI’ve tried a bit and it works fine. Thanks you.
Forum: Plugins
In reply to: [qTranslate] Read More LinkForum: Plugins
In reply to: [qTranslate] strange errorForum: Plugins
In reply to: [qTranslate] No links are working!Forum: Plugins
In reply to: [qTranslate] Translate READ MORE linkIf you have languages files: *.mo, *.po,
you can use _e() function, http://codex.wordpress.org/Function_Reference/_eExample:
<a class="read_more" href="<?php the_permalink() ?>"> <?php _e("Read More...","twentyfourteen"); ?> </a>or
the_content( __( 'Continue Reading...', 'theme' ) );Forum: Plugins
In reply to: [qTranslate] CHANGE FLAG SIZEWhen updated, the old plugin is removed.
If you make changes in a plugin’s folder and his files when updated all changes are lost.You can make a folder at plugins’s folder. Example: yoursite/wp-content/plugins/qtranslate_myflags, and set it in qTranslate Advanced Settings -> Flag Image Path
Hi all.
Having colors with alpha channel for transparency would be great.
Can place the form in other places (left, right, up, down) too.Thanks.
I tested with qtranslate in mode “?lang=xx” and seems it work fine.
What is your issue?
Are you using qtranslate Slug too?Forum: Plugins
In reply to: [Qtranslate Slug] Qtranslate slug and searchHi elkiloprieto.
If you did not, you must also add the zelti’s solution:
http://wordpress.org/support/topic/qtranslate-slug-and-search?replies=8#post-4772128That fix the duplicate of language code in the url.
To not modify any file of qtranslate, add this code in functions.php theme file.
remove_filter('get_search_form', 'qtrans_fixSearchForm',0); add_filter('get_search_form', 'qtrans_fixSearchForm_yop', 10, 1); function qtrans_fixSearchForm_yop($form) { //$form = preg_replace('#action="[^"]*"#','action="'.trailingslashit(qtrans_convertURL(get_home_url())).'"',$form); //qtranslate Slug compatibilidad, no duplicar en url idioma /es/es/ al buscar (search) $form = preg_replace('#action="[^"]*"#','action="'.trailingslashit(get_home_url()).'"',$form); return $form; }Saludos.
Maybe this could help you:
http://wordpress.org/support/topic/pagination-issue-with-qtranslate?replies=9#post-4022512I tested this generic solution (not hardcoded).
After the lines:
// If is action not URL then don't use URL! $url = ( $settings['button_x_action'] == "CONSTANT_OPEN_URL" ) ? $settings['button_x_url'] : "#";Insert
if ( function_exists('qtrans_convertURL') ) { $url = qtrans_convertURL($url); }Example:
http://www.test.site.com/privacy is converted to:
http://www.test.site.com/en/privacy
http://www.test.site.com/es/privacyForum: Plugins
In reply to: [Qtranslate Slug] Appearance of selector textLike in
http://wordpress.org/support/topic/appearance-of-selector-text?replies=5#post-4807244just remove the original code for this one:
} else { if ($type == 'text') { $link_class = ''; $link_content = $language_name; } if ($type == 'text-short') { $link_class = ''; $link_content = strtoupper($lang); if ( $index != (count($languages) - 1) ) $link_content .= " |"; } }Use “qts_language_menu(‘text’)” to show “Español Català..”
and “qts_language_menu(‘text-short’)” to show “ES | CA…”Forum: Plugins
In reply to: [Qtranslate Slug] Appearance of selector textYou are welcome. That was easy.
For to have both: “Español Català…” and “ES | CA…”, try this:
After the lines
case 'image': case 'text': case 'both':add
case 'text-short':and put this code instead of the previous:
} else { if ($type == 'text') { $link_class = ''; $link_content = $language_name; } if ($type == 'text-short') { $link_content = strtoupper($lang); if ( $index != (count($languages) - 1) ) $link_content .= " |"; } }Saludos.