Webmastersite.net
Register Log In

Categories in Foreign Language as well
When switching language, categories change too

Comments on Categories in Foreign Language as well

2222a
Member

Usergroup: Customer
Joined: May 13, 2007

Total Topics: 16
Total Comments: 37
2222a
Posted May 22, 2007 - 1:53 PM:

hi,
for many sites it will come in handy to have a second field for categories so when switching the language the category name changes to that language as well. If we think about it, everything else is already, say in Spanish, but the categories are in English. I think it would be a great option, as the website titles usually are self-explanatory with the names--or some of us will offer a description in both languages. You may see an example here http://cuscoperu.net/pmd11/ (change language on bottom) On the plugin, there is a second field to enter the category name in a second language that corresponds to the one on the template.

Is there an easy way to do it via extra fields /plugin or something?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 22, 2007 - 4:26 PM:

See the introductory manual PDF for instructions on translating categories/links. http://scripts.webmastersite.net/wsnlinks/manual4.pdf
2222a
Member

Usergroup: Customer
Joined: May 13, 2007

Total Topics: 16
Total Comments: 37
2222a
Posted May 23, 2007 - 10:24 AM:

wow; it's amazing! Thank you Paul.

I should have read the f manual though smiling face
2222a
Member

Usergroup: Customer
Joined: May 13, 2007

Total Topics: 16
Total Comments: 37
2222a
Posted May 24, 2007 - 1:01 PM:

<IF {VISITORLANGUAGE} is English>{CATNAME}
<OTHERWISE IF {VISITORLANGUAGE} is Italian>{CATITALIAN}</IF>

I have set in the main.tpl and when I change langauges, nothing happens. I have:
Added the field "italian" to the category table
Added translation to a few cats to test--it is there.
I have multilingual and default and it shows in other translated parts

what am I missing? I have checked the spelling and all but still, when the index page is pulled that categories are in English. The 2nd language is named Italian.lng

Browsing the db I noticed that "Collation" is set to "latin1_swedish_ci" I think I used that randonmly...but I have no special characters. is that a problem?

Thanks again,

any suggestions?

Thanks,
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 27, 2007 - 6:17 AM:

Content within <!-- BEGIN SUBSUB --> <!-- END SUBSUB --> only updates on category regeneration.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.