Univention Bugzilla – Bug 42637
Add tab for managing app translations
Last modified: 2016-11-25 10:01:09 CET
Created attachment 8084 [details] Mockup for translation view We will need a tab for properly handling app translations.
A small snippet of sample code: ---------- 8< ---------- from univention.appcenter.actions import get_action list_apps = get_action('selfservice-list')() args = list_apps._build_namespace( username='Administrator', password='univention', noninteractive=True) apps = list_apps.list_apps(args) a = apps[0] [i.name for i in a._attrs if i.localisable] ---------- 8< ----------
The following bit of code gets the German translation of an app: > app_de = a.get_app_cache_obj().copy(locale='de').find(app.id, app_version=app.version)
r74169 changed the default locale for SelfserviceApps to 'en'. Changelog in r74170
The basic layout is up and working. univention-management-console-module-appcenter-selfservice (1.0.0-104): r74518 | Bug #42637: return only the changes of app translation properties r74517 | Bug #42637: add tab with app translations TODOs: * The English READMEs are returned * Saving the translation values does not work yet * ThumbnailBox needs to support the properties value and disable
(In reply to Alexander Kläser from comment #4) > TODOs: > * The English READMEs are returned > * Saving the translation values does not work yet Done > * ThumbnailBox needs to support the properties value and disable What am I supposed to do here?
(In reply to Dirk Wiesenthal from comment #5) > (In reply to Alexander Kläser from comment #4) > > TODOs: > > * The English READMEs are returned > > * Saving the translation values does not work yet > > Done > > > * ThumbnailBox needs to support the properties value and disable > > What am I supposed to do here?
(In reply to Dirk Wiesenthal from comment #5) > (In reply to Alexander Kläser from comment #4) > > TODOs: > > * The English READMEs are returned > > * Saving the translation values does not work yet > > Done Wonderful! > > > * ThumbnailBox needs to support the properties value and disable > > What am I supposed to do here? Nothing, Johannes will adjust this behavior, along with setting labelPosition='top' in the widget's class and defining a label in AppUploadPage.
(In reply to Alexander Kläser from comment #4) > [...] > * ThumbnailBox needs to support the properties value and disable This will be done via Bug 43011. I added the correct labels, so German screenshots can be specified now. univention-management-console-module-appcenter-selfservice (1.0.0-119): r74590 | Bug #42637: Add correct label for screenshots widget
Upload limit for screenshots is 0.5 MB. This is not enough. We have screenshots > 2 MB. I do not see the need for a limit.
(In reply to Dirk Wiesenthal from comment #9) > Upload limit for screenshots is 0.5 MB. This is not enough. We have > screenshots > 2 MB. I do not see the need for a limit. fixed. r74596 | Bug #42635: adjust size limit for screenshots
The new version of the App Provider Portal has been released and this bug will thus be closed.