How to translate "%1 Files"?

Asked by GunChleoc on 2016-08-30

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


Question information

English Edit question
Ubuntu File Manager App Edit question
No assignee Edit question
Solved by:
Manfred Hampl
Last query:
Last reply:
Launchpad Janitor (janitor) said : #1

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

GunChleoc (gunchleoc) said : #2


Best Manfred Hampl (m-hampl) said : #3

If I look at (what I assume is) the original source 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.

GunChleoc (gunchleoc) said : #4

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

GunChleoc (gunchleoc) said : #5

Thanks Manfred Hampl, that solved my question.