PO/MO files’ content depends on the theme/plugin developer. So you bought a half-ready theme… One way is translate strings in php files, but with this you loose the chance to update that, because updates will overwrite your changes.
I suggest you: translate the strings with po/mo, than send the updated files to the developer too, so maybe the next theme’s version will contain your languages and changes too.
To translate string, use __('[STRING]', '[TEXTDOMAIN]')
, for example you see a “Sidebar” string, then change that in php something similar: <?php __('Sidebar', 'mythemetextdomain'); ?>
, than add to po:
msgid "Sidebar"
msgstr "SlovakianSidebarName"
Your theme’s text domain maybe in the style.css header.
Related Posts:
- Override parent theme translation on child theme
- Do Child-Themes automatically load the Translation from the Parent-Theme?
- Best location for theme translation files
- Override parent theme translation on child theme
- How to tell a theme to use different .mo and .po files?
- Translated my theme (translation not showing up)
- variables in translatable text
- Inconsistent translation on a WP site
- How to put a Worpdpress theme in spanish (having the po file)?
- translation does not work for ‘Home’
- Translation not working after editing plugin template
- How to translate a string that contains a WordPress sitename
- Where do I find (free) fully-internationalized themes? [closed]
- WordPress Baskerville 2 translation
- Unable to find translations in WordPress theme
- How can I change the prev / next buttons text to Dutch?
- Theme Translation?
- Theme translates the_author_posts_link. How can I remove their translation?
- Theme translation not working
- How to use my .mo file in the Divi child theme instead of file in a parent /builder directory?
- load language file
- My theme is not translated
- “Unexpected error” on update requests
- How to prevent plugin, theme installation failures on WordPress?
- A minimalistic admin theme for a WP 3 install
- How can I develop a new theme in WordPress without disrupting the current site
- Move custom code out of theme’s functions.php file
- Error message “The page you are looking for is temporarily unavailable.” after editing a file [closed]
- A hook that runs only when the theme is previewed
- WordPress theme with multiple color schemes
- Two Navigation Menus – secondary nav is including main nav
- Themes—Child Themes
- Protect changes made to the theme when updating
- When can changing a theme damage a website?
- My scripts-bundle.js file is getting sent to the browser as a stylesheet css file. Help!
- Load a different theme for IE less than 9
- Theme Check reporting an incorrect theme slug and text domain
- Style the archives/category sidebar widget via theme
- I get the following message The uploaded file could not be moved to /home/reascom/public_html/wp-content/uploads/2012/07 [closed]
- Custom CSS doesn’t work in edit mode
- Remove transparancy in Sydney theme’s headerimage
- Port existing Bootstrap site to WordPress?
- stylesheet is not readable error after installation
- Updating / Transferring site
- Putting two themes together to create a complete site
- How to dynamically change theme’s slogan from admin?
- Icons not showing [closed]
- Adding Sidebars in WordPress Theme
- Error 404 for JQuery import “jquery-1.10.2.min.map”
- Passing dynamic options from backend to frontend
- Using the same database on another Subdomain
- WP HTML Templates – Any way to get bloginfo() or the path to the theme folder?
- How to add more default colors?
- On a Https site, Css and Js Url are back to http after redirect the site
- Theme folder doesnt exist
- WordPress activate theme error $pagenow
- Increase content area width in TwentyFourteen [closed]
- Undefined variable error in theme option after updating theme [closed]
- Comments not displaying after changing theme
- Two column layout in WordPress?
- List of categories instead of dropdown menu selector in admin options
- WordPress doesn’t recognise created theme
- How can I show some standard html code across any theme I install?
- Losing theme customization when switching from a theme to a child
- Problem of not changing the front and bottom of the Woodmart template by activating the really simple ssl pro plugin in WordPress
- Please help me clear my confusions about WordPress
- Why does an ad page open when I browse my websites’s wp-admin page?
- What is the correct way to set up a staging server and use github for version control?
- How do I use the default style for widget?
- WordPress fails to embed video URL on specific theme
- Unable to set social icons using Advance Portfolio Theme
- How can I theme or style the lost password page without a plugin?
- How to implement theme option to change bootstrap 4 container from .container to .container-fluid
- how make wp include urls as https?
- how to costume title single page
- use a Thumbnail size in post
- Why does WordPress Editor Only Use Half the Box?
- Installing Theme from uploaded file. Not uploaded theme?
- Where can I find a theme that has a big banner
- WordPress theme not updating in Other browsers
- WP-CLI wp theme install url PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
- Site broken after deleting inactive themes [closed]
- Can i add wordpress editor to my custom theme option? [closed]
- Custom theme being prompted for update because of similarly named theme
- the_content doesn’t return tags
- Revamping a WordPress mirror site – and I don’t know where to start!
- Meta title W3C Validation Error with
- Can I add a blog subfolder to my website and use a different theme
- How do you make your theme Child Theme-able? [duplicate]
- How to modify/ customise NextGen Gallery’s templates? [closed]
- How to know which theme are we using in wordpress and change the content as well? [closed]
- Basic clothing showroom [closed]
- How to add breadcrumbs to any WordPress theme
- Custom WordPress Does Not Display Anything But Background in IE [closed]
- Two types of layout in woocommerce SHOP page [closed]
- How to include a new file in theme
- How to have a WordPress user profile just having one button and one input textbox?
- File execution order
- How to add color icons to front of custom block color palettes
- Custom Theme Additonal CSS “” are transformed to “>” and “<”