Class: Translatomatic::ResourceFile::RESW

Inherits:
XML
  • Object
show all
Defined in:
lib/translatomatic/resource_file/resw.rb

Overview

Windows resources file (XML)

Instance Attribute Summary

Attributes inherited from Base

#locale, #options, #path

Class Method Summary collapse

Methods inherited from XML

#save, #set

Methods inherited from Base

#create_variable, enabled?, #get, #get_context, #initialize, #locale_path, preferred_locale_separator, #properties, #properties=, #save, #sentences, #set, supports_variable_interpolation?, #to_s, #type, #variable_regex

Methods included from PathUtils

#detect_path_locale, #modify_path_locale

Constructor Details

This class inherits a constructor from Translatomatic::ResourceFile::Base

Class Method Details

.extensionsArray<String>

Returns File extensions supported by this resource file.

Returns:

  • (Array<String>)

    File extensions supported by this resource file



6
7
8
# File 'lib/translatomatic/resource_file/resw.rb', line 6

def self.extensions
  %w[resw resx]
end

.key_value?boolean

Returns True if the file format consists of keys and values.

Returns:

  • (boolean)

    True if the file format consists of keys and values



11
12
13
# File 'lib/translatomatic/resource_file/resw.rb', line 11

def self.key_value?
  true
end