Giter VIP home page Giter VIP logo

thuantan2060 / comment-translator Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 12.0 552 KB

Comment translator is extension for Visual Studio 2017. It make easy way to translate comment in editor. Sorry everyone because I'm focusing in another project so that I don't have enough time to take care this project anymore. If you want to modify this project feel free to fork it. Thanks! API repository: https://github.com/thuantan2060/comment-translator-api

License: Other

C# 100.00%

comment-translator's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

comment-translator's Issues

VS 2019 Support?

Installed product versions

  • Visual Studio: 2019 Professional
  • This extension: Can't install

Description

Is it possible to install this in VS2019?

Steps to recreate

  1. install VS2019
  2. search for your plugin -- you can't find it in the marketplace
  3. install the VSIX from your plugins' webpage, plugin does not appear in VS2019

Expected behavior

It should work in all versions of VS!

I added a comment on the VS marketplace forum but I thought I would try here since I don't know whether I would get a notification of a response over there.

How to replace the origianl comments to translation content?

I am not sure wether this can be a new feature or not. Because in my team, we need translate the comments from non-english to english, replace them totally in the code files, and save them to generate an English version project. We hope there is a feature to make it true. Thanks for your contribution, the extension toolkit is very useful.

Default server URL reports 'Gateway Timeout' on all translation attempts

Installed product versions

  • Visual Studio: 2017 Professional
  • This extension: 1.1.3

Description

All translation attempts report 'Gateway Timeout' after 30 seconds.

Steps to recreate

  1. Install the Comment Translator extension and restart Visual Studio
  2. Configure the extension as follows
Option Value
Server.Translate Server Url http://mti-translate-api-mti-translate-api.a3c1.starter-us-west-1.openshiftapps.com (this is the default value for the URL)
Translate.Auto detect language True
Translate.Auto translate comment True
Translate.From Language es-SP
Translate.To Language en-US

The intent of this configuration is to translate from Spanish to English.

  1. Restart Visual Studio to ensure configuration settings take effect
  2. Try to translate a comment. The translating... hovertip shows for 30 seconds, then says 'Gateway Timeout'

Current behavior

The translation request is being sent to the configured server URL. But the server is failing after 30 seconds with a 504 - Gateway Timeout status.

Request captured via Fiddler trying to translate "NivelInicio":

POST http://mti-translate-api-mti-translate-api.a3c1.starter-us-west-1.openshiftapps.com/api/translate HTTP/1.1
from-language: es-SP
to-language: en-US
auto-detect-language: True
Content-Type: application/text; charset=UTF-8
Host: mti-translate-api-mti-translate-api.a3c1.starter-us-west-1.openshiftapps.com
Content-Length: 11
Expect: 100-continue
Connection: Keep-Alive

NivelInicio

Response from server after 30 seconds:

HTTP/1.0 504 Gateway Time-out
Cache-Control: no-cache
Connection: close
Content-Type: text/html

<html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>

Expected behavior

I'd expect the translation to come back as "Home Level"

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.