Ticket #71 (closed enhancement: fixed)
Translation of Permalinks?
| Reported by: | rene | Owned by: | ofer |
|---|---|---|---|
| Priority: | major | Milestone: | 0.5 - Beta wordpress plugin |
| Component: | Parser | Version: | 0.3.7 |
| Keywords: | SEO, permalinks | Cc: |
Description
Hey guys,
I just found your plugin and tried it on localhost. I think it is really nice work, especially for SEO. since you guys do not want money as a donation I registered for your bug tracker and want to suggest a feature witch I am missing regarding SEO:
do you think it is possible to also translate the permalink and not use the language identifier?
I checked your source and found the following function witch would probably need extension:
rewrite_url_lang_param in core/utils.php
I think that there might be 2 problems in autotranslation of the permalink concerning
1.)special characters in languages that are not supported as links. witch could probably easily be resolved by some regular expression.
2.) There would probably be need for a tool of handling permalinks in different languages. Since the automatic translation from one language to another and back might lead to 2 different permalinks in the starting language which would lead to dublicate content... (which i think is the tough problem on this)
I might code that extension on my on (and commit it to your plugin) and save you guys some work, but reading other peoples code is in the beginning always a litte anoying so I would like to recieve a quick feedback on the 2 pitfalls I pointed out.
anyway thanks again for your great work
Change History
comment:2 Changed 2 years ago by datapharmer
If someone is interested in attempting this, my suggestion is to use a database table to handle the lookups. Languages could still be included in the url to simplify the database lookups. This could slow some sites down because of the additional database calls and should definitely be an optional check-mark in the backend.
I agree with Ofer though, this is not a small undertaking!

Hello Rene,
First, if you really want to send us large and unmarked bags of money, we'll probably accept. but wrt to your suggestion.
1st - this is actually a very nice idea, although not really on the agenda for now but if you do it, we'll try and include it if it does not mess the code too much ;)
2nd - regarding the pitfalls, I hardly think 1 is a pitfall, I think modern browsers support such urls quite nicely. Regarding the 2nd pitfall, if you'll keep enough useful information in the url it will make the trip back much easier (for example, you can use the post number after the url) however, in any case I think you'll find a little hell in the rewrite rules (not that this can't be solved) You'll probably have to change the url rewriting engine to one to create such urls, and create some interface as you have mentioned, not trivial at all.
Good luck with that, sorry for the time it took to reply (holidays) and will be looking forward to your code. If you need any more help - don't hesitate.