Sha256: 716e11c99abab9d334784f19ead3bd1d1ba92f94263a3d104cd4ef48407bdc47

Contents?: true

Size: 756 Bytes

Versions: 6

Compression:

Stored size: 756 Bytes

Contents

#!/usr/bin/env ruby

require 'lib/init'

YMDP_ROOT = "."

include YMDP::Base

def keys(lang)
  path = "#{YMDP_ROOT}/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.4 lib/new_application/script/langs
ymdp-0.1.3.2 lib/new_application/script/langs
ymdp-0.1.3.1 lib/new_application/script/langs
ymdp-0.1.3 lib/new_application/script/langs
ymdp-0.1.1 lib/new_application/script/langs
ymdp-0.1.0 lib/new_application/script/langs