Sha256: 095d9cdf8a9fd73a6b55a51273b802921bdaf901d0aae48b208dea46d2d91652

Contents?: true

Size: 1.37 KB

Versions: 17

Compression:

Stored size: 1.37 KB

Contents

<!-- Rapid Translations contains the tags that assist with internationalization. -->

<!-- 

Uses RoR native I18n.translate.
    
Adds some conventions for easier hobo translation. 

1. Assumes the first part of the key to be a model name (e.g.: users.index.title -> user)
2. Tries to translate the model by lookup for: (e.g.: user-> activerecord.models.user)
3. Adds a default fallback to the beginning of the fallback chain by replacing the first part of the key with "hobo" and using the translated model name as additional attribute. This allows us to have default translations (e.g.: hobo.index.title: "{{model}} Index")
   
Is also used as a tag in the dryml-view files. The syntax is:

      <ht key="my.app">My Application</ht>

Will lookup the "my.app"-key for your locale and replaces the "My Application" content if found.
    
      <ht key="my" app="Program">My Application</ht>

Will look up both the "my"- and "app"-key for your locale, and replaces the "My Application" with the "my"-key contents (interpolated using the "app"-key.

sample.no.yml-file:

      "no":
        my: "Mitt {{app}}"

The output should be: Mitt Program
    
Otherwise with features as the ht method, step 1, 2 and 3 above. 

For more information, see the [manual](/manual/i18n)
-->
<def tag="ht">
  <% # this tag is actually implemented in translations.rb.   This file is for documentation only! -%>
</def>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hobo-1.1.0 taglibs/rapid_translations.dryml
hobo-1.0.3 taglibs/rapid_translations.dryml
hobo-1.1.0.pre4 taglibs/rapid_translations.dryml
hobo-1.1.0.pre3 taglibs/rapid_translations.dryml
hobo-1.3.0.pre19 lib/hobo/rapid/taglibs/rapid_translations.dryml
hobo-1.3.0.pre18 lib/hobo/rapid/taglibs/rapid_translations.dryml
hobo-1.1.0.pre2 taglibs/rapid_translations.dryml
hobo-1.1.0.pre0 taglibs/rapid_translations.dryml
hobo-1.0.2 taglibs/rapid_translations.dryml
hobo-1.3.0.pre16 lib/hobo/rapid/taglibs/rapid_translations.dryml
hobo-1.3.0.pre15 lib/hobo/rapid/taglibs/rapid_translations.dryml
hobo-1.3.0.pre14 lib/hobo/rapid/taglibs/rapid_translations.dryml
hobo-1.3.0.pre13 lib/hobo/rapid/taglibs/rapid_translations.dryml
hobo-1.3.0.pre12 lib/hobo/rapid/taglibs/rapid_translations.dryml
hobo-1.3.0.pre11 lib/hobo/rapid/taglibs/rapid_translations.dryml
hobo-1.3.0.pre10 lib/hobo/rapid/taglibs/rapid_translations.dryml
hobo-1.0.1 taglibs/rapid_translations.dryml