Sha256: 39664838a21334d75eecb0c99581c7f7d10e034cef4a1cf437a4a3acea67b095

Contents?: true

Size: 767 Bytes

Versions: 15

Compression:

Stored size: 767 Bytes

Contents

#!/usr/bin/env ruby

require 'lib/init'

YMDP_ROOT = "."

include ApplicationView::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

15 entries across 15 versions & 1 rubygems

Version Path
ymdp-0.1.4 spec/data/script/langs
ymdp-0.1.3.2 spec/data/script/langs
ymdp-0.1.3.1 spec/data/script/langs
ymdp-0.1.3 spec/data/script/langs
ymdp-0.1.1 spec/data/script/langs
ymdp-0.0.17 lib/new_application/script/langs
ymdp-0.0.16 lib/new_application/script/langs
ymdp-0.0.15 lib/new_application/script/langs
ymdp-0.0.14 lib/new_application/script/langs
ymdp-0.0.13 lib/new_application/script/langs
ymdp-0.0.12 lib/new_application/script/langs
ymdp-0.0.11 lib/new_application/script/langs
ymdp-0.0.10 lib/new_application/script/langs
ymdp-0.0.9 lib/new_application/script/langs
ymdp-0.0.8 lib/new_application/script/langs