Anonymous avatar Anonymous committed a3d2b57

Removed unnecessary stringset.html template file.

Comments (0)

Files changed (1)

transifex/templates/resources/stringset.html

-{% extends "resource.html" %}
-{% load i18n %}
-
-{% block breadcrumb %}
-{{block.super}} » 
-<a href="{% url translation project.slug resource.slug target_language.code %}">{{ target_language.name }}</a>
-{% endblock %}
-
-
-{% block extra_head %}
-  <script type="text/javascript" src="{{ STATIC_URL }}js/json2.min.js"></script>
-  <script type="text/javascript" src="{{ STATIC_URL }}js/sprintf.js"></script>
-  <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.paginate.js"></script>
-  <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.qtip-1.0.0-rc2.min.js"></script>
-  <script type="text/javascript" src="{{ STATIC_URL }}js/tx.lotte.js"></script>
-  <link media="screen" href="{{ STATIC_URL }}lotte/css/webtrans.css" type="text/css" rel="stylesheet" />
-  <link media="screen" href="{{ STATIC_URL }}css/jquery.paginate.css" type="text/css" rel="stylesheet" />
-  <script type="text/javascript" src="http://www.google.com/jsapi"></script>
-  <script type="text/javascript">
-    google.load("language", "1");
-  </script>
-{% endblock %}
-
-{% block title %}
-{{ block.super }} | 
-{{resource}}
-{% endblock %}
-
-{% block body_class %}project_list{% endblock %}
-
-{% block content_title %}
-  <h2 class="pagetitle">
-    {% trans "Strings" %}
-  </h2>
-{% endblock %}
-
-{% block content %}
-
-<script type="text/javascript">
-
-    /* Global variables */
-    stringset = null;
-    is_supported_source_lang = null;
-    is_supported_lang = null;
-    var links = [];
-
-    $(document).ready(function(){
-        $("#save_all").click(function(){ stringset.push(); });
-        $("div#notification-container div").html("Loading strings...");
-        $("div#notification-container").fadeIn("slow");
-
-        pull_url = '{% url string_resource_push project.slug resource.slug %}?languages={{target_language.code}},{{request.LANGUAGE_CODE}}';
-
-        google.setOnLoadCallback(function() {
-
-            source_lang = '{{ resource.source_language.code }}';
-            target_lang = '{{ target_language.code }}';
-            /* Global variables */
-            is_supported_source_lang = google.language.isTranslatable(source_lang);
-            is_supported_lang = google.language.isTranslatable(target_lang);
-            // If the main language code is not supported, try to find one from the code aliases
-            if (!(is_supported_lang)){
-                // Get aliases
-                code_aliases = '{{ target_language.code_aliases }}';
-                if(code_aliases){
-                    // Drop spaces in the beginning/end of the string and split it
-                    list = code_aliases.replace(/^ /,'').replace(/ $/,'').split(' ');
-                    for (i=0; i<list.length; i++){
-                        is_supported_lang = google.language.isTranslatable(list[i]);
-                        if (is_supported_lang){
-                            target_lang = list[i];
-                            break;
-                        }
-                    }
-                }
-            }
-
-          $.ajax({
-            contentType : 'application/json', /* Workaround for django-piston */
-            url: pull_url,
-            global : false,
-            type : 'GET',
-            dataType: 'text', /* Workaround for django-piston */
-            data: '', /* Workaround for django-piston */
-            complete: function(xmlhttpreq, status) {
-
-                var push_url = '{% url string_resource_pullfrom project.slug target_language.code %}';
-                stringset = new StringSet(JSON.parse(xmlhttpreq.responseText), push_url, '{{request.LANGUAGE_CODE}}', '{{target_language.code}}');
-
-                /* Source and translated strings table */
-                stringset.bindToTable("trans_web_edit");
-                stringset.updateView(); /* Update shown strings */
-
-                /* Statistics and filtering by flag table */
-                stringset.bindStatsAndFilter("stats_table");
-                stringset.updateStats(); /* Update statistics */
-                stringset.bindSearchField("search_field");
-
-                stringset.bindPagination("trans_pagination");
-                stringset.updatePagination(); /* Highlight corrent page */
-
-                $("div#notification-container div").html(sprintf("Loaded %dkB", xmlhttpreq.responseText.length / 1024));
-                setTimeout('$("div#notification-container").fadeOut();',1000);
-
-            }
-          });
-
-        });
-
-    });
-
-</script>
-
-
-
-
-<div class="floatright" >
-    <fieldset>
-    <legend>{% trans "Settings" %}</legend>
-    <table class="definition">
-    <tr>
-        <th>{% trans "Verbose editing:" %}</th>
-        <td><input id="toggle_verbose" type="checkbox" /></td>
-    </tr>
-    </table>
-    </fieldset>
-
-   <input id="search_field" class="i16 find" type="text" value="{{ string }}" size="15"/>
-<!--   <input id="filter_string_apply" class="i16 filter" type="submit" value="{% trans 'Filter' %}"/>
-   <input id="filter_string_clear" class="i16 clear" type="submit" value="{% trans 'Clear' %}"/>-->
-   <input id="save_all" class="i16 save_all" type="submit"  value="{% trans 'Save all' %}"/>
-</div>
-
-
-
-  <table class="definition stats_totals" id="stats_table">
-  <input id="filter_entries" type="hidden" name="filter_entries"/>
-  <tr>
-    <th class="translated">Translated</th>
-
-      <td id="total_translated">?</td>
-      <td id="total_translated_perc">?</td>
-      <td><input id="only_translated" type="checkbox"  checked="checked"  name="only_translated"/></td>
-  </tr>
-  <tr>
-    <th class="fuzzy">Modified</th>
-      <td id="total_fuzzy">?</td>
-      <td id="total_fuzzy_perc">?</td>
-      <td><input id="only_fuzzy" type="checkbox" checked="checked" name="only_fuzzy"/></td>
-  </tr>
-  <tr>
-    <th class="untranslated">Untranslated</th>
-      <td id="total_untranslated">?</td>
-      <td id="total_untranslated_perc">?</td>
-
-      <td><input id="only_untranslated" type="checkbox" checked="checked" name="only_untranslated"/></td>
-  </tr>
-  <tr class="last">
-    <th>Total</th>
-      <td id="total_sum">?</td>
-  </tr>
-  </table>
-
-  <div class="generic_form" >
-  <table id="trans_web_edit" class="trans_web_edit stats_comp tablesorter" style="width:100%" >
-   <thead>
-    <tr>
-      <th>{% trans "#" %}</th>
-      <th>{% trans "Source String" %}</th>
-      <th>{% trans "Translation" %}</th>
-      <th class="suggest_container" style="padding-left: 20px;"><abbr title="{% trans "Auto-translate" %}">{% trans "AT" %}</abbr></th>
-      <th style="width:48px;">&nbsp;</th>
-    </tr>
-   </thead>
-   <tbody>
-
-  {% for row in rows %}
-  <tr>
-    <td class="num" id="id_{{row}}">{{row}}</td>
-    <td class="msg" style="width:45%; text-align:left;" id="source_{{row}}">{{ field.label }}</td>
-    <td class="trans" style="width:45%" >
-      <textarea id="translation_{{row}}" class="translation" style="width:100%; height: 100%;"></textarea>
-       <script type="text/javascript">
-        links[{{ row }}] = "<span id=\"tooltip_{{row}}\" class=\"tooltip\" style=\"border-radius:0 0 4px 4px; -moz-border-radius:0 0 4px 4px;border-top:1px solid #ccc;background-color:#EEE;padding:6px;margin:0;\">"
-            +"<a class=\"tipsy_enable copy_source\" style=\"vertical-align:middle;border:0px;padding:3px 4px 0 4px;cursor:pointer\" title=\"{% trans "Copy source string" %}\">"
-            +"<img style=\"border:0px\" src=\"{{ STATIC_URL }}images/icons/previous.png\" >"
-            +"</a>"
-            +"<script type=\"text/javascript\">"
-            +"\$(\"span#tooltip_{{row}} .tipsy_enable\").tipsy({\'html\':true, \'gravity\':\'s\'});"
-            +"\$(\"span#tooltip_{{row}} .copy_source\").click(function(){"
-            +"    tr = $('textarea#translation_{{row}}').parents('tr');"
-            +"    source_string=$('.msg', tr).text();"
-            +"    var trans = $('.translation', tr);"
-            +"    trans.val(source_string);"
-            +"    string = stringset.bindings[{{row}}];"
-            +"    string.translate(trans.val());"
-            +"    if (string.modified) {"
-            +"             trans.removeClass(\"fuzzy translated untranslated\").addClass(\"fuzzy\");"
-            +"             $('tbody tr td.notes span#save_{{row}}').show();"
-            +"    }"
-            +"    return false;"
-            +"});"
-            +"<\/script>"
-            +"<\/span>";
-        </script>
-    </td>
-    <td class="notes suggest_container" style="vertical-align:middle;padding-left: 20px;">
-      <a class="i16 action nodecoration_icon suggest" href="#" title="{% trans "Auto-suggest translation" %}"></a>
-    </td>
-     <td class="notes" style="vertical-align:middle;padding-left: 20px;">
-       <span class="i16 save buttonized_simple" id="save_{{row}}" style="display:none;"></span>
-     </td>
-  </tr>
-  {% endfor %}
-
-
-
-   </tbody>
-  </table>
-  </div>
-
-  <div id="trans_pagination"><div class="i16 waiting">Loading...</div></div>
-
-{% endblock %}
-
-{% block content_footer %}
-{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.