So I developed multilanguage capabilities for our external web site at
the request of several local bigwigs.

The external site that I am responsible for is a sub-site specifically
for the part of the business I work for. I run my own servers on a
different OS and CMS than Division (I use win2003 Server/IIS6/CFMX6.1,
they use win boxes with OpenMarket version 4 based CMS...not sure of
their web server --- just background, doesn't actually have that much
to do with my issue)

I went through the process of asking for multilanguage display specs
from the Division level web folks to no avail, I got answers spanning
the spectrum from "we don't have any" to "we only have them in French"
to "it is not your responsibility to build in multilanguage
capabilities, leave that to us" <--- hence the server spec background
info earlier, them "taking care of it," doesn't actually help me...

<<sigh>>

since the Division site wasn't moving forward on it, I was left
wandering the wilderness...

So here's my problem, I developed a system that uses flags to indicate
language choices. Click a flag, the page reloads itself in the chosen
language, et viola!

The Problem:

Division has now come back and said that I "didn't develop the ML
capabilities to specification"

WTF?!?!?!?!

<<sigh>>

Anyway, they don't like the flags (especially the American one) and
they want to replace those with text representations of the languages
available.

no problem, but they also want to throw in a wrinkle.

now they are telling me that the language that is currently selected
must not appear in the list of languages.

?

so on an English page you would see the following in the language list:

> Francais <-- with attendant cedilla --<<
> Deutsch
> Espanol <-- with attendant n-tilde --<<
> Chinese <-- in double-byte PRC characters --<<

the French version of the same page would show this:

> English
> Deutsch
> Espanol <-- with attendant n-tilde --<<
> Chinese <-- in double-byte PRC characters --<<

that actually turns out okay, not really a problem.

Here is the real issue, and I though it should be fairly simple to
solve: if there is no translation available, they want the unavailable
langauge to _not_ show up in the list (sorta defeats the purpose of
session based language selection, but I can work around that bit with
some trickery) so the English page list, if there is no Chinese
translation available would look like this:

> Francais <-- with attendant cedilla --<<
> Deutsch
> Espanol <-- with attendant n-tilde --<<

No Spanish and no Chinese, like this:

> Francais <-- with attendant cedilla --<<
> Deutsch

and my brain is apparently not willing to cooperate, because I cannot
get my head wrapped around this seemingly simple solution.

I am trying to key off of the title entry as pages that are translated
will always have a translated title, but won't necessarily have body
copy. All pages exist in English first, there is no such animal as a
page with Chinese title and body but no English (that's a hard and
fast rule)

I'm thinking the logic should look like this:

<cfloop list="all available language locales" index="locale name(loopLocale)">
   <cfif session_chosen_locale_name = loopLocale AND text for this
loopLocale neq "">
    > locale Name (in native language)
   </cfif>
</cfloop>

but its not working, the above logic produces a full list but doesn't
eliminate the name of a langauge when it is not available.

HELP! PLEASE!

Thanks in advance.
--
will


"If my life weren't funny, it would just be true;
and that would just be unacceptable."
- Carrie Fisher

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:175973
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to