diff options
author | Sebastian Silva (icarito) <sebastian@sugarlabs.org> | 2012-12-13 17:37:09 (GMT) |
---|---|---|
committer | Sebastian Silva (icarito) <sebastian@sugarlabs.org> | 2012-12-13 17:37:09 (GMT) |
commit | 6e5b5dfb8c98f241e38f62768887d25eef179a45 (patch) | |
tree | ae8503337572157b986b7941f3414f1e23a56076 | |
parent | 304bf33dfb312583922117594f53d5a3f0d2fae0 (diff) |
disable offline comments and fix missing string
-rw-r--r-- | messages.pot | 17 | ||||
-rw-r--r-- | sugar_network_webui/dialogs.py | 6 | ||||
-rw-r--r-- | sugar_network_webui/templates/_context-comment-list.html | 6 | ||||
-rw-r--r-- | sugar_network_webui/translations/es/LC_MESSAGES/messages.mo | bin | 9407 -> 9643 bytes | |||
-rw-r--r-- | sugar_network_webui/translations/es/LC_MESSAGES/messages.po | 29 |
5 files changed, 41 insertions, 17 deletions
diff --git a/messages.pot b/messages.pot index 4b024a1..079ac26 100644 --- a/messages.pot +++ b/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2012-12-12 22:59-0500\n" +"POT-Creation-Date: 2012-12-13 12:29-0500\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" @@ -118,6 +118,16 @@ msgstr "" msgid "browsing %(total)s %(label)s" msgstr "" +#: sugar_network_webui/dialogs.py:88 +msgid "Success" +msgstr "" + +#: sugar_network_webui/dialogs.py:89 +msgid "" +"\n" +"You've uploaded all resources shared in offline mode." +msgstr "" + #: sugar_network_webui/dialogs.py:95 msgid "Synchronization in progress..." msgstr "" @@ -236,12 +246,17 @@ msgid "delete" msgstr "" #: sugar_network_webui/templates/_context-comment-list.html:29 +#: sugar_network_webui/templates/_context-comment-list.html:32 #: sugar_network_webui/templates/_context-review-list.html:53 #: sugar_network_webui/templates/_context-solution-list.html:40 #: sugar_network_webui/templates/_context-solution-list.html:83 msgid "comment" msgstr "" +#: sugar_network_webui/templates/_context-comment-list.html:32 +msgid "can't comment in offline mode yet" +msgstr "" + #: sugar_network_webui/templates/_context-comment-list.html:36 msgid "collapse" msgstr "" diff --git a/sugar_network_webui/dialogs.py b/sugar_network_webui/dialogs.py index ee4a3a8..2739e83 100644 --- a/sugar_network_webui/dialogs.py +++ b/sugar_network_webui/dialogs.py @@ -85,9 +85,9 @@ class SyncView(FlaskView): # flask.g.home_mount.client.Comment.delete(local_comment['guid']) return flask.render_template('dialog.html', - title='Success', - body=''' -You've uploaded all resources shared in offline mode.''') + title=_('Success'), + body=_(''' +You've uploaded all resources shared in offline mode.''')) def all(self): return flask.render_template('please_wait.html', diff --git a/sugar_network_webui/templates/_context-comment-list.html b/sugar_network_webui/templates/_context-comment-list.html index 94fdc98..36175ce 100644 --- a/sugar_network_webui/templates/_context-comment-list.html +++ b/sugar_network_webui/templates/_context-comment-list.html @@ -24,13 +24,13 @@ <form id="comment_form_{{resource_guid}}" class="comment-form" data-document="{{document}}" data-guid="{{resource_guid}}" method="POST" action="/submit_comment"> <input type="hidden" name="resource_guid" value="{{resource_guid}}" /> <input type="hidden" name="resource_type" value="solution" /> - {#%- if (session['connected'] or False) -%#} + {%- if (session['connected'] or False) -%} <textarea id="textarea-comment" name="comment"></textarea> <input id="comment_button_{{resource_guid}}" class="comment-button sugar-button" data-guid="{{resource_guid}}" type="submit" value="{{_('comment')}}" /> - {#%- else -%} + {%- else -%} <textarea id="textarea-comment" name="comment" disabled></textarea> <input id="comment_button_{{resource_guid}}" class="comment-button sugar-button has_tooltip" title="{{_('comment')}}" data-guid="{{resource_guid}}" type="submit" value="{{_('can\'t comment in offline mode yet')}}" disabled /> - {%- endif -%#} + {%- endif -%} </form> <span class="collapse-button has_tooltip" title="{{_('collapse')}}" diff --git a/sugar_network_webui/translations/es/LC_MESSAGES/messages.mo b/sugar_network_webui/translations/es/LC_MESSAGES/messages.mo Binary files differindex 0bf9a8e..a3a71a5 100644 --- a/sugar_network_webui/translations/es/LC_MESSAGES/messages.mo +++ b/sugar_network_webui/translations/es/LC_MESSAGES/messages.mo diff --git a/sugar_network_webui/translations/es/LC_MESSAGES/messages.po b/sugar_network_webui/translations/es/LC_MESSAGES/messages.po index 7ad99e4..3d31343 100644 --- a/sugar_network_webui/translations/es/LC_MESSAGES/messages.po +++ b/sugar_network_webui/translations/es/LC_MESSAGES/messages.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2012-12-12 22:59-0500\n" -"PO-Revision-Date: 2012-12-12 23:05-0500\n" +"POT-Creation-Date: 2012-12-13 12:29-0500\n" +"PO-Revision-Date: 2012-12-13 12:34-0500\n" "Last-Translator: Sebastian Silva <sebastian@somosazucar.org>\n" "Language-Team: es <LL@li.org>\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" @@ -130,6 +130,18 @@ msgstr "contextos" msgid "browsing %(total)s %(label)s" msgstr "navegando por %(total)s %(label)s" +#: sugar_network_webui/dialogs.py:88 +msgid "Success" +msgstr "Éxito" + +#: sugar_network_webui/dialogs.py:89 +msgid "" +"\n" +"You've uploaded all resources shared in offline mode." +msgstr "" +"\n" +"Has sincronizado todos los recursos pendientes." + #: sugar_network_webui/dialogs.py:95 msgid "Synchronization in progress..." msgstr "Sincronizando..." @@ -246,12 +258,17 @@ msgid "delete" msgstr "borrar" #: sugar_network_webui/templates/_context-comment-list.html:29 +#: sugar_network_webui/templates/_context-comment-list.html:32 #: sugar_network_webui/templates/_context-review-list.html:53 #: sugar_network_webui/templates/_context-solution-list.html:40 #: sugar_network_webui/templates/_context-solution-list.html:83 msgid "comment" msgstr "comentar" +#: sugar_network_webui/templates/_context-comment-list.html:32 +msgid "can't comment in offline mode yet" +msgstr "no se puede comentar sin conexión" + #: sugar_network_webui/templates/_context-comment-list.html:36 msgid "collapse" msgstr "colapsar" @@ -637,11 +654,3 @@ msgstr "Versión Alfa" msgid "For the time being you need to be connected to the Internet in order to contribute!" msgstr "¡Por ahora es necesario tener conexión para aportar!" -#~ msgid "can't comment in offline mode yet" -#~ msgstr "aún no se puede comentar sin conexión" - -#~ msgid "About" -#~ msgstr "Acerca de" - -#~ msgid "Offline mode" -#~ msgstr "modo \"offline\"" |