Skip to content

Commit

Permalink
specifies the languages of the to-be-removed segments (because somet…
Browse files Browse the repository at this point in the history
…imes it will only delete a segment related to a removed language)
  • Loading branch information
MichaelHoste committed Feb 19, 2018
1 parent 4aa4399 commit 7497a3a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [v1.13](https://github.com/aurels/translation-gem/releases/tag/v1.13) (2018-02-19)

#### New features:

* `rake translation:sync_and_show_purgeable` specifies the languages of the to-be-removed segments (because sometimes it will only delete a segment related to a removed language).

## [v1.12](https://github.com/aurels/translation-gem/releases/tag/v1.12) (2018-02-06)

#### Fixes (bugs & defects):
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
translation (1.12)
translation (1.13)
gettext (>= 3.2.5)

GEM
Expand Down
4 changes: 2 additions & 2 deletions lib/translation_io/client/sync_operation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def display_unused_segments(parsed_response, show_purgeable, purge)
puts

yaml_unused_segments.each do |yaml_unused_segment|
puts " - [#{yaml_unused_segment['msgctxt']}] \"#{yaml_unused_segment['msgid']}\""
puts "[#{yaml_unused_segment['languages']}] [#{yaml_unused_segment['msgctxt']}] \"#{yaml_unused_segment['msgid']}\""
end
end

Expand All @@ -93,7 +93,7 @@ def display_unused_segments(parsed_response, show_purgeable, purge)
puts

gettext_unused_segments.each do |gettext_unused_segment|
puts " - \"#{gettext_unused_segment['msgid']}\""
puts "[#{gettext_unused_segment['languages']}] \"#{gettext_unused_segment['msgid']}\""
end
end

Expand Down
4 changes: 2 additions & 2 deletions translation.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Gem::Specification.new do |s|
s.description = 'Rails translation made _("simple") with YAML and GetText. Localize your app using either t(".keys") or _("free text") and type "rake translation:sync" to synchronize with your translators.'
s.homepage = 'https://translation.io'
s.email = '[email protected]'
s.version = '1.12'
s.date = '2018-02-06'
s.version = '1.13'
s.date = '2018-02-19'
s.authors = ['Aurelien Malisart', 'Michael Hoste']
s.require_paths = ["lib"]
s.files = Dir["lib/**/*"] + ['README.md']
Expand Down

0 comments on commit 7497a3a

Please sign in to comment.