I´m using this code to get translated my themes:
add_action('after_setup_theme', 'my_theme_setup');
function my_theme_setup(){
load_theme_textdomain('lc_realty', get_template_directory() . '/languages');
}
the files are named ru_RU.mo and ru_RU.po I have no problems with this code on versions 3.3.1 to 3.8.3 I will upgrade to 4.0 soon son I hope this continue working well.
Also I have this code to translate the plugins in admin panel
this code goes inside the functions setup of the plugin
if ( is_admin() )
load_plugin_textdomain( 'myslider', false, 'myslider/languages' );
Related Posts:
- How to detect WP plugins used on a site
- Using WordPress as a CMS: Developer preferences for custom vs existing plugins
- Login with OpenID, similar to Stack Exchange sites?
- Preserve custom URL parameter on more pages
- Sort plugins by rating
- Why do I get this “plugin does not have a valid header” error?
- WordPress Capabilities: edit_user vs edit_users
- Passing .pem and .key files in cURL doesn’t work in WordPress
- Is there a limit on the size of a WP page?
- A Blog’s changelog
- Adding a widget programmatically
- How to restrict Front-End Editor on a page?
- How do I create a custom wordpress slideshow plugin?
- Updating a WordPress plugins breaks SVN
- Fastest way to loop through all posts?
- Is there a way to share content amongst wordpress sites
- Insert code after tag without using functions.php?
- Extend the Admin Post/Edit page
- Offering Ads Dependent on Visitor Type?
- Licensing of freemium plugin
- Can I store WordPress media in different sub-folders?
- AddFilter option_active_plugins is executed 6 times. Why?
- Include Max mega menu Plugin into theme
- How to remove all javascript in a theme wordpress?
- Default Plugin Settings Not Writing to Database
- Create a custom page template inside my wordpress plugin
- Add form fields dynamically on button click
- Custom Post Type Plugin not loading category template and loading 404 instead
- WP plugins for building a database?
- Change the method of a class from child function.php
- Create digital-virtual-downloadable WooCommerce products from the frontend using Gravity Forms? [closed]
- Is it possible to add a sidebar in a woocommerce hook?
- wordpress site | All-in-one-cufon IE Issue
- How to send an automated email to the customers when product is added woocommerce
- Trying to Get Text Field to Save
- How to insert HTML/JavaScript form into WordPress page? [closed]
- How to add FB like + share AND also other Social Buttons on ALL pages and posts?
- file-gallery plugin line 1573 broken in 4.2 upgrade [closed]
- How do I use wp_editor() in widget form?
- PHP Error When a plugin is active
- Errors when trying to use a plugin to write to the database
- Completely disabling password reset/recovery
- How to load different homepage on Mobile.?
- WordPress REST API Plugin Development – Add Custom Endpoint
- how to prevent all css and javascripts files from loading
- Best way to count visitors?
- WPTouch – how to remove shortcodes or make shortcodes function
- Adding class to last list item? Not WP generated
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- Custom shortcode for displaying user based on a role parameter
- How do I set up XAMPP to allow me to download plugins and themes?
- WP-API Custom Post Type json_no_route
- Cannot access WP admin because plugin returns 204
- My widget won’t update its values when save is clicked
- Install old version of plugin from admin panel?
- insert an html tag using php plugin
- Extend a plugin to include a widget option
- Can we give Pending as a Role to wp_insert_user?
- Is the Block Bad Queries Plugin Still Relevant?
- Rename Smart YouTube’s httpv back to http for all posts
- Table of contents (TOC) plugin is not showing header tag
- Is it possible to restore a deleted WordPress plugin I deleted from WordPress admin menu?
- Custom page from wp admin area
- Unexpected add action function in WP plugin
- I’m receiving the following error using the below code: Uncaught Error: Cannot use object of type WP_REST_Response as array
- how to display data from user panel using cmb2 metabox?
- How page with random php file with query params generated
- WooCommerce Product Table – filter query on attributes
- Why does plugin_url append absolute file path?
- PDF Viewer Origin is Different
- WordPress Sumo Plugin not showing all images on clicking pinterest icon
- WP nonce verification
- Enable a Coming Soon Page while the rest of the site is accessible
- Call to undefined function add_action() in plugin
- Create Custom Single Page Link foreach custom Database table results id
- Integrating the Office 365 and/or Windows Live credentials in to our website like FB and Twitter
- How to Display image from Menu Image in Walker Dropdown Select Menu
- How to add separator between default and custom panels in WordPress customizer?
- Clone a Post Tite and Custom Field into Custom Post type
- How to replace native comment_count with Comments Evolved aggregate count
- Having trouble going from Jfiddle to implementing in WordPress :(
- Buddypress Member list not showing admin and mods
- Shortcode in a blog post, footer and related products stop working
- SVN problem – commit taking forever to fix incomplete prior commit
- pluggable function in theme, to be overridden by plugin
- Restrict my pages from public
- Plugin: Unable to Save the Image Alignment Option to Display in the Widget in the Sidebar
- Remove action plugin
- Plugin used only on some pages – not widget
- Conditional statements using category and Tags
- Issue with custom plugin
- How to link that “logged in” in “you must be logged in to post a comment” with custom login page on WordPress?
- Get value of a key from a Plugin Serialized array
- Generate all urls with https
- How to make 3 boxes like this screenshot has?
- Is it possible to know which menus are owned by a plugin?
- I want to disable certain file types from upload from dokan description field
- How to get attributes from block.js into php
- claim a permalink and all sublinks in plugin
- Play an animated character video on click of a button or radio button selection only