forked from glebm/i18n-tasks
-
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.
Merge remote-tracking branch 'upstream/master'
* upstream/master: (39 commits) Tidy up the spec template indentation, use let(:unused_keys). Update README.md Added Gitter badge minor fix ignore_lines pattern travis: 2.1.1 -> 2.1.3 .travis latest jruby Bump to 0.7.8 Google Translate fixnum spec glebm#100 Improve ignore_lines glebm#96 glebm#102 initialize @key_filter glebm#101 Lines in HAML that start with # are skipped ignore config: better examples ru copy fix move error message to i18n YARD signatures for GoogleTranslation methods Possible fix for glebm#99 README: small fixes for defining custom commands Remove unused keys fix typo in gemspec [ci skip] Simplify commands DSL i18n ... Conflicts: spec/google_translate_spec.rb
- Loading branch information
Showing
44 changed files
with
525 additions
and
383 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
language: ruby | ||
rvm: | ||
- 2.1.1 | ||
- 2.1.3 | ||
- 2.0.0 | ||
- 1.9.3 | ||
- jruby-1.7.13 | ||
- jruby | ||
- rbx-2.2.10 | ||
env: | ||
global: | ||
|
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
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,102 +1,103 @@ | ||
--- | ||
en: | ||
i18n_tasks: | ||
common: | ||
locale: Locale | ||
type: Type | ||
key: Key | ||
value: Value | ||
base_value: Base Value | ||
details: Details | ||
continue_q: Continue? | ||
n_more: "%{count} more" | ||
google_translate: | ||
errors: | ||
no_results: Google Translate returned no results. Make sure billing information is set at | ||
https://code.google.com/apis/console. | ||
remove_unused: | ||
confirm: | ||
one: One translations will be removed from %{locales}. | ||
other: "%{count} translation will be removed from %{locales}." | ||
removed: Removed %{count} keys | ||
noop: No unused keys to remove | ||
translate_missing: | ||
translated: Translated %{count} keys | ||
add_missing: | ||
added: Added %{count} keys | ||
unused: | ||
none: Every translation is in use. | ||
missing: | ||
none: No translations are missing. | ||
usages: | ||
none: No key usages found. | ||
health: | ||
no_keys_detected: No keys detected. Check data.read in config/i18n-tasks.yml. | ||
data_stats: | ||
title: Forest (%{locales}) | ||
text: has %{key_count} keys across %{locale_count} locales. On average, values are %{value_chars_avg} | ||
characters long, keys have %{key_segments_avg} segments, a locale has %{per_locale_avg} keys. | ||
text_single_locale: has %{key_count} keys in total. On average, values are %{value_chars_avg} | ||
characters long, keys have %{key_segments_avg} segments. | ||
cmd: | ||
encourage: | ||
- Good job! | ||
- Well done! | ||
- Perfect! | ||
args: | ||
default_all: 'Default: all' | ||
default_text: 'Default: %{value}' | ||
desc: | ||
confirm: Confirm automatically | ||
data_format: 'Data format: %{valid_text}. %{default_text}.' | ||
key_pattern: Filter by key pattern (e.g. 'common.*') | ||
key_pattern_to_rename: Full key (pattern) to rename. Required | ||
locale: 'Locale. Default: base' | ||
locale_to_translate_from: 'Locale to translate from (default: base)' | ||
locales_filter: 'Comma-separated list of locale(s) to process. Default: all. Special: base.' | ||
missing_types: 'Filter by types: %{valid}. Default: all' | ||
new_key_name: New name, interpolates original name as %{key}. Required | ||
nostdin: Do not read from stdin | ||
out_format: 'Output format: %{valid_text}. %{default_text}.' | ||
pattern_router: 'Use pattern router: keys moved per config data.write' | ||
strict: Do not infer dynamic key usage such as `t("category.\#{category.name}")` | ||
value: 'Value. Interpolates: %{value}, %{human_key}, %{value_or_human_key}' | ||
desc: | ||
normalize: 'normalize translation data: sort and move to the right files' | ||
add_missing: add missing keys to locale data | ||
config: display i18n-tasks configuration | ||
data: show locale data | ||
data_merge: merge locale data with trees | ||
data_write: replace locale data with tree | ||
data_remove: remove keys present in tree from data | ||
health: is everything OK? | ||
data_write: replace locale data with tree | ||
eq_base: show translations equal to base value | ||
find: show where keys are used in the code | ||
unused: show unused translations | ||
gem_path: show path to the gem | ||
health: is everything OK? | ||
irb: start REPL session within i18n-tasks context | ||
missing: show missing translations | ||
translate_missing: translate missing keys with Google Translate | ||
add_missing: add missing keys to locale data | ||
normalize: 'normalize translation data: sort and move to the right files' | ||
remove_unused: remove unused keys | ||
eq_base: show translations equal to base value | ||
tree_translate: Google Translate a tree to root locales | ||
tree_merge: merge trees | ||
translate_missing: translate missing keys with Google Translate | ||
tree_convert: convert tree between formats | ||
tree_filter: filter tree by key pattern | ||
tree_merge: merge trees | ||
tree_rename_key: rename tree node | ||
tree_subtract: tree A minus the keys in tree B | ||
tree_set_value: set values of keys, optionally match a pattern | ||
tree_convert: convert tree between formats | ||
config: display i18n-tasks configuration | ||
gem_path: show path to the gem | ||
irb: start REPL session within i18n-tasks context | ||
tree_subtract: tree A minus the keys in tree B | ||
tree_translate: Google Translate a tree to root locales | ||
unused: show unused translations | ||
xlsx_report: save missing and unused translations to an Excel file | ||
args: | ||
default_text: 'Default: %{value}' | ||
default_all: 'Default: all' | ||
desc: | ||
out_format: 'Output format: %{valid_text}. %{default_text}.' | ||
data_format: 'Data format: %{valid_text}. %{default_text}.' | ||
keys: List of keys separated by commas (,), spaces, or newlines. | ||
locales_filter: 'Comma-separated list of locale(s) to process. Default: all. Special: base.' | ||
locale: 'Locale. Default: base' | ||
locale_to_translate_from: 'Locale to translate from (default: base)' | ||
confirm: Confirm automatically | ||
nostdin: Do not read from stdin | ||
strict: Do not infer dynamic key usage such as `t("category.\#{category.name}")` | ||
missing_types: 'Filter by types: %{valid}. Default: all' | ||
key_pattern: Filter by key pattern (e.g. 'common.*') | ||
key_pattern_to_rename: Full key (pattern) to rename. Required | ||
new_key_name: New name, interpolates original name as %{key}. Required | ||
value: 'Value. Interpolates: %{value}, %{human_key}, %{value_or_human_key}' | ||
pattern_router: 'Use pattern router: keys moved per config data.write' | ||
enum_opt: | ||
desc: "%{valid_text}. %{default_text}" | ||
invalid: "%{invalid} is not one of: %{valid}." | ||
encourage: | ||
- Good job! | ||
- Well done! | ||
- Perfect! | ||
enum_list_opt: | ||
desc: 'Comma-separated list of: %{valid_text}. %{default_text}' | ||
invalid: "%{invalid} is not in: %{valid}." | ||
enum_opt: | ||
desc: "%{valid_text}. %{default_text}" | ||
invalid: "%{invalid} is not one of: %{valid}." | ||
errors: | ||
pass_forest: Pass locale forest | ||
invalid_locale: Invalid locale %{invalid} | ||
invalid_format: 'Unknown format %{invalid}. Valid: %{valid}.' | ||
invalid_locale: Invalid locale %{invalid} | ||
invalid_missing_type: | ||
one: 'Unknown type %{invalid}. Valid: %{valid}.' | ||
other: 'Unknown types: %{invalid}. Valid: %{valid}.' | ||
pass_forest: Pass locale forest | ||
common: | ||
base_value: Base Value | ||
continue_q: Continue? | ||
details: Details | ||
key: Key | ||
locale: Locale | ||
n_more: "%{count} more" | ||
type: Type | ||
value: Value | ||
data_stats: | ||
text: has %{key_count} keys across %{locale_count} locales. On average, values are %{value_chars_avg} | ||
characters long, keys have %{key_segments_avg} segments, a locale has %{per_locale_avg} keys. | ||
text_single_locale: has %{key_count} keys in total. On average, values are %{value_chars_avg} | ||
characters long, keys have %{key_segments_avg} segments. | ||
title: Forest (%{locales}) | ||
google_translate: | ||
errors: | ||
no_api_key: Set Google API key via GOOGLE_TRANSLATE_API_KEY environment variable or translation.api_key | ||
in config/i18n-tasks.yml. Get the key at https://code.google.com/apis/console. | ||
no_results: Google Translate returned no results. Make sure billing information is set at | ||
https://code.google.com/apis/console. | ||
health: | ||
no_keys_detected: No keys detected. Check data.read in config/i18n-tasks.yml. | ||
missing: | ||
none: No translations are missing. | ||
remove_unused: | ||
confirm: | ||
one: One translations will be removed from %{locales}. | ||
other: "%{count} translation will be removed from %{locales}." | ||
noop: No unused keys to remove | ||
removed: Removed %{count} keys | ||
translate_missing: | ||
translated: Translated %{count} keys | ||
unused: | ||
none: Every translation is in use. | ||
usages: | ||
none: No key usages found. |
Oops, something went wrong.