mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #08406
[Bug 942676] Re: Language strings for plural.
Hi Mits,
The reason why this was changed is that we need a more flexible system
for plural forms of strings. There are some languages where there are
different endings for all of these cases:
1 page[?]
2 page[?]
3 page[?]
4 page[?]
In English (and Japanese I guess?) it's either "page" or "pages", but in
Slovenian, we need more flexibility.
I've assigned Richard to this bug so that he can comment (once he's back
from holiday) on the particular format he picked when he designed the
new system.
Cheers,
Francois
** Changed in: mahara
Status: New => Triaged
** Changed in: mahara
Assignee: (unassigned) => Richard Mansfield (richard-mansfield)
** Changed in: mahara
Milestone: 1.5rc1 => None
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/942676
Title:
Language strings for plural.
Status in Mahara ePortfolio:
Triaged
Bug description:
I think it's not so easy to translate Mahara strings for plural using array() on translations.launchpad.net now.
So it's good for Mahara translators using the standard string definition instead of using array() as below.
----------
Langfile:
artefact/file/lang/en.utf8/artefact.file.php
[before]
$string['fileattachedtoportfolioitems'] = array(
0 => 'This file is attached to %s other item in your portfolio.',
1 => 'This file is attached to %s other items in your portfolio.',
);
[after]
$string['fileattachedtoportfolioitem'] = 'This file is attached to %s other item in your portfolio.';
$string['fileattachedtoportfolioitems'] = 'This file is attached to %s other items in your portfolio.';
----------
Langfile:
artefact/file/lang/en.utf8/artefact.file.php
[before]
$string['nprofilepictures'] = array(
'Profile picture',
'Profile pictures',
);
[after]
$string['nprofilepicture'] = 'Profile picture';
$string['nprofilepictures'] = 'Profile pictures';
----------
Langfile:
artefact/file/lang/en.utf8/artefact.file.php
[before]
$string['nfolders'] = array(
'%s folder',
'%s folders',
);
[after]
$string['nprofilepicture'] = '%s folder';
$string['nprofilepictures'] = '%s folders';
----------
Langfile:
artefact/file/lang/en.utf8/artefact.file.php
[before]
$string['nfiles'] = array(
'%s file',
'%s files',
);
[after]
$string['nprofilepicture'] = '%s file';
$string['nprofilepictures'] = '%s files';
----------
Langfile:
lang/en.utf8/mahara.php
[before]
$string['nusers'] = array(
'1 user',
'%s users',
);
[after]
$string['nuser'] = '1 user';
$string['nusers'] = '%s users';
----------
Langfile:
lang/en.utf8/view.php
[before]
$string['nviews'] = array(
'1 page',
'%s pages',
);
[after]
$string['nview'] = '1 page';
$string['nviews'] = '%s pages';
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/942676/+subscriptions
References