mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-05-15 00:23:09 +00:00
Move context and comments hints into the rightmost column. Fixes #260
This commit is contained in:
parent
e095402daa
commit
e2e2a7f05a
5 changed files with 28 additions and 21 deletions
1
CHANGES
1
CHANGES
|
|
@ -8,6 +8,7 @@ Version 0.9.7 (unreleased)
|
|||
* Translations via the DeepL API (#258, thanks @halitcelik)
|
||||
* Fixed unicode handling in gettext headers (#259, thanks @NotSqrt)
|
||||
* Remove six as a dependency
|
||||
* Move context and comment hints into the right-most column (#260 thanks @jieter)
|
||||
|
||||
|
||||
Version 0.9.6
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ td.translation label {font-size: 95%;}
|
|||
td.translation textarea, td.original { font-size:110%;}
|
||||
td.translation,td.original {width:30%;}
|
||||
td.original .plural-container { position:relative}
|
||||
td.original .context,td.original .message {display:block;}
|
||||
td.original .context { margin-top: 2em; color: #bbb; font-size:90%; }
|
||||
td .context,td.original .message {display:block;}
|
||||
td .context { margin-top: 1rem; color: #999; }
|
||||
td.translation textarea{ width:98.5%; min-height:25px; margin:2px 0; }
|
||||
.rtl td.translation textarea { direction: rtl;}
|
||||
.plural span {display:block; margin:2px 0; position:absolute}
|
||||
|
|
|
|||
|
|
@ -88,15 +88,6 @@
|
|||
<span class="part">{{message.msgid|format_message|linebreaksbr}}</span>
|
||||
<span class="part">{{message.msgid_plural|format_message|linebreaksbr}}</span>
|
||||
</div>
|
||||
|
||||
{% if message.msgctxt %}
|
||||
<span class="context">{% trans "Context hint" %}: {{message.msgctxt|safe}}</span>
|
||||
{% else %}
|
||||
{% if message.comment %}
|
||||
<span class="context">{% trans "Context hint" %}: {{message.comment|safe}}</span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
</td>
|
||||
<td class="translation">
|
||||
{% for k, msgstr in message.msgstr_plural.items %}
|
||||
|
|
@ -111,13 +102,6 @@
|
|||
{% else %}
|
||||
<span class="message">{{ message.msgid|format_message|linebreaksbr }}</span>
|
||||
{% endif %}
|
||||
{% if message.msgctxt %}
|
||||
<span class="context">{% trans "Context hint" %}: "{{message.msgctxt|safe}}"</span>
|
||||
{% else %}
|
||||
{% if message.comment %}
|
||||
<span class="context">{% trans "Context hint" %}: {{message.comment|safe}}</span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</td>
|
||||
{% if main_language %}<td class="original">{{ message.main_lang|format_message|linebreaksbr }}</td>{% endif %}
|
||||
<td class="translation">
|
||||
|
|
@ -128,13 +112,26 @@
|
|||
<td class="c">
|
||||
<input type="checkbox" name="f_{{message.md5hash}}" value="1" {% if message|is_fuzzy %}checked="checked"{% endif %} />
|
||||
</td>
|
||||
{% if rosetta_settings.SHOW_OCCURRENCES %}<td class="location">
|
||||
{% if rosetta_settings.SHOW_OCCURRENCES %}
|
||||
<td class="location">
|
||||
{% for fn,lineno in message.occurrences %}
|
||||
<code{% if forloop.counter|gt:"3" %} class="hide"{% endif %}>{{ fn }}{% if lineno %}:{{lineno}}{% endif %}</code>
|
||||
{% endfor %}
|
||||
{% if message.occurrences|length|gt:"3" %}
|
||||
<a href="#">… ({% blocktrans count message.occurrences|length|minus:"3" as more_count %}{{more_count}} more{% plural %}{{more_count}} more{% endblocktrans %})</a>
|
||||
{% endif %}
|
||||
{% if message.msgctxt or message.comment %}
|
||||
<span class="context">
|
||||
{% trans "Context hint" %}:
|
||||
{% if message.msgctxt %}
|
||||
{{message.msgctxt|safe}}
|
||||
{% endif %}
|
||||
{% if message.msgctxt and message.comment %}<br/>{% endif %}
|
||||
{% if message.comment %}
|
||||
{{message.comment|safe}}
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endif %}
|
||||
</td>{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -9,8 +9,8 @@ msgstr ""
|
|||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-09-14 02:28-0500\n"
|
||||
"PO-Revision-Date: 2021-05-28 09:19-0551\n"
|
||||
"Last-Translator: b' <halit@cruncher.ch>'\n"
|
||||
"PO-Revision-Date: 2021-07-20 12:56-0551\n"
|
||||
"Last-Translator: La présentation różnych sposobów. Nie <admin@admin.com>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
|
@ -21,6 +21,7 @@ msgstr ""
|
|||
|
||||
#: templates/test.html:3
|
||||
#, fuzzy
|
||||
#. I am a comment
|
||||
msgid "Some text to translate"
|
||||
msgstr "Crunchum ipsum dolor sit coder void, constructor function"
|
||||
|
||||
|
|
@ -38,3 +39,11 @@ msgstr[1] ""
|
|||
#: templates/test.html:3
|
||||
msgid "We need %(num_bottles)s bottles!"
|
||||
msgstr ""
|
||||
|
||||
#: templates/issue-260.html:260
|
||||
#. I am a comment, too
|
||||
msgctxt "BADGE_PROGRESS_OBSERVATIONS yadda yadda this and that"
|
||||
msgid "1 observation"
|
||||
msgid_plural "%{count} observations"
|
||||
msgstr[0] "1 waarneming"
|
||||
msgstr[1] "%{count} waarnemingen"
|
||||
|
|
|
|||
Loading…
Reference in a new issue