File: example.js

package info (click to toggle)
ruby-gettext-i18n-rails-js 2.0.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 180 kB
  • sloc: ruby: 927; javascript: 33; makefile: 11
file content (12 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
function pepito() {
  var string = "this" + __('json') + 'should be translated';
  alert(n__('item', 'items', 3));
}

example_template(__('Hello {yourname}'), { yourname: 'bob' });

object = {
  one: N__('new-trans'),
  two: s__('namespaced', 'trans')
  three: __("Hello\nBuddy")
}