wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* [PATCH wireguard-android] Explicit indexing for 'import_partial_success'
@ 2020-03-25 12:16 Eiji Tanioka
  2020-03-25 12:55 ` Eiji Tanioka
  0 siblings, 1 reply; 3+ messages in thread
From: Eiji Tanioka @ 2020-03-25 12:16 UTC (permalink / raw)
  To: wireguard; +Cc: Eiji Tanioka

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]

When translate it to Japanese, values are exchanged.
For example, '1 of 10' is '10 個中の 1'.

So this string should be explicit indexed.

Signed-off-by: Eiji Tanioka <tanioka404@gmail.com>
---
 ui/src/main/res/values/strings.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/src/main/res/values/strings.xml b/ui/src/main/res/values/strings.xml
index 70d92c3..74c5be6 100644
--- a/ui/src/main/res/values/strings.xml
+++ b/ui/src/main/res/values/strings.xml
@@ -13,8 +13,8 @@
         <item quantity="other">%d tunnels selected</item>
     </plurals>
     <plurals name="import_partial_success">
-        <item quantity="one">Imported %d of %d tunnels</item>
-        <item quantity="other">Imported %d of %d tunnels</item>
+        <item quantity="one">Imported %1$d of %2$d tunnels</item>
+        <item quantity="other">Imported %1$d of %2$d tunnels</item>
     </plurals>
     <plurals name="import_total_success">
         <item quantity="one">Imported %d tunnel</item>
-- 
2.25.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-25 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25 12:16 [PATCH wireguard-android] Explicit indexing for 'import_partial_success' Eiji Tanioka
2020-03-25 12:55 ` Eiji Tanioka
2020-03-25 14:54   ` Harsh Shandilya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).