mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
Cleaned and updated the i18n strings for various server-core system. Removed i18n for all strings that are only visible on stdout or in logs. Still missing i18n on certain specific things such as model field help and attribute warnings. Updated Swedish translation to match.
This commit is contained in:
parent
80da420ee7
commit
4c849ec351
26 changed files with 918 additions and 1420 deletions
|
|
@ -1,20 +1,20 @@
|
|||
#
|
||||
# This sets up how models are displayed
|
||||
# in the web admin interface.
|
||||
# This sets up how models are displayed
|
||||
# in the web admin interface.
|
||||
#
|
||||
|
||||
from django.contrib import admin
|
||||
from src.comms.models import Channel, Msg, PlayerChannelConnection, ExternalChannelConnection
|
||||
|
||||
class MsgAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'db_date_sent', 'db_sender', 'db_receivers', 'db_channels', 'db_message', 'db_lock_storage')
|
||||
class MsgAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'db_date_sent', 'db_sender', 'db_receivers', 'db_channels', 'db_message', 'db_lock_storage')
|
||||
list_display_links = ("id",)
|
||||
ordering = ["db_date_sent", 'db_sender', 'db_receivers', 'db_channels']
|
||||
#readonly_fields = ['db_message', 'db_sender', 'db_receivers', 'db_channels']
|
||||
search_fields = ['id', '^db_date_sent', '^db_message']
|
||||
save_as = True
|
||||
save_on_top = True
|
||||
list_select_related = True
|
||||
save_as = True
|
||||
save_on_top = True
|
||||
list_select_related = True
|
||||
#admin.site.register(Msg, MsgAdmin)
|
||||
|
||||
class PlayerChannelConnectionInline(admin.TabularInline):
|
||||
|
|
@ -41,12 +41,12 @@ class ChannelAdmin(admin.ModelAdmin):
|
|||
list_display_links = ("id", 'db_key')
|
||||
ordering = ["db_key"]
|
||||
search_fields = ['id', 'db_key', 'db_aliases']
|
||||
save_as = True
|
||||
save_on_top = True
|
||||
list_select_related = True
|
||||
save_as = True
|
||||
save_on_top = True
|
||||
list_select_related = True
|
||||
fieldsets = (
|
||||
(None, {'fields':(('db_key', 'db_aliases', 'db_desc'),'db_lock_storage', 'db_keep_log')}),
|
||||
)
|
||||
)
|
||||
|
||||
admin.site.register(Channel, ChannelAdmin)
|
||||
|
||||
|
|
@ -55,9 +55,9 @@ admin.site.register(Channel, ChannelAdmin)
|
|||
# list_display_links = ("db_player", 'db_channel')
|
||||
# ordering = ["db_channel"]
|
||||
# search_fields = ['db_channel', 'db_player']
|
||||
# save_as = True
|
||||
# save_on_top = True
|
||||
# list_select_related = True
|
||||
# save_as = True
|
||||
# save_on_top = True
|
||||
# list_select_related = True
|
||||
# admin.site.register(PlayerChannelConnection, PlayerChannelConnectionAdmin)
|
||||
|
||||
# class ExternalChannelConnectionAdmin(admin.ModelAdmin):
|
||||
|
|
@ -65,8 +65,8 @@ admin.site.register(Channel, ChannelAdmin)
|
|||
# list_display_links = ("db_channel", 'db_external_key', 'db_external_config')
|
||||
# ordering = ["db_channel"]
|
||||
# search_fields = ['db_channel', 'db_external_key']
|
||||
# save_as = True
|
||||
# save_on_top = True
|
||||
# list_select_related = True
|
||||
# save_as = True
|
||||
# save_on_top = True
|
||||
# list_select_related = True
|
||||
# admin.site.register(ExternalChannelConnection, ExternalChannelConnectionAdmin)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue