diff options
| author | Ryo Okamoto | 2013-10-27 10:40:23 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-27 08:10:38 -0700 |
| commit | 47ab79ecc4a8bfd28ab146bffd623ddb308136dd (patch) | |
| tree | e82518488bd7d416b076b42b7711d505d8bceebf /Library/Formula/fdclone.rb | |
| parent | 84d0adc7420019ddb8ccfe9fefd9c53375982b47 (diff) | |
| download | homebrew-47ab79ecc4a8bfd28ab146bffd623ddb308136dd.tar.bz2 | |
fdclone: set default message lang to English.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/fdclone.rb')
| -rw-r--r-- | Library/Formula/fdclone.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/fdclone.rb b/Library/Formula/fdclone.rb index 21bcb3335..f12a5f776 100644 --- a/Library/Formula/fdclone.rb +++ b/Library/Formula/fdclone.rb @@ -28,6 +28,8 @@ class Fdclone < Formula def caveats; <<-EOS.undent To install the initial config file: install -c -m 0644 #{share}/fd2rc.dist ~/.fd2rc + To set application messages to Japanese, edit your .fd2rc: + MESSAGELANG="ja" EOS end end @@ -44,3 +46,26 @@ index 8bc70ab..39b0d28 100644 +#define USEDATADIR + #endif /* !__MACHINE_H_ */ +diff --git a/custom.c b/custom.c +index d7a995f..45b96c6 100644 +--- a/custom.c ++++ b/custom.c +@@ -561,7 +561,7 @@ static CONST envtable envlist[] = { + {"FD_URLKCODE", &urlkcode, DEFVAL(NOCNV), URLKC_E, T_KNAM}, + #endif + #if !defined (_NOENGMES) && !defined (_NOJPNMES) +- {"FD_MESSAGELANG", &messagelang, DEFVAL(NOCNV), MESL_E, T_MESLANG}, ++ {"FD_MESSAGELANG", &messagelang, DEFVAL("C"), MESL_E, T_MESLANG}, + #endif + #ifdef DEP_FILECONV + {"FD_SJISPATH", &sjispath, DEFVAL(SJISPATH), SJSP_E, T_KPATHS}, +@@ -857,7 +857,9 @@ int no; + #if defined (DEP_KCONV) || (!defined (_NOENGMES) && !defined (_NOJPNMES)) + case T_MESLANG: + # ifndef _NOCATALOG ++ if (!cp) cp = def_str(no); + catname = cp; ++ chkcatalog(); + /*FALLTHRU*/ + # endif + case T_KIN: |
