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

[vidalia-svn] r3597: Make localized string dynamic so multi-language packages wil (vidalia/trunk/src/tools/po2wxl)



Author: coderman
Date: 2009-03-01 02:55:10 -0500 (Sun, 01 Mar 2009)
New Revision: 3597

Modified:
   vidalia/trunk/src/tools/po2wxl/po2wxl.cpp
Log:
Make localized string dynamic so multi-language packages will link correctly.

Modified: vidalia/trunk/src/tools/po2wxl/po2wxl.cpp
===================================================================
--- vidalia/trunk/src/tools/po2wxl/po2wxl.cpp	2009-02-27 21:08:55 UTC (rev 3596)
+++ vidalia/trunk/src/tools/po2wxl/po2wxl.cpp	2009-03-01 07:55:10 UTC (rev 3597)
@@ -21,6 +21,7 @@
 #define WXL_ELEMENT_MESSAGE            "String"
 #define WXL_ATTR_MESSAGE_ID            "Id"
 #define WXL_ATTR_TRANSLATION_TYPE      "Culture"
+#define WXL_ATTR_OVERRIDABLE           "Overridable"
 
 /** Create a new message string element using the source string <b>msgid</b>
  * and the translation <b>msgstr</b> and assign identifier attribute. */
@@ -32,6 +33,11 @@
 
   message = wxl->createElement(WXL_ELEMENT_MESSAGE);
   message.setAttribute(WXL_ATTR_MESSAGE_ID, strid);
+
+  /* Always allow localized string to be dynamic. This is required for
+   * multi-language packages to link correctly.
+   */
+  message.setAttribute(WXL_ATTR_OVERRIDABLE, "yes");
   if (!msgstr.isEmpty())
     message.appendChild(wxl->createTextNode(msgstr));
   else