kita 0.9.2 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf472b83132e57add11ce0cbc8c88b1ec558f3385682c421535a1a4cd9a272f1
4
- data.tar.gz: 3b378988782eeaa783510204bf407fccbd0b97cf0e0f56a26e6293cde5c5013b
3
+ metadata.gz: a6188bf9638b9139f6e27f3883dd2e432ca72e0cfef38050e35f4b356a1e40c3
4
+ data.tar.gz: e89bb5832bbcc85beec855bb43705311bf10c23dc21d058db9f97fb381c80fd5
5
5
  SHA512:
6
- metadata.gz: 89f4104532ce0c361f0d598f845bc5020401e24fb0f237b339dc2d7fa627ed6ea5412041a717103c5b54157d25f6eb6010b22eaedcafcecc114ace99d341c8f4
7
- data.tar.gz: 740ec88dcb3b4e9084a0f74803ad8af0ff065632cfe3e608422cc54b2cef12a18959355218c8eaae8d7726a78a5dd832145a0273e8496e1d508ed9ca12aac7c4
6
+ metadata.gz: 3f3b6c6e91d38adab77e91bc25bd39eaf5ad811a53f9689b429b2126fd4078fb4ed11a0e45c3ec6f6a0e361081119d4d76777d84c2c967769d2b7933e0f49eca
7
+ data.tar.gz: c881f8c27f4cd27967ad1fddb5bc52330b58c95db8be796cd80be40eddfe9bf6de9076cffa1cd6551b8f2f2a54ceda0f29e538f75d67bb22d5caf89dc2479db0
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kita (0.9.1)
4
+ kita (0.9.3)
5
5
  config (~> 2.2)
6
+ fast_gettext (~> 2.0)
6
7
  gir_ffi (~> 0.15.2)
7
8
  gstreamer (~> 3.4)
8
9
  gtk3 (~> 3.4)
@@ -64,7 +65,8 @@ GEM
64
65
  dry-equalizer (~> 0.2)
65
66
  dry-initializer (~> 3.0)
66
67
  dry-schema (~> 1.5)
67
- ffi (1.12.2)
68
+ fast_gettext (2.0.3)
69
+ ffi (1.13.0)
68
70
  ffi-bit_masks (0.1.1)
69
71
  ffi (~> 1.0)
70
72
  gdk3 (3.4.3)
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # <img width="60" height="60" alt="Kita Logo" src="https://raw.githubusercontent.com/danbishop/kita/master/ui/kita-bordered.svg?sanitize=true"> Kita
2
2
 
3
- A small GTK app to help learn the Japanese kana systems.
3
+ A simple Ruby/GTK app to help Japanese language learners with Hiragana and Katakana.
4
+ It introduces users to the sounds of the kana and teaches basic recognition of both writing systems.
4
5
 
5
6
  [![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/kita)
@@ -9,13 +9,13 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ['d@nbishop.uk']
10
10
  spec.license = 'GPL-3.0+'
11
11
 
12
+ spec.homepage = 'https://www.danbishop.org'
12
13
  spec.summary = 'A Japanese kana learning tool.'
13
14
  spec.description = <<-DESC
14
15
  A simple GTK3 app to help Japanese language learners with Hiragana and Katakana. It introduces
15
16
  users to the sounds of the kana and teaches basic recognition of both writing systems.
16
17
  DESC
17
18
 
18
- spec.homepage = 'https://www.danbishop.org'
19
19
  spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
20
20
 
21
21
  spec.metadata['homepage_uri'] = spec.homepage
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.require_paths = ['lib']
33
33
 
34
34
  spec.add_runtime_dependency 'config', '~> 2.2'
35
+ spec.add_runtime_dependency 'fast_gettext', '~> 2.0'
35
36
  spec.add_runtime_dependency 'gir_ffi', '~> 0.15.2'
36
37
  spec.add_runtime_dependency 'gstreamer', '~> 3.4'
37
38
  spec.add_runtime_dependency 'gtk3', '~> 3.4'
@@ -1,13 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'gtk3'
4
+ require 'fast_gettext'
4
5
  require_relative 'kita/audio'
5
6
  require_relative 'kita/config'
7
+ # require_relative 'kita/locale'
6
8
  require_relative 'kita/menu'
7
9
  require_relative 'kita/question'
8
10
  require_relative 'kita/version'
9
11
 
12
+ # Main Kita Module
10
13
  module Kita
14
+ # LocaleSettings.new
11
15
  # Main application class
12
16
  class Application < Gtk::Application
13
17
  include Menu
@@ -0,0 +1,24 @@
1
+ module Kita
2
+ class LocaleSettings
3
+ def initialize
4
+ FastGettext.add_text_domain('kita', path: File.join(RootPath, 'locale'), type: :po)
5
+ FastGettext.text_domain = 'kita'
6
+ FastGettext.available_locales = %w(de en)
7
+
8
+ puts "Select locale code:"
9
+
10
+ FastGettext.available_locales.each do |locale|
11
+ puts locale
12
+ end
13
+
14
+ change_locale_to gets.strip.downcase
15
+ end
16
+
17
+ private
18
+
19
+ def change_locale_to(locale)
20
+ locale = 'en' unless FastGettext.available_locales.include?(locale)
21
+ FastGettext.locale = locale
22
+ end
23
+ end
24
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kita
4
- VERSION = '0.9.2'
4
+ VERSION = '0.9.4'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  name: kita
2
- version: '0.9.2'
2
+ version: '0.9.4'
3
3
  summary: Japanese learning tool
4
4
  description: |
5
5
  A simple tool to help Japanese language learners.
@@ -18,7 +18,13 @@ parts:
18
18
  ruby-version: 2.7.1
19
19
  stage-packages:
20
20
  - libgstreamer1.0-0
21
+ - gstreamer1.0-pulseaudio
21
22
  - gstreamer1.0-plugins-base
23
+ - gstreamer1.0-plugins-good
24
+ - libslang2
25
+ - libgpm2
26
+ # - freeglut3
27
+ # - libglu1-mesa
22
28
  - libgirepository-1.0-1
23
29
  - gir1.2-gstreamer-1.0
24
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Bishop
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: fast_gettext
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: gir_ffi
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -120,6 +134,7 @@ files:
120
134
  - lib/kita/config.rb
121
135
  - lib/kita/hiragana.rb
122
136
  - lib/kita/katakana.rb
137
+ - lib/kita/locale.rb
123
138
  - lib/kita/menu.rb
124
139
  - lib/kita/question.rb
125
140
  - lib/kita/version.rb