Tagged: translation
- This topic has 7 replies, 3 voices, and was last updated 7 years ago by jayen.
-
AuthorPosts
-
March 23, 2016 at 2:24 AM #760jayenParticipant
Where do I go to put in translations for sections of the home page? Anything that is coming from a page seems to work fine, but the strings in customize.php don’t appear to have anywhere to enter a translation.
March 24, 2016 at 10:09 AM #772AnonymousInactiveHello Jayen.
Our theme is fully translation ready. You can find the required file in languages > bizlight.pot. For translation, there are so many WordPress plugin or editor available.
Regards.
eVision ThemesMarch 30, 2016 at 2:41 AM #775jayenParticipantI see this in the bizlight.pot file:
#: inc/customizer/home-options/about/about-options.php:32 #: inc/customizer/home-options/home-blog.php:30 #: inc/customizer/home-options/home-featured.php:26 #: inc/customizer/home-options/service/service-options.php:31 msgid "Main Title" msgstr ""
What I am looking for is a way to translate the title, not the message “Main Title”.
I am using polylang plugin, but it only seems to work for pages/posts, not for entries in customize.php .
I will ask the plugin author, but I thought a “fully translation ready” theme would allow me to translate these things in the theme.
March 31, 2016 at 6:55 AM #777AnonymousInactiveHello Jayen,
Yes! Our theme allows to translate every text we escaping in Theme. We like to recommend Loco Translate plugin, which is available at wordpress.org.
URL: https://wordpress.org/plugins/loco-translate/.Hoping it will work!
Regards,
eVision ThemesMarch 31, 2016 at 6:58 AM #779jayenParticipantThanks. We already managed to work this out with polylang by adding this code to bizlight_get_all_options:
// added by jayen if (function_exists('pll_register_string')) foreach ($bizlight_customizer_saved_values as $key => $value) { pll_register_string($key, $value, 'bizlight'); $bizlight_customizer_saved_values[$key] = pll__($value); }
March 31, 2016 at 7:14 AM #780AnonymousInactiveHi,
Great to hear your problem was solved. If you have any further queries, don’t hesitate to contact us or post. Thanks.
Regards,
eVision ThemesDecember 12, 2017 at 11:37 AM #7687inesParticipantJayen,
Sorry, but where or in which file i add this code?
// added by jayen
if (function_exists(‘pll_register_string’))
foreach ($bizlight_customizer_saved_values as $key => $value) {
pll_register_string($key, $value, ‘bizlight’);
$bizlight_customizer_saved_values[$key] = pll__($value);
}December 13, 2017 at 4:48 AM #7711jayenParticipantadd that code to
bizlight_get_all_options
ininc/customizer/customizer.php
-
AuthorPosts
- You must be logged in to reply to this topic.