Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
with I18N: the side-name(s) for the startpage(s) not delivered
#1
Hi,
I have a three-language page and
a ml-problem and questions to the URLs:

1. the startpages always ends up with a single .html-extension like:
-domainname.tld/.html (Forbidden, blank side)
-domainname.tld/en/.html (works but doesn´t feel good)
-domainname.tld/404.html (Oops! ...)
...
how I get rid oft these .html's??
Or I set an 'index' before it??


-------------------
about my settings:

for the .htaccess I used, based on yurifanboy, this
http://get-simple.info/forums/showthread...tilanguage

Code:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^/?$ de/ [R,L] # redirect to language of your choice
RewriteRule ^(de|en|fr)/(.*)$ $2?lang=$1 [QSA,DPI] # replace with your languages
RewriteRule ^(.*);(\d+)([^\d/][^/]*)?/?$ $1$3?page=$2 [QSA,DPI] # for use with pagify plugin
#RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
RewriteRule /?([A-Za-z0-9_-]+)\.html$ index.php?id=$1 [QSA,L]
RewriteRule ^ index.php [L] # for everything else show home page


I´m using
userfriendly Url´s and
Code:
%nondefaultlanguage%/%slug%.html



for switching language, I use this in the template.php
Code:
<a href="<?php echo htmlspecialchars(return_i18n_setlang_url('en')); ?>">english</a><br />

best, Bell.
Reply
#2
so, the situation:
it seems to be not a multilanguage-GS-Problem nor
an .htaccess-Problem, but an I18N-Problem, that brings with
my GS-Configuration, with %nondefaultlanguage%/%slug%.html, out of
Code:
get_i18n_navigation(return_page_slug(FALSE),0,5);
and
Code:
return_i18n_setlang_url('en');
for the particular startpages not a name, like 'index',
but leaves it empty, so that there is
just an slug/.html output possible.
right?
Bell.
Reply
#3
well! it takes a bunch of my seconds, but:
I got it Smile
i18n_base/frontend.class.php, at the end of the function
PHP Code:
private static function getFancyLanguageUrl($slug$parent$lang=null$type='full') {
 ...
      
$plink str_replace('%slug%''index'$plink); } 
    return (string) 
$full $plink;  } 
the second value for plink wasn´t declared/empty. So I fill it here with index.
regards, Bell.
Reply




Users browsing this thread: 1 Guest(s)