1. msaelices
  2. django-player

Commits

msaelices  committed 2817193

More spanish translations.

  • Participants
  • Parent commits 16d6a65
  • Branches default

Comments (0)

Files changed (8)

File player/base/static/base/css/base.css

View file
  • Ignore whitespace
 
 .blockHiddenTitle {
     display: none;
+}
+
+.newBlockTrigger {
+    font-weight: bolder;
+    font-size: 1.2em;
 }

File player/block/forms.py

View file
  • Ignore whitespace
         instance = kwargs.pop('instance', None)
         block_choices = [("", "---------")]
         block_choices.extend([(block_key, '%s (%s)' % (unicode(block['label']), block_key)) for block_key, block in get_registered_blocks()])
-        self.fields['block_path'] = forms.ChoiceField(choices=block_choices)
+        old_path_field = self.fields['block_path']
+        self.fields['block_path'] = forms.ChoiceField(label=old_path_field.label, choices=block_choices)
         if instance and 'config' in self.fields.keys():
             config = instance.get_block().get_config()
             if self.data:

File player/block/models.py

View file
  • Ignore whitespace
 
 
 class PlacedBlock(models.Model):
-    name = models.CharField(max_length=200)
-    block_path = models.CharField(max_length=200)
-    placed_at = models.CharField(max_length=100, db_index=True)
-    order = models.PositiveIntegerField(db_index=True)
-    is_active = models.BooleanField(default=True)
+    name = models.CharField(_('Name'), max_length=200)
+    block_path = models.CharField(_('Block type'), max_length=200)
+    placed_at = models.CharField(_('Placed at'), max_length=100, db_index=True)
+    order = models.PositiveIntegerField(_('Order'), db_index=True)
+    is_active = models.BooleanField(_('Is active'), default=True)
     config = ConfigField(_('Configuration'), null=True, blank=True)
 
     objects = PlacedBlockManager()

File player/locale/en/LC_MESSAGES/django.mo

  • Ignore whitespace
Binary file modified.

File player/locale/en/LC_MESSAGES/django.po

View file
  • Ignore whitespace
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-03-17 10:19+0100\n"
+"POT-Creation-Date: 2011-03-17 13:41+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 msgid "Template to be used for rendering this block"
 msgstr ""
 
+#: /home/lin/django-player/player/block/models.py:27
+#: /home/lin/django-player/player/block/templates/block/block_detail.html.py:12
+#: /home/lin/django-player/player/block/templates/block/block_list.html.py:14
+#: /home/lin/django-player/player/data/models.py:67
+#: /home/lin/django-player/player/data/models.py:132
+#: /home/lin/django-player/player/data/templates/data/collection_view.html.py:86
+#: /home/lin/django-player/player/data/templates/data/inc.collection_list.html.py:6
+#: /home/lin/django-player/player/dbtemplate/templates/dbtemplate/template_detail.html.py:12
+#: /home/lin/django-player/player/dbtemplate/templates/dbtemplate/template_list.html.py:14
+#: /home/lin/django-player/player/player_staging/templates/player_staging/server_detail.html.py:17
+#: /home/lin/django-player/player/player_staging/templates/player_staging/server_list.html.py:14
+msgid "Name"
+msgstr ""
+
+#: /home/lin/django-player/player/block/models.py:28
+msgid "Block type"
+msgstr ""
+
+#: /home/lin/django-player/player/block/models.py:29
+msgid "Placed at"
+msgstr ""
+
+#: /home/lin/django-player/player/block/models.py:30
+#: /home/lin/django-player/player/block/templates/block/block_list.html.py:14
+msgid "Order"
+msgstr ""
+
+#: /home/lin/django-player/player/block/models.py:31
+msgid "Is active"
+msgstr ""
+
 #: /home/lin/django-player/player/block/views.py:59
 msgid "The block was successfully modified"
 msgstr ""
 msgid "Block detail"
 msgstr ""
 
-#: /home/lin/django-player/player/block/templates/block/block_detail.html.py:12
-#: /home/lin/django-player/player/block/templates/block/block_list.html.py:14
-#: /home/lin/django-player/player/data/models.py:67
-#: /home/lin/django-player/player/data/models.py:132
-#: /home/lin/django-player/player/data/templates/data/collection_view.html.py:86
-#: /home/lin/django-player/player/data/templates/data/inc.collection_list.html.py:6
-#: /home/lin/django-player/player/dbtemplate/templates/dbtemplate/template_detail.html.py:12
-#: /home/lin/django-player/player/dbtemplate/templates/dbtemplate/template_list.html.py:14
-#: /home/lin/django-player/player/player_staging/templates/player_staging/server_detail.html.py:17
-#: /home/lin/django-player/player/player_staging/templates/player_staging/server_list.html.py:14
-msgid "Name"
-msgstr ""
-
 #: /home/lin/django-player/player/block/templates/block/block_detail.html.py:13
 #: /home/lin/django-player/player/block/templates/block/block_list.html.py:14
 msgid "Place"
 msgid "Blocks stored in Presentation Layer"
 msgstr ""
 
-#: /home/lin/django-player/player/block/templates/block/block_list.html.py:14
-msgid "Order"
-msgstr ""
-
 #: /home/lin/django-player/player/block/templates/block/block_list.html.py:27
 msgid "There are no blocks included yet"
 msgstr ""
 msgid "You do not have permission to delete items objects"
 msgstr ""
 
-#: /home/lin/django-player/player/manage/templates/manage/base.html.py:48
+#: /home/lin/django-player/player/manage/templates/manage/base.html.py:49
 msgid "Admin site"
 msgstr ""
 
-#: /home/lin/django-player/player/manage/templates/manage/base.html.py:49
+#: /home/lin/django-player/player/manage/templates/manage/base.html.py:50
 msgid "Logout"
 msgstr ""
 
-#: /home/lin/django-player/player/manage/templates/manage/base.html.py:51
-msgid "This is a bug! An anonymous user shouldn't see this!"
-msgstr ""
-
 #: /home/lin/django-player/player/manage/templates/manage/base.html.py:61
 msgid "Collection groups"
 msgstr ""
 msgid "Go to public site"
 msgstr ""
 
-#: /home/lin/django-player/player/manage/templates/manage/base.html.py:102
+#: /home/lin/django-player/player/manage/templates/manage/base.html.py:103
 msgid "Presentation Layer system. Powered by Django."
 msgstr ""
 
 msgid "Error crawling reports"
 msgstr ""
 
-#: /home/lin/django-player/player/manage/templates/registration/logged_out.html.py:4
-#: /home/lin/django-player/player/skel/project/website/templates/website/nav_block.html.py:10
-msgid "Home"
-msgstr ""
-
-#: /home/lin/django-player/player/manage/templates/registration/logged_out.html.py:8
-msgid "Thanks for spending some quality time with the Web site today."
-msgstr ""
-
-#: /home/lin/django-player/player/manage/templates/registration/logged_out.html.py:10
-msgid "Log in again"
-msgstr ""
-
-#: /home/lin/django-player/player/manage/templates/registration/login.html.py:16
-msgid "Login"
-msgstr ""
-
 #: /home/lin/django-player/player/manage/templates/uitools/toolbar.html.py:9
 msgid "Presentation Layer toolbar"
 msgstr ""
 msgid "Here you can browse the latest news"
 msgstr ""
 
+#: /home/lin/django-player/player/skel/project/templates/404.html.py:6
+msgid "Page not found"
+msgstr ""
+
 #: /home/lin/django-player/player/skel/project/templates/base.html.py:25
 msgid "Welcome to django-playerlayer demo"
 msgstr ""
 "framework"
 msgstr ""
 
+#: /home/lin/django-player/player/skel/project/website/templates/website/nav_block.html.py:10
+msgid "Home"
+msgstr ""
+
 #: /home/lin/django-player/player/skel/project/website/templates/website/nav_block.html.py:11
 msgid "News"
 msgstr ""
 #: /home/lin/django-player/player/templates/admin/base_site.html.py:11
 msgid "Frontend-layer administration"
 msgstr ""
+
+#: /home/lin/django-player/player/templates/registration/logged_out.html.py:9
+msgid "Thanks for spending some quality time with the Web site today."
+msgstr ""
+
+#: /home/lin/django-player/player/templates/registration/logged_out.html.py:11
+msgid "Log in again"
+msgstr ""
+
+#: /home/lin/django-player/player/templates/registration/login.html.py:16
+msgid "Login"
+msgstr ""

File player/locale/es/LC_MESSAGES/django.mo

  • Ignore whitespace
Binary file modified.

File player/locale/es/LC_MESSAGES/django.po

View file
  • Ignore whitespace
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-03-17 10:19+0100\n"
+"POT-Creation-Date: 2011-03-17 13:41+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 msgid "Template to be used for rendering this block"
 msgstr "Plantilla a usar para renderizar este bloque"
 
+#: /home/lin/django-player/player/block/models.py:27
+#: /home/lin/django-player/player/block/templates/block/block_detail.html.py:12
+#: /home/lin/django-player/player/block/templates/block/block_list.html.py:14
+#: /home/lin/django-player/player/data/models.py:67
+#: /home/lin/django-player/player/data/models.py:132
+#: /home/lin/django-player/player/data/templates/data/collection_view.html.py:86
+#: /home/lin/django-player/player/data/templates/data/inc.collection_list.html.py:6
+#: /home/lin/django-player/player/dbtemplate/templates/dbtemplate/template_detail.html.py:12
+#: /home/lin/django-player/player/dbtemplate/templates/dbtemplate/template_list.html.py:14
+#: /home/lin/django-player/player/player_staging/templates/player_staging/server_detail.html.py:17
+#: /home/lin/django-player/player/player_staging/templates/player_staging/server_list.html.py:14
+msgid "Name"
+msgstr "Nombre"
+
+#: /home/lin/django-player/player/block/models.py:28
+msgid "Block type"
+msgstr "Tipo de bloque"
+
+#: /home/lin/django-player/player/block/models.py:29
+msgid "Placed at"
+msgstr "Situado en"
+
+#: /home/lin/django-player/player/block/models.py:30
+#: /home/lin/django-player/player/block/templates/block/block_list.html.py:14
+msgid "Order"
+msgstr "Orden"
+
+#: /home/lin/django-player/player/block/models.py:31
+msgid "Is active"
+msgstr "Es visible"
+
 #: /home/lin/django-player/player/block/views.py:59
 msgid "The block was successfully modified"
 msgstr "El bloque fue modificado correctamente"
 msgid "Block detail"
 msgstr "Detalle del bloque"
 
-#: /home/lin/django-player/player/block/templates/block/block_detail.html.py:12
-#: /home/lin/django-player/player/block/templates/block/block_list.html.py:14
-#: /home/lin/django-player/player/data/models.py:67
-#: /home/lin/django-player/player/data/models.py:132
-#: /home/lin/django-player/player/data/templates/data/collection_view.html.py:86
-#: /home/lin/django-player/player/data/templates/data/inc.collection_list.html.py:6
-#: /home/lin/django-player/player/dbtemplate/templates/dbtemplate/template_detail.html.py:12
-#: /home/lin/django-player/player/dbtemplate/templates/dbtemplate/template_list.html.py:14
-#: /home/lin/django-player/player/player_staging/templates/player_staging/server_detail.html.py:17
-#: /home/lin/django-player/player/player_staging/templates/player_staging/server_list.html.py:14
-msgid "Name"
-msgstr "Nombre"
-
 #: /home/lin/django-player/player/block/templates/block/block_detail.html.py:13
 #: /home/lin/django-player/player/block/templates/block/block_list.html.py:14
 msgid "Place"
 msgid "Blocks stored in Presentation Layer"
 msgstr "Bloques almacenados en la Capa de Presentación"
 
-#: /home/lin/django-player/player/block/templates/block/block_list.html.py:14
-msgid "Order"
-msgstr "Orden"
-
 #: /home/lin/django-player/player/block/templates/block/block_list.html.py:27
 msgid "There are no blocks included yet"
 msgstr "No hay bloques incluídos aún"
 
 #: /home/lin/django-player/player/block/templates/block/block_toolbar.html.py:7
 msgid "Create a new block"
-msgstr ""
+msgstr "Nuevo bloque"
 
 #: /home/lin/django-player/player/block/templates/block/block_toolbar.html.py:15
 msgid "See block containers"
-msgstr ""
+msgstr "Ver contenedores de bloques"
 
 #: /home/lin/django-player/player/block/templates/block/header.html.py:64
 msgid "Enable/disable blocks dragging"
 msgid "You do not have permission to delete items objects"
 msgstr "No tiene permisos para borrar los contenidos"
 
-#: /home/lin/django-player/player/manage/templates/manage/base.html.py:48
+#: /home/lin/django-player/player/manage/templates/manage/base.html.py:49
 msgid "Admin site"
 msgstr "Sitio de administración"
 
-#: /home/lin/django-player/player/manage/templates/manage/base.html.py:49
+#: /home/lin/django-player/player/manage/templates/manage/base.html.py:50
 msgid "Logout"
 msgstr "Salir"
 
-#: /home/lin/django-player/player/manage/templates/manage/base.html.py:51
-msgid "This is a bug! An anonymous user shouldn't see this!"
-msgstr "¡Esto es un bug! ¡Un usuario anónimo no debería ver esto!"
-
 #: /home/lin/django-player/player/manage/templates/manage/base.html.py:61
 msgid "Collection groups"
 msgstr "Grupos de colección"
 msgid "Go to public site"
 msgstr "Ir a la vista pública"
 
-#: /home/lin/django-player/player/manage/templates/manage/base.html.py:102
+#: /home/lin/django-player/player/manage/templates/manage/base.html.py:103
 msgid "Presentation Layer system. Powered by Django."
 msgstr "Sistema Presentation Layer. Powered by Django."
 
 msgid "Error crawling reports"
 msgstr "Informes de extracción con errores"
 
-#: /home/lin/django-player/player/manage/templates/registration/logged_out.html.py:4
-#: /home/lin/django-player/player/skel/project/website/templates/website/nav_block.html.py:10
-msgid "Home"
-msgstr "Inicio"
-
-#: /home/lin/django-player/player/manage/templates/registration/logged_out.html.py:8
-msgid "Thanks for spending some quality time with the Web site today."
-msgstr ""
-
-#: /home/lin/django-player/player/manage/templates/registration/logged_out.html.py:10
-msgid "Log in again"
-msgstr ""
-
-#: /home/lin/django-player/player/manage/templates/registration/login.html.py:16
-msgid "Login"
-msgstr ""
-
 #: /home/lin/django-player/player/manage/templates/uitools/toolbar.html.py:9
 msgid "Presentation Layer toolbar"
 msgstr "Panel de Presentation Layer"
 msgid "Here you can browse the latest news"
 msgstr ""
 
+#: /home/lin/django-player/player/skel/project/templates/404.html.py:6
+msgid "Page not found"
+msgstr ""
+
 #: /home/lin/django-player/player/skel/project/templates/base.html.py:25
 msgid "Welcome to django-playerlayer demo"
 msgstr ""
 "framework"
 msgstr ""
 
+#: /home/lin/django-player/player/skel/project/website/templates/website/nav_block.html.py:10
+msgid "Home"
+msgstr "Inicio"
+
 #: /home/lin/django-player/player/skel/project/website/templates/website/nav_block.html.py:11
 msgid "News"
 msgstr ""
 #: /home/lin/django-player/player/templates/admin/base_site.html.py:11
 msgid "Frontend-layer administration"
 msgstr ""
+
+#: /home/lin/django-player/player/templates/registration/logged_out.html.py:9
+msgid "Thanks for spending some quality time with the Web site today."
+msgstr ""
+
+#: /home/lin/django-player/player/templates/registration/logged_out.html.py:11
+msgid "Log in again"
+msgstr ""
+
+#: /home/lin/django-player/player/templates/registration/login.html.py:16
+msgid "Login"
+msgstr ""
+
+#~ msgid "This is a bug! An anonymous user shouldn't see this!"
+#~ msgstr "¡Esto es un bug! ¡Un usuario anónimo no debería ver esto!"

File player/skel/project/static/css/style.less

View file
  • Ignore whitespace
     left: 0px;
     width: @content-left-position;
 
+    .block {
+        text-align: right;
+        margin-right: 1em;
+    }
+
     h1 {
         font-size: 1.5em;
     }
         font-family: @header-font-family;
         text-transform: uppercase;
         font-weight: bolder;
-        text-align: right;
-        margin-right: 1em;
         margin-bottom: 1em;
     }
 }
 .newsCategory {
     margin-bottom: 1em;
 }
+
+
+/* ----- shadow box ----- */
+
+div#shadowbox_content {
+    tr {
+         line-height: 2.5em;
+    }
+}