Coder Social home page Coder Social logo

Comments (6)

soimort avatar soimort commented on August 20, 2024 1

Which OS / distro are you running?

Gentoo Linux, installed from the system package manager.

Thanks for the info! Now I see that C.UTF-8 is indeed the default locale on Gentoo, and probably other more baremetal systems. Will fix that warning for C.UTF-8 later, but still, setting a language/region based locale is recommended.

from translate-shell.

soimort avatar soimort commented on August 20, 2024
  1. What is your trans -V?

  2. Does it happen with other language pairs?

from translate-shell.

vitaly-zdanevich avatar vitaly-zdanevich commented on August 20, 2024
$ trans -V
Translate Shell       0.9.7.1

platform              Linux
terminal type         xterm-kitty
bi-di emulator        [N/A]
gawk (GNU Awk)        5.3.0
fribidi (GNU FriBidi) 1.0.13
audio player          mpv --no-config
terminal pager        less
web browser           xdg-open
user locale           C.UTF8 (English)
host language         en
source language       auto
target language       en
translation engine    auto
proxy                 [NONE]
user-agent            Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36 Edg/104.0.1293.54
ip version            [DEFAULT]
theme                 happiness.trans
init file             /home/vitaly/.config/translate-shell/init.trans

from translate-shell.

vitaly-zdanevich avatar vitaly-zdanevich commented on August 20, 2024

2. Does it happen with other language pairs?

Looks like yes:

$ trans :de -p 'hello'
Hallo

Definitions of hello
[ English → Deutsch ]

interjection
    Hallo!
        Hello!, Hi!, Hey!, Howdy!, Yoo-Hoo!
    Hallo?
        Hello!
    Guten Tag!
        Hello!, Good day!, Good afternoon!, How do you do?
    Servus!
        Hello!, Goodbye!, Cheerio!, So long!

hello
    Hallo, hallo!
Voice output isn't available for English

from translate-shell.

soimort avatar soimort commented on August 20, 2024

user locale C.UTF8 (English)

Which OS / distro are you running?

trans could be problematic under the locale C, as it sometimes gets confused when assuming the default language (which is English in this case). You can try changing the locale to en_US.UTF8 or ru_RU.UTF-8.
Or explicitly specify the source language (en) and see if the warning persists:

$ trans en:de -p 'hello'

from translate-shell.

vitaly-zdanevich avatar vitaly-zdanevich commented on August 20, 2024

Which OS / distro are you running?

Gentoo Linux, installed from the system package manager.

from translate-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.