aboutsummaryrefslogtreecommitdiffstats
path: root/util/simple-gettext.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-10-26 12:14:37 +0000
committerWerner Koch <[email protected]>1999-10-26 12:14:37 +0000
commitcf70ca8d68eb836b952f2c234f064b1afc205962 (patch)
treeaa33afbc79efd1f8538e5286b13d900321a8f14b /util/simple-gettext.c
parentChanged the way it works - now needs an extra program to to most tasks. (diff)
downloadgnupg-cf70ca8d68eb836b952f2c234f064b1afc205962.tar.gz
gnupg-cf70ca8d68eb836b952f2c234f064b1afc205962.zip
See ChangeLog: Tue Oct 26 14:10:21 CEST 1999 Werner Koch
Diffstat (limited to '')
-rw-r--r--util/simple-gettext.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/util/simple-gettext.c b/util/simple-gettext.c
index 21f39382d..a128aff3c 100644
--- a/util/simple-gettext.c
+++ b/util/simple-gettext.c
@@ -217,6 +217,13 @@ load_domain( const char *filename )
free( domain );
return NULL;
}
+ /* Currently we have only a Latin-1 to IBM850 translation, so
+ * we simply mark everything mapped if we don't have this codepage. */
+ {
+ const char *s = get_native_charset();
+ if( !s || strcmp(s, "ibm850")
+ memset( domain->mapped, 1, domain->nstrings );
+ }
return domain;
}
@@ -242,7 +249,6 @@ set_gettext_file( const char *filename )
#endif
) {
/* absolute path - use it as is */
- log_info("trying `%s'\n", filename );
domain = load_domain( filename );
}
else { /* relative path - append ".mo" and get DIR from env */
@@ -280,7 +286,7 @@ get_string( struct loaded_domain *domain, u32 idx )
byte *pp;
domain->mapped[idx] = 1;
- /* we assume Latin1 -> CP 850 for now */
+ /* currently we only support Latin-1 to CP 850 */
for( pp=p; *pp; pp++ ) {
if( (*pp & 0x80) ) {
switch( *pp ) {