-
Notifications
You must be signed in to change notification settings - Fork 46
Stringlate crashes when trying to add a "locale" #195
Comments
Note, that this bug exists since Stringlate 0.11. BTW, why is selecting a "locale" so crucial? |
Well, you need to select the language into which you will translate the application. As far as I know, there's no way to accurately infer the language you're writing your translation on to do this automatically. I can't assume you want to translate it into the language of your device either, since a lot of people have their phone in English, or are able to talk several languages. |
For FFupdater (and also for ApkTrack, when I had it working), I used the "Selected locale" drop down menu (first line on the upper left, after selecting a subscribed repository) for this, as the menu entry "+ Add locale" fails for me.
Sure. |
Say this application had no translation. I would have to add the new Spanish locale if I wanted to translate it to my mother language. On the other hand, if the application already had a Spanish translation, I could just select the existing locale. So. selecting a locale lists only existing ones, while adding adds one that doesn't exist already. |
NPE:
|
Apparently the
|
Hey, emulators are pretty nice after all. Had to clone from GitLab since GitHub fails, as @gsantner explained, due to old SSL issues |
Steps to reproduce
Expected behaviour
A new locale is selected (without a crash).
General information
Tested with Stringlate 0.14 from F-Droid under AOSP 4.1.2 (API level 16).
Logs
Main log and Event log, filtered for
lonamiwebs
.Potentially relevant lines from main log:
I dalvikvm: Could not find method android.app.DialogFragment.onAttach, referenced from method io.github.lonamiwebs.stringlate.dialogs.LocaleSelectionDialog.onAttach
E AndroidRuntime: at io.github.lonamiwebs.stringlate.dialogs.LocaleSelectionDialog.dismissDialogWithLocaleResult(LocaleSelectionDialog.java:175)
E AndroidRuntime: at io.github.lonamiwebs.stringlate.dialogs.LocaleSelectionDialog$5.onLocaleSelected(LocaleSelectionDialog.java:137)
E AndroidRuntime: at io.github.lonamiwebs.stringlate.adapters.LocaleEntryAdapter$3.onClick(LocaleEntryAdapter.java:169)
P.S.: Finally I understood the references to "locales", now that I was able to see the locale selection list in Stringlate 0.14 (I was unable to reach it in Stringlate 0.13, as I could not subscribe a repository).
The text was updated successfully, but these errors were encountered: