Page 3 of 7

Re: Multiple Languages

Posted: Sun Aug 07, 2016 10:06 am
by happydg
It works without the url rewrite but i can't figure out how to make the search url rewrite work correctly with languages.

Thank you.

Re: Multiple Languages

Posted: Sun Aug 07, 2016 10:09 am
by admin
Honestly the best way it to take a quick look at mod_rewrite docs, you need just basic knowledge to create new rewrites and you'll need it a lot if you want to create your own rewrites.

Re: Multiple Languages

Posted: Mon Aug 08, 2016 7:47 pm
by happydg
I think there is a bug.

If you enable synonyms, It creates different slug for each language in one gallery.

Then slug= won't work correctly.

Re: Multiple Languages

Posted: Mon Aug 08, 2016 11:12 pm
by admin
Indeed it creates a different slug for each language but for a reason.

&slug=...&force_lng=... should

did you check it ?

Re: Multiple Languages

Posted: Tue Aug 09, 2016 8:02 pm
by happydg
I found the solution to make search rewrite work on multilingual:

Code: Select all

RewriteCond %{QUERY_STRING} ^(.+)$ 
RewriteRule ^search/([^/]+)/$ /scj/cgi/out.php?link=images/&%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&search=$1&order=ctr [L]
RewriteRule ^search/([^/]+)/$ /scj/tube/index.php?search=$1&order=ctr&search_type=query [L]
RewriteRule ^search/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ /scj/cgi/out.php?link=images/&%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&search_type=$1&search=$2&order=$3&page=$4 [L]
RewriteCond %{QUERY_STRING} ^(.+)$ 
RewriteRule ^search/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ /scj/cgi/out.php?link=images/&%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&search_type=$1&search=$2&order=$3&page=$4 [L]
RewriteRule ^search/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?search_type=$1&search=$2&order=$3&page=$4 [L]
RewriteRule ^action/(.*)/(.*)/$ /scj/tube/index.php?action=$1&action_params=$2 [L]

Re: Multiple Languages

Posted: Tue Aug 09, 2016 9:37 pm
by admin
So actually the issue was rewrites, not the script?

Re: Multiple Languages

Posted: Tue Aug 09, 2016 9:42 pm
by happydg
Yes it was working without the rewrite but i couldn't make it work with it.

Re: Multiple Languages

Posted: Wed Aug 10, 2016 7:29 am
by admin
Ok

Re: Multiple Languages

Posted: Sun Aug 21, 2016 5:14 pm
by happydg
I notice my sql database is very big. Do having multiple languages increase a lot the sql database size? Even if i use the same descriptions for all languages?

I have Own category stats and Own thumb stats as no and categories not splitted and one thumb per gallery.

I just need languages for category translations, languages redirect and translate few words in the template ( with the language template ).

I have 120k galleries and the database is 6gb. I don't need one gallery description per language.

My dedicated server is often going down because of it.

If you could add this option to have the same desc for all languages, and not create data for each language of each gallery, it would reduce dramatically the size of the sql database. It would be great.

Thank you.

Re: Multiple Languages

Posted: Mon Aug 22, 2016 8:37 am
by admin
How many languages do you have ?