Sha256: dd33a93126585f49135377b354178914b0febdbfb52ed65f8dc76404591c1b34

Contents?: true

Size: 750 Bytes

Versions: 6

Compression:

Stored size: 750 Bytes

Contents

#!/usr/bin/env ruby

require 'lib/init'

include ApplicationView::Base

def keys(lang)
  path = "#{BASE_PATH}/servers/my/assets/yrb/keys_#{lang}.json"
  json = ""
  if File.exists?(path)
    File.open(path, "r") do |f|
      json = f.read
    end
  end
  <<-OUTPUT
Organizes low priority messages -- newsletters, coupons, promotions, receipts, etc into folders, which prioritizes email from real people in your Inbox, and summarizes it all in a digest so you don't miss anything important.
OUTPUT
  JSON.parse(json)
end

supported_languages.each do |lang|
  puts <<-OUTPUT
    <intl_strings intl="#{lang}">
      <name>#{keys(lang)["ORGANIZER"]}</name>
      <description>#{keys(lang)["DESCRIPTION"]}</description>
    </intl_strings>
    
OUTPUT
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ymdp-0.1.10 spec/data/script/langs
ymdp-0.1.9 spec/data/script/langs
ymdp-0.1.8.1 spec/data/script/langs
ymdp-0.1.8 spec/data/script/langs
ymdp-0.1.7 spec/data/script/langs
ymdp-0.1.6 spec/data/script/langs