green flash Silver Membership
 Nuke Wiz Posts:132

 |
| 7/14/2007 5:46 AM |
|
Hello i have opened a similar topic like this before, but i don't wanna give up DNN, i like it much.
http://webdesign.about.com/od/localization/l/blhtmlcodes-tr.htm contains information about ASCII codes for Turkish.
Is it possible to include a rule to rewrite urls for Turkish codes?
Replace Capital I-dotted with Capital I
Replace Lowercase i-dotless with Lowercase i
Replace Capital O-umlaut with Capital O
Replace Lowercase o-umlaut with Lowercase o
Replace Capital U-umlaut with Capital U
Replace Lowercase u-umlaut Lowercase u
Replace Capital C-cedil with Capital C
Replace Lowercase c-cedil with Lowercase c
Replace Capital G-breve with Capital G
Replace Lowercase g-breve with Lowercase g
Replace Capital S-cedil with Capital S
Replace Lowercase s-cedil with Lowercase s
|
|
DNN Tutorials DotNetNuke Turkish Community |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12441


 |
| 7/16/2007 4:40 AM |
|
| Probably not without modifying the code, it is possible to do though. |
|
Scott McCulloch Site Administrator |
|
|
green flash Silver Membership
 Nuke Wiz Posts:132

 |
| 7/17/2007 2:59 AM |
|
Could you please rebuild a fixed version for Turkish Community?
I would like to do this but i don't understand Visual Basic at all, i look at codes and they look at me :) |
|
DNN Tutorials DotNetNuke Turkish Community |
|
|
Déclic Vidéo Gold Membership
 Nuke Master Posts:768


 |
|
green flash Silver Membership
 Nuke Wiz Posts:132

 |
| 7/21/2007 12:34 AM |
|
Thank yo Declic, i will dig in to example code, i hope i can sort it out.
Btw i tried to dig in database and i noticed that only TabPath value needs to replace Turkish characters,
TabPath value is being generated from TabName value. So when i enter TabName DNN should fill TabPath with replacing Turkish characters. |
|
DNN Tutorials DotNetNuke Turkish Community |
|
|
Rabidmax Registered Users
 Nuke Active Member Posts:34

 |
| 7/22/2007 11:59 PM |
|
Hi Greenflash, I got your PM and yeah I think my module could help. It's not ideal by a long way... if you want ideal, you'll need to modify the core DNN code (in the link DV posted, the first post had all the information about where to do it), but that's even less ideal as that would freeze you and stop you upgrading, unless you were happy doing the change to every new version. Actually, ideal would be the core being more flexible, but that's a core team problem, and someone will need to put it to them in order for anything to happen there.
In saying that, my module would need to be altered in order to do what you need. If you would like to try to modify it yourself, by all means go for it. The simplest way would be to change the 'StripForTabPath' function in the module to simply replace out all the characters you dont want with the ones you do, for example:
string Stripped;
// Strip out anything that is not: a-zA-z0-9(underscore)(hyphen)(space) Stripped = Regex.Replace(TabName, @"[^\w -]", "");
would become:
string Stripped = TabName;
Stripped = Stripped.Replace("---Capital O dotted---", "O"); Stripped = Stripped.Replace("---Capital I dotted---", "I"); ... etc ...
// Strip out anything that is not: a-zA-z0-9(underscore)(hyphen)(space) Stripped = Regex.Replace(Stripped, @"[^\w -]", "");
And just add as many Stripped.Replace calls as you need. Note the use of Stripped in the last line, as opposed to TabName in the first example, and Stripped = TabName at the top. It should work as you need, but it's far from ideal, in my opinion.
It could eventually be added in as a couple of textboxes [ReplaceThis] and [ReplaceWith] on the module, I suppose.
Let me know if you need more info or something, I'll add this thread to my watch list.
Laters, Max |
|
|
|
|
green flash Silver Membership
 Nuke Wiz Posts:132

 |
| 7/27/2007 3:56 AM |
|
Hi Take1, i read your post and tried to apply it, but i didn't know i did it right, could you please build your module again for me?
I also would like to apply it to dnn core if possible (np for me to implement it again for updates - cus i have many customizations, i am adding them manually everytime new dnn update comes), i'd glad if you assist me with more detail :) |
|
DNN Tutorials DotNetNuke Turkish Community |
|
|
Rabidmax Registered Users
 Nuke Active Member Posts:34

 |
| 7/27/2007 8:19 AM |
|
Hi Greenflash, if you're happy making changes to the core like you mention, I'll just help you out there, you might as well leave my module out of it.
I need more info about the characters you want to replace, because I don't know how to use them in code.
If you know how to do a replace of the characters, let me know and I'll get onto some info on how to change the core to do what you need. I'm sort of after the vb code for the equivilent of:
SomeString.Replace("A"c, "B"c)
Where A is your Turkish character and B is the replacement character. I dont know if you can just paste your special character into the A slot or if you should replace "A"c with ChrW(65) or something like this:
SomeString.Replace(ChrW(65), "B"c)
And if it does need this chrw version, it'd be great if you could just list all the replacements you're after in that form, rather than back and forthing for them all.
Max |
|
|
|
|
green flash Silver Membership
 Nuke Wiz Posts:132

 |
|
Rabidmax Registered Users
 Nuke Active Member Posts:34

 |
| 7/28/2007 5:30 AM |
|
We can try, but I can't imagine we'll be online at the same time anytime. I'm in New Zealand for another few weeks at least, and on intermittantly at the moment, barely getting online once a day right now.
I'll PM you with my google talk/email, if that works for you? I do have MSN but I'm not a fan of it and would prefer not to have to use it.
|
|
|
|
|
green flash Silver Membership
 Nuke Wiz Posts:132

 |
|