[easytag] Fix crash when searching CDDB in Japanese locale



commit 35e57ca4829fb97221a76537b99dcc263ef549b2
Author: David King <amigadave amigadave com>
Date:   Mon Nov 18 14:48:23 2013 +0000

    Fix crash when searching CDDB in Japanese locale
    
    A string in the Japanese translation swapped an integer and string
    format string in a printf-formatted string. This caused a crash at
    runtime. Use the positional syntax of gettext to substitute the correct
    variable into the string.
    
    http://www.gnu.org/software/gettext/manual/gettext.html#c_002dformat-Flag
    https://bugs.launchpad.net/ubuntu/+source/easytag/+bug/642556

 po/ja.po |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/po/ja.po b/po/ja.po
index 2400d50..4ca7138 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -1456,7 +1456,7 @@ msgstr "リクエストの要求中 (CddbId: %s, トラック番号: %d, サイ
 #: ../src/cddb.c:3301
 #, fuzzy, c-format
 msgid "Found %d matching album(s) for DiscID '%s'"
-msgstr "DiscID '%s' に一致するアルバムが %d 個見つかりました"
+msgstr "DiscID '%2$s' に一致するアルバムが %1$d 個見つかりました"
 
 #: ../src/cddb.c:3397
 #, c-format


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]