Patch: hard link texts - i18n

Arpad Biro biro_arpad at yahoo.com
Sun Sep 15 10:03:22 UTC 2002


Hi,

The "hard link" dialog (File/Link menu item) has the same " Link "
text twice: as the dialog title and also as part of the " Link ... to:"
string. Since - at least in Hungarian; I don't know about other
languages - this string cannot be translated in a way that's
appropriate
for both places, I created a small patch that makes those two strings
independent of each other. Patch follows (between the dashed lines):

------------------------------------------------------
--- /usr/src/mc-4.6.0-pre1/src/cmd.c	Sun Sep 15 11:19:37 2002
+++ mc-4.6.0-pre1/src/cmd.c	Sun Sep 15 11:01:47 2002
@@ -1022,9 +1022,9 @@
     char *dest, *src;
 
     if (!symbolic_link){
-        src = g_strconcat (_(" Link "), name_trunc (fname, 46), 
+        src = g_strconcat (_("_: hardlink_target\n Link "), name_trunc
(fname, 46), 
             _(" to:"), NULL);
-	dest = input_expand_dialog (_(" Link "), src, "");
+	dest = input_expand_dialog (_("_: hardlink_dialog_title\n Link "),
src, "");
 	g_free (src);
 	if (!dest)
 	    return;
------------------------------------------------------


I have also attached the patch to the letter.




Arpad Biro



__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hardlinkpatch.zip
Type: application/zip
Size: 437 bytes
Desc: hardlinkpatch.zip
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20020915/770e81c6/attachment.zip>


More information about the mc-devel mailing list