GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Potential LanguageType Mismatch/Bug in Android Implementation (Turkish detected as Ukrainian) · Issue #3147 · axmolengine/axmol

Potential LanguageType Mismatch/Bug in Android Implementation (Turkish detected as Ukrainian) #3147

New issue
Copy link
New issue
Copy link
Closed
Closed
Potential LanguageType Mismatch/Bug in Android Implementation (Turkish detected as Ukrainian)#3147
Copy link
Labels
bugSomething isn't workingtopic:lua
Milestone
3.0.0

Description

@yasar453
yasar453
opened on May 8, 2026
Issue body actions

I have encountered a bug regarding language detection on Android when using the Axmol engine. It appears there is an index mismatch between the LanguageType enum in C++ and the values returned from the Android native side.

On a device set to Turkish, Application:getInstance():getCurrentLanguage() returns 16, which corresponds to LANGUAGE_UKRAINIAN in the engine. However, according to the LanguageType enum in CCCommon.h, Turkish should be 15.
ax.LANGUAGE_TURKISH = 15!!!
// From CCCommon.h
enum class LanguageType
{
ENGLISH = 0,
...
POLISH,
TURKISH,
UKRAINIAN,
ROMANIAN,
...
};

Activity

  1. halx99
    added
    needs-confirm
    on May 9, 2026
  2. halx99 commented on May 9, 2026

    @halx99
    halx99
    on May 9, 2026
    Collaborator
    More actions
    Image

    I checked the enum LanguageType, TURKISH is 16

  3. yasar453 commented on May 9, 2026

    @yasar453
    yasar453
    on May 9, 2026
    Author
    More actions

    Hi,

    I've noticed a synchronization issue regarding the LanguageType enum between the engine core and the Lua implementation, specifically affecting the Turkish language.

    In the standard enum, TURKISH is defined at index 16. However, it appears that in the Lua-side configuration or the Android bridge, this is mapped to index 15.

    Because of this 1-index offset, when a device is set to Turkish, the engine incorrectly retrieves the language at the previous index, which results in the Ukrainian language being displayed instead.

    You can observe this behavior by setting an Android device to Turkish; the application fallback or mapping logic defaults to Ukrainian due to this index mismatch.

    Could you please verify the LanguageType definitions in the Lua bindings and the Android platform code to ensure they align with the core engine's enum?

    Best regards.

    Link-----> https://github.com/axmolengine/axmol/blob/dev/extensions/scripting/lua-bindings/script/core/Constants.lua

    ax.LANGUAGE_ENGLISH = 0
    ax.LANGUAGE_CHINESE = 1
    ax.LANGUAGE_FRENCH = 2
    ax.LANGUAGE_ITALIAN = 3
    ax.LANGUAGE_GERMAN = 4
    ax.LANGUAGE_SPANISH = 5
    ax.LANGUAGE_DUTCH = 6
    ax.LANGUAGE_RUSSIAN = 7
    ax.LANGUAGE_KOREAN = 8
    ax.LANGUAGE_JAPANESE = 9
    ax.LANGUAGE_HUNGARIAN = 10
    ax.LANGUAGE_PORTUGUESE = 11
    ax.LANGUAGE_ARABIC = 12
    ax.LANGUAGE_NORWEGIAN = 13
    ax.LANGUAGE_POLISH = 14
    ax.LANGUAGE_TURKISH = 15 -----
    ax.LANGUAGE_UKRAINIAN = 16
    ax.LANGUAGE_ROMANIAN = 17
    ax.LANGUAGE_BULGARIAN = 18
    ax.LANGUAGE_BELARUSIAN = 19

  4. halx99
    closed this as completedin a875dcaon May 9, 2026
  5. halx99
    added this to the 3.0.0 milestone on May 9, 2026
  6. halx99
    added
    bugSomething isn't working
    topic:lua
    and removed
    needs-confirm
    on May 9, 2026
  7. pull
    added a commit that references this issue on May 9, 2026

    Fix axmolengine#3147 Lua language type mismatch with C++

    This issue will close once commit a875dca is merged into the 'dev' branch.
    a875dca
  8. halx99
    added a commit that references this issue on May 11, 2026

    Fix #3147 Lua language type mismatch with C++

    This issue will close once commit 5e37bca is merged into the 'dev' branch.
    5e37bca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtopic:lua

    Type

    No type

    Projects

    No projects

      Milestone

      • 3.0.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.