Multiple Languages

happydg
Posts: 412
Joined: Mon Jul 08, 2013 2:22 pm

Re: Multiple Languages

Post 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.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Multiple Languages

Post 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.
Don't forget to run script update
happydg
Posts: 412
Joined: Mon Jul 08, 2013 2:22 pm

Re: Multiple Languages

Post 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.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Multiple Languages

Post by admin »

Indeed it creates a different slug for each language but for a reason.

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

did you check it ?
Don't forget to run script update
happydg
Posts: 412
Joined: Mon Jul 08, 2013 2:22 pm

Re: Multiple Languages

Post 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]
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Multiple Languages

Post by admin »

So actually the issue was rewrites, not the script?
Don't forget to run script update
happydg
Posts: 412
Joined: Mon Jul 08, 2013 2:22 pm

Re: Multiple Languages

Post by happydg »

Yes it was working without the rewrite but i couldn't make it work with it.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Multiple Languages

Post by admin »

Ok
Don't forget to run script update
happydg
Posts: 412
Joined: Mon Jul 08, 2013 2:22 pm

Re: Multiple Languages

Post 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.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Multiple Languages

Post by admin »

How many languages do you have ?
Don't forget to run script update
Post Reply