If your code, be it a theme or a plugin, does not support translation, then don’t use the translation functions. And if you don’t use these functions, you cannot use a text domain. 🙂
There is a very common error that looks like this:
echo __( 'Portfolio' );
Portfolio is not part of WordPress’ core strings, so this code will waste an expensive look-up in the list of translated words without result.
Another side effect is a partial translation when some of these function calls without text domain match core strings. Imagine a navigation where the link to the previous page is in Japanese and the link to the next page in English. This is worse than no translation at all.
So text domains are not your problem, the use of translation functions is important.
Related Posts:
- How to create .pot files with POedit?
- Enqueue Stylesheets After Theme’s “rtl.css”
- Caching and Versioning for rtl.css
- Use __($str) and _e($str) to translate strings with HTML
- What is the purpose of an extra file for translation?
- Theme Review: post thumbnail, header image, content width
- what’s meaning of it when submit a theme?
- Questions about WordPress.org theme review
- Translated strings not appearing – what am I missing?
- Why does WP recommend against custom favicon functionality in themes?
- Override Constants in Child theme
- How to change i18n/l10n of #reply-title? (Old title: Comment reply link not working)
- Internationalization and functions that use it
- Theme translation not applying
- WordPress is adding margins and padding to my custom menu?
- 2 localizations inside a WordPress theme
- Should I change text-domain of TGM library inside theme?
- Change locale by detecting viewer’s browser language setting and let them choose prefered language after
- Single translation for many locales
- Does the textdomain have to be the theme’s name?
- How to escape html generate by a loop
- using Options Framework – can “theme-textdomain” domain be changed?
- Translate a theme with a PO file
- how to unlocalize theme/plugin?
- How to set different localization file for different users?
- Menu names not getting translated
- How to generate a rtl.css file for themes?
- Enqueue Stylesheets After Theme’s “rtl.css”
- Display Today’s date outside the loop?
- What are these variables and where are they documented?
- How to use esc_attr__() function properly to translate a variable that contains string?
- How To extend WP_Customize_Control
- How to show a custom meta box on the “Quick Edit” screen?
- How to add CSS class to custom logo?
- What can I hook into after_setup_theme?
- Authoritative answer on which boots first – Plugins or Themes?
- Removing all classes from nav_menu except current-menu-item and current-menu-parent
- Can’t edit style.css in subdirectory of my theme?
- Best practice for including plugins as part of a theme?
- Adding dashicon fonts to the admin of pre 3.8 installs
- query posts in wordpress
- How to handle theme customization and sass variables
- wp_enqueue_scripts not called on search page?
- Add tinymce to widget textareas
- Custom Nav Walker to show siblings and children of current branch?
- Child themes: disabling the parent
- Is there a filter for enqueue script to strip the type=”text/javascript” property
- How display id of most recent modified post in wordpress?
- Should I use function_exists() and/or add_action() in theme development?
- Bold letters inside excerpt [closed]
- How to make Home Menu( Front Page) use index.php instead of page.php
- JavaScript Change focus to password field login page being reset
- Using esc_url with a hard coded url
- Broken template went invisible
- How to Add Custom Button to Text(HTML) Editor and NOT Visual Editor
- Custom Nav Walker Trouble
- How to get javascript slider to work! [closed]
- How to make permalinks update from code?
- Custom WordPress File Inclusion
- WordPress 3.8 Backend Admin Color Scheme add more scheme how to do?
- How to do a section of bulleted text within our page?
- What should I use? index.php, front-page.php and home.php
- How to change the theme directory uri for localhost?
- What is the diferences between pure WordPress theme and Woocommerce theme? [closed]
- Why in the static pages of my theme are showing these information?
- featured content: which area does this cover [closed]
- How to count posts of a category and of a category limited by a tag
- Is WordPress a good option for this…?
- How to find and remove unnecessary theme scripts? [closed]
- Theme logo metadata into template file
- Is There A WordPress Hook for Accessing Attachments for A Particular Page?
- How to Emulate Default Navigation Menu Behaviour in a Custom Theme?
- Why do sticky posts show in this menu?
- Strict Folder and File Permissions for WordPress Themes Folder
- Default customizer colors aren’t displayed outside of the preview
- Use instead of for wp_nav_menu()
- Find out the reason that the Styles and scripts in the theme are loading properly in localhost but Not in server after deploying
- More HTML elements variety in visual editor
- How allow users to select the theme color?
- hide/show a div in wordpress
- Add a customize control depending wich radio setting is checked
- How to add script properly for certain post?
- How do child themes work?
- Why WordPress gets old templates code instead of the last updated ones
- Checking conditionals
- including post-specific feed without full wp_head()
- Show post thumbnail only if it exists using timthumb
- Upgrade to WP 3.2/ and Server to php5 breaks theme? [closed]
- What matters should I care to make my theme SEO friendly? [closed]
- sanitize_option_{$option} filter returns null
- After a while attachment meta data is missing “sizes” data
- Template for posts of category in block theme?
- WP Customizer get control value on change
- Execute javscript when theme customizer loads (autosave issue)
- How to set the margin on an innerBlock in a block variation?
- Does a custom WordPress theme require updates to it’s source code?
- New directory created each time I upload new theme zip
- Align images to the left of the content
- Add text when displying attribute with a hook on single product page
- WordPress Includes mejs 404 error