Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
0c4c0489
Commit
0c4c0489
authored
Oct 20, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Language files wasn't found when building base on module rt
parent
bfb7b1ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
src/lib/co/src/co_lng.cpp
src/lib/co/src/co_lng.cpp
+20
-3
No files found.
src/lib/co/src/co_lng.cpp
View file @
0c4c0489
/**
* Proview $Id: co_lng.cpp,v 1.1
5 2008-02-05 13:15:48
claes Exp $
* Proview $Id: co_lng.cpp,v 1.1
6 2008-10-20 13:45:25
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -246,11 +246,28 @@ bool Lng::read()
dcli_translate_filename
(
filename2
,
filename2
);
ifstream
fp1
(
filename1
);
if
(
!
fp1
&&
i
==
0
)
{
// Try $pwr_eexe
strcpy
(
fname1
,
"$pwr_eexe/en_us/xtt_lng.dat"
);
dcli_translate_filename
(
filename1
,
fname1
);
fp1
.
open
(
filename1
);
if
(
!
fp1
)
return
true
;
}
else
if
(
!
fp1
)
return
i
==
0
?
false
:
true
;
ifstream
fp2
(
filename2
);
if
(
!
fp2
&&
i
==
0
)
{
// Try $pwr_eexe
strcpy
(
fname2
,
"$pwr_eexe/%s/xtt_lng.dat"
);
sprintf
(
filename2
,
fname2
,
get_language_str
());
dcli_translate_filename
(
filename2
,
filename2
);
fp2
.
open
(
filename2
);
if
(
!
fp2
)
return
true
;
}
else
if
(
!
fp2
)
return
i
==
0
?
false
:
true
;
Row
r1
(
fp1
,
fname1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment