Skip to content

Add Translation Support for Applications#46

Open
lurenjiamax wants to merge 1 commit intoasivery:masterfrom
lurenjiamax:translation_support
Open

Add Translation Support for Applications#46
lurenjiamax wants to merge 1 commit intoasivery:masterfrom
lurenjiamax:translation_support

Conversation

@lurenjiamax
Copy link
Copy Markdown

This commit add translation support for applications in following priority:
env "APP_LOCALE" > xochitl Language config (/data/xochitl.conf) > System locale
I put system locale in the last because remarkable OS only support en_US locale.

The application should have a translations folder in its resource file or app root with appname_langcode.qm QT translation file, and rm-appload will automatic load corresponding translation.

However, it still miss support for changing the app language during runtime. Maybe rm-appload should provide a signal or call engine->retranslate() using QQmlEngine in the future.

Tested in rmppm.

@lurenjiamax lurenjiamax force-pushed the translation_support branch from 82c5183 to cc966de Compare April 15, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant