Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Fix available locales detection
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Sep 21, 2017
1 parent 034cf70 commit 41ea629
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/rubygem-gettext-setup/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

PORTNAME= gettext-setup
PORTVERSION= 0.26
PORTREVISION= 1
CATEGORIES= devel rubygems
MASTER_SITES= RG

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- lib/gettext-setup/gettext_setup.rb.orig 2017-09-21 06:09:51 UTC
+++ lib/gettext-setup/gettext_setup.rb
@@ -97,6 +97,8 @@ module GettextSetup
def self.locales
explicit = Dir.glob(File.absolute_path('*/*.po', locales_path)).map do |x|
File.basename(File.dirname(x))
+ end + Dir.glob(File.absolute_path('**/*.mo', locales_path)).map do |x|
+ File.basename(File.dirname(File.dirname(x)))
end
(explicit + [default_locale]).uniq
end

0 comments on commit 41ea629

Please sign in to comment.