Skip to content

Commit

Permalink
fix issue 332
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@429 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
joregan committed Jul 20, 2010
1 parent 54e610e commit 522a8cc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/tesseractmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#ifdef HAVE_CONFIG_H
#include "config_auto.h"
#endif
#ifndef DISABLE_NLS
#ifdef USE_NLS
#include <libintl.h>
#include <locale.h>
#define _(x) gettext(x)
Expand Down Expand Up @@ -175,7 +175,7 @@ void TesseractImage(const char* input_file, IMAGE* image, Pix* pix, int page_ind
int main(int argc, char **argv) {
STRING outfile; //output file

#ifndef DISABLE_NLS
#ifdef USE_NLS
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
Expand Down
4 changes: 2 additions & 2 deletions ccmain/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@ void Tesseract::classify_word_pass2(WERD_RES *word, BLOCK* block, ROW *row) {
set_global_subloc_code(SUBLOC_NORM);
check_debug_pt(word, 30);
if (!word->done ||
tessedit_training_tess ||
tessedit_training_wiseowl) {
tessedit_training_tess ||
tessedit_training_wiseowl) {
word->caps_height = 0.0;
if (word->x_height == 0.0f)
word->x_height = row->x_height();
Expand Down
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ AH_BOTTOM([
#define GRAPHICS_DISABLED
#endif

#ifndef DISABLE_NLS
#define USE_NLS
#endif

/* config_auto.h: end */
#endif
])
Expand Down
2 changes: 1 addition & 1 deletion image/imgtiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
#ifdef HAVE_CONFIG_H
#include "config_auto.h"
#ifndef DISABLE_NLS
#ifdef USE_NLS
#include <libintl.h>
#include <locale.h>
#define _(x) gettext(x)
Expand Down

0 comments on commit 522a8cc

Please sign in to comment.