How to translate "%1 Files"?

Asked by GunChleoc

I am having difficulty translating the following string:

    %1 Files
     ../sbuild/package/qml/filemanager.qml:324 ../sbuild/src/app/qml/filemanager.qml:316 ../src/app/qml/filemanager.qml:316

First of all, I need to know whether %1 contains a string or a number, because that determines the word order.

If %s is a number, it also needs the plural form treatment:

1 fhaidhle
2 fhaidhle
3 faidhlichean
20 faidhle
...

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu File Manager App Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
GunChleoc (gunchleoc) said :
#2

Ping?

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

If I look at (what I assume is) the original source http://bazaar.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/trunk/view/head:/src/app/qml/filemanager.qml#L316 then this seems to be the window title, which is either filled with a file name "File %1" (e.g. "File mydoc.txt") if only one file is selected or filled with a number "%1 Files" (e.g. "27 Files") if more than one file is selected.

In this case "File %1"probably does not need different plural forms, because it is only applicable for one single item, but "%1 Files" needs different forms if your language expression varies in case of 2, 3 or other number of objects.

Revision history for this message
GunChleoc (gunchleoc) said :
#4

Thanks, I have opened a bug report for the second case.

https://bugs.launchpad.net/ubuntu-filemanager-app/+bug/1623986

Revision history for this message
GunChleoc (gunchleoc) said :
#5

Thanks Manfred Hampl, that solved my question.