How to transliterate Cyrillic to Latin text

I have a method which turns any Latin text (e.g. English, French, German, Polish) into its slug form, e.g. Alpha Bravo Charlie => alpha-bravo-charlie But it can't work for Cyrillic text (e.g....

CakePHP 2.1: Sluggable Behavior with German Umlauts

I am using Marino Iglesias' SluggableBehavior to generate slugs while saving entries. Now, since my blog will also have some German posts, slugging should also work with Umlauts such as ä,ü,ö....

PHP - Is there a function to make clean URLs like Wordpress Permalinks?

Possible Duplicate: Automatic clean and SEO friendly URL (slugs) I need a function which makes "clean URL strings" like Wordpress. For example: "This is a string with frénch and gêrmän...

passing base-type to method

If I have two classes, which are derived from a base-class, how can I write a generic method, that can manipulate the inherited properties of both classes, so I do not need to write two...

PHP: remove small words from string ignoring german characters in the words

I am trying to create slugs for urls. I have the following test string : $kw='Test-Tes-Te-T-Schönheit-Test'; I want to remove small words less than three characters from this string. So, I want...

How to combine Translatable and Sluggable from DoctrineExtensions?

I have installed https://github.com/stof/StofDoctrineExtensionsBundle and use both Translatable and Sluggable on a specific field in a Country entity: ... class Country { ... /** *...

Not redirection. The page isn't redirecting properly. Translations in Refinerycms

I have a page in German name as 'kontakt', but the access is with /contact. I start to fiy this bug, thinking in the translations and I did changes in: (controller) inquiries-controller.rb:...

Trying to generate url slugs with PHP regex, Japanese characters not going through

So I'm trying to generate slugs to store in my DB. My locales include English, some European languages and Japanese. I allow \d, \w, European characters are transliterated, Japanese characters are...

How to pass the Current Page Slug to Query's argument? (Wordpress)

I have these pages: Germany, Argentina, Brazil. When viewing any of these I need a Custom Loop that queries for News (Custom Post Type) AND queries for Country (Taxonomy). The page slug is exactly...

Generate slug with german umlauts

I try to generate a slug from a string, but I got some problems with the german umlauts: $text = 'Ein schöner Text'; $text = preg_replace('~[^\\pL\d]+~u', '-', $text); $text = trim($text,...

How to implement a nice solution for multilang entity slug based routes in Symfony2

I'd like to create a simple bundle to handle some multilingual pages in a website with translated slugs. Based on translatable, sluggable and i18nrouting implemented an entity (Page) with title,...

Django modeltranslation queries fallback doesn't work

I am using django modeltranslation to build a multi-language site. Slug fields are also translated. Let's consider to have a Page model with a slug field, which is registered for...

Symfony2 - combine translatable and sluggable - not working

I use https://github.com/Atlantic18/DoctrineExtensions, I want to combine in my project translatable and sluggable. First I used translatable, the default language is Polish, translate into...

Trying to fill a SVG map from wordpress custom categories

I've created a custom post_type (destinations) with a category (locations) to provide a tree structure for my SVG map: Continent/Country/Town Example...

Magento multistore product view category url rewrite

Newbie Magento developer here, but I'll try to keep it structured. Site architecture: Magento 1.8 Multi-store (1 store for 1 language) Lightly modded by last developer (I think most if not all...

htaccess rewrite with Wordpress for translating url slug but don't show in browser bar

I have urls which include slugs that should be displayed in englich. but the cms cannot interprete them right but can the german ones. blah.com/en/team/sprache/french works but is not...

Wordpress: same title but different slugs when site is used in various languages

If i set the WordPress in English (general->site language) and add the the category "München" i get the slug "munchen" If i set the WordPress in German(Deutsch) and add the same category,...

Django parler TranslatableSlugMixin translates from English to another language, but once translated cannot be translated back returns 404

I'm using Django CMS with Django Parler and have run into a problem that is driving me mad, so if anybody could help, it would be much appreciated! So I'm creating a simple blog app that has the...

.map() undefined even though I pass an array

I'm trying to map an array in my Component render method but it keeps saying .map is not a function even though it's an array. return ( <select className="c-select"> <option value="">Choose...

How to change the archive title to use the plural version of the taxonomy label instead of the singular

I have a simple Wordpress blog with two categories: slugs are 'comment' and 'press_release'. When I am on a single.php page of posts of either category, it should display 'Comment' or 'Press...

Ez Publish Language switcher

Is it possible that when i switch to another language , get same content from where i'm switching ? for example: if i'm on English page...

How to get contenttype options in Bolt CMS

I have contenttype for products: products_de: name: Products (de) singular_name: Product (de) slug: produkte singular_slug: produkt tablename: products_de fields: ...

How to make Text::slug() convert german umlauts properly?

I am using CakePHP 3.6, and when I am using words with german umlauts like: Text::slug('Grundstücke') I will get: Grundstucke (where ü = u) but that's not correct, I should...

Laravel routes with database queries

We have 3 types of urls: Countries like: /germany-travel or /united-kingdom-travel Cities like: /berlin or /los-angeles Artikles like: /my-great-article or /my-other-great-article To separete...

Related posts with Gatsby.js and Graphql

I am relatively new to GraphQL and this is the first site I'm building with this. So I'm trying to have a few posts displayed which are markdown files, this works well. On top of that I'd like a...

How to setup TYPO3 9.5.x with a multiple-trees concept for languages

For a new website I have to setup a multiple languages TYPO3 9.5. I have done this for previous versions, but don't get it to work with version 9.5. Have been searching for a couple of days now,...

speaking url in TYPO3 9.5 shows always homepage

my problem: i defined a site with one language (german). i installed the htaccess from TYPO3 without changings. normal redirects and mod_rewrites work all pages are shown correctly when i call...

Rails friendly_id removing non ascii characters for url generation

I want to auto generate the slug based on the title and author of the book, which can be in any language. Using friendly_id with rails, and when there are non-ascii characters, it just removes...

Polylang doesn't recognise content from Duplicate Page plugin

I've got a website written in English, and have added Polylang Wordpress plugin and activated / added German. I also use the WP Bakery page builder to build the layout for the content. Rather than...

How to do ASP.NET Core 3.1 routing (Route, ActionName) localization?

I am developing an ASP.NET Core 3.1 MVC website that uses domain names to determine the culture for localization. For example, all requests going to the domain example.com will have the en-US...