I want to switch languages on Wikipedia with shortcut keys.
For example, I want to jump to a French page when I press a shortcut key that I have decided.
I tried using the action "Click Google Chrome Link" and entering "Français" in the Click Link.
But this fails.
Since specifying the version of Wikipedia, the characters "Français" is displayed in the page.
I'm new to Keyboard Maestro and I'm not sure.
Need to do a more complex setup?
Here is something to try and it’s best explained with an example:
The English language page for the Hoover Dam is at: https://en.wikipedia.org/wiki/Hoover_Dam
If you then replace the en in the URL with fr and open it in the browser it loads the French language version of the page at https://fr.wikipedia.org/wiki/Barrage_Hoover
I don’t know how but WP automatically replaces Hoover_Dam in the URL with Barrage_Hoover
I’ve only done this manually, but you could use KM to get the URL from the browser, then perform the replacement in the URL and finally reload the page.
EDIT: just returned to my Mac and tried this out. Here's a KM macro that switches from an English WP page to the French version. It obviously can be extended to prompt for a target language and switch appropriately for example.
because if we look at the 49 languages drop-down on Wiki pages, its language-specific links turn out to be helpfully equipped ( usually ? always ? not sure ...) with the name of specific matching pages, in the form (in this case from the enGirondins page, pointing towards the frGironde page):
In other words, I think that the method of changing the URL is not sufficient, and I still need to click on the "English" or "日本語(This means Japanese)" or "한국어(This means Korean)" text from the language options.
In the first place, isn't KM's action "Click Google Chrome link" an action that clicks the word "Japanese" on the page if I set the word "Japanese"?
Not sure what this Gyazo site is, but I won't click on those links to see your images.
If you want us to view images, you can drag image files directly into one of these editing boxes – there's no need to require us to navigate to unknown 3rd party sites.
This is becoming a bit protracted – if you are struggling to make use of the macros supplied, you may be able to save time for yourself and others by constructing your own, less complicated, macro using KM actions like: