plainblack.com
Username Password
search
Bookmark and Share

    

International Language Thinking Cap

User sandraqu
Date 2/2/2010 11:48 am
Views 362
Rating 0    Rate [
|
]
Previous · Next
User Message
sandraqu

 

I wonder if you can help me finesse the idea for a multi-language page title macro.

There is an international macro, but i don't understand how it works fully, or if it would address my query.

Simply stated, we have language links (english, spanish, french), and if you click french, you get the page in french. Details to consider:

--The URL /mypage (default english); FR/mypage (for the page in french - translation done inhouse, so we are not using Google); SP/myspace (for spanish), etc.

--The < a href TITLE="mypage's title in french" ...> for the french link.  So i need to grab the page title of the page i'm goign to (not the page title of the page i'm in).

What I hope to do is pull in the proper language out of an array for the page title, or a navigation link based on the URL -- no, I need something more reliable than the URL -- Is there a page ID?

i welcome ideas, comments.  --sandra

 

--- (Edited on 2/2/2010 11:48 am [GMT-0600] by sandraqu) ---



Back to Top
Rate [
|
]
 
 
martien

There is an international macro, but i don't understand how it works fully, or if it would address my query.

If you don't like to build double tree-structures, have a look at

http://www.webgui.org/bazaar/mllang---display-internationalized-content

I added some more comments today.

 

--- (Edited on 03.02.2010 01:39 [GMT+0100] by martien) ---



Back to Top
Rate [
|
]
 
 
perlDreamer

There's also this solution for internationalized content.

Basically, you build an English branch, and in parallel with it, one branch for each language.  Then, you include the macro on the page, and it will generate links to the other branches.

--- (Edited on 2/2/2010 6:54 pm [GMT-0800] by perlDreamer) ---



Back to Top
Rate [
|
]
 
 
bartjol

I've seen Martien's solution and it works very nice.

Also there is the LanguagePageSwitch in the bazaar, which, at the moment only produces url's, but it will be easy to retrieve a page title and ,if desired, template it.

Here are some internationalization add-ons:

http://www.webgui.org/bazaar?func=byKeyword;keyword=language

So you see, there are some different options. If you have any questions, ask here or in the IRC channel

--- (Edited on 3-February-2010 09:59 [GMT+0100] by bartjol) ---



Back to Top
Rate [
|
]
 
 
martien

I've seen Martien's solution and it works very nice.

I now made a public example.

Please have a look at this on http://www.webgui-professional.de/international

--- (Edited on 21.02.2010 15:57 [GMT+0100] by martien) ---



Back to Top
Rate [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved