I'm building a new site using PN .8 and I have to install at least 2 languages... but how can I create a "static" page and define different contents for every languages?
Pages and htmlpages don't seem to allow it (you can make a page for every languages, but when the user switch from english to italian the page will remains in english until the user don't click on the new language specific menu)
Is there any module or workaround for what I'm trying to do? Thanks
--
Zikula Italia
SimpleGallery
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
How to static contents and languages?
-
- Rank: Developer
- Registered: Mar 29, 2005
- Last visit: Mar 13, 2010
- Posts: 228
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
There's nothing I know that will do this now (maybe Pagesetter).
What i'm looking to for a future release is to handle ML content differently. The problem with simply defining any content item in multiple languages by simply creating two copies in different languages is that associated services (e.g. hooks - comments, ratings etc.) don't tie up.
What i'd like to do is have a system where by you create a content item and then translate it. The core will then provide the user back the relevant item depending on the requested language. This should be seamless and, if possible, integrate auto-magically with existing modules.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Developer
- Registered: Mar 29, 2005
- Last visit: Mar 13, 2010
- Posts: 228
-
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: May 18, 2010
- Posts: 985
Perhaps this is something you could use in your static page
Code
<!--[pnusergetlang assign=currentlang]-->
<!--[if $currentlang == "eng"]-->
English Text
<!--[elseif $currentlang == "spa"]-->
Habla Espagnol?
<!--[else]-->
Italiano... <img src="http://community.zikula.org/images/smilies/icon_smile.gif" alt="icon_smile" />
<!--[/if]-->
- Igor -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
Code
<!--[pnusergetlang assign='lan']-->
// check against the first language
<!--[if $lan eq "due"]-->
// assign the template for this language
<!--[include file='due.htm']-->
// add if statements for each language
<!--[else]-->
// assume the default language is English
<!--[include file='default_lang.htm']-->
<!--[/if]-->
Or you could break up the HTML files by language, and pull them in as needed...
--
David Pahl
Zikula Support Team -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Igor,
Now there's smart(y) idea. Sorry about the pun - I couldn't resist.
Note: by default the pages module doesn't allow Smarty tags but using the pnrender_hook module you can enable this functionality.
htmlpages does allow Smarty tags by default.
-Mark
--
Visit My homepage and Zikula themes.
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
