This ought to be easy to do, as it's a common need.

You can certainly do this in /eshop/warenkorb/versand:

    % $m->go('/echop/cart/shipping');

but that's tedious, there ought to be a way to create a single configuration 
table and handle this all at a higher level just before control enters Mason. 
Let me think a little about the cleanest place.

On Sep 26, 2012, at 9:04 AM, T.Lawrance wrote:

> Hi all,
> 
> What is the best way achieving translated url support with Poet? Mean,
> 
> in the english version of site want:   /eshop/cart/shipping
> e.g. german version should be:       /eshop/warenkorb/versand
> 
> the shipping.mc and versand.mc are doing the same thing, only in different 
> languages, and they are should be at different path, like shipping.mc should 
> be in cart directory and versand.mc should be in warenkorb directory. But the 
> components are the same...
> 
> What is the best practice in the Poet for url-translation?
> - doing many symbolic links? because the components must be files...
> - or try "somewhat" (don't know how, yet) rewriting urls in input to english 
> version and at output to translated one (where to do this?) in some 
> middleware level, or at Poet level?
> 
> Any ideas, please?
> 
> thanx. ak.
> 
> ------------------------------------------------------------------------------
> How fast is your code?
> 3 out of 4 devs don\\\'t know how their code performs in production.
> Find out how slow your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219672;13503038;z?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html_______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to