|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hello everyone.
I have a configuration like that in my ext_localconf.php: $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['myExtConf'] = array( array( 'GETvar' => 'my_ext[my_var]', 'valueMap' => array ( '0' => '0', '1' => '1', '2' => '2', ), 'valueDefault' => '0', ), ); After that I do the next: $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['16'] = 'myExtConf'; Where 16 is the uid for one page that I want to pass this get param. This works fine. I get URLs like: ..../my_page/1/ The problem is that I want to use the same configuration for all the subpages for the page 16 in the pages tree. But I can't know the uid in a static way, the pages below the page 16 can be change. Somebody know how do it? I've thank in another option. I pass the params in the postVarsSet: 'postVarSets' => array( '_DEFAULT' => array ( 'my_var' => array( 'GETvar' => 'my_ext[my_var]', 'valueMap' => array ( '0' => '0', '1' => '1', '2' => '2', ), 'valueDefault' => '0', ), ), ); With this I'll get URLs like: ..../my_page/my_var/1/ The problem now is that I don't know how to translate the tag for the param. I wish to get URLs in different languages. Now I get the next: english: .../my_page/my_var/1/ spanish: .../mi_pagina/my_var/1/ I've tried to put a locallang label like the next, but this doesn't work: 'postVarSets' => array( '_DEFAULT' => array ( 'LLL:EXT:my_ext/locallang.xml:my_var' => array( ... I'd like get a URL all in spanish when the frontend user select this language: .../mi_pagina/mi_variable/1/. Someone has any idea? Thanks you very much, Rego -- http://www.igalia.com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi Casasnovas
Have a look here http://www.t3pack.org/support/multilingual/ (this is only one Page with many translations to check utf8 support for us here) Should your urls look like this afterwards - Click on the flags and check the URL http://www.t3pack.org/support/deutsche-sprache/deutsch/ http://www.t3pack.org/support/chinese-language/chinese/ http://www.t3pack.org/support/arabic-language/arabic/ It would be also possible to put the language right after the domain like http: // www .t3pack.org/deutsch/support/deutsche-sprache/ The field i.e. deutsche-sprache or chinese-language is pulled from subtitle here in our example. The Pagetitle is shown in Chinese (unreadale for the URL) so we added the subtitle in latin. Check it out and tell me if its the thing you want to have. Andi 2007/6/5, Manuel Rego Casasnovas <mrego (AT) igalia (DOT) com>: > > > Hello everyone. > > I have a configuration like that in my ext_localconf.php: > > $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['myExtConf'] > = array( > array( > 'GETvar' => 'my_ext[my_var]', > 'valueMap' => array ( > '0' => '0', > '1' => '1', > '2' => '2', > ), > 'valueDefault' => '0', > ), > ); > > After that I do the next: > $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['16'] > = 'myExtConf'; > > Where 16 is the uid for one page that I want to pass this get param. > This works fine. I get URLs like: > .../my_page/1/ > > The problem is that I want to use the same configuration for all the > subpages for the page 16 in the pages tree. But I can't know the uid in > a static way, the pages below the page 16 can be change. > Somebody know how do it? > > > I've thank in another option. I pass the params in the postVarsSet: > 'postVarSets' => array( > '_DEFAULT' => array ( > 'my_var' => array( > 'GETvar' => 'my_ext[my_var]', > 'valueMap' => array ( > '0' => '0', > '1' => '1', > '2' => '2', > ), > 'valueDefault' => '0', > ), > ), > ); > > With this I'll get URLs like: > .../my_page/my_var/1/ > > The problem now is that I don't know how to translate the tag for the > param. I wish to get URLs in different languages. Now I get the next: > english: .../my_page/my_var/1/ > spanish: .../mi_pagina/my_var/1/ > > I've tried to put a locallang label like the next, but this doesn't work: > 'postVarSets' => array( > '_DEFAULT' => array ( > 'LLL:EXT:my_ext/locallang.xml:my_var' => array( > ... > > I'd like get a URL all in spanish when the frontend user select this > language: .../mi_pagina/mi_variable/1/. > > Someone has any idea? > > > Thanks you very much, > Rego > > -- > http://www.igalia.com > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Hallo Casanova
its quite easy, I just changed our sites to it, took less then 5 minutes: http://www.t3pack.org/arabic-support...nguage/arabic/ http://www.t3pack.org/chinese-suppor...guage/chinese/ http://www.t3pack.org/deutsche-unter...rache/deutsch/ http://www.t3pack.org/support/multilingual/ We have only on the multilingual Page all LanguageVersions we probably need for testing. utf8 and right to left support. http://www.t3pack.org/support/multilingual/ On all othe sites there are only german, english and thai But also here we define ALL our languages in the Globe. Which means that even on a page where we offer only 3 languages we can create languageversions of ALL languages. That's what I just did. I created a languageVersion on a Page where we don't offer a translation for this language. In our setting the Language parameter is comming at the end with FULL NAME of the Language. But this could be also only 2 Letters or even "today_is_sunny" be.We define those values and if they should appear at the beginning or the end in an external xml file. This gives us the possibility to change settings even in one site - good if you have multidomain settings. i.e. domain1.com/languageParameter/PathALevel1/PathALevel2 or domain1.com/language2LetterCode/PathBLevel1/PathBLevel2 i.e. domain1.com/PathALevel1/PathALevel2/Number_of_Language we only insert a new ext:template on the page we wanna change the URL to something else and refer in TSSetup to the specific xml file for this Page and its subtree. If this is what you want and you have PHP5 working then I recommend switching to CoolUri as it is much easier and more flexible then RealUrl. have a look here. Tutorial - cooluri: http://docs.google.com/View?docid=dd33gg45_3f8j96p Here you can see also our settings we have made to get these URLs. At the End of this dokument you find also RealUrl Examples if you wanna stay with it. I hope this helps Andi 2007/6/6, Andreas Becker < ab.becker (AT) web (DOT) de>: > > Hi Casasnovas > > Have a look here > > http://www.t3pack.org/support/multilingual/ (this is only one Page with > many translations to check utf8 support for us here) > > Should your urls look like this afterwards - Click on the flags and check > the URL > http://www.t3pack.org/support/deutsche-sprache/deutsch/ > http://www.t3pack.org/support/chinese-language/chinese/ > http://www.t3pack.org/support/arabic-language/arabic/ > > It would be also possible to put the language right after the domain like > http: // www .t3pack.org/deutsch/support/deutsche-sprache/ > > The field i.e. deutsche-sprache or chinese-language is pulled from > subtitle > here in our example. The Pagetitle is shown in Chinese (unreadale for the > URL) so we added the subtitle in latin. > > Check it out and tell me if its the thing you want to have. > > Andi > > 2007/6/5, Manuel Rego Casasnovas <mrego (AT) igalia (DOT) com>: > > > > > > Hello everyone. > > > > I have a configuration like that in my ext_localconf.php: > > > > > $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['myExtConf'] > > = array( > > array( > > 'GETvar' => 'my_ext[my_var]', > > 'valueMap' => array ( > > '0' => '0', > > '1' => '1', > > '2' => '2', > > ), > > 'valueDefault' => '0', > > ), > > ); > > > > After that I do the next: > > > $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['16'] > > = 'myExtConf'; > > > > Where 16 is the uid for one page that I want to pass this get param. > > This works fine. I get URLs like: > > .../my_page/1/ > > > > The problem is that I want to use the same configuration for all the > > subpages for the page 16 in the pages tree. But I can't know the uid in > > a static way, the pages below the page 16 can be change. > > Somebody know how do it? > > > > > > I've thank in another option. I pass the params in the postVarsSet: > > 'postVarSets' => array( > > '_DEFAULT' => array ( > > 'my_var' => array( > > 'GETvar' => 'my_ext[my_var]', > > 'valueMap' => array ( > > '0' => '0', > > '1' => '1', > > '2' => '2', > > ), > > 'valueDefault' => '0', > > ), > > ), > > ); > > > > With this I'll get URLs like: > > .../my_page/my_var/1/ > > > > The problem now is that I don't know how to translate the tag for the > > param. I wish to get URLs in different languages. Now I get the next: > > english: .../my_page/my_var/1/ > > spanish: .../mi_pagina/my_var/1/ > > > > I've tried to put a locallang label like the next, but this doesn't > work: > > 'postVarSets' => array( > > '_DEFAULT' => array ( > > 'LLL:EXT:my_ext/locallang.xml:my_var' => array( > > ... > > > > I'd like get a URL all in spanish when the frontend user select this > > language: .../mi_pagina/mi_variable/1/. > > > > Someone has any idea? > > > > > > Thanks you very much, > > Rego > > > > -- > > http://www.igalia.com > > _______________________________________________ > > TYPO3-english mailing list > > TYPO3-english (AT) lists (DOT) netfielders.de > > http://lists.netfielders.de/cgi-bin/.../typo3-english > > > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Hi Casanovs
Have a look also to our Rootline. It is always build from Pagetitle Entries which means i.e. that here the Name written in Chinese will be shown - move with the mouse over it and read the URL it is linking to (i.e.Firefoxbottomleft) T3Pack.org/Chinese Support/ººÓï/ (the last part of this URL is written in chinese - change your browsersetings to see it if you can't see it now) links to http://www.t3pack.org/chinese-suppor...guage/chinese/ This way i.eChinese People could read the URL in the Rootline as a Page-line written in their language while everything is linking to the propperpages written in latin urls Andi 2007/6/6, Andreas Becker <ab.becker (AT) web (DOT) de>: > > Hallo Casanova > > its quite easy, I just changed our sites to it, took less then 5 minutes: > > http://www.t3pack.org/arabic-support...nguage/arabic/ > http://www.t3pack.org/chinese-suppor...guage/chinese/ > http://www.t3pack.org/deutsche-unter...rache/deutsch/ > http://www.t3pack.org/support/multilingual/ > > We have only on the multilingual Page all LanguageVersions we probably > need > for testing. utf8 and right to left support. > http://www.t3pack.org/support/multilingual/ > > On all othe sites there are only german, english and thai > > But also here we define ALL our languages in the Globe. Which means that > even on a page where we offer only 3 languages we can create > languageversions of ALL languages. That's what I just did. I created a > languageVersion on a Page where we don't offer a translation for this > language. > > In our setting the Language parameter is comming at the end with FULL NAME > of the Language. But this could be also only 2 Letters or even > "today_is_sunny" be.We define those values and if they should appear at > the > beginning or the end in an external xml file. This gives us the > possibility > to change settings even in one site - good if you have multidomain > settings. > > > i.e. domain1.com/languageParameter/PathALevel1/PathALevel2 > > or domain1.com/language2LetterCode/PathBLevel1/PathBLevel2 > > i.e. domain1.com/PathALevel1/PathALevel2/Number_of_Language we only > insert a new ext:template on the page we wanna change the URL to something > else and refer in TSSetup to the specific xml file for this Page and its > subtree. > > If this is what you want and you have PHP5 working then I recommend > switching to CoolUri as it is much easier and more flexible then RealUrl. > have a look here. > > Tutorial - cooluri: > http://docs.google.com/View?docid=dd33gg45_3f8j96p > Here you can see also our settings we have made to get these URLs. > > At the End of this dokument you find also RealUrl Examples if you wanna > stay > with it. > > I hope this helps > Andi > > > 2007/6/6, Andreas Becker < ab.becker (AT) web (DOT) de>: > > > > Hi Casasnovas > > > > Have a look here > > > > http://www.t3pack.org/support/multilingual/ (this is only one Page > with > > many translations to check utf8 support for us here) > > > > Should your urls look like this afterwards - Click on the flags and > check > > the URL > > http://www.t3pack.org/support/deutsche-sprache/deutsch/ > > http://www.t3pack.org/support/chinese-language/chinese/ > > http://www.t3pack.org/support/arabic-language/arabic/ > > > > It would be also possible to put the language right after the domain > like > > http: // www .t3pack.org/deutsch/support/deutsche-sprache/ > > > > The field i.e. deutsche-sprache or chinese-language is pulled from > > subtitle > > here in our example. The Pagetitle is shown in Chinese (unreadale for > the > > URL) so we added the subtitle in latin. > > > > Check it out and tell me if its the thing you want to have. > > > > Andi > > > > 2007/6/5, Manuel Rego Casasnovas <mrego (AT) igalia (DOT) com>: > > > > > > > > > Hello everyone. > > > > > > I have a configuration like that in my ext_localconf.php: > > > > > > > > > $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['myExtConf'] > > > = array( > > > array( > > > 'GETvar' => 'my_ext[my_var]', > > > 'valueMap' => array ( > > > '0' => '0', > > > '1' => '1', > > > '2' => '2', > > > ), > > > 'valueDefault' => '0', > > > ), > > > ); > > > > > > After that I do the next: > > > > > > $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['16'] > > > = 'myExtConf'; > > > > > > Where 16 is the uid for one page that I want to pass this get param. > > > This works fine. I get URLs like: > > > .../my_page/1/ > > > > > > The problem is that I want to use the same configuration for all the > > > subpages for the page 16 in the pages tree. But I can't know the uid > in > > > a static way, the pages below the page 16 can be change. > > > Somebody know how do it? > > > > > > > > > I've thank in another option. I pass the params in the postVarsSet: > > > 'postVarSets' => array( > > > '_DEFAULT' => array ( > > > 'my_var' => array( > > > 'GETvar' => 'my_ext[my_var]', > > > 'valueMap' => array ( > > > '0' => '0', > > > '1' => '1', > > > '2' => '2', > > > ), > > > 'valueDefault' => '0', > > > ), > > > ), > > > ); > > > > > > With this I'll get URLs like: > > > .../my_page/my_var/1/ > > > > > > The problem now is that I don't know how to translate the tag for the > > > param. I wish to get URLs in different languages. Now I get the next: > > > english: .../my_page/my_var/1/ > > > spanish: .../mi_pagina/my_var/1/ > > > > > > I've tried to put a locallang label like the next, but this doesn't > > work: > > > 'postVarSets' => array( > > > '_DEFAULT' => array ( > > > 'LLL:EXT:my_ext/locallang.xml:my_var' => array( > > > ... > > > > > > I'd like get a URL all in spanish when the frontend user select this > > > language: .../mi_pagina/mi_variable/1/. > > > > > > Someone has any idea? > > > > > > > > > Thanks you very much, > > > Rego > > > > > > -- > > > http://www.igalia.com > > > _______________________________________________ > > > TYPO3-english mailing list > > > TYPO3-english (AT) lists (DOT) netfielders.de > > > http://lists.netfielders.de/cgi-bin/.../typo3-english > > > > > _______________________________________________ > > TYPO3-english mailing list > > TYPO3-english (AT) lists (DOT) netfielders.de > > http://lists.netfielders.de/cgi-bin/.../typo3-english > > > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
Hi Andi!
Thank you for all your explanations. But I think that I didn't explain myself well. How I said in my first post, now I already translate the page name using the next configuration: 'preVars' => array ( '0' => array ( 'GETvar' => 'L', 'valueDefault' => 'es', 'valueMap' => array ( 'es' => '2', 'en' => '1', ), 'noMatch' => 'bypass', ), ), The result is: http://www.mydomain.com/en/my_page/ http://www.mydomain.com/es/mi_pagina/ The problem is the param, with the next configuration: 'postVarSets' => array( '_DEFAULT' => array ( 'my_var' => array( 'GETvar' => 'my_ext[my_var]', 'valueMap' => array ( '0' => '0', '1' => '1', '2' => '2', ), 'valueDefault' => '0', ), ), ) I'd like translate the tag 'my_var' and get the next result: http://www.mydomain.com/en/my_page/my_var/0/ http://www.mydomain.com/es/mi_pagina/mi_variable/0/ Andi excuse me, but with your explanation I don't know how I can do it. Thanks ;-) Rego -- http://www.igalia.com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
Hi Rego
My Explanations would mainly solve the translation Problem I'd like get a URL all in spanish when the frontend user select this > language: .../mi_pagina/mi_variable/1/. > As you can see on our demo sites. http://www.t3pack.org/chinese-suppor...guage/chinese/ Is it that what you want? Andi 2007/6/6, Manuel Rego Casasnovas <mrego (AT) igalia (DOT) com>: > > > Hi Andi! > > Thank you for all your explanations. But I think that I didn't explain > myself well. How I said in my first post, now I already translate the > page name using the next configuration: > 'preVars' => array ( > '0' => array ( > 'GETvar' => 'L', > 'valueDefault' => 'es', > 'valueMap' => array ( > 'es' => '2', > 'en' => '1', > ), > 'noMatch' => 'bypass', > ), > ), > > The result is: > http://www.mydomain.com/en/my_page/ > http://www.mydomain.com/es/mi_pagina/ > > The problem is the param, with the next configuration: > > 'postVarSets' => array( > '_DEFAULT' => array ( > 'my_var' => array( > 'GETvar' => 'my_ext[my_var]', > 'valueMap' => array ( > '0' => '0', > '1' => '1', > '2' => '2', > ), > 'valueDefault' => '0', > ), > ), > ) > > > I'd like translate the tag 'my_var' and get the next result: > http://www.mydomain.com/en/my_page/my_var/0/ > http://www.mydomain.com/es/mi_pagina/mi_variable/0/ > > Andi excuse me, but with your explanation I don't know how I can do it. > > Thanks ;-) > Rego > > -- > http://www.igalia.com > > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
Hi Andreas.
I see the path in the page content translated, but in the example the URL is in english: http://www.t3pack.org/chinese-suppor...guage/chinese/ And I'd like that the URL was translated, for example to spanish. Furthermore I don't find the source code to use in my RealURL configuration in the examples. I'd like to translate 'my_var' in the URL of my pages. How I can translate the key for the GET param, which I set it in the second line: postVarSets' => array( '_DEFAULT' => array ( 'my_var' => array( ... Thanks, Rego -- http://www.igalia.com Andreas Becker escribió: > Hi Rego > > My Explanations would mainly solve the translation Problem > > I'd like get a URL all in spanish when the frontend user select this > >> language: .../mi_pagina/mi_variable/1/. >> >> > > As you can see on our demo sites. > > http://www.t3pack.org/chinese-suppor...guage/chinese/ > > Is it that what you want? > > Andi > > 2007/6/6, Manuel Rego Casasnovas <mrego (AT) igalia (DOT) com>: > >> Hi Andi! >> >> Thank you for all your explanations. But I think that I didn't explain >> myself well. How I said in my first post, now I already translate the >> page name using the next configuration: >> 'preVars' => array ( >> '0' => array ( >> 'GETvar' => 'L', >> 'valueDefault' => 'es', >> 'valueMap' => array ( >> 'es' => '2', >> 'en' => '1', >> ), >> 'noMatch' => 'bypass', >> ), >> ), >> >> The result is: >> http://www.mydomain.com/en/my_page/ >> http://www.mydomain.com/es/mi_pagina/ >> >> The problem is the param, with the next configuration: >> >> 'postVarSets' => array( >> '_DEFAULT' => array ( >> 'my_var' => array( >> 'GETvar' => 'my_ext[my_var]', >> 'valueMap' => array ( >> '0' => '0', >> '1' => '1', >> '2' => '2', >> ), >> 'valueDefault' => '0', >> ), >> ), >> ) >> >> >> I'd like translate the tag 'my_var' and get the next result: >> http://www.mydomain.com/en/my_page/my_var/0/ >> http://www.mydomain.com/es/mi_pagina/mi_variable/0/ >> >> Andi excuse me, but with your explanation I don't know how I can do it. >> >> Thanks ;-) >> Rego >> >> -- >> http://www.igalia.com >> >> _______________________________________________ >> TYPO3-english mailing list >> TYPO3-english (AT) lists (DOT) netfielders.de >> http://lists.netfielders.de/cgi-bin/.../typo3-english >> >> > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english > > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#8
|
|||
|
|||
|
The URL can be spanish - Nullo Problemo
Give me a spanish word or some spanish words and I rename my pages and you can see it in spanish OK If the Pagetitle is written in spanish it appears in spanish. On the example page it is written in English as I don't know the languages. That's why I wrote i.e. chinese-support/chinese-language/chinese This means one page has Page Title chinese-support with subpage chinese-language and language code chinese You can do the same Hablas (as TOP Page Title) Espanol (as subpage of Top Page It will form the following URL domain.com/hablas/espanol/es es is the language code This code can also be placed after the domain domain.com/es/hablas/espanol or you can substitute es with any other word,sentence like : This_is_the_url_in_spanisch That is exactly what is happening on the example pages and I guess what you would like to have too. In this case it is NOT mainly a URL thing, it is more or less a Pagetranslation case, like I explained further up. Andi 2007/6/6, Manuel Rego Casasnovas <mrego (AT) igalia (DOT) com>: > > > Hi Andreas. > > I see the path in the page content translated, but in the example the > URL is in english: > http://www.t3pack.org/chinese-suppor...guage/chinese/ > > And I'd like that the URL was translated, for example to spanish. > > Furthermore I don't find the source code to use in my RealURL > configuration in the examples. > > > I'd like to translate 'my_var' in the URL of my pages. How I can > translate the key for the GET param, which I set it in the second line: > > postVarSets' => array( '_DEFAULT' => array ( > 'my_var' => array( ... > > > Thanks, > Rego > > -- > http://www.igalia.com > > > Andreas Becker escribió: > > Hi Rego > > > > My Explanations would mainly solve the translation Problem > > > > I'd like get a URL all in spanish when the frontend user select this > > > >> language: .../mi_pagina/mi_variable/1/. > >> > >> > > > > As you can see on our demo sites. > > > > http://www.t3pack.org/chinese-suppor...guage/chinese/ > > > > Is it that what you want? > > > > Andi > > > > 2007/6/6, Manuel Rego Casasnovas <mrego (AT) igalia (DOT) com>: > > > >> Hi Andi! > >> > >> Thank you for all your explanations. But I think that I didn't explain > >> myself well. How I said in my first post, now I already translate the > >> page name using the next configuration: > >> 'preVars' => array ( > >> '0' => array ( > >> 'GETvar' => 'L', > >> 'valueDefault' => 'es', > >> 'valueMap' => array ( > >> 'es' => '2', > >> 'en' => '1', > >> ), > >> 'noMatch' => 'bypass', > >> ), > >> ), > >> > >> The result is: > >> http://www.mydomain.com/en/my_page/ > >> http://www.mydomain.com/es/mi_pagina/ > >> > >> The problem is the param, with the next configuration: > >> > >> 'postVarSets' => array( > >> '_DEFAULT' => array ( > >> 'my_var' => array( > >> 'GETvar' => 'my_ext[my_var]', > >> 'valueMap' => array ( > >> '0' => '0', > >> '1' => '1', > >> '2' => '2', > >> ), > >> 'valueDefault' => '0', > >> ), > >> ), > >> ) > >> > >> > >> I'd like translate the tag 'my_var' and get the next result: > >> http://www.mydomain.com/en/my_page/my_var/0/ > >> http://www.mydomain.com/es/mi_pagina/mi_variable/0/ > >> > >> Andi excuse me, but with your explanation I don't know how I can do it. > >> > >> Thanks ;-) > >> Rego > >> > >> -- > >> http://www.igalia.com > >> > >> _______________________________________________ > >> TYPO3-english mailing list > >> TYPO3-english (AT) lists (DOT) netfielders.de > >> http://lists.netfielders.de/cgi-bin/.../typo3-english > >> > >> > > _______________________________________________ > > TYPO3-english mailing list > > TYPO3-english (AT) lists (DOT) netfielders.de > > http://lists.netfielders.de/cgi-bin/.../typo3-english > > > > > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#9
|
|||
|
|||
|
> The URL can be spanish - Nullo Problemo
> > Give me a spanish word or some spanish words and I rename my pages > and you can see it in spanish OK > > If the Pagetitle is written in spanish it appears in spanish. > > On the example page it is written in English as I don't know the > languages. > > That's why I wrote i.e. > > chinese-support/chinese-language/chinese > > This means one page has Page Title > chinese-support > with subpage > chinese-language > and language code chinese > > You can do the same > Hablas (as TOP Page Title) > Espanol (as subpage of Top Page > > It will form the following URL > > domain.com/hablas/espanol/es es is the language code > > This code can also be placed after the domain > > domain.com/es/hablas/espanol > > or you can substitute es with any other word,sentence like : > This_is_the_url_in_spanisch > > That is exactly what is happening on the example pages and I guess > what you would like to have too. > In this case it is NOT mainly a URL thing, it is more or less a > Pagetranslation case, like I explained further up. The problem is _NOT_ the translation of pages and to build a translated URL out of some translated page titles or subtitles. It's about labelling any GET parameter and having the correct translation in the URL. As far as I understood he wants to do something like this: www.domain.tld/index.php?id=123&print=1 should be www.domain.tld/some/path/tothe/page/print/1/ while www.domain.tld/index.php?id=123&print=1&L=1 should be www.domain.tld/ein/pfad/zur/seite/druck/1/ where print/druck is not a page but just the translated name of the GET parameter. I guess this is only possible, if you can connect the setting for these GET parameters to the one that is handling the language settings. Got the point? Joey -- Wenn man keine Ahnung hat: Einfach mal Fresse halten! (If you have no clues: simply shut your gob sometimes!) Dieter Nuhr, German comedian openBC/Xing: http://www.cybercraft.de T3 cookbook: http://www.typo3experts.com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |