Giter Club home page Giter Club logo

translator's People

Contributors

alimsoftware avatar alpha4041 avatar bgo-eiu avatar elea11 avatar fiestalake avatar jakubfabijan avatar jason5545 avatar kikecalpe avatar lennoard avatar mikesew1320 avatar ninja1998 avatar sguinetti avatar sr093906 avatar sunilpaulmathew avatar waldist avatar walkerpt avatar xdavidel avatar

Stargazers

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

Watchers

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

translator's Issues

Bug: crash while reporting crash

  • First bug: I was just translating and typoed pressed save and crashed(no way the app knows how many characters it'll be), crash report:

java.lang.ArrayIndexOutOfBoundsException: length=33; index=-1 at java.util.ArrayList.get(ArrayList.java:439) at t1.e.onClick(:3) at androidx.appcompat.app.AlertController$c.handleMessage(Unknown Source:37) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

  • Second bug: press report in the crash section, send it somewhere and press cancel. Crash report:

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference at java.io.Writer.write(Writer.java:157) at z1.j.a(Unknown Source:5) at z1.a.a(:4) at in.sunilpaulmathew.sCommon.Activities.sCrashReporterActivity.onBackPressed(Unknown Source:0) at x1.a.onClick(:3) at android.view.View.performClick(View.java:7455) at android.view.View.performClickInternal(View.java:7432) at android.view.View.access$3600(View.java:810) at android.view.View$PerformClick.run(View.java:28312) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Bug Strings Import

Application closes itself after importing any string. This happens on my Android 11.

Screenshot_20221104-091717.png

Feature Request: Add option for regex search and replace

The current search and replace functionality helps a lot when translating some strings. It would be even more powerful if users could further specify search queries using regular expressions.

This would be very useful, for example when you want to replace whole words, but not words that merely contain the search string:

Regex often offers \b as an option to delimit strings as words. The regular expression \bexam\b would therefore find a match in custom exam questions:, but not in see this example:.

I'm sure that also offering a regex search for the search-and-replace feature would have even more use cases than the one I've described. Users with regex knowledge could greatly profit from it and refine their search results to those that they've envisioned.

Crash The Translator

App Name: The Translator
Package Name: com.sunilpaulmathew.translator
App Version: v0.17
SDK Version: 29

Crash Report

java.lang.ArrayIndexOutOfBoundsException: length=366; index=-1
at java.util.ArrayList.get(ArrayList.java:439)
at t1.e.onClick(:3)
at androidx.appcompat.app.AlertController$c.handleMessage(Unknown Source:37)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7389)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)

Steps to reproduce the issue:

Suggetions by @Lennoard

  • As you can see, the translated string line are being appended an extra "" at the end , sometimes twice - [Fixed]
  • If you're translating the last strings, i.e the recycler view is scrolled to bottom, when you're done translating it hard-scrolls back to top (maybe you're calling notifyDatasetChanged() instead of itemChanged?) - [Fixed]
  • I'd like an option to see what was the original string even after I hit OK when translating, so that I can know that I didn't messed up - [In progress]
  • Translation progress is very welcome - [To-do]
  • You can consume Google Translate API for some advanced stuff too - [To-do]

Feature Request: also show original string after translating it

Often times it is useful to also be able to see the original string after it was translated.

At the moment, after a translation string is translated and the list of translation strings is redrawn (for example by entering and leaving the options overflow menu), there's no easy way to see what see what the original string was or to recheck whether the entered translation fits the given string.

A way to tackle this request could be by showing the original string above the textbox used for setting the translation string, instead of just prefilling the textbox with the original string.

Search fonction issue

When searching a string, other strings it's deleting and I can't go back (Android 13)

java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Iterator java.util.ArrayList.iterator()' on a null object reference at l2.l.c(SourceFile:8) at k2.p$d.a(Unknown Source:6) at androidx.activity.b.run(SourceFile:522) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923)

java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Iterator java.util.ArrayList.iterator()' on a null object reference
at l2.l.c(SourceFile:8)
at k2.p$d.a(Unknown Source:6)
at androidx.activity.b.run(SourceFile:522)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)

string incorrectly marked wrong

One of the strings of this app contains illegal characters, except I believe they are correct:

Some character\'s are considered illegal in \'xml\' format and are not acceptable! Please be noted that the entire text will be neglected (or even app crashes in the worst case) when an illegal character is detected!\n\nSome of the prohibited character\'s includes, but not limited to\n& - except for certain words\n< and > -except for certain cases such as <b>, </b>, <i>, </i> etc.\nSingle (\') or double (\") quotation marks without a backward slash (\\) in the front, etc.

The issue seems to be with >b<. This prevents me from translating it properly. Are you interpreting it twice?

How about making all characters legal and escaping when saving the string instead? That would be much less confusing for translators.

Suggetions by @elea11

  • Keep the scroll/list position as already mentioned by others - [Fixed]
  • I found it difficult to identify if /'string/' was code or had to be translated. There should be a hint how to identify code within the texts to make sure it stays untouched - [To-do]
  • I was wondering about occurred when I had to swap the positions of %s and the translated word. When I pressed OK to save it didn't and came back with the untranslated phrase. It saved though after translating and pressing OK for a second time - [To-do]

Feature Request: Change style of textbox placeholder text

Within the search and replace feature, the textbox placeholder hint is styled the same way as the input. Placeholder hints in textboxes are often stlyed more subtly than the input, so users can distinguish between the two.

Setting the placeholder text style to a dimmer color, and/or using italics, would make the distinction between placeholder and input text more clear.

Suggestion

Good app, but there is an option missing that would help a lot for those who are translating, showing the string above the text to be translated, as it only shows the text to be translated, in cases where there is doubt in the translation because the string is not visible, we lose the visibility of information that could help us decide the correct translation

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.