Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2009 at 07:27 UTC
Updated:
26 Feb 2012 at 04:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
xslim commentedSo one of solution I've made is creating function
String.prototype.transliterateand updating
You can see patch in attachment.
Patch transliteration is only for russian and ukrainian language.
Comment #2
xslim commentedComment #3
xslim commentedComment #4
xslim commentedduplicate by this #576180: Make the machine-name generation pluggeable?
Comment #5
Anonymous (not verified) commented#2: transliterate-646466.patch queued for re-testing.
Comment #7
josevitalsoutoThe Portuguese (Brazil) have the same problem, also any other language that has accents or special characters.
á, â, à, é, í, ó, ü, ú... is converted to _
Comment #8
pounardThe transliteration module exists, such feature should be in core it would solve this problem definitely. I just created the "_v_nement" content type (Événement) and I'm really angry right now because I cannot change it back anymore.
Comment #9
klonosThat issue forces me to always create content types with their English name first then translate the content type's name. This might not seem so bad but it causes the following mess if your site's default language is not English:
- Create the content type with English name (so that its machine name is correct). Because the site's default language is not English, the created content type has an English name but its language is not English.
- So, on to translating the content type... Click add translation for the English translation of the content type and hit save (no need to translate anything - it's all in English anyways).
- Now that you have the actual English content type with its English machine name, back to changing/translating the source language of the content type.
What a mess of a workflow! :/
Comment #10
xjmSee also: #1065626: Machine name not editable if every character is replaced..
Comment #11
klonosThe D7 patch in #1065626-33: Machine name not editable if every character is replaced. solves this for me: still no machine name is created when the name field of a content type is in non-Latin characters, but now I can hit the 'edit' link/button and add a machine name as I please. I'd prefer it if there was some transliterated auto-generated name that I could edit if not to my liking, but still this is far better then the workflow I used to follow.
PS: how is this issue different from #1065626: Machine name not editable if every character is replaced. again? ...or #567832: Transliteration in core perhaps?
Comment #12
xjmApparently someone requeued the patch for testing randomly when it was previously closed as a duplicate, which set the issue back to NW.