How to handle urls with hash(#)

Sharing and discussing custom search templates for LaunchBar
aristidesfl
Rank 3
Rank 3
Posts: 120
Joined: Sat Feb 27, 2010 12:54 am

How to handle urls with hash(#)

Postby aristidesfl » Sat Nov 13, 2010 2:06 am

I want to have the following template seach:

Code: Select all

http://translate.google.com/#auto|en|*


The problem is that the some characters are converted and it ends up like this:

Code: Select all

http://translate.google.com/%23auto%7Cen%7C*

buegelfrei
Posts: 6
Joined: Mon Feb 21, 2011 10:13 pm

Re: How to handle urls with hash(#)

Postby buegelfrei » Mon Feb 21, 2011 11:29 pm

The following is working for me (replace each | with %7C and your # will survive intact):

Code: Select all

http://translate.google.com/#auto%7Cen%7C*

There is an alternate URL syntax found in this post (http://forums.obdev.at/viewtopic.php?f=9&t=5067&p=16673&hilit=translate.google#p16640) which seems to tell Google Translate to use whatever language pair you used last time.

aristidesfl
Rank 3
Rank 3
Posts: 120
Joined: Sat Feb 27, 2010 12:54 am

Re: How to handle urls with hash(#)

Postby aristidesfl » Tue Feb 22, 2011 2:36 am

buegelfrei wrote:The following is working for me (replace each | with %7C and your # will survive intact):

Code: Select all

http://translate.google.com/#auto%7Cen%7C*

There is an alternate URL syntax found in this post (http://forums.obdev.at/viewtopic.php?f=9&t=5067&p=16673&hilit=translate.google#p16640) which seems to tell Google Translate to use whatever language pair you used last time.


thanks

i'm currently user the following URL to translate things to english:

Code: Select all

http://translate.google.com/translate_t?sl=LANG1&tl=en&q=*

G3t/All
Posts: 4
Joined: Sun Jul 15, 2012 8:31 am

Re: How to handle urls with hash(#)

Postby G3t/All » Sun Jul 15, 2012 9:16 am

Brilliant, thanks for the legwork!!!


Return to “LaunchBar Search Templates”

Who is online

Users browsing this forum: No registered users and 1 guest