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

Re: [XaraXtreme-dev] Patches for Xara: Browser patch, --help patch, "?" -> "(c)" patch, some de_DE translation work



Hi Alex,

> OK. I think we are at cross purposes.
So do I. Maybe the cleanest way is to use pure ASCII in the resource
files, which gives nice msgids (there is also an issue of using Latin1
encoding for the msgid and UTF-8 for the translation). In addition there
are problems with a LANG=C locale etc.
For msgstr gettext() does encoding translation, but I think not if no
msgstr is found it will be printed as is. (How should gettext know the
encoding used in the C file?)

Maybe the cleanest way is to use only ASCII characters (e.g. "(c)") in
the xrc and provide an en_GB.po with "©", nicer quotation marks etc.

Another possibility is to use: "\u00a9" (unicode for "©") which is
allowed in ISO C99. Test program:
---------------------
#include <stdio.h>
int main() {
  printf("\u00a9\n");
  return 0;
}
---------------------
If I run it with LANG=de_DE.UTF-8 it shows "©" - so far, so good. But
for LANG=de_DE.ISO-8859-1 it shows "©".


In conclusion:

Thus I think, one should use "(c)" in xrc and "©" in de_DE.po and en_GB.po.

Attached you find:
- patch which changes in xrc/  "&#169;" into "(c)"
- en.po.gz with the following changes: (c) -> ©, quotation marks changed
to proper typographic quotation marks, proper typographic apostrophe
- en_US.po.gz: as en.po, but in addition with colour -> color, dialogue
-> dialog and -ise -> ize change.

Question: I used typographic double quotes ("..."). Should I rather use
single quotes ('...') for en.po?

Tobias
Index: wxOil/xrc/EN/aboutres.xrc
===================================================================
--- wxOil/xrc/EN/aboutres.xrc	(Revision 1215)
+++ wxOil/xrc/EN/aboutres.xrc	(Arbeitskopie)
@@ -24,7 +24,7 @@
 		</object>
 		<object class="wxStaticText" name="IDC_STATIC">
 			 <pos>29,14d</pos> <size>131,8d</size>
-			<label>Copyright &#169; 1994-2005 Xara Group Ltd.</label>
+			<label>Copyright (c) 1994-2005 Xara Group Ltd.</label>
 		</object>
 		<object class="wxCamDrawControl" name="IDC_STRIPE1">
 			 <pos>4,40d</pos> <size>216,1d</size>
@@ -83,7 +83,7 @@
 		</object>
 		<object class="wxStaticText" name="IDC_STATIC">
 			 <pos>29,14d</pos> <size>131,8d</size>
-			<label>Copyright &#169; 1994-2005 Xara Group Ltd.</label>
+			<label>Copyright (c) 1994-2005 Xara Group Ltd.</label>
 		</object>
 		<object class="wxCamDrawControl" name="IDC_STRIPE1">
 			 <pos>4,40d</pos> <size>216,1d</size>
@@ -150,7 +150,7 @@
 		</object>
 		<object class="wxStaticText" name="IDC_STATIC">
 			 <pos>29,14d</pos> <size>131,8d</size>
-			<label>Copyright &#169; 1994-2005 Xara Group Ltd.</label>
+			<label>Copyright (c) 1994-2005 Xara Group Ltd.</label>
 		</object>
 		<object class="wxCamDrawControl" name="IDC_STRIPE1">
 			 <pos>4,40d</pos> <size>216,1d</size>
Index: wxOil/xrc/EN/nev-strings.xrc
===================================================================
--- wxOil/xrc/EN/nev-strings.xrc	(Revision 1215)
+++ wxOil/xrc/EN/nev-strings.xrc	(Arbeitskopie)
@@ -133,7 +133,7 @@
 			<object class="sizeritem">
 				<flag>wxALIGN_LEFT|wxALL|wxADJUST_MINSIZE</flag>
 				<object class="wxStaticText" name="IDS_SPLASHBOX_COPYRIGHT">
-					<label>&#169; Xara Group Ltd 1995</label>
+					<label>(c) Xara Group Ltd 1995</label>
 				</object>
 			</object>
 			<object class="sizeritem">

Attachment: en.po.gz
Description: GNU Zip compressed data

Attachment: en_US.po.gz
Description: GNU Zip compressed data