mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
serialisation bugfix and correction to nil handling when making localisation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31581 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e8ae189950
commit
e4ef659b97
3 changed files with 18 additions and 7 deletions
|
@ -369,12 +369,18 @@ printf(" %3i : %i '%s'\n", i, arg_ok[i], args[i]);
|
|||
comment = [NSString stringWithCString:
|
||||
(char*)args[lf->comment_index]];
|
||||
|
||||
if (lf->table_index == -1)
|
||||
table = @"Localizable"; /* TODO: customizable? */
|
||||
if (lf->table_index == -1
|
||||
|| (arg_ok[lf->table_index]
|
||||
&& (args[lf->table_index] == 0
|
||||
|| strcmp("nil", (char*)args[lf->table_index]) == 0)))
|
||||
{
|
||||
table = @"Localizable"; /* TODO: customizable? */
|
||||
}
|
||||
else
|
||||
table = [NSString stringWithCString:
|
||||
(char*)args[lf->table_index]];
|
||||
|
||||
{
|
||||
table = [NSString stringWithCString:
|
||||
(char*)args[lf->table_index]];
|
||||
}
|
||||
e = [[SourceEntry alloc] initWithKey: key
|
||||
comment: comment
|
||||
file: filenamestr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue