Re: [Radiant] Problem unsolved: Multiple languages for content
Hi, I have another question concerning languages: On Thu, Aug 6, 2009 at 10:15 PM, john muhljohnm...@gmail.com wrote: could you just ask your snippet to give the right urls? r:if_url matches='^/de' r:navigation urls=home: /de/home | ueberuns: /de/ueber_uns/ | kontakt: /de/kontakt/ /r:if_url r:if_url matches='^/en' r:navigation urls=home: /en/home | aboutus: /en/about_us/ | contact: /en/contact/ /r:if_url Is it possible to tell a page a language for rendering r:date/ ? I tried to set a default language for the whole rails app in environment.rb (defaulting to :de) but 1) It did not change the r:date/ behaviour 2) It did break the admin area (I guess for the config option to be able to set the published date) cu edi -- DI Edmund Haselwanter, edm...@haselwanter.com, http://edmund.haselwanter.com/ ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Problem unsolved: Multiple languages for content
Hey John, thanks for the hint. At a first sight this seems to work pretty good. Thanks!! rainer On Thu, Aug 6, 2009 at 10:15 PM, john muhljohnm...@gmail.com wrote: could you just ask your snippet to give the right urls? r:if_url matches='^/de' r:navigation urls=home: /de/home | ueberuns: /de/ueber_uns/ | kontakt: /de/kontakt/ /r:if_url r:if_url matches='^/en' r:navigation urls=home: /en/home | aboutus: /en/about_us/ | contact: /en/contact/ /r:if_url still some duplication but much less and duplicating layouts On Thu, Aug 6, 2009 at 2:06 PM, exitsevenexitse...@gmail.com wrote: Hey again, sorry, I'm still looking around for a solution. I stumbled over an old post of someone having the same problem (http://www.ruby-forum.com/topic/133019). He writes exactly about what I need. But besides I am unable to install the Language Redirect extension, it is not exactly what I need. I have to page trees: 1) /de/page 2) /en/page The /de-tree is working fine. The user should now be able to hit a link English version on the site and should then get to the /en-tree-contents. So far not a problem. The user gets to for example /en/home. But from now on he should only get contents from the /en-tree: /en/home/ /en/about_us /en/contact /en/... I use a snippet to render the menu: r:navigation urls=home: /de/home | ueberuns: /de/ueber_uns/ | kontakt: /de/kontakt/ Do I have to double every layout I have into an /en- and an /de-version? I thought there is propably some extension that automatically routes every /de-request to the /en-tree if the user requested the english version of the site one time by clicking the English version link. Hopefully you understand the problem and there is an answer somewhere outside... Best wishes, rainer ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Problem unsolved: Multiple languages for content
Hey again, sorry, I'm still looking around for a solution. I stumbled over an old post of someone having the same problem (http://www.ruby-forum.com/topic/133019). He writes exactly about what I need. But besides I am unable to install the Language Redirect extension, it is not exactly what I need. I have to page trees: 1) /de/page 2) /en/page The /de-tree is working fine. The user should now be able to hit a link English version on the site and should then get to the /en-tree-contents. So far not a problem. The user gets to for example /en/home. But from now on he should only get contents from the /en-tree: /en/home/ /en/about_us /en/contact /en/... I use a snippet to render the menu: r:navigation urls=home: /de/home | ueberuns: /de/ueber_uns/ | kontakt: /de/kontakt/ Do I have to double every layout I have into an /en- and an /de-version? I thought there is propably some extension that automatically routes every /de-request to the /en-tree if the user requested the english version of the site one time by clicking the English version link. Hopefully you understand the problem and there is an answer somewhere outside... Best wishes, rainer ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Problem unsolved: Multiple languages for content
could you just ask your snippet to give the right urls? r:if_url matches='^/de' r:navigation urls=home: /de/home | ueberuns: /de/ueber_uns/ | kontakt: /de/kontakt/ /r:if_url r:if_url matches='^/en' r:navigation urls=home: /en/home | aboutus: /en/about_us/ | contact: /en/contact/ /r:if_url still some duplication but much less and duplicating layouts On Thu, Aug 6, 2009 at 2:06 PM, exitsevenexitse...@gmail.com wrote: Hey again, sorry, I'm still looking around for a solution. I stumbled over an old post of someone having the same problem (http://www.ruby-forum.com/topic/133019). He writes exactly about what I need. But besides I am unable to install the Language Redirect extension, it is not exactly what I need. I have to page trees: 1) /de/page 2) /en/page The /de-tree is working fine. The user should now be able to hit a link English version on the site and should then get to the /en-tree-contents. So far not a problem. The user gets to for example /en/home. But from now on he should only get contents from the /en-tree: /en/home/ /en/about_us /en/contact /en/... I use a snippet to render the menu: r:navigation urls=home: /de/home | ueberuns: /de/ueber_uns/ | kontakt: /de/kontakt/ Do I have to double every layout I have into an /en- and an /de-version? I thought there is propably some extension that automatically routes every /de-request to the /en-tree if the user requested the english version of the site one time by clicking the English version link. Hopefully you understand the problem and there is an answer somewhere outside... Best wishes, rainer ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant