Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get machine translation tmserver or Weblate built-in to show anything #1285

Closed
ghost opened this issue Nov 25, 2016 · 7 comments
Closed
Labels
question This is more a question for the support than an issue.

Comments

@ghost
Copy link

ghost commented Nov 25, 2016

Hi everyone, I'm new to Weblate and can't get tmserver machine translation or the Weblate built-in one to work. See https://docs.weblate.org/en/latest/admin/machine.html#tmserver

BTW I'm also wondering whether there is a public Weblate server where I can try out on of these two machine translation services. So if anyone knows a public server that would be great.

Steps to reproduce

  1. Set up Weblate, enable tmserver and/or Weblate built-in machine translation
  2. Add a project and component
  3. While translating, press on machine translation tab

Actual behaviour

Nothig shows up under machine translation tab

Expected behaviour

Machine translation of string should show up, e.g. for strings that were already translated, shouldn't the present translation show up at least?

Server configuration

Please paste the output of command ./manage.py list_versions over here
` Weblate weblate-2.7-97-gf4c443d

  • Python 2.7.12
  • Django 1.9.8
  • six 1.10.0
  • python-social-auth 0.2.19
  • Translate Toolkit 2.0.0b3
  • Whoosh 2.7.4
  • defusedxml 0.4.1
  • Git 2.7.4
  • Pillow (PIL) 1.1.7
  • dateutil 2.6.0
  • lxml 3.4.4
  • django-crispy-forms 1.6.0
  • compressor 2.0
  • djangorestframework 3.3.2
  • pytz 2016.6.1
  • pyuca N/A
  • Database backends: django.db.backends.sqlite3`
@ghost ghost mentioned this issue Nov 28, 2016
@nijel
Copy link
Member

nijel commented Nov 29, 2016

Some backends (Weblate built in and few third party ones) are enabled at https://hosted.weblate.org/, the availability always depends on a language.

What problem do you have with tmserver?

@nijel nijel added the question This is more a question for the support than an issue. label Nov 29, 2016
@ghost
Copy link
Author

ghost commented Nov 30, 2016

Hi Nijel, I've looked for a long time on hosted.weblate.org and I've looked again, but I just can't find a language/ project where the "Machine Translation" tab is visible on the translation view. Can you maybe show me one?

My problem with tmserver is that there is never any machine translation in the textfield on the machine translation tab. It's always empty. Neither with Weblate built-in machine translation. How do I know whether there is something wrong with my setup or the machine translation just can't suggest anything, because it hasn't learned enough about the current string? Shouldn't it at least suggest the current translation for already translated strings, since it looks for exact matches? So if I translate Weblate as Weblate (because it's a name), if I go back to that to translate again/ correct it, shouldn't machine translation show me Weblate as a suggestion, because it has learned that?

Thanks a lot for your help!

@nijel
Copy link
Member

nijel commented Nov 30, 2016

Does the browser do requests for the translations? Each service is requested separately.

Also the built in service might be broken in some cases, see https://github.com/nijel/weblate/issues/1056 and https://github.com/nijel/weblate/issues/800

PS: And you need to be logged in to see machine translation on Hosted Weblate, it's available to authenticated users only.

@ymmd
Copy link

ymmd commented Dec 12, 2016

Hi, I am looking at the issue together with WorldCodeCentral and we tried to track why no search results are being displayed. Suddenly there are machine translation suggestions and probably they have been there the whole time and we just didn't look at the right strings to see them. Thank you so much for your help anyway!

@nijel
Copy link
Member

nijel commented Dec 22, 2016

You can play with it in Django shell:

$ ./manage.py shell
Python 2.7.13 (default, Dec 18 2016, 20:19:42) 
[GCC 6.2.1 20161215] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from weblate.trans.search import more_like
>>> from weblate.trans.models import Unit
>>> u = Unit.objects.all()[0]
>>> more_like(u.pk, u.source)
set([])

@michaelarlt
Copy link
Contributor

is it still open? i saw a hint regarding source language which solved my issue. previously i had source lang to english (United States) in projects. after i changed to en only my issue was gone.

@ghost
Copy link
Author

ghost commented Mar 12, 2017

Thanks for the reply, I forgot to get back at you. We were able to make it work, my problem was that I didn't have enough strings that were similar enough. I still find it strange though that for an already translated string you don't get your translated string as machine translation output since it should fit 100% (exact match). At least I think this is why it did work later. So, issue can be closed as far as I am concerned. Thanks again.

@ghost ghost closed this as completed Mar 12, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue.
Projects
None yet
Development

No branches or pull requests

3 participants