-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Internationalization prep, run working (win10)
- Loading branch information
Showing
11 changed files
with
121 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
/pkg/ | ||
/spec/reports/ | ||
/tmp/ | ||
/lib/budik/config/sources.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,33 @@ | ||
lang: "en" # Do not remove this line. | ||
config: | ||
example: "This is an example string." | ||
budik: | ||
description: "Alarm clock which randomly plays a song or a video from YouTube or your local collection." | ||
commands: | ||
config: | ||
summary: "Edit program configuration." | ||
description: "Open options file in your default editor." | ||
options: | ||
reset: "Resets configuration file to default values." | ||
run: | ||
summary: "Runs alarm (default command)." | ||
description: "Runs alarm with specified options. CLI options > options.yml." | ||
options: | ||
categories: "Limit selection by categories. Example usage: \"cat1.subcat1 cat2.subcat1.subsubcat1 .excludethis.subcat etc.\"" | ||
dl_keep: "Override download method set in your active options." | ||
number: "Override selection using random number generator by specifying fixed number." | ||
player: "Override which player to use." | ||
rng: "Override random number generation method specified in your options.yml file. Possible values: \"hwrng\", \"random.org\", \"rand-hwrng-seed\", \"rand\". Default value: \"hwrng\"." | ||
sources: | ||
summary: "Manage source(s)." | ||
description: "List or download source(s) or edit your sources file in your default editor (default: edit)." | ||
options: | ||
list: "List sources. Can be restricted by categories. DEFAULT option. Usage: list \"all|category.subcategory .exclude.this\". Default: list \"all\"" | ||
download: "Downloads source(s). Usage: download \"all|number\". Default: download \"all\"." | ||
translate: | ||
summary: "Translate app." | ||
description: "Opens your language file in your default editor." | ||
output: | ||
date: "DateTime" | ||
number: "Number" | ||
alarm: "Alarm" | ||
sources: | ||
invalid_item: "Item %1 is invalid." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Budik | ||
class Output | ||
include Singleton | ||
|
||
def initialize | ||
@strings = Config.instance.lang.output | ||
end | ||
|
||
def run_info_table(number, name) | ||
rows = [] | ||
rows << [@strings.date, DateTime.now.strftime('%d/%m/%Y %H:%M')] | ||
rows << [@strings.number, number.to_s] | ||
rows << [@strings.alarm, name] | ||
|
||
Terminal::Table.new title: 'Budik', rows: rows | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters