- Last update: 2023/02/15
- Requires fzf 0.38.0 or above
In support of this comment on Proton's CoH2 issues thread: Company of Heroes 2 (231430) #3875
Based on original solution by @Cytomax55 in the same thread.
Edit Feb 2023: this may also work for CoH3 (the paths are different of course). I haven't tested this for CoH 3 yet and hope either Proton / Relic will make this fix unnecessary. See also @sfxworks's comment.
Instructions for automatic fix with a script by TechT10n
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
### Console Google Translate | |
### Example usage: | |
### gttranslate <source_lng> <new_lng> <your text> | |
### This bash script is combine of this scripts https://gist.github.com/elFua/3342075 and https://gist.github.com/ayubmalik/149e2c7f28104f61cc1c862fe9834793 | |
### Updated by Anodev https://github.com/OPHoperHPO/ | |
USAGE=" | |
Example usage: '$0 <source_lng> <new_lng> <your text>' | |
Usage: '$0 en ru text' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# uncomment and fix with appropriate values if you are behind a proxy | |
#export https_proxy='http://localhost:3128' | |
sl=en | |
tl=$(basename $0) | |
if [[ "${tl}" != "es" ]]; then | |
sl=es | |
fi | |
base_url="https://translate.googleapis.com/translate_a/single?client=gtx&sl=${sl}&tl=${tl}&dt=t&q=" | |
ua='Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36' |