Skip to content

translation #2

@4liaghaie

Description

@4liaghaie

hello in the picture you can see admin berry and the default admin
i am using model_translation for diffefernt languages on my website
the difference is admin berry creates seperate input field for each lang but in django default admin by importing thhese:
class PopupModelAdmin(TranslationAdmin):
class Media:
js = (
'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js',
'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js',
'modeltranslation/js/tabbed_translation_fields.js',
)
css = {
'screen': ('modeltranslation/css/tabbed_translation_fields.css',),
}
in admin.py i can make it display like the second picture where it has a seperate tab for each lang
i tried importing the js and css in admin berry templates scrtipts.html and styles.html but it didnt work
Capture3
Capture5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions