Module ActiveLdap::GetTextFallback::Translation
In: lib/active_ldap/get_text_fallback.rb
Error AttributeAssignmentError AdapterNotSpecified OperationNotPermitted RequiredObjectClassMissed ConnectionError RequiredAttributeMissed LdifInvalid LdapError DistinguishedNameNotSetError EntryNotFound SaveError StrongAuthenticationRequired NotImplemented AdapterNotFound TimeoutError AuthenticationError AttributeValueInvalid EntryNotSaved DistinguishedNameInputInvalid EntryAlreadyExist ObjectClassError UnknownAttribute EntryInvalid DeleteError ConfigurationError ConnectionNotSetup DistinguishedNameInvalid Schema\n[lib/active_ldap/schema.rb\nlib/active_ldap/schema/syntaxes.rb] DistinguishedName Base Reloadable::Deprecated Reloadable::Subclasses Enumerable Ldif Collection EntryAttribute StandardError Children HasManyWrap HasMany BelongsToMany Proxy BelongsTo Common Find LDIF Delete Update GetText::Translation Normalizable GetText Parser ActiveRecord::Callbacks ActiveRecord::Validations Base\n[lib/active_ldap/adapter/base.rb\nlib/active_ldap/adapter/jndi.rb\nlib/active_ldap/adapter/ldap.rb\nlib/active_ldap/adapter/net_ldap.rb] Jndi Ldap NetLdap GetTextSupport Xml JndiConnection lib/active_ldap/distinguished_name.rb lib/active_ldap/base.rb lib/active_ldap/schema/syntaxes.rb lib/active_ldap/xml.rb lib/active_ldap/entry_attribute.rb lib/active_ldap/ldif.rb lib/active_ldap/ldap_error.rb Compatible ClassMethods Associations LdapBenchmarking ActionController Populate lib/active_ldap/association/has_many_wrap.rb lib/active_ldap/association/children.rb lib/active_ldap/association/collection.rb lib/active_ldap/association/proxy.rb lib/active_ldap/association/belongs_to_many.rb lib/active_ldap/association/belongs_to.rb lib/active_ldap/association/has_many.rb HasManyUtils Association ClassMethods Tree Acts Command Update Common ModifyNameRecordLoadable AddOperationModifiable DeleteOperationModifiable ReplaceOperationModifiable ModifyRecordLoadable DeleteRecordLoadable AddRecordLoadable ContentRecordLoadable LDIF Delete Find Operations GetTextSupport Escape ClassMethods Normalizable Attributes ClassMethods Configuration ClassMethods ObjectClass lib/active_ldap/get_text/parser.rb GetText ClassMethods Callbacks Validations lib/active_ldap/adapter/jndi_connection.rb lib/active_ldap/adapter/net_ldap.rb lib/active_ldap/adapter/ldap.rb lib/active_ldap/adapter/jndi.rb Adapter Helper Translation GetTextFallback ClassMethods HumanReadable Salt UserPassword ClassMethods Connection ActiveLdap dot/m_46_0.png

Methods

N_   Nn_   _   included   n_   s_  

Public Class methods

[Source]

    # File lib/active_ldap/get_text_fallback.rb, line 17
17:         def included(base)
18:           base.extend(self)
19:         end

Public Instance methods

[Source]

    # File lib/active_ldap/get_text_fallback.rb, line 39
39:       def N_(msg_id)
40:         msg_id
41:       end

[Source]

    # File lib/active_ldap/get_text_fallback.rb, line 43
43:       def Nn_(msg_id, msg_id_plural)
44:         [msg_id, msg_id_plural]
45:       end

[Source]

    # File lib/active_ldap/get_text_fallback.rb, line 22
22:       def _(msg_id)
23:         msg_id
24:       end

[Source]

    # File lib/active_ldap/get_text_fallback.rb, line 26
26:       def n_(arg1, arg2, arg3=nil)
27:         if arg1.kind_of?(Array)
28:           msg_id = arg1[0]
29:           msg_id_plural = arg1[1]
30:           n = arg2
31:         else
32:           msg_id = arg1
33:           msg_id_plural = arg2
34:           n = arg3
35:         end
36:         n == 1 ? msg_id : msg_id_plural
37:       end

[Source]

    # File lib/active_ldap/get_text_fallback.rb, line 47
47:       def s_(msg_id, div='|')
48:         index = msg_id.rindex(div)
49:         if index
50:           msg_id[(index + 1)..-1]
51:         else
52:           msg_id
53:         end
54:       end

[Validate]