Multilingual problem

filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Multilingual problem

Post by filthlab »

Hi,
I have a problem with one of my templates - multilingual further is not working for it. When you browse by tubes: http://filthlab.com/es/tube/vporn/ categories are not translated, also links to paginating and groups are not correct. For instance the link to page 2 should be http://filthlab.com/es/tube/vporn/ctr/2/, but now it is http://filthlab.com/tube/vporn/ctr/2/

Any idea how to fix all this?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Multilingual problem

Post by admin »

How do you generate that link in template ?
Don't forget to run script update
filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Re: Multilingual problem

Post by filthlab »

Fo thumbs:
<div class="plenn"><thumb num=1-100><div class="oddex"><a href="<?php echo $url_lng_prefix?>/gallery/<!--GALLERY_SLUG-->/index.html" rot_id='<!--THUMB_LINK-->' target="_blank" title="<!--ALT-->"><img id='rot<!--GALLERY_ID-->' src="<!--THUMB_URL-->" alt="<!--ALT_60-->" rel="<!--ALL_THUMBS-->" /><!--ALT_33--></a><span class="timerr"><!--DURATION--></span><div class="addox"><?=ezDate('<!--ACTIVATION_DATETIME-->'); ?></div><div class="tubenamme"><a href="<?=$url_lng_prefix?>/tube/<!--SPONSOR_SEO_NAME-->/"><!--SPONSOR_SITE--></a></div><div class="rimmes"><a href="<?php echo $url_lng_prefix?>/category/<!--CATEGORY_2_NAME-->/"><!--CATEGORY_2_CUSTOM_NAME--></a> <a href="<?php echo $url_lng_prefix?>/category/<!--CATEGORY_3_NAME-->/"><!--CATEGORY_3_CUSTOM_NAME--></a> <a href="<?php echo $url_lng_prefix?>/category/<!--CATEGORY_4_NAME-->/"><!--CATEGORY_4_CUSTOM_NAME--></a></div></div></thumb></div>

For pagination:
<!--Pagination1 Start-->
<div class="plenn">
<ul class="skopps"><li class='empty'>pages:</li>
<pagination first_pages=3 adjustment=1 last_pages=3 range_separator="..." skip_href_deletion=true>
<li><a href="<?=$url_lng_prefix?>/tube/<!--SPONSOR_SEO_NAME-->/<!--SORT_ORDER-->/<!--PAGE_NUM-->/" title="<!--PAGE_NUM-->"><!--PAGE_NUM--></a></li>
</pagination>
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Multilingual problem

Post by admin »

Use regular tags plz

<!--LNG_CODE--> or <!--LNG_URL_PREFIX--> (basically the same)
Don't forget to run script update
filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Re: Multilingual problem

Post by filthlab »

I replaced for pagination:

<li><a href="<?=$url_lng_prefix?>/tube/<!--SPONSOR_SEO_NAME-->

with:

<li><a href="<!--LNG_CODE-->/tube/<!--SPONSOR_SEO_NAME-->

and the result is the same

I don't think the problem is in the way of linking. Like I mentioned, categories are not translated, when you browse by tubes. I'm adding categories in this template like this: <!--INCLUDE_TEMPLATE_catstxt-->

I'm using absolutely the same way of linking and adding categories in other templates, like "content_list", and there all is working fine.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Multilingual problem

Post by admin »

Did you open w\o cache ?
Don't forget to run script update
filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Re: Multilingual problem

Post by filthlab »

Just checked w/o cache, and got the same result.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Multilingual problem

Post by admin »

Ok, send me admin area plz and where to check
Don't forget to run script update
filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Re: Multilingual problem

Post by filthlab »

Did you get the PM?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Multilingual problem

Post by admin »

Yes
I checked template 'tube'
it had

"php echo $url_lng_prefix?>/"

where did you replace it with <!--LNG_CODE--> ?
Don't forget to run script update
Post Reply