Sha256: b7be8fe00b1a3702fe6263583edcf353d1258be419150f5b5a8a6a218da2f18a
Contents?: true
Size: 1.37 KB
Versions: 1
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.en.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hobo-1.0.0 | taglibs/rapid_translations.dryml |