FilipePS / Traduzir-paginas-web

Translate your page in real time using Google or Yandex
https://addons.mozilla.org/pt-BR/firefox/addon/traduzir-paginas-web/
Mozilla Public License 2.0
4.58k stars 554 forks source link

Unusable! #786

Closed Ara-cole closed 9 months ago

Ara-cole commented 9 months ago

Manual input of every language to translate, no all/none/select option, not even choose from file. Even worse, desplegable list doesn't update, so you are forced to pick one by one. Some things are if not all happens nothing happens. Al least for my use case that I need autotranslate for any page in any language, not just those I pick from a desplegable list that doesn't even update! Hpe that you programmed this picking each character from a desplegable list that doesn't update instead of just typing it. I mean those things that look like broken on purpose, everythings works well but you have to select each language to auto-translate., when I'm sure that you autogenerated that list from some locales.

FilipePS commented 9 months ago

The extension supports 172 different target languages. I'm not sure how many different languages it can detect for the translation to start automatically. Although so many languages are supported, I myself only access websites in 3 or 4 different languages.

When you access a website in a language that is not yet on your list, is it so difficult to click here?

image

Is the reason for it being " Unusable! " just for the hassle of clicking that button or is the extension really not working for you?

What is your browser and version?

Ara-cole commented 9 months ago

Is the reason for it being " Unusable! " just for the hassle of clicking that button or is the extension really not working for you? Yes, why do I need that hassle? do you like it? or do you just dump a list of lang codes from a variable or file extracted from locales to the configuration file of your addon (that I couldn't find and I shouldn't as an end user) on your everyday use? I wonder if you take the same hassle every time you debug it.

It works I think, I'm sorry, I'm a bit angry that you didn't add something as simple as a translate every language instead of forcing the user to pick each language one by one. As simple as read list from file at the bottom most.

Why did you do that?, have you typed all those language names by hand or have you generated them automatically from a locale list? Please add a select all languages button and I'll love your add on.

Ara-cole commented 9 months ago

Also, there's lot of languages dying for lack of speakers. Your addon if better done would help for those languages to be writted in.

FilipePS commented 9 months ago

You only need to click once for each language. If you do this a couple of times, most of the websites you access should already be translated as soon as you access them. With only about 5 languages defined to always translate, it is enough for the vast majority of people. If the extension cannot detect the language, then in this case, there is no point in having 200 languages in that list as the translation will not start automatically.

If it's just that, it seems like free hate. Nothing will be done, I'm sorry.

Ara-cole commented 9 months ago

With only about 5 languages defined to always translate, it is enough for the vast majority of people.

Not for me. I took the hassle of selecting 200 languages by hand and it works well in wikipedia at least. I'm happy now that i'm not language trapped anymore and I can read wikipedia in every language thank to you and... me.

Don't webpages have a language tag in the header? Is that much effort to add a select all button? I was not going to take the unnecesary hassle, so I was being sincere that for me it was going to be unusable and it will be in the future surely as I will have to reconfigure this again and again.

FilipePS commented 9 months ago

To avoid losing your settings when reinstalling the extension, simply make a backup and then restore it when needed. You can backup in storage settings.

And unless there is some search engine that you search in one language, and it shows results from sites in dozens of different languages, it seems unlikely that you will come across more than 5 different languages.

Ara-cole commented 9 months ago

And unless there is some search engine that you search in one language, and it shows results from sites in dozens of different languages

That feature would be awsome but inluckly language barrier is something that internet remained ignorant since ever, so search engines get you locked in your language. As for reality, the most prominent use cases of my request is wikipedia, which has links to every existing language and dead ones.

I'd really like to write an add on to search in many languages as well, using common search engines like google. It's very simple to do in bash, though I don't know how to bypass the limitation of google translate requests, that closes if requests are done too often. The rest is just matter to convert the original search keyword to "" OR <translated key 1> OR <translated key 2> OR ... and adding that to an add on.

BTW, please tell me, where is the file where your add-on stores the languages to translate? In order to do cat lang_list>>conf_file next time.

FilipePS commented 9 months ago

image image

Ara-cole commented 9 months ago

Well that something, but i fear that if I type that adress I wont reach that page, how did you do that? At least now I know the variable name. let me do find | grep \"alwaysTranslateLangs:\" /s

Ara-cole commented 9 months ago

`#!/bin/bash all_langcodes="aa af agr ak am an anp ar ayc az as ast be bem ber bg bhb bho bi bn bo br brx bs byn ca ce chr ckb cmn crh cs csb cv cy da de doi dsb dv dz el en eo UTF-8 es es es et eu fa ff fi fil fo fr fur fy ga gd gez gl gu gv ha hak he hi hif hne hr hsb ht hu hy ia id ig ik is it iu ja ka kab kk kl km kn ko kok ks ku kw ky lb lg li lij ln lo lt lv lzh mag mai mfe mg mhr mi miq mjw mk ml mn mni mnw mr ms mt my nan nb nds ne nhn niu nl nn nr nso oc om or os pa pap pl ps pt quz raj ro ru rw sa sah sat sc sd se sgs shn shs si sid sk sl sm so sq sr ss st sv sw szl ta tcy te tg th the ti tig tk tl tn to tpi tr ts tt ug uk unm ur uz ve vi wa wae wal wo xh yi yo yue yuw zh zu"

query="$*" local=$( echo $LANG|cut -d_ -f1 )

Google solo permite hasta 32 entradas

langcodes=$(shuf -e -n32 $all_langcodes ) for code in $langcodes; do transquery=$(./trans -b "$query" -s $local -t $code) if not test "$transquery" == "" ; then

    oquery="\"$transquery\" OR $oquery"
     echo $oquery

    fi
sleep .1

done

Bing no tiene esa limitacion

firefox "https://www.google.com/search?q=$oquery"

` firefox "https://www.bing.com/search?q=$oquery"

FilipePS commented 9 months ago

image

Ara-cole commented 9 months ago

My beloved: Captura de pantalla_2024-02-21_20-30-10

Ara-cole commented 9 months ago

without addon Captura de pantalla_2024-02-21_20-50-39 witrh addon: Captura de pantalla_2024-02-21_20-50-21 free yourself, try it! : https://www.bing.com/search?q=%22%d2%af%d0%b7%d0%b4%d1%96%d0%ba+%d2%b1%d0%bb%d1%82%d1%82%d1%8b%d2%9b+%d1%84%d0%b8%d0%bb%d1%8c%d0%bc%22+OR+%22%e0%a6%b6%e0%a7%8d%e0%a7%b0%e0%a7%87%e0%a6%b7%e0%a7%8d%e0%a6%a0+%e0%a7%b0%e0%a6%be%e0%a6%b7%e0%a7%8d%e0%a6%9f%e0%a7%8d%e0%a7%b0%e0%a7%80%e0%a6%af%e0%a6%bc+%e0%a6%9b%e0%a6%ac%e0%a6%bf%22+OR+%22parim+rahvuslik+film%22+OR+%22%d8%a8%d8%a7%d8%b4%d8%aa%d8%b1%db%8c%d9%86+%d9%81%db%8c%d9%84%d9%85%db%8c+%d9%86%db%8c%d8%b4%d8%aa%d9%85%d8%a7%d9%86%db%8c%22+OR+%22nejlep%c5%a1%c3%ad+n%c3%a1rodn%c3%ad+film%22+OR+%22phim+qu%e1%bb%91c+d%c3%a2n+hay+nh%e1%ba%a5t%22+OR+%22%e0%a4%b8%e0%a4%b0%e0%a5%8d%e0%a4%b5%e0%a5%8b%e0%a4%a4%e0%a5%8d%e0%a4%95%e0%a5%83%e0%a4%b7%e0%a5%8d%e0%a4%9f+%e0%a4%b0%e0%a4%be%e0%a4%b7%e0%a5%8d%e0%a4%9f%e0%a5%8d%e0%a4%b0%e0%a5%80%e0%a4%af+%e0%a4%9a%e0%a4%bf%e0%a4%a4%e0%a5%8d%e0%a4%b0%e0%a4%aa%e0%a4%9f%22+OR+%22beste+nasjonale+film%22+OR+%22legjobb+nemzeti+film%22+OR+%22%d0%bd%d0%b0%d0%b9-%d0%b4%d0%be%d0%b1%d1%8a%d1%80+%d0%bd%d0%b0%d1%86%d0%b8%d0%be%d0%bd%d0%b0%d0%bb%d0%b5%d0%bd+%d1%84%d0%b8%d0%bb%d0%bc%22+OR+%22eyona+bhanyabhanya+kazwelonke%22+OR+%22kiriata+motu+pai+rawa+atu%22+OR+%22pinakamahusay+na+pambansang+pelikula%22+OR+%22%e6%9c%80%e4%bd%b3%e6%b0%91%e6%97%8f%e7%94%b5%e5%bd%b1%22+OR+%22filmi+m%c3%ab+i+mir%c3%ab+komb%c3%abtar%22+OR+%22en+iyi+ulusal+film%22+OR+%22beste+nasjonale+film%22+OR&FPIG=5A801E3A4C104DA586ECCD2CF46E0A29&first=11&FORM=PORE