jMonkeyEngine / jMonkeyEngine/jmonkeyengine

android.nifty: Enter text: localization

Open
#1,084 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Android
Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

In android, when you do choose some TextField popup is appiared with suggestion to enter text, the phrase is: "Enter text" is used. But for non-english application it is not acceptable. I suggest to add possibility to localize this message.

I found the phrase at source at InputSystemJme.processSoftKeyboard:319

There are couple good solutions for this.
1 - simple one: some localization constants, for that phrase for exit message(it can be redefined now, but it would be good to have single mechanism for that). So application will be able to redefine phrases at start and it will be ok.

2 - the correct one: Is to introduce a proper localization system. for example kinda properties files, but UTF-8. And every language has own file (may be set of files to separate different parts, like system, user-application, nifty, some other?). It is almost common practice for web applications, but it is rather a good way to do it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at InputSystemJme.processSoftKeyboard around line 319 and inspect how the “Enter text” and exit messages are currently defined or overridden. Compare the proposed single-message mechanism with the broader localization-system idea; done means the Android text-entry prompt can be localized without leaving the mechanism ambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
localization, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.