Loading ...
Sorry, an error occurred while loading the content.

New YUI Plugin: YAHOO.util.Translator (Internationalization onDemand)

Expand Messages
  • Caridy PatiƱo Mayea
    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
    Message 1 of 1 , Jul 4, 2007
    • 0 Attachment
      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/
    Your message has been successfully submitted and would be delivered to recipients shortly.