string translation
-
I am trying to set the transaltions for some strings.
I use this in the functions.php
`function your_prefix_after_setup_theme() {
if ( function_exists( ‘pll_register_string’ ) ) {
pll_register_string(‘per_night’, ‘per night’,’LakeGarda’,false);
pll_register_string(‘persons’, ‘persons’,’LakeGarda’,false);
pll_register_string(‘balcony’, ‘balcony’,’LakeGarda’,false);
pll_register_string(‘double’, ‘double’,’LakeGarda’,false);
pll_register_string(‘daily_cleaning’, ‘daily cleaning’,’LakeGarda’,false);
}
}`
add_action( ‘after_setup_theme’, ‘your_prefix_after_setup_theme’ );But in the string translation page, anytime i set the translation for a string and click SaveChanges it reloads the page showing me the old string value without translation; it seems like it doesn’t save the modification
The page I need help with: [log in to see the link]
- The topic ‘string translation’ is closed to new replies.