After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707499 - plural form in string "Pages"
plural form in string "Pages"
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
Depends on:
Blocks:
 
 
Reported: 2013-09-04 19:50 UTC by Dušan
Modified: 2013-09-30 09:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example screenshot of where this is used... (47.44 KB, image/png)
2013-09-30 09:19 UTC, Martyn Russell
Details

Description Dušan 2013-09-04 19:50:36 UTC
Please can you create plural form for this string?


#: ../src/tracker-needle/tracker-view.vala:435
msgid "Pages"
Comment 1 André Klapper 2013-09-05 08:58:48 UTC
Please link to proper documentation what "plural form" means, like https://live.gnome.org/TranslationProject/DevGuidelines/Plurals
Comment 2 Martyn Russell 2013-09-10 08:22:49 UTC
(In reply to comment #0)
> Please can you create plural form for this string?
> 
> 
> #: ../src/tracker-needle/tracker-view.vala:435
> msgid "Pages"

We don't know how many there are at the time, we always assume a plural here.

(In reply to comment #1)
> Please link to proper documentation what "plural form" means, like
> https://live.gnome.org/TranslationProject/DevGuidelines/Plurals

Thanks.

I can use the plural APIs, but in reality, in that area of code, we just don't know at that time. This is what I could do:

  ngettext ("Page", "Pages", 0), 0);

Suggestions?
Comment 3 Pavol Klačanský 2013-09-29 16:54:36 UTC
Hi, can you please elaborate or post screenshot?

Can it be something like Page count?

Thanks
Comment 4 Martyn Russell 2013-09-30 09:18:53 UTC
(In reply to comment #3)
> Hi, can you please elaborate or post screenshot?
> 
> Can it be something like Page count?

It's to show how many pages a document has.

I actually just fixed this so it works properly in master:

commit cf1275824a152cd6319cdaaad35fe3585c06322a
Author: Martyn Russell <martyn@lanedo.com>
Date:   Mon Sep 30 10:16:51 2013 +0100

    tracker-needle: Fix "Page" vs "Pages" in document lists
    
    Fixes (in part):
    https://bugzilla.gnome.org/show_bug.cgi?id=707499
Comment 5 Martyn Russell 2013-09-30 09:19:35 UTC
Created attachment 256058 [details]
Example screenshot of where this is used...

Just for completeness, here is a screenshot of how this string is used