I would use the following to check for each language and then output the translated permalink structure. For instance:
if(ICL_LANGUAGE_CODE==en){
//translate your english the_prefix here
}
if(ICL_LANGUAGE_CODE==de){
//translate your german the_prefix here
}
I’m not sure about this, but I would think that you should be able to use the icl_register_string()
and icl_t()
functions to register, and output the translated text inside the above if statements. You can find more info about those functions here: WPML Register Function
Related Posts:
- remove “index.php” from permalinks
- Get Permalink without domain (i.e. get relative permalink) [duplicate]
- Change author permalink
- How can I make Capital letter ( upper-case ) permalinks?
- Why permalinks work with /index.php/%postname% but not with just %postname%?
- Getting the Site URL Including the Front Base
- Change permalinks structure for specific category
- Is It A Good Idea To Change Author Slug (user_nicename field) Directly In MySQL DB?
- Why can’t I save permalink “360” for a page?
- Permalinks Question: Adding a prefix ONLY in front of the posts
- Is there a log for the ajax calls made when changing a post’s slug?
- Permalinks for WooCommerce Categories and Subcategories
- Passing a parameter to a permalink
- Possible to use /%monthname%/ in my permalink structure without using a plugin?
- Create slugs programmatically
- Make attachment pages require a base url
- get the_title_attribute by id
- Rewrite URL Parameter And Force ‘Pretty’ Permalink
- How to map a URL to a specific template?
- How to hook into permalink when publishing-saving post?
- Problem duplicated shortlinks bitly
- Incorrect 404 for pages when using permalink, a static front page, and posts page
- Is there a wordpress function that I can use to retrieve the current page that is loaded?
- Custom Permalinks don’t work on local LAMP installation
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- .htaccess file missing from WordPress install directory
- CSS not loaded when omitting www. part of URL
- Remove permalink settings in post for users
- Remove multisite “blog” slug from specific custom post type
- WordPress Permalinks still not working despite all necessary settings
- RewriteRule accepts numbers but not letters in tag
- Server Move: All pages leading home
- WordPress Permalink 404
- Link to the post displays ID instead of slug
- index.php is always displayed before any file on the URL
- Pages not using permalink
- Include Post Format in permalink
- Redirects after permalink change
- Why I can’t change the permalink of a WP page?
- Page preview is shown, updating page gives 404 error
- Dynamic Template file for subpage
- remove product-category base but still redirect to page with same permalink
- Process all virtual sub pages on parent page
- Correct permalinks and 404-error
- What would cause a theme to add extra characters to blog post links?
- Getting 404 when Access post which name start with Digit
- Custom permalink with two parameters
- Advanced author permalinks
- How to check if the current page is the permalink page?
- Some Pemalink problems, probably caused by wrong .htaccess configuration?
- Permalinks set to /%postname%/ but still have links being indexed in the form ?p=x
- Custom links in menus not working in multiple environments
- 404 permalink errors on Pages only
- LAMP WordPress Permalinks 404 error
- What happens to the permalink that use %postname% if I change the post name
- Issues when changing permalink Structure
- Assigning proper permalink to blog that is part of a website
- What would cause a 500 Server Error with permalinks turned OFF?
- Changing permalinks back to default ( ?p=123 )
- permalinks on title tag
- Non Latin page permalink problem
- Double Slash After Media Path (uploads//)
- New posts link to old posts (random)
- Custom permalink structure for product
- Empty the_excerpt() broke the_permalink() under him?
- Custom Permalink (with category) for Pages
- 301 redirects after changing permalinks
- Post links broken after migration
- How to change permalink for listings
- WordPress Pages that use Domain URL
- 404 page not found – Yet open admin page it works
- wordpress admin panel loop on nginx
- Can’t access new WP install on subdirectory
- WordPress Permalinks
- Problem with permalinks
- WordPress All pages but home simply read “hello”
- How to change link of an uploaded file to the media library
- On Macbook, my permalinks with post name don’t work. Returning 404 error
- “Undefined” added to page content after google Adwords click
- WordPress pages break with custom permalink settings (theme directory not output)
- Remove /index.php from Permalink
- Image upload ruined my links
- Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)
- Fresh wordpress installation in sub-directory not accessible
- Get link from wpe_excerpt “read more” and move it
- WordPress 4.0 beta – how to change the link URL in RSS feeds
- Folder Name and Category Name WordPress
- Why is there a # and other characters in URL for WordPress site?
- Search points to /search/?s=KEYWORD instead of /search/KEYWORD
- How to change pagination base from slash to query form?
- WP Custom Permalink Filter
- standard post with extra parameter brings permalink problem
- redirect old pages by .htaccess
- wp_get_attachment_url not working
- WordPress 3.1 problem, getting 404
- Why is wordpress permalink path wrong for single blog posts?
- I changed rightly the permalinks but I get empty pages in the final posts
- How do I get a link to a WP page within a loop?
- Remove parent product category slug from product_cat url woocommerce
- How to make my custom permalink pull up the correct post