[Vala] string format with numbered parameters
- From: rastersoft <raster rastersoft com>
- To: vala-list gnome org
- Subject: [Vala] string format with numbered parameters
- Date: Sun, 20 May 2018 18:39:35 +0200
Hi all:
I want to know if it is possible to use "numbered parameters" to format
an string. I mean: let's say I have this translatable string:
var str = _("The disk %s, with size %s, is ready").printf(disk_uid,
disk_size);
But imagine that in language XXX it is more correct to put first the
disk size, and after the disk identifier. Is it possible to "number" the
parameters, to say "put here the second string" and "put here the first
string", to allow translators to swap the parameters in the string?
Thanks.
--
Nos leemos
RASTER (Linux user #228804)
raster rastersoft com http://www.rastersoft.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]