Commit 01c64c22 authored by Claude Paroz's avatar Claude Paroz

Converted a bunch of links from http to https

parent dfc525d4
......@@ -57,10 +57,10 @@ class Language(models.Model):
return self.plurals or _("Unknown")
def bugs_url_enter(self):
return "http://bugzilla.gnome.org/enter_bug.cgi?product=l10n&component=%s%%20[%s]" % (self.name, self.locale)
return "https://bugzilla.gnome.org/enter_bug.cgi?product=l10n&component=%s%%20[%s]" % (self.name, self.locale)
def bugs_url_show(self):
return "http://bugzilla.gnome.org/buglist.cgi?product=l10n&component=%s%%20[%s]&bug_status=NEW&bug_status=REOPENED&bug_status=ASSIGNED&bug_status=UNCONFIRMED" % (self.name, self.locale)
return "https://bugzilla.gnome.org/buglist.cgi?product=l10n&component=%s%%20[%s]&bug_status=NEW&bug_status=REOPENED&bug_status=ASSIGNED&bug_status=UNCONFIRMED" % (self.name, self.locale)
def get_release_stats(self, archives=False):
# FIXME Here be dragons
......
......@@ -79,7 +79,7 @@ class RegistrationForm(forms.Form):
current_site = Site.objects.get_current()
subject = settings.EMAIL_SUBJECT_PREFIX + _(u'Account activation')
message = _(u"This is a confirmation that your registration on %s succeeded. To activate your account, please click on the link below or copy and paste it in a browser.") % current_site.name
message += "\n\nhttp://%s%s\n\n" % (current_site.domain, str(reverse("register_activation", kwargs={'key': activation_key})))
message += "\n\nhttps://%s%s\n\n" % (current_site.domain, str(reverse("register_activation", kwargs={'key': activation_key})))
message += _(u"Administrators of %s" % current_site.name)
send_mail(subject, message, settings.DEFAULT_FROM_EMAIL,
......
......@@ -4,7 +4,7 @@ is not compatible with standard GNOME intltool toolchain.
If you want to update a translation or begin a translation
for a new language, pick the respective po/pot file
through the Damned-Lies web interface.
http://l10n.gnome.org/module/damned-lies
https://l10n.gnome.org/module/damned-lies
For the curious, the pot file is generated with a special
wrapper script ('python manage.py update-trans en') and it needs
......
......@@ -36,7 +36,7 @@ DEFAULT_FROM_EMAIL = 'gnomeweb@gnome.org'
SERVER_EMAIL = 'gnomeweb@gnome.org'
# When in STRINGFREEZE, where to send notifications (gnome-i18n@gnome.org) on any POT changes
NOTIFICATIONS_TO = ['gnome-i18n@gnome.org']
ENTER_BUG_URL = 'http://bugzilla.gnome.org/enter_bug.cgi?product=damned-lies&component=l10n.gnome.org'
ENTER_BUG_URL = 'https://bugzilla.gnome.org/enter_bug.cgi?product=damned-lies&component=l10n.gnome.org'
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
......
......@@ -196,7 +196,7 @@
"model": "stats.module",
"fields": {
"comment": null,
"vcs_web": "http://git.gnome.org/browse/gnome-hello/",
"vcs_web": "https://git.gnome.org/browse/gnome-hello/",
"name": "gnome-hello",
"vcs_root": "git://git.gnome.org/gnome-hello",
"bugs_product": "test",
......@@ -232,7 +232,7 @@
"model": "stats.module",
"fields": {
"comment": null,
"vcs_web": "http://git.gnome.org/browse/zenity/",
"vcs_web": "https://git.gnome.org/browse/zenity/",
"name": "zenity",
"vcs_root": "git://git.gnome.org/zenity",
"bugs_product": "zenity",
......
......@@ -805,7 +805,7 @@ class Domain(models.Model):
if not self.pot_method: # default is intltool
env = {"XGETTEXT_ARGS": "\"--msgid-bugs-address=%s\"" % self.module.get_bugs_enter_url()}
pot_command = "intltool-update -g '%(domain)s' -p" % {'domain': self.potbase()}
elif self.pot_method.startswith('http://'):
elif self.pot_method.startswith(('http://', 'https://')):
# Get POT from URL and save file locally
import urllib2
req = urllib2.Request(self.pot_method)
......@@ -1472,7 +1472,7 @@ class Statistics(models.Model):
[{'path':, 'hash':, 'fuzzy':, 'translated':, 'translated_file':}, ...] """
figures = []
if self.full_po and self.domain.dtype == 'doc':
# something like: "http://git.gnome.org/browse/vinagre / plain / help / %s / %s ?h=master"
# something like: "https://git.gnome.org/browse/vinagre / plain / help / %s / %s ?h=master"
url_model = utils.url_join(self.branch.get_vcs_web_url(), self.branch.img_url_prefix,
self.domain.directory, '%s', '%s') + self.branch.img_url_suffix
for fig in self.full_po.figures:
......
......@@ -85,7 +85,7 @@ class ModuleTestCase(TestCase):
def test_branch_methods(self):
self.assertTrue(self.branch.is_head())
self.assertEqual(self.branch.get_vcs_url(), "git://git.gnome.org/gnome-hello")
self.assertEqual(self.branch.get_vcs_web_url(), "http://git.gnome.org/browse/gnome-hello/")
self.assertEqual(self.branch.get_vcs_web_url(), "https://git.gnome.org/browse/gnome-hello/")
@test_scratchdir
def test_branch_stats(self):
......@@ -183,7 +183,7 @@ class ModuleTestCase(TestCase):
dom = Domain.objects.create(
module=self.mod, name='http-po',
description='UI Translations', dtype='ui',
pot_method='http://l10n.gnome.org/POT/damned-lies.master/damned-lies.master.pot')
pot_method='https://l10n.gnome.org/POT/damned-lies.master/damned-lies.master.pot')
self.branch.checkout()
potfile, errs = dom.generate_pot_file(self.branch)
self.assertTrue(os.path.exists(potfile))
......@@ -235,7 +235,7 @@ class ModuleTestCase(TestCase):
def test_update_doap_infos(self):
from stats.doap import update_doap_infos
update_doap_infos(self.mod)
self.assertEqual(self.mod.homepage, "http://git.gnome.org/browse/gnome-hello")
self.assertEqual(self.mod.homepage, "https://git.gnome.org/browse/gnome-hello")
class StatisticsTests(TestCase):
......@@ -296,7 +296,7 @@ class FigureTests(TestCase):
""" Test if figure urls are properly constructed """
stat = Statistics.objects.get(branch__module__name='gnome-hello', branch__name='master', domain__dtype='doc', language__locale='fr')
figs = stat.get_figures()
self.assertEqual(figs[0]['orig_remote_url'], 'http://git.gnome.org/browse/gnome-hello/plain/help/C/figures/gnome-hello-new.png?h=master')
self.assertEqual(figs[0]['orig_remote_url'], 'https://git.gnome.org/browse/gnome-hello/plain/help/C/figures/gnome-hello-new.png?h=master')
self.assertFalse('trans_remote_url' in figs[0])
@test_scratchdir
......
......@@ -54,14 +54,14 @@ class FixtureFactory(TestCase):
# Creating models: Modules
gnome_hello = Module.objects.create(name="gnome-hello", vcs_type="git",
vcs_root="git://git.gnome.org/gnome-hello",
vcs_web="http://git.gnome.org/browse/gnome-hello/",
bugs_base="http://bugzilla.gnome.org",
vcs_web="https://git.gnome.org/browse/gnome-hello/",
bugs_base="https://bugzilla.gnome.org",
bugs_product="test", # This product really exists
bugs_component="test")
zenity = Module.objects.create(name="zenity", vcs_type="git",
vcs_root="git://git.gnome.org/zenity",
vcs_web="http://git.gnome.org/browse/zenity/",
bugs_base="http://bugzilla.gnome.org",
vcs_web="https://git.gnome.org/browse/zenity/",
bugs_base="https://bugzilla.gnome.org",
bugs_product="zenity",
bugs_component="general")
s_m_i = Module.objects.create(name="shared-mime-info", vcs_type="git",
......@@ -72,7 +72,7 @@ class FixtureFactory(TestCase):
bugs_product="shared-mime-info",
bugs_component="general",
comment="This is not a GNOME-specific module. Please submit your translation " \
"through the <a href=\"http://www.transifex.net/projects/p/shared-mime-info/c/default/\">Transifex platform</a>.")
"through the <a href=\"http://www.transifex.com/projects/p/shared-mime-info/c/default/\">Transifex platform</a>.")
# Creating models: Domains
dom = {}
......
......@@ -31,10 +31,10 @@
<td><a href="https://bugzilla.gnome.org/browse.cgi?product=damned-lies">https://bugzilla.gnome.org/browse.cgi?product=damned-lies</a></td>
</tr>
<tr><th>{% trans "Source code" %}</th>
<td><a href="http://git.gnome.org/browse/damned-lies/">http://git.gnome.org/browse/damned-lies</a></td>
<td><a href="https://git.gnome.org/browse/damned-lies/">https://git.gnome.org/browse/damned-lies</a></td>
</tr>
<tr><th>{% trans "Workflow" %}</th>
<td><a href="http://l10n.gnome.org/help/vertimus_workflow/">http://l10n.gnome.org/help/vertimus_workflow</a></td>
<td><a href="https://l10n.gnome.org/help/vertimus_workflow/">https://l10n.gnome.org/help/vertimus_workflow</a></td>
</tr>
</table>
......
......@@ -105,23 +105,23 @@
</li>
<li><a href="#">Resources</a>
<ul class="sub-menu">
<li><a href="http://developer.gnome.org">{% trans "Developer Center" %}</a></li>
<li><a href="http://library.gnome.org">{% trans "Documentation" %}</a></li>
<li><a href="https://developer.gnome.org">{% trans "Developer Center" %}</a></li>
<li><a href="https://help.gnome.org">{% trans "Documentation" %}</a></li>
<li><a href="http://live.gnome.org">{% trans "Wiki" %}</a></li>
<li><a href="http://mail.gnome.org/mailman/listinfo">{% trans "Mailing Lists" %}</a></li>
<li><a href="http://live.gnome.org/GnomeIrcChannels">{% trans "IRC Channels" %}</a></li>
<li><a href="https://live.gnome.org/GnomeIrcChannels">{% trans "IRC Channels" %}</a></li>
<li><a href="https://bugzilla.gnome.org/">{% trans "Bug Tracker" %}</a></li>
<li><a href="http://git.gnome.org/browse/">{% trans "Development Code" %}</a></li>
<li><a href="http://live.gnome.org/Jhbuild">{% trans "Build Tool" %}</a></li>
<li><a href="https://git.gnome.org/browse/">{% trans "Development Code" %}</a></li>
<li><a href="https://live.gnome.org/Jhbuild">{% trans "Build Tool" %}</a></li>
</ul>
</li>
<li><a href="http://www.gnome.org/news/">{% trans "News" %}</a>
<ul class="sub-menu">
<li><a href="http://www.gnome.org/press/">{% trans "Press Releases" %}</a></li>
<li><a href="http://www.gnome.org/start/stable">{% trans "Latest Release" %}</a></li>
<li><a href="http://planet.gnome.org">{% trans "Planet GNOME" %}</a></li>
<li><a href="https://planet.gnome.org">{% trans "Planet GNOME" %}</a></li>
<li><a href="http://gnomejournal.org">{% trans "GNOME Journal" %}</a></li>
<li><a href="http://news.gnome.org">{% trans "Development News" %}</a></li>
<li><a href="https://news.gnome.org">{% trans "Development News" %}</a></li>
<li><a href="http://identi.ca/gnome">{% trans "Identi.ca" %}</a></li>
<li><a href="http://twitter.com/gnome">{% trans "Twitter" %}</a></li>
</ul>
......@@ -136,7 +136,7 @@
<a href="{% url 'about' %}">{% trans "About Damned Lies" %}</a>.
{% trans "Optimized for standards." %}
{% blocktrans with "<a href='http://www.canonical.com/'>Canonical</a>" as link %}Hosted by {{ link }}.{% endblocktrans %}
{% blocktrans with "<a href='http://www.djangoproject.com/'>Django</a>" as link %}Powered by {{ link }}.{% endblocktrans %}
{% blocktrans with "<a href='https://www.djangoproject.com/'>Django</a>" as link %}Powered by {{ link }}.{% endblocktrans %}
</div>
</div>
</div>
......
......@@ -18,7 +18,7 @@
<div class="bloc half first">
<h2><a href="{% url 'teams' %}">{% trans "Teams" %}</a></h2>
<p>{% trans "List of all GNOME Translation Teams, with full information such as primary contact (coordinator), web pages and mailing list information." %}
{% trans "If there is no team for your language, you can easily <a href='http://live.gnome.org/TranslationProject/StartingATeam/'>start your own team</a>." %}
{% trans "If there is no team for your language, you can easily <a href='https://live.gnome.org/TranslationProject/StartingATeam/'>start your own team</a>." %}
{% if user_language %}
{% with user_language.get_team_url as team_url %}
......
......@@ -49,7 +49,7 @@
{% include "people/person_overview.html" %}
{% empty %}
<p><em>{% trans "This team has currently no coordinator." %}<br>
{% blocktrans with link="http://live.gnome.org/TranslationProject/TeamCoordinatorResponsibilities" %}See <a href="{{ link }}">the GTP Wiki</a> for more information about coordinatorship.{% endblocktrans %}</em></p>
{% blocktrans with link="https://live.gnome.org/TranslationProject/TeamCoordinatorResponsibilities" %}See <a href="{{ link }}">the GTP Wiki</a> for more information about coordinatorship.{% endblocktrans %}</em></p>
{% endfor %}
</div>
......
......@@ -51,7 +51,7 @@ $(document).ready(function() {
{% else %}
<h1>{{ team.get_description }}</h1>
<p><em>{% blocktrans %}There is currently no established team for this language. See <a href="http://live.gnome.org/TranslationProject/StartingATeam">the GTP Wiki</a> to get more information about the process of building a new translation team.{% endblocktrans %}</em></p>
<p><em>{% blocktrans %}There is currently no established team for this language. See <a href="https://live.gnome.org/TranslationProject/StartingATeam">the GTP Wiki</a> to get more information about the process of building a new translation team.{% endblocktrans %}</em></p>
{% endif %}
......
......@@ -482,7 +482,7 @@ class Action(ActionAbstract):
else:
msg = ugettext(msg)
current_site = Site.objects.get_current()
url = "http://%s%s" % (current_site.domain, urlresolvers.reverse(
url = "https://%s%s" % (current_site.domain, urlresolvers.reverse(
'vertimus_by_names',
args = (
state.branch.module.name,
......
......@@ -40,7 +40,7 @@ class VertimusTest(TeamsAndRolesTests):
super(VertimusTest, self).setUp()
self.m = Module.objects.create(name='gedit', description='GNOME Editor',
bugs_base="http://bugzilla.gnome.org/",
bugs_base="https://bugzilla.gnome.org/",
bugs_product='gedit', bugs_component='general',
vcs_type='svn', vcs_root="http://svn.gnome.org/svn",
vcs_web="http://svn.gnome.org/viewvc/gedit")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment