New issue 166: Better handling of extension paths in non English versions of 
Windows
http://bitbucket.org/tortoisehg/stable/issue/166/better-handling-of-extension-paths-in-non-english-versions-of

Anonymous on Thu, 16 Apr 2009 20:04:11 +0200:

Description:
  Currently you must set the full paths of the visual diff commands on the 
Mercurial.ini file.
For example, to set an external diff program, such as Araxis Merge, you must do:

[extdiff]
cmd.adiff = C:\Program Files\Araxis\Araxis Merge\Consolecompare.exe

One such tip is set on the TortoiseHg wiki.

This is all good if you are using an English version of Windows, but other 
versions of windows have different names for the "Program Files" folder (for 
example, in Spanish Windows it is "C:\Archivos de Programa") and for other 
"special windows folders" such as "My Documents", etc.

I think that it would be cool, and help with localization if you could use 
"special names" for these "special Windows folders", such as @ProgramFiles for 
the Program Files folder, @Profile, for the current user profile folder, 
@MyDocuments for the My Documents folder, etc.

Then the example above could be changed to something like:

[extdiff]
cmd.adiff = @ProgramFiles\Araxis\Araxis Merge\Consolecompare.exe

which would work for all versions of Windows, regardless of the language.
Since I believe that there are Windows API functions to get the actual name of 
those "main windows folders", this should be possible to implement.

Cheers,

Amadawn


-- 
This is an issue notification from bitbucket.org.
You are receiving this either because you are the
owner of the issue, or you are following the issue.

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to