Sha256: b5ecf4e079f900a12ec713a7a23c4be9912e90d1661d6bc0c03d08446682891b

Contents?: true

Size: 1.15 KB

Versions: 23

Compression:

Stored size: 1.15 KB

Contents

Description:
    The language_extension generator creates stubs for a new Radiant translation.

    The generator takes an language abbreviation as its argument.  The extension name may be
    given as a language abbreviation 'en' or a localized abbreviation 'en-GB' and should not 
    be prefixed with 'i18n' or suffixed with 'Extension'.

    The generator creates an extension directory in vendor/extensions that includes
    i18n_<extension_name>_extension.rb, README and Rakefile files as well as lib, task,
    and test directories.

Example:
    ./script/generate language_extension fr 

    This will create:
    vendor/extensions/i18n_fr/config/locales/fr.yml
    vendor/extensions/i18n_fr/lib/tasks
    vendor/extensions/i18n_fr/README
    vendor/extensions/i18n_fr/i18n_fr_extension.rb
    vendor/extensions/i18n_fr/lib/tasks/i18n_fr_extension_tasks.rake
    vendor/extensions/i18n_fr/spec/controllers
    vendor/extensions/i18n_fr/spec/models
    vendor/extensions/i18n_fr/spec/views
    vendor/extensions/i18n_fr/spec/helpers
    vendor/extensions/i18n_fr/Rakefile
    vendor/extensions/i18n_fr/spec/spec_helper.rb
    vendor/extensions/i18n_fr/spec/spec.opts

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
radiant-1.1.4 lib/generators/language_extension/USAGE
radiant-1.1.3 lib/generators/language_extension/USAGE
radiant-1.1.2 lib/generators/language_extension/USAGE
radiant-1.1.1 lib/generators/language_extension/USAGE
radiant-1.1.0 lib/generators/language_extension/USAGE
radiant-1.1.0.rc1 lib/generators/language_extension/USAGE
radiant-1.1.0.beta lib/generators/language_extension/USAGE
radiant-1.0.1 lib/generators/language_extension/USAGE
radiant-1.1.0.alpha lib/generators/language_extension/USAGE
radiant-1.0.0 lib/generators/language_extension/USAGE
radiant-1.0.0.rc5 lib/generators/language_extension/USAGE
radiant-1.0.0.rc4 lib/generators/language_extension/USAGE
radiant-1.0.0.rc3 lib/generators/language_extension/USAGE
radiant-1.0.0.rc2 lib/generators/language_extension/USAGE
radiant-1.0.0.rc1 lib/generators/language_extension/USAGE
radiant-rails3-0.1 lib/generators-rails2/language_extension/USAGE
radiantcms-couchrest_model-0.1.4 lib/generators/language_extension/USAGE
radiantcms-couchrest_model-0.1.3 lib/generators/language_extension/USAGE
radiantcms-couchrest_model-0.1.2 lib/generators/language_extension/USAGE
radiantcms-couchrest_model-0.1.1 lib/generators/language_extension/USAGE