Re: [web2py] Translate Controller names and Function names

2015-01-27 Thread Francisco Costa

On Tuesday, 27 January 2015 17:14:48 UTC, Carlos Costa wrote:

 Very interesting question. It must have some effect on SEO.
 I have seen this post but it does not seem to solve exactly this 

 https://groups.google.com/forum/#!searchin/web2py/translate$20url/web2py/3adXUSCGQQQ/TaKfRagHyvMJ


Yes, that's why I'm trying to figure this out.

This would be a valuable feature for web2py framework. Where can you add 
this to the roadmap?


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Translate Controller names and Function names

2015-01-27 Thread Francisco Costa
I'm using the Parameter-based rewrite system 
http://web2py.com/books/default/chapter/29/04/the-core#Parameter-based-system 
and I would like to find a strategy to **translate controller names and 
function names**.

I have 2 domains and I use only one app for both, but I would like to have 
the controllers and functions translated for the non-english one.

Something like this:

 - http://domain.com/article/new (english - default language)
 - http://domain.pt/artigo/novo(portuguese - translation)

What would be the best way to achieve this?

PS: I also would like to have some redirection if someone typed the wrong 
domain extension:
http://domain.pt/article/new - http://domain.pt/artigo/novo


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Translate Controller names and Function names

2015-01-27 Thread Carlos Costa
Very interesting question. It must have some effect on SEO.
I have seen this post but it does not seem to solve exactly this
https://groups.google.com/forum/#!searchin/web2py/translate$20url/web2py/3adXUSCGQQQ/TaKfRagHyvMJ

Although if you have a different URL for different content it will be
indexed.
If the two apps are working in two different domains they will be indexed
accordingly.

I tried to do what you want by interception the request object but it doe
not work.

One way is to use routes.py and write one rule per URL.

2015-01-27 10:12 GMT-02:00 Francisco Costa m...@franciscocosta.com:

 I'm using the Parameter-based rewrite system
 http://web2py.com/books/default/chapter/29/04/the-core#Parameter-based-system
 and I would like to find a strategy to **translate controller names and
 function names**.

 I have 2 domains and I use only one app for both, but I would like to have
 the controllers and functions translated for the non-english one.

 Something like this:

  - http://domain.com/article/new (english - default language)
  - http://domain.pt/artigo/novo(portuguese - translation)

 What would be the best way to achieve this?

 PS: I also would like to have some redirection if someone typed the wrong
 domain extension:
 http://domain.pt/article/new - http://domain.pt/artigo/novo


  --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to the Google Groups
 web2py-users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
º))

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.