Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xfce4-dict
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Apps
xfce4-dict
Commits
4e4259ba
Commit
4e4259ba
authored
16 years ago
by
Enrico Tröger
Browse files
Options
Downloads
Patches
Plain Diff
Use correct plural forms in strings to improve translations.
(Old svn revision: 4653)
parent
51788292
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/aspell.c
+5
-1
5 additions, 1 deletion
lib/aspell.c
lib/dictd.c
+3
-2
3 additions, 2 deletions
lib/dictd.c
with
8 additions
and
3 deletions
lib/aspell.c
+
5
−
1
View file @
4e4259ba
...
...
@@ -69,8 +69,12 @@ static gboolean iofunc_read(GIOChannel *ioc, GIOCondition cond, gpointer data)
{
if
(
msg
[
0
]
==
'&'
)
{
/* & cmd 17 7: ... */
gint
count
;
tmp
=
strchr
(
msg
+
2
,
' '
)
+
1
;
dict_gui_status_add
(
dd
,
_
(
"%d suggestion(s) found."
),
atoi
(
tmp
));
count
=
atoi
(
tmp
);
dict_gui_status_add
(
dd
,
ngettext
(
"%d suggestion found."
,
"%d suggestions found."
,
count
),
count
);
tmp
=
g_strdup_printf
(
_
(
"Suggestions for
\"
%s
\"
:"
),
dd
->
searched_word
);
gtk_text_buffer_insert_with_tags
(
...
...
This diff is collapsed.
Click to expand it.
lib/dictd.c
+
3
−
2
View file @
4e4259ba
...
...
@@ -106,7 +106,6 @@ static gboolean process_server_response(DictData *dd)
gint
max_lines
,
i
;
gint
defs_found
=
0
;
gchar
*
answer
,
*
tmp
,
**
lines
,
*
stripped
;
GtkTextIter
iter
;
if
(
dd
->
query_status
==
NO_CONNECTION
)
{
...
...
@@ -160,7 +159,9 @@ static gboolean process_server_response(DictData *dd)
return
FALSE
;
}
defs_found
=
atoi
(
answer
+
4
);
dict_gui_status_add
(
dd
,
_
(
"%d definition(s) found."
),
defs_found
);
dict_gui_status_add
(
dd
,
ngettext
(
"%d definition found."
,
"%d definitions found."
,
defs_found
),
defs_found
);
/* go to next line */
while
(
*
answer
!=
'\n'
)
answer
++
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment