This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc/cp/pt.c: use ngettext() when needed


On 02/24/2010 08:53 AM, Shujing Zhao wrote:

So the change for exgettext would be Index: po/exgettext =================================================================== --- po/exgettext ïäèç 157027ï +++ po/exgettext ïåäæèï @@ -113,9 +113,14 @@ function keyword_option(line) { format="c-format"

      if (n == 1) { keyword = "--keyword=" name }
-    else { keyword = "--keyword=" name ":" n }
+    else {
+       keyword = "--keyword=" name ":" n
+       if (name ~ /_n$/)
+         keyword = keyword "," (n + 1)}

Ah, I see. Yes, this is correct except for a little formatting problem in the closing brace here.


      if (format) {
          keyword=keyword "\n--flag=" name ":" n ":" format
+       if (name ~ /_n$/)
+         keyword = keyword "\n--flag=" name ":" (n + 1) ":" format
      }

if (! keyword_seen[name]) {

Paolo



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]