methuvien
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Zerif Lite] Create multilingual siteHi,
After trying I decided to use Polylang as an alternative. The thing is: I can add translations for most sections in apperance/menu or apperance/widget; but when it comes to following items I just can’t find any place to add translation to:
– site tittle and tagline
– general options
– big tittle section
– ribbon section
– subtitles in all sections, even the sections that I can add translation e.g. Our focus, Our team.Anyone who have experience with this Polylang please help!
Thanks in advance,
TrinhForum: Themes and Templates
In reply to: [Zerif Lite] Change section title in child themeHi Calvin,
Thanks your help. However I tried and it didn’t work.
Here is the code in my child theme’s functions.php. Please could you help to have a look and correct me if I’m wrong.
My site is dichthuatmba.com
Many thanks,
Trinh<?php
// Exit if accessed directly
if ( !defined(‘ABSPATH’)) exit;// BEGIN ENQUEUE PARENT ACTION
if (!function_exists(‘chld_thm_cfg_parent_css’)):
function chld_thm_cfg_parent_css() {
wp_enqueue_style(‘chld_thm_cfg_parent’, get_template_directory_uri() . ‘/style.css’);
}
endif;if (!function_exists(‘chld_thm_cfg_parent_css’)):
function chld_thm_cfg_parent_css() {
wp_enqueue_style(‘chld_thm_cfg_parent’, get_template_directory_uri() . ‘/styles.css’);
}
endif;
add_action(‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’);// END ENQUEUE PARENT ACTION
// !AFTER_SETUP_THEME
add_action( ‘after_setup_theme’, ‘zerif_child_after_setup_theme’ );function zerif_child_after_setup_theme() {
// remove the widget created by parent theme
remove_action( ‘widgets_init’, ‘zerif_widgets_init’ );
// add the widget by child theme
add_action(‘widgets_init’, ‘zerif_child_widgets_init’);function zerif_child_widgets_init()
{register_sidebar(array(
‘name’ => __(‘Sidebar’, ‘zerif-lite’),
‘id’ => ‘sidebar-1’,
‘before_widget’ => ‘<aside id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</aside>’,
‘before_title’ => ‘<h1 class=”widget-title”>’,
‘after_title’ => ‘</h1>’,
));
register_sidebar(array(
‘name’ => __(‘Dịch vụ’, ‘zerif-lite’),
‘id’ => ‘sidebar-ourfocus’,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h1 class=”widget-title”>’,
‘after_title’ => ‘</h1>’,
));
register_sidebar(array(
‘name’ => __(‘Đánh giá từ khách hàng’, ‘zerif-lite’),
‘id’ => ‘sidebar-testimonials’,
‘before_widget’ => ‘<aside id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</aside>’,
‘before_title’ => ‘<h1 class=”widget-title”>’,
‘after_title’ => ‘</h1>’,
));
register_sidebar(array(
‘name’ => __(‘Về chúng tôi’, ‘zerif-lite’),
‘id’ => ‘sidebar-aboutus’,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h1 class=”widget-title”>’,
‘after_title’ => ‘</h1>’,
));
register_sidebar(array(
‘name’ => __(‘Đội ngũ’, ‘zerif-lite’),
‘id’ => ‘sidebar-ourteam’,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h1 class=”widget-title”>’,
‘after_title’ => ‘</h1>’,
));
}
}
Hi,
I’m sorry. It works now!!! Thanks very much for your support.Have a nice day,
TrinhHi,
Thanks for your response. I tried but unfortunately it didn’t work.Forum: Themes and Templates
In reply to: [Zerif Lite] Where change language?Hi
When I tried to translate the them using codestyling localization plugin, it did not work. The error notice is as follows:Error: The actual loaded translation content does not match the textdomain: zerif-lite
Expect, that any text you translate will not occure as long as the textdomain is mismatching!
This is a coding issue at the source files you try to translate, please contact the original Author and explain this mismatch.Please can you help me out?
ThanksForum: Plugins
In reply to: [Calculated Fields Form] formula relating to checkboxHi,
Thanks for your advice. It works perfectly in case only one language is selected in the target language checkbox. However, if more than one target language is selected, it cannot sum up the results from each language pair. Do you have any idea about that?
Thank you very much!
Forum: Plugins
In reply to: [Calculated Fields Form] formula relating to checkboxHi,
Thank you very much for the prompt reply. I was really impressed.However, in my first question, I made a little simplification of the real issue in order to get the main idea from you. I am running a translation service site and the problem is a little bit more complicated. Here it is.
I have three input fields:
+ fieldname24: source language, this is a dropdown and customer will choose the source language of the document that needs to be translated.
+ fieldname25: target language, this is a checkbox comprising a list of target languages that customer can choose. Obviously they can choose more than 1 target language.
+ fieldname26: number of words need to be translated, which customer will input into.For each combination of source language and target language, there is a specific price per word. And then the price per word * number of words will return the translation fee.
I compose the formular, the excerp of which is as below (the full language list is quite long and so is the formular), and I am good to go in case ONLY ONE option selected in the target language field. If more than one option is selected, however, I don’t know which function or fuction combination can address this.
if(fieldname24==1&&fieldname25==2){ return (fieldname26*0.08);}if(fieldname24==3&&fieldname25==2){ return (fieldname26*0.12);}
Note: I’m testing with the free version to make sure it can meet my calculation requirement before I go ahead buying the pro-version.
Thank a lot!