Class: YMDP::Generator::Templates::Translation

Inherits:
Base
  • Object
show all
Defined in:
lib/view.rb

Overview

Translations are located at “#BASE_PATH/app/assets/yrb/en-US/new_view_en-US.pres”.

The source templates are found at “generator/templates/translation.pres”

Instance Attribute Summary

Attributes inherited from Base

#application_path, #template_path, #view

Instance Method Summary collapse

Methods inherited from Base

#append_to_file, #confirm_overwrite, #destination_path, #display_path, #generate, #initialize, #process_template, #processed_template, #source_path, #write_processed_template

Constructor Details

This class inherits a constructor from YMDP::Generator::Templates::Base

Instance Method Details

#destination_dirObject



217
218
219
# File 'lib/view.rb', line 217

def destination_dir
  "#{application_path}/assets/yrb/en-US"
end

#destination_filenameObject



213
214
215
# File 'lib/view.rb', line 213

def destination_filename
  "new_#{view}_en-US.pres"
end

#source_filenameObject



209
210
211
# File 'lib/view.rb', line 209

def source_filename
  "translation.pres"
end