Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add error message

  • Loading branch information...
commit e9e3e7341d4ea55b0db323cbb1a31a5c1625adce 1 parent 8bb58a6
@digitaltom digitaltom authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/tasks/gettext.rake
View
2  lib/tasks/gettext.rake
@@ -5,6 +5,7 @@
desc "Import clean (non-fuzzy) .mo files from lcn checkout"
task :makemo do
require 'gettext/utils'
+ raise "ERROR: $MY_LCN_CHECKOUT should point to your checkout of https://svn.opensuse.org/svn/opensuse-i18n/trunk/lcn" if ENV["MY_LCN_CHECKOUT"].nil?
system("cd $MY_LCN_CHECKOUT && svn up")
files = Dir.glob(ENV["MY_LCN_CHECKOUT"] + "/*/po/software-opensuse-org*.po")
files.each { |file|
@@ -30,6 +31,7 @@ end
desc "Update pot/po files in lcn checkout to match new version."
task :updatepo do
require 'gettext/utils'
+ raise "ERROR: $MY_LCN_CHECKOUT should point to your checkout of https://svn.opensuse.org/svn/opensuse-i18n/trunk/lcn" if ENV["MY_LCN_CHECKOUT"].nil?
files = Dir.glob("{app,lib}/**/*.{rb,rhtml,erb}")
GetText.rgettext(files, "tmp.pot")
system("cd $MY_LCN_CHECKOUT && svn up")
Please sign in to comment.
Something went wrong with that request. Please try again.