We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Using levi’s multi language for a new project

Development and Programming

pab514's avatar
pab514
181 posts
16 years ago
pab514's avatar pab514

Hi everyone,

I started a new bilingual project, and we’re using Levi’s multi language plug in to handle the transaltion from english to french

I read the documentation a couple of times and i am stuck on what to do after i reach the choose your language and separate them with a pipeline

and that’s as far as I got , can’t figure out the rest starting at this line

Usage Determining the language Now that the addon has been installed an setup correctly there are two options for determining which language file should be used. The extension determines which language file to use by the languages abbreviation. Subdomains URL segments http://leevigraham.com/cms-customisation/expressionengine/lg-multi-language/#url-segments

would really appreciate some help to get this going,

Mod Edit: Moved to the Extensions: Discussion and Questions Forum

       
pab514's avatar
pab514
181 posts
16 years ago
pab514's avatar pab514

So i got some help from @ebarstad

I created some fr custom fields

when i add a /fr at the end of the url, i get to see the french content.

my one issue now, is when i click on the read more link i get the english content.

{exp:weblog:entries weblog="news" limit="2" status=" top story" }    
                            <div class="post clearfix">
                        
                        
                        
                        <h3 class="post_date">{entry_date format="%M %d %Y"}</h3>
                        <span class="corner"></span>
                        <h2 class="post_h2">{if lg_lang == 'fr'} {title_fr} {if:else} {title} {/if}</h2>
                        
                        
                        <!-- img/montreal-boston-ny-flyer.gif -->
                        {exp:imgsizer:size src="{featured_news_thumbnail}" width="150" alt ="poster" class="align_left"}
                        
                        {if lg_lang == 'fr'} {news_excerpt_fr} {if:else} {news_excerpt} {/if}
                        
                        <div class="read_more_post clearfix"><a href="http://{title_permalink=">read more</a></div>
       
pab514's avatar
pab514
181 posts
16 years ago
pab514's avatar pab514

i figured it out

this is what i used, curiosu to se if this is the proper way of doing it.

{    {if lg_lang == 'fr'}<a href="http://{title_permalink=">read more</a>

also how do i set the site to also work with http;//www.fr.examplesite.com

       
Brendon Carr's avatar
Brendon Carr
135 posts
16 years ago
Brendon Carr's avatar Brendon Carr

I understood Leevi Graham to have been working on an LG Multi Language Pro, which was to have given us more power for handling language-specific subdomains and whatnot. I even saw a screenshot of something else Leevi’s been working on, which makes reference to that LG Multi Language Pro extension. But for those of us in the general public, or even his software customers, it doesn’t seem to be ready for the light of day yet.

Too bad, really. Because I want to buy and use it. But when you look at the productivity out of that guy, it’s hard to blame him for these choices.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.