Changeset - 0070513bfa6a
[Not reviewed]
stable
0 6 0
Mads Kiilerich (mads) - 3 years ago 2022-12-12 21:02:30
mads@kiilerich.com
Grafted from: f540740259f0
summary: simplify README hover text

Avoid showing 'rev:tip' and avoid formatting in translated strings.
6 files changed with 1 insertions and 16 deletions:
0 comments (0 inline, 0 general)
kallithea/i18n/de/LC_MESSAGES/kallithea.po
Show inline comments
 
@@ -2385,101 +2385,98 @@ msgstr "Reviewer entfernen"
 
msgid "Potential Reviewers"
 
msgstr "Potentielle Reviewer"
 

	
 
msgid "Pull Request Content"
 
msgstr "Inhalt des Pull Requests"
 

	
 
msgid "Pull Requests to '%s'"
 
msgstr "Pull Requests für '%s'"
 

	
 
msgid "Open New Pull Request"
 
msgstr "Einen neuen Pull Request eröffnen"
 

	
 
msgid "Show Pull Requests to %s"
 
msgstr "Zeige Pull Requests für '%s'"
 

	
 
msgid "Show Pull Requests from '%s'"
 
msgstr "Zeige Pull Requests von '%s'"
 

	
 
msgid "Pull Requests Created by Me"
 
msgstr "Von mir erstellte Pull Requests"
 

	
 
msgid "Search in All Repositories"
 
msgstr "Suche in allen Repositories"
 

	
 
msgid "Search term"
 
msgstr "Suchbegriff"
 

	
 
msgid "Search in"
 
msgstr "Suchen in"
 

	
 
msgid "File contents"
 
msgstr "Dateiinhalt"
 

	
 
msgid "Commit messages"
 
msgstr "Commit Nachrichten"
 

	
 
msgid "File names"
 
msgstr "Dateinamen"
 

	
 
msgid "Permission denied"
 
msgstr "Zugriff verweigert"
 

	
 
msgid "Enable"
 
msgstr "Aktiviere"
 

	
 
msgid "files"
 
msgstr "Dateien"
 

	
 
msgid "Show more"
 
msgstr "Mehr anzeigen"
 

	
 
msgid "commits"
 
msgstr "Commits"
 

	
 
msgid "files added"
 
msgstr "Dateien hinzugefügt"
 

	
 
msgid "files changed"
 
msgstr "Dateien geändert"
 

	
 
msgid "files removed"
 
msgstr "Dateien entfernt"
 

	
 
msgid "commit"
 
msgstr "Commit"
 

	
 
msgid "file added"
 
msgstr "Datei hinzugefügt"
 

	
 
msgid "file changed"
 
msgstr "Datei geändert"
 

	
 
msgid "file removed"
 
msgstr "Datei entfernt"
 

	
 
msgid "Clone from"
 
msgstr "Clone von"
 

	
 
msgid "Clone URL"
 
msgstr "Clone-URL"
 

	
 
msgid "Download as zip"
 
msgstr "Herunterladen als zip"
 

	
 
msgid "Feed"
 
msgstr "Feed"
 

	
 
msgid "Latest Changes"
 
msgstr "Letzte Änderungen"
 

	
 
msgid "Quick Start"
 
msgstr "Schnelleinstieg"
 

	
 
msgid "Add or upload files directly via Kallithea"
 
msgstr "Dateien direkt über Kallithea hinzufügen oder hochladen"
 

	
 
msgid "Readme file from revision %s:%s"
 
msgstr "Liesmich-Datei von Revision %s:%s"
 

	
 
msgid "Download %s as %s"
 
msgstr "%s als %s herunterladen"
kallithea/i18n/el/LC_MESSAGES/kallithea.po
Show inline comments
 
@@ -3617,101 +3617,98 @@ msgstr "Ενεργοποίηση"
 
msgid "Stats gathered: "
 
msgstr "Στατιστικά που συγκεντρώθηκαν: "
 

	
 
msgid "files"
 
msgstr "αρχεία"
 

	
 
msgid "Show more"
 
msgstr "Εμφάνιση περισσότερων"
 

	
 
msgid "commits"
 
msgstr "commits"
 

	
 
msgid "files added"
 
msgstr "αρχεία που προστέθηκαν"
 

	
 
msgid "files changed"
 
msgstr "αρχεία που άλλαξαν"
 

	
 
msgid "files removed"
 
msgstr "αρχεία που αφαιρέθηκαν"
 

	
 
msgid "commit"
 
msgstr "commit"
 

	
 
msgid "file added"
 
msgstr "αρχείο προστέθηκε"
 

	
 
msgid "file changed"
 
msgstr "αρχείο άλλαξε"
 

	
 
msgid "file removed"
 
msgstr "αρχείο αφαιρέθηκε"
 

	
 
msgid "%s Summary"
 
msgstr "%s Σύνοψη"
 

	
 
msgid "Fork of"
 
msgstr "Κλώνος του"
 

	
 
msgid "Clone from"
 
msgstr "Κλώνος από"
 

	
 
msgid "Clone URL"
 
msgstr "Clone URL"
 

	
 
msgid "Use ID"
 
msgstr "Χρήση ID"
 

	
 
msgid "Use SSH"
 
msgstr "Χρήση SSH"
 

	
 
msgid "Use Name"
 
msgstr "Χρήση Ονόματος"
 

	
 
msgid "Use HTTP"
 
msgstr "Χρήση HTTP"
 

	
 
msgid "Trending files"
 
msgstr "Δημοφιλή αρχεία"
 

	
 
msgid "Download"
 
msgstr "Λήψη"
 

	
 
msgid "There are no downloads yet"
 
msgstr "Δεν υπάρχουν λήψεις ακόμα"
 

	
 
msgid "Downloads are disabled for this repository"
 
msgstr "Οι λήψεις είναι απενεργοποιημένες για αυτό το αποθετήριο"
 

	
 
msgid "Download as zip"
 
msgstr "Λήψη ως zip"
 

	
 
msgid "Check this to download archive with subrepos"
 
msgstr "Επιλέξτε αυτό για τη λήψη του αρχείου με τα υπο-αποθετήρια"
 

	
 
msgid "With subrepos"
 
msgstr "Με υπο-αποθετήρια"
 

	
 
msgid "Feed"
 
msgstr "Ροή"
 

	
 
msgid "Latest Changes"
 
msgstr "Τελευταίες Αλλαγές"
 

	
 
msgid "Quick Start"
 
msgstr "Γρήγορη Εκκίνηση"
 

	
 
msgid "Add or upload files directly via Kallithea"
 
msgstr "Προσθέστε ή ανεβάστε αρχεία απευθείας μέσω Καλλιθέας"
 

	
 
msgid "Push new repository"
 
msgstr "Ώθηση νέου αποθετηρίου"
 

	
 
msgid "Existing repository?"
 
msgstr "Υπάρχον αποθετήριο;"
 

	
 
msgid "Readme file from revision %s:%s"
 
msgstr "Αρχείο Readme από την αναθεώρηση %s:%s"
 

	
 
msgid "Download %s as %s"
 
msgstr "Λήψη %s ως %s"
kallithea/i18n/fr/LC_MESSAGES/kallithea.po
Show inline comments
 
@@ -3652,101 +3652,98 @@ msgid "Stats gathered: "
 
msgstr "Statistiques obtenues : "
 

	
 
msgid "files"
 
msgstr "Fichiers"
 

	
 
msgid "Show more"
 
msgstr "Afficher plus"
 

	
 
msgid "commits"
 
msgstr "commits"
 

	
 
msgid "files added"
 
msgstr "fichiers ajoutés"
 

	
 
msgid "files changed"
 
msgstr "fichiers modifiés"
 

	
 
msgid "files removed"
 
msgstr "fichiers supprimés"
 

	
 
msgid "commit"
 
msgstr "commit"
 

	
 
msgid "file added"
 
msgstr "fichier ajouté"
 

	
 
msgid "file changed"
 
msgstr "fichié modifié"
 

	
 
msgid "file removed"
 
msgstr "fichier supprimé"
 

	
 
msgid "%s Summary"
 
msgstr "Résumé de %s"
 

	
 
msgid "Fork of"
 
msgstr "Fork de"
 

	
 
msgid "Clone from"
 
msgstr "Cloner depuis"
 

	
 
msgid "Clone URL"
 
msgstr "URL de clone"
 

	
 
msgid "Use ID"
 
msgstr "Utiliser l'ID"
 

	
 
msgid "Use SSH"
 
msgstr "Utiliser SSH"
 

	
 
msgid "Use Name"
 
msgstr "Utiliser le nom"
 

	
 
msgid "Use HTTP"
 
msgstr "Utiliser HTTP"
 

	
 
msgid "Trending files"
 
msgstr "Populaires"
 

	
 
msgid "Download"
 
msgstr "Télécharger"
 

	
 
msgid "There are no downloads yet"
 
msgstr "Il n’y a pas encore de téléchargements proposés"
 

	
 
msgid "Downloads are disabled for this repository"
 
msgstr "Les téléchargements sont désactivés pour ce dépôt"
 

	
 
msgid "Download as zip"
 
msgstr "Télécharger en ZIP"
 

	
 
msgid "Check this to download archive with subrepos"
 
msgstr ""
 
"Télécharger une archive contenant également les sous-dépôts éventuels"
 

	
 
msgid "With subrepos"
 
msgstr "Avec les sous-dépôts"
 

	
 
msgid "Feed"
 
msgstr "Flux"
 

	
 
msgid "Latest Changes"
 
msgstr "Derniers changements"
 

	
 
msgid "Quick Start"
 
msgstr "Démarrage rapide"
 

	
 
msgid "Add or upload files directly via Kallithea"
 
msgstr "Ajouter ou téléverser des fichiers directement via Kallithea"
 

	
 
msgid "Push new repository"
 
msgstr "Pusher le nouveau dépôt"
 

	
 
msgid "Existing repository?"
 
msgstr "Le dépôt existe déjà ?"
 

	
 
msgid "Readme file from revision %s:%s"
 
msgstr "Fichier Lisez-moi de la revision %s:%s"
 

	
 
msgid "Download %s as %s"
 
msgstr "Télécharge %s comme %s"
kallithea/i18n/ja/LC_MESSAGES/kallithea.po
Show inline comments
 
@@ -2645,101 +2645,98 @@ msgstr "権限がありません"
 
msgid "%s Statistics"
 
msgstr "%s 統計情報"
 

	
 
msgid "%s ATOM feed"
 
msgstr "%s ATOM フィード"
 

	
 
msgid "%s RSS feed"
 
msgstr "%s RSS フィード"
 

	
 
msgid "Enable"
 
msgstr "有効にする"
 

	
 
msgid "Stats gathered: "
 
msgstr "収集した統計情報: "
 

	
 
msgid "files"
 
msgstr "ファイル"
 

	
 
msgid "Show more"
 
msgstr "もっと表示"
 

	
 
msgid "commits"
 
msgstr "コミット"
 

	
 
msgid "files added"
 
msgstr "追加されたファイル"
 

	
 
msgid "files changed"
 
msgstr "変更されたファイル"
 

	
 
msgid "files removed"
 
msgstr "削除されたファイル"
 

	
 
msgid "commit"
 
msgstr "コミット"
 

	
 
msgid "file added"
 
msgstr "追加されたファイル"
 

	
 
msgid "file changed"
 
msgstr "変更されたファイル"
 

	
 
msgid "file removed"
 
msgstr "削除されたファイル"
 

	
 
msgid "%s Summary"
 
msgstr "%s 要約"
 

	
 
msgid "Fork of"
 
msgstr "フォーク元"
 

	
 
msgid "Clone from"
 
msgstr "クローン元"
 

	
 
msgid "Clone URL"
 
msgstr "クローンURL"
 

	
 
msgid "Trending files"
 
msgstr "トレンドファイル"
 

	
 
msgid "Download"
 
msgstr "ダウンロード"
 

	
 
msgid "There are no downloads yet"
 
msgstr "まだダウンロードがありません"
 

	
 
msgid "Downloads are disabled for this repository"
 
msgstr "このリポジトリのダウンロードは無効化されています"
 

	
 
msgid "Download as zip"
 
msgstr "ZIPでダウンロード"
 

	
 
msgid "Check this to download archive with subrepos"
 
msgstr "チェックするとダウンロードアーカイブにサブリポジトリが含まれます"
 

	
 
msgid "With subrepos"
 
msgstr "サブリポジトリを含める"
 

	
 
msgid "Feed"
 
msgstr "フィード"
 

	
 
msgid "Latest Changes"
 
msgstr "最近の変更"
 

	
 
msgid "Quick Start"
 
msgstr "クイックスタート"
 

	
 
msgid "Add or upload files directly via Kallithea"
 
msgstr "Kallithea経由で直接ファイルを追加またはアップロード"
 

	
 
msgid "Push new repository"
 
msgstr "新しいリポジトリをプッシュ"
 

	
 
msgid "Existing repository?"
 
msgstr "存在するリポジトリをプッシュ"
 

	
 
msgid "Readme file from revision %s:%s"
 
msgstr "リビジョン %s:%s の README ファイル"
 

	
 
msgid "Download %s as %s"
 
msgstr "%s を %s でダウンロード"
kallithea/i18n/ru/LC_MESSAGES/kallithea.po
Show inline comments
 
@@ -3492,101 +3492,98 @@ msgstr "Включено"
 
msgid "Stats gathered: "
 
msgstr "Полученная статистика: "
 

	
 
msgid "files"
 
msgstr "файлы"
 

	
 
msgid "Show more"
 
msgstr "Показать еще"
 

	
 
msgid "commits"
 
msgstr "коммиты"
 

	
 
msgid "files added"
 
msgstr "файлы добавлены"
 

	
 
msgid "files changed"
 
msgstr "файлы изменены"
 

	
 
msgid "files removed"
 
msgstr "файлы удалены"
 

	
 
msgid "commit"
 
msgstr "коммит"
 

	
 
msgid "file added"
 
msgstr "файл удалён"
 

	
 
msgid "file changed"
 
msgstr "файл изменён"
 

	
 
msgid "file removed"
 
msgstr "файл удалён"
 

	
 
msgid "%s Summary"
 
msgstr "%s общие сведения"
 

	
 
msgid "Fork of"
 
msgstr "Форк репозитория"
 

	
 
msgid "Clone from"
 
msgstr "Клонировать из"
 

	
 
msgid "Clone URL"
 
msgstr "Ссылка для клонирования"
 

	
 
msgid "Use ID"
 
msgstr "Использовать ID"
 

	
 
msgid "Use SSH"
 
msgstr "Использовать SSH"
 

	
 
msgid "Use Name"
 
msgstr "Использовать имя"
 

	
 
msgid "Use HTTP"
 
msgstr "Использовать HTTP"
 

	
 
msgid "Trending files"
 
msgstr "Популярные файлы"
 

	
 
msgid "Download"
 
msgstr "Скачать"
 

	
 
msgid "There are no downloads yet"
 
msgstr "Скачиваний ещё нет"
 

	
 
msgid "Downloads are disabled for this repository"
 
msgstr "Скачивание отключено в этом репозитории"
 

	
 
msgid "Download as zip"
 
msgstr "Скачать в zip"
 

	
 
msgid "Check this to download archive with subrepos"
 
msgstr "Отметьте для скачивания архива с дочерними репозиториями"
 

	
 
msgid "With subrepos"
 
msgstr "С дочерними репозиториями"
 

	
 
msgid "Feed"
 
msgstr "Лента новостей"
 

	
 
msgid "Latest Changes"
 
msgstr "Последние изменения"
 

	
 
msgid "Quick Start"
 
msgstr "Быстрый старт"
 

	
 
msgid "Add or upload files directly via Kallithea"
 
msgstr "Добавить или загрузить файлы через Kallithea"
 

	
 
msgid "Push new repository"
 
msgstr "Отправить новый репозиторий"
 

	
 
msgid "Existing repository?"
 
msgstr "Существующий репозиторий?"
 

	
 
msgid "Readme file from revision %s:%s"
 
msgstr "Файл readme из ревизии %s:%s"
 

	
 
msgid "Download %s as %s"
 
msgstr "Скачать %s как %s"
kallithea/templates/summary/summary.html
Show inline comments
 
@@ -131,193 +131,193 @@ ${self.repo_context_bar('summary')}
 
                ${h.gravatar_div(c.db_repo.owner.email, size=18, div_class="pull-right")}
 
              </a>
 
            </li>
 
            <li class="list-group-item">
 
              <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}">
 
                <i class="icon-heart"></i>${_('Followers')}
 
                <span class="badge pull-right" id="current_followers_count">${c.repository_followers}</span>
 
              </a>
 
            </li>
 
            <li class="list-group-item">
 
              <a title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}">
 
                <i class="icon-fork"></i>${_('Forks')}
 
                <span class="badge pull-right">${c.repository_forks}</span>
 
              </a>
 
            </li>
 

	
 
            %if request.authuser.username != 'default':
 
            <li class="list-group-item clearfix">
 
              <a href="#" onclick="javascript:showRepoSize('repo_size_2','${c.db_repo.repo_name}')">
 
                <i class="icon-ruler"></i>${_('Size')}
 
                <span class="badge pull-right" id="repo_size_2"></span>
 
              </a>
 
            </li>
 
            %endif
 

	
 
            <li class="list-group-item">
 
            %if request.authuser.username != 'default':
 
              <a href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name,api_key=request.authuser.api_key)}"><i class="icon-rss-squared"></i>${_('Feed')}</a>
 
            %else:
 
              <a href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name)}"><i class="icon-rss-squared"></i>${_('Feed')}</a>
 
            %endif
 
            </li>
 

	
 
            %if c.show_stats:
 
            <li class="list-group-item">
 
              <a title="${_('Statistics')}" href="${h.url('repo_stats_home',repo_name=c.repo_name)}">
 
                <i class="icon-graph"></i>${_('Statistics')}
 
              </a>
 
            </li>
 
            %endif
 
        </ul>
 
    </div>
 
</div>
 

	
 

	
 
<div class="panel panel-primary">
 
    <div class="panel-heading">
 
        <div class="panel-title">
 
        %if c.cs_pagination:
 
            ${h.link_to(_('Latest Changes'),h.url('changelog_home',repo_name=c.repo_name))}
 
        %else:
 
            ${_('Quick Start')}
 
        %endif
 
        </div>
 
    </div>
 
    <div class="panel-body">
 
        <div id="shortlog_data">
 
            %if c.cs_pagination:
 
                ${changelog_table.changelog(c.repo_name, c.cs_pagination, c.cs_statuses, c.cs_comments, show_checkbox=False)}
 
                ${c.cs_pagination.pager()}
 
            %else:
 
                %if h.HasRepoPermissionLevel('write')(c.repo_name):
 
                <h4>${_('Add or upload files directly via Kallithea')}</h4>
 
                <div>
 
                  <div id="add_node_id" class="add_node">
 
                      <a class="btn btn-default btn-xs" href="${h.url('files_add_home',repo_name=c.repo_name,revision=0,f_path='', anchor='edit')}">${_('Add New File')}</a>
 
                  </div>
 
                </div>
 
                %endif
 

	
 
                <h4>${_('Push new repository')}</h4>
 
                <pre>
 
${c.db_repo_scm_instance.alias} clone ${c.clone_repo_url}
 
${c.db_repo_scm_instance.alias} add README # add first file
 
${c.db_repo_scm_instance.alias} commit -m "Initial" # commit with message
 
${c.db_repo_scm_instance.alias} push ${'origin master' if c.db_repo_scm_instance.alias == 'git' else ''} # push changes back
 
                </pre>
 

	
 
                <h4>${_('Existing repository?')}</h4>
 
                <pre>
 
                %if c.db_repo_scm_instance.alias == 'git':
 
git remote add origin ${c.clone_repo_url}
 
git push -u origin master
 
                %else:
 
hg push ${c.clone_repo_url}
 
                %endif
 
                </pre>
 
            %endif
 
        </div>
 
    </div>
 
</div>
 

	
 
%if c.readme_data:
 
<div id="readme" class="anchor">
 
</div>
 
<div class="panel panel-primary">
 
    <div class="panel-heading" title="${_('Readme file from revision %s:%s') % (c.db_repo.landing_rev[0], c.db_repo.landing_rev[1])}">
 
    <div class="panel-heading" title="${_('Readme file from %s') % (c.db_repo.landing_rev[1])}">
 
        <div class="panel-title">
 
            <a href="${h.url('files_home',repo_name=c.repo_name,revision='tip',f_path=c.readme_file)}">${c.readme_file}</a>
 
        </div>
 
    </div>
 
    <div class="readme panel-body">
 
        ${c.readme_data|n}
 
    </div>
 
</div>
 
%endif
 

	
 
<script>
 
'use strict';
 
$(document).ready(function(){
 
    $('#clone-url input').click(function(){
 
        if($(this).hasClass('selected')){
 
            $(this).removeClass('selected');
 
            return ;
 
        }else{
 
            $(this).addClass('selected');
 
            $(this).select();
 
        }
 
    });
 

	
 
    var $clone_url = $('#clone-url');
 
    var $clone_by_name = $('#clone_by_name');
 
    var $clone_by_id = $('#clone_by_id');
 
    var $clone_ssh = $('#clone_ssh');
 
    $clone_url.on('click', '.btn.use-name', function(){
 
        $clone_by_name.show();
 
        $clone_by_id.hide();
 
        $clone_ssh.hide();
 
    });
 
    $clone_url.on('click', '.btn.use-id', function(){
 
        $clone_by_id.show();
 
        $clone_by_name.hide();
 
        $clone_ssh.hide();
 
    });
 
    $clone_url.on('click', '.btn.use-ssh', function(){
 
        $clone_by_id.hide();
 
        $clone_by_name.hide();
 
        $clone_ssh.show();
 
    });
 

	
 
    var cache = {}
 
    $("#download_options").select2({
 
        placeholder: _TM['Select changeset'],
 
        dropdownAutoWidth: true,
 
        query: function(query){
 
          var key = 'cache';
 
          var cached = cache[key] ;
 
          if(cached) {
 
            var data = {results: []};
 
            //filter results
 
            $.each(cached.results, function(){
 
                var section = this.text;
 
                var children = [];
 
                $.each(this.children, function(){
 
                    if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){
 
                        children.push({'id': this.id, 'text': this.text});
 
                    }
 
                });
 
                data.results.push({'text': section, 'children': children});
 
            });
 
            query.callback(data);
 
          }else{
 
              $.ajax({
 
                url: pyroutes.url('repo_refs_data', {'repo_name': ${h.js(c.repo_name)}}),
 
                data: {},
 
                dataType: 'json',
 
                type: 'GET',
 
                success: function(data) {
 
                  cache[key] = data;
 
                  query.callback({results: data.results});
 
                }
 
              });
 
          }
 
        }
 
    });
 
    // on change of download options
 
    $('#download_options').change(function(e){
 
       var new_cs = e.added
 

	
 
       for(let k in tmpl_links){
 
           var s = $('#'+k+'_link');
 
           if(s){
 
             var title_tmpl = ${h.jshtml(_('Download %s as %s') % ('__CS_NAME__','__CS_EXT__'))};
 
             title_tmpl= title_tmpl.replace('__CS_NAME__',new_cs.text);
 
             title_tmpl = title_tmpl.replace('__CS_EXT__',k);
 
             title_tmpl = '<i class="icon-file-zip"></i>'+ title_tmpl.html_escape();
 
             var url = tmpl_links[k].replace('__CS__',new_cs.id);
 
             var subrepos = $('#archive_subrepos').is(':checked');
 
             url = url.replace('__SUB__',subrepos);
 
             url = url.replace('__NAME__',title_tmpl);
 

	
 
             s.html(url);
 
           }
0 comments (0 inline, 0 general)