Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
New YUI Plugin: YAHOO.util.Translator (Internationalization onDeman   Message List  
Reply | Forward Message #15193 of 52114 |
Hello Everybody,

As I announced the last week in a previous post, here is the new YUI
Plugin for those who create multi-language applications and
multi-language components.

You can use this package to separate the language sentences from your
javascript components, usually the solution is release different
components for different languages, but this is painful for the
maintaining process, and also is a problem to the community to
collaborate with you in the creation of different language package for
a component.

New YUI plugin for internationalization onDemand, you will be able to
translate all the "Language Sentences" in your JavaScript without
duplicate your code for each interface, and also support switching
between different languages on the fly.

CURRENT FEATURES:
-------------------------
- Inline and Remote "language sentences" definition
- Modules definition: you can group few language sentences in a module
(each component or control will have a language package)
- Remote language sentences (module) will be loaded using YUI
Connection Manager and decoded using JSON
- Switching language on the fly, the translator plugin will reload all
the active modules using AJAX
- Verification of the status of certain language module using
"isReady" method.
- String propotypal modification to support translation like this:
alert ( 'MY_PHRASE'.translate() );
- Encoding (autoconversion to UTF-8 for AJAX response), you can
specify the original charset in the initialization process.
- Custom Events definition for important moments during the loading
process (onReady, onError, onNull).

COMING FEATURES:
---------------------------
- PHP:PEAR:Translation2 integration (including an administration
system for language modules).
- Loading remote modules from another server (cross-domain)
- Translation of multiples sentences in the same line.
- Supplant mechanism using a simple template's system.

Common component structure (example with 3 language modules):
-----------------------------------------------------------------------------
/yui-cms/build/feed/feed-min.js
/yui-cms/build/feed/feed.js
/yui-cms/build/feed/assets/feed.css
/yui-cms/build/feed/lang/eng.json
/yui-cms/build/feed/lang/esp.json
/yui-cms/build/feed/lang/fra.json

IMPORTANT NOTE: is the first BETA version, I need feedbacks and
suggestions... ;-) and this plugin isn't included in the current
version of the Bubbling Library. Will be in the next release at the
end of july, but you can download it directly from here:
http://bubbling.comarq.com/eng/api/docs/plugins/translator

Full Documentation:
http://bubbling.comarq.com/eng/api/docs/plugins/translator/documentation

Examples:
http://bubbling.comarq.com/themes/bubbling/jscripts/yui-cms/examples/translator/\
index.html


Sources:
http://bubbling.comarq.com/eng/api/docs/plugins/translator/source

Regards
Caridy (caridy at gmail.com)
http://bubbling.comarq.com/




Thu Jul 5, 2007 5:37 am

caridyp
Offline Offline
Send Email Send Email

Forward
Message #15193 of 52114 |
Expand Messages Author Sort by Date

Hello Everybody, As I announced the last week in a previous post, here is the new YUI Plugin for those who create multi-language applications and ...
Caridy Patiño Mayea
caridyp
Offline Send Email
Jul 5, 2007
5:38 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help