Permalink
Browse files

bug 759356 - restore MT url paths to fix devmo_url

  • Loading branch information...
1 parent 6d8f983 commit f92bdd06d4b5287bd02168a1250ba760e25841b1 @groovecoder groovecoder committed Jul 2, 2012
@@ -30,27 +30,27 @@ <h2>{{ _('Popular Topics for Web Developers')|safe }}</h2>
</header>
<ul id="doc-topics">
<li>
- <h3><a href="{{ devmo_url('HTML') }}">{{ _('HTML') }}</a></h3>
+ <h3><a href="{{ devmo_url(_('/en/HTML')) }}">{{ _('HTML') }}</a></h3>
<p>{{ _('HyperText Markup Language, the core language of the web.') }}</p>
</li>
<li>
- <h3><a href="{{ devmo_url('HTML/HTML5') }}">{{ _('HTML5') }}</a></h3>
+ <h3><a href="{{ devmo_url(_('/en/HTML/HTML5')) }}">{{ _('HTML5') }}</a></h3>
<p>{{ _('The next generation of HTML, HTML5 adds powerful new capabilities for web sites and web applications.') }}</p>
</li>
<li>
- <h3><a href="{{ devmo_url('JavaScript') }}">{{ _('JavaScript') }}</a></h3>
+ <h3><a href="{{ devmo_url(_('/en/JavaScript')) }}">{{ _('JavaScript') }}</a></h3>
<p>{{ _('The scripting language that powers modern web applications.') }}</p>
</li>
<li>
- <h3><a href="{{ devmo_url('CSS') }}">{{ _('CSS') }}</a></h3>
+ <h3><a href="{{ devmo_url(_('/en/CSS')) }}">{{ _('CSS') }}</a></h3>
<p>{{ _('Cascading Style Sheets provide advanced layout and formatting of web content.') }}</p>
</li>
<li>
- <h3><a href="{{ devmo_url('DOM') }}">{{ _('DOM') }}</a></h3>
+ <h3><a href="{{ devmo_url(_('/en/DOM')) }}">{{ _('DOM') }}</a></h3>
<p>{{ _('The Document Object Model describes the structure and content of web pages.') }}</p>
</li>
<li>
- <h3><a href="{{ devmo_url('AJAX') }}">{{ _('AJAX') }}</a></h3>
+ <h3><a href="{{ devmo_url(_('/en/AJAX')) }}">{{ _('AJAX') }}</a></h3>
<p>{{ _('"Asynchronous JavaScript and XML" is a term that describes the use of all these technologies together to create powerful web applications.') }}</p>
</li>
</ul>
@@ -94,29 +94,29 @@ <h3>
<div class="section">
<h4><a href="{{ url('mobile') }}" class="mobile">{{ _('Mobile') }}</a></h4>
<ul>
- <li><a href="{{ devmo_url('Mobile') }}">{{ _('Firefox Mobile for developers') }}</a></li>
- <li><a href="{{ devmo_url('Detecting_device_orientation') }}">{{ _('Detecting device orientation') }}</a></li>
- <li><a href="{{ devmo_url('Using_geolocation') }}">{{ _('Using geolocation') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Mobile')) }}">{{ _('Firefox Mobile for developers') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Detecting_device_orientation')) }}">{{ _('Detecting device orientation') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_geolocation')) }}">{{ _('Using geolocation') }}</a></li>
</ul>
</div>
<div class="section">
<h4><a href="{{ url('addons') }}" class="addons">{{ _('Add-ons') }}</a></h4>
<ul>
<li><a href="https://addons.mozilla.org/en-US/developers/">{{ _('AMO Developer Hub') }}</a></li>
- <li><a href="{{ devmo_url('Extensions') }}">{{ _('Extensions') }}</a></li>
- <li><a href="{{ devmo_url('Plugins') }}">{{ _('Plugins') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Extensions')) }}">{{ _('Extensions') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Plugins')) }}">{{ _('Plugins') }}</a></li>
<li><a href="https://builder.mozillalabs.com/">{{ _('Add-ons Builder') }}</a></li>
- <li><a href="{{ devmo_url('Themes') }}">{{ _('Themes') }}</a></li>
- <li><a href="{{ devmo_url('Creating_OpenSearch_plugins_for_Firefox') }}">{{ _('Search engine plugins') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Themes')) }}">{{ _('Themes') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Creating_OpenSearch_plugins_for_Firefox')) }}">{{ _('Search engine plugins') }}</a></li>
</ul>
</div>
<div class="section">
<h4><a href="{{ url('mozilla') }}" class="mozilla">{{ _('Mozilla') }}</a></h4>
<ul>
- <li><a href="{{ devmo_url('Participating_in_the_Mozilla_project') }}">{{ _('Participating in the Mozilla project') }}</a></li>
- <li><a href="{{ devmo_url('Using_Mozilla_code_in_other_projects') }}">{{ _('Using Mozilla code in other projects') }}</a></li>
- <li><a href="{{ devmo_url('Localization') }}">{{ _('Localization') }}</a></li>
- <li><a href="{{ devmo_url('QA') }}">{{ _('Quality Assurance') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Participating_in_the_Mozilla_project')) }}">{{ _('Participating in the Mozilla project') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_Mozilla_code_in_other_projects')) }}">{{ _('Using Mozilla code in other projects') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Localization')) }}">{{ _('Localization') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/QA')) }}">{{ _('Quality Assurance') }}</a></li>
</ul>
</div>
</div>
@@ -1,26 +1,26 @@
<ul id="glossary">
<li>
<ul class="cols-4">
- <li><a href="{{ devmo_url('HTML') }}">{{ _('HTML') }}</a></li>
- <li><a href="{{ devmo_url('CSS') }}">{{ _('CSS') }}</a></li>
- <li><a href="{{ devmo_url('JavaScript') }}">{{ _('JavaScript') }}</a></li>
- <li><a href="{{ devmo_url('HTML/HTML5') }}">{{ _('HTML5') }}</a></li>
- <li><a href="{{ devmo_url('DOM') }}">{{ _('DOM') }}</a></li>
- <li><a href="{{ devmo_url('SVG') }}">{{ _('SVG') }}</a></li>
- <li><a href="{{ devmo_url('HTML/Element/canvas') }}">{{ _('Canvas') }}</a></li>
- <li><a href="{{ devmo_url('AJAX') }}">{{ _('AJAX') }}</a></li>
- <li><a href="{{ devmo_url('CSS/Media_queries') }}">{{ _('Media Queries') }}</a></li>
- <li><a href="{{ devmo_url('WebGL') }}">{{ _('WebGL') }}</a></li>
- <li><a href="{{ devmo_url('DOM/Storage') }}">{{ _('Web Storage') }}</a></li>
- <li><a href="{{ devmo_url('Using_audio_and_video_in_Firefox') }}">{{ _('Audio') }}</a></li>
- <li><a href="{{ devmo_url('Using_audio_and_video_in_Firefox') }}">{{ _('Video') }}</a></li>
- <li><a href="{{ devmo_url('Using_web_workers') }}">{{ _('Web Workers') }}</a></li>
- <li><a href="{{ devmo_url('Using_files_from_web_applications') }}">{{ _('Files') }}</a></li>
- <li><a href="{{ devmo_url('DragDrop/Drag_and_Drop') }}">{{ _('Drag and Drop') }}</a></li>
- <li><a href="{{ devmo_url('CSS/Using_CSS_transforms') }}">{{ _('CSS Transforms') }}</a></li>
- <li><a href="{{ devmo_url('Using_gradients') }}">{{ _('CSS Gradients') }}</a></li>
- <li><a href="{{ devmo_url('Security') }}">{{ _('Security') }}</a></li>
- <li><a href="{{ devmo_url('IndexedDB') }}">{{ _('IndexedDB') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/HTML')) }}">{{ _('HTML') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/CSS')) }}">{{ _('CSS') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/JavaScript')) }}">{{ _('JavaScript') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/HTML/HTML5')) }}">{{ _('HTML5') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/DOM')) }}">{{ _('DOM') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/SVG')) }}">{{ _('SVG') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/HTML/Element/canvas')) }}">{{ _('Canvas') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/AJAX')) }}">{{ _('AJAX') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/CSS/Media_queries')) }}">{{ _('Media Queries') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/WebGL')) }}">{{ _('WebGL') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/DOM/Storage')) }}">{{ _('Web Storage') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_audio_and_video_in_Firefox')) }}">{{ _('Audio') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_audio_and_video_in_Firefox')) }}">{{ _('Video') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_web_workers')) }}">{{ _('Web Workers') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_files_from_web_applications')) }}">{{ _('Files') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/DragDrop/Drag_and_Drop')) }}">{{ _('Drag and Drop') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/CSS/Using_CSS_transforms')) }}">{{ _('CSS Transforms') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_gradients')) }}">{{ _('CSS Gradients') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/Security')) }}">{{ _('Security') }}</a></li>
+ <li><a href="{{ devmo_url(_('/en/IndexedDB')) }}">{{ _('IndexedDB') }}</a></li>
</ul>
</li>
</ul>
@@ -59,7 +59,7 @@ <h4 class="entry-title"><a href="https://addons.mozilla.org/en-US/developers/doc
<p class="entry-summary">{{ _('The official documentation on APIs and languages. What you need, when you need it, to create your masterpiece.') }}</p>
</li>
<li class="hentry">
- <h4 class="entry-title"><a href="{{ devmo_url('Extensions') }}" rel="bookmark">{{ _('Extensions') }}</a></h4>
+ <h4 class="entry-title"><a href="{{ devmo_url(_('/en/Extensions')) }}" rel="bookmark">{{ _('Extensions') }}</a></h4>
<p class="entry-summary">{{ _('Complete documentation for developing extensions for Mozilla applications.') }}</p>
</li>
<li class="hentry">
@@ -23,15 +23,15 @@ <h1 class="page-title">{{ _('Apps')|safe }}</h1>
<div class="boxed">
<h2>{{ _('Getting Started') }}</h2>
{% if waffle.switch('apps-market-launch') %}
- {% trans apps_url=devmo_url('Apps') %}
+ {% trans apps_url=devmo_url(_('/en/Apps')) %}
<p>The Mozilla Web Apps platform lets you <a href="{{ apps_url }}">build apps</a> powered by Web standards like HTML5, CSS3, JavaScript and related APIs.</p>
{% endtrans %}
{% else %}
{% trans %}
<p>The Mozilla Marketplace lets you build app experiences powered by Web standards like HTML5, CSS3, JavaScript and related APIs.</p>
{% endtrans %}
{% endif %}
- <p class="more"><a href="{{ devmo_url('Apps/Getting_Started') }}" class="go">{{ _('Learn more') }}</a></p>
+ <p class="more"><a href="{{ devmo_url(_('/en/Apps/Getting_Started')) }}" class="go">{{ _('Learn more') }}</a></p>
</div>
<div class="boxed">
@@ -85,23 +85,23 @@ <h4 class="entry-title"><a href="{{ url('learn_html5') }}" rel="bookmark">{{ _('
</p>
</li>
<li class="hentry">
- <h4 class="entry-title"><a href="{{ devmo_url('Apps/For_mobile_developers') }}" rel="bookmark">{{ _('For mobile apps developers') }}</a></h4>
+ <h4 class="entry-title"><a href="{{ devmo_url(_('/en/Apps/For_mobile_developers')) }}" rel="bookmark">{{ _('For mobile apps developers') }}</a></h4>
<p class="entry-summary">
{% trans %}
If you already develop apps for mobile devices, here's how to develop Open Web apps.
{% endtrans %}
</p>
</li>
<li class="hentry">
- <h4 class="entry-title"><a href="{{ devmo_url('Apps/For_Web_developers') }}" rel="bookmark">{{ _('For web developers') }}</a></h4>
+ <h4 class="entry-title"><a href="{{ devmo_url(_('/en/Apps/For_Web_developers')) }}" rel="bookmark">{{ _('For web developers') }}</a></h4>
<p class="entry-summary">
{% trans %}
If you already develop websites, here's how to make them into installable apps.
{% endtrans %}
</p>
</li>
<li class="hentry">
- <h4 class="entry-title"><a href="{{ devmo_url('Apps/Using_apps_offline') }}" rel="bookmark">{{ _('Using apps offline') }}</a></h4>
+ <h4 class="entry-title"><a href="{{ devmo_url(_('/en/Apps/Using_apps_offline')) }}" rel="bookmark">{{ _('Using apps offline') }}</a></h4>
<p class="entry-summary">
{% trans %}
How to design apps so they can be cached and used without an Internet connection.
@@ -38,46 +38,46 @@ <h1>{% trans %}Browse Thousands of Docs for <b>Web Developers</b>{% endtrans %}<
<ul>
<li>
<ul>
- <li><a href="{{ devmo_url('HTML') }}">HTML</a></li>
- <li><a href="{{ devmo_url('HTML/HTML5') }}">HTML5</a></li>
- <li><a href="{{ devmo_url('CSS') }}">CSS</a></li>
- <li><a href="{{ devmo_url('JavaScript') }}">JavaScript</a></li>
- <li><a href="{{ devmo_url('DOM') }}">DOM</a></li>
+ <li><a href="{{ devmo_url(_('/en/HTML')) }}">HTML</a></li>
+ <li><a href="{{ devmo_url(_('/en/HTML/HTML5')) }}">HTML5</a></li>
+ <li><a href="{{ devmo_url(_('/en/CSS')) }}">CSS</a></li>
+ <li><a href="{{ devmo_url(_('/en/JavaScript')) }}">JavaScript</a></li>
+ <li><a href="{{ devmo_url(_('/en/DOM')) }}">DOM</a></li>
</ul>
</li>
<li>
<ul>
- <li><a href="{{ devmo_url('HTML/Canvas') }}">Canvas</a></li>
- <li><a href="{{ devmo_url('SVG') }}">SVG</a></li>
- <li><a href="{{ devmo_url('WebGL') }}">WebGL</a></li>
- <li><a href="{{ devmo_url('Using_audio_and_video_in_Firefox') }}">Video</a></li>
- <li><a href="{{ devmo_url('Using_audio_and_video_in_Firefox') }}">Audio</a></li>
+ <li><a href="{{ devmo_url(_('/en/HTML/Canvas')) }}">Canvas</a></li>
+ <li><a href="{{ devmo_url(_('/en/SVG')) }}">SVG</a></li>
+ <li><a href="{{ devmo_url(_('/en/WebGL')) }}">WebGL</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_audio_and_video_in_Firefox')) }}">Video</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_audio_and_video_in_Firefox')) }}">Audio</a></li>
</ul>
</li>
<li>
<ul>
- <li><a href="{{ devmo_url('Using_gradients') }}">Gradients</a></li>
- <li><a href="{{ devmo_url('CSS/Using_CSS_transforms') }}">Transforms</a></li>
- <li><a href="{{ devmo_url('CSS/CSS_transitions') }}">Transitions</a></li>
- <li><a href="{{ devmo_url('CSS/CSS_animations') }}">Animations</a></li>
- <li><a href="{{ devmo_url('CSS/Media_queries') }}">Media Queries</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_gradients')) }}">Gradients</a></li>
+ <li><a href="{{ devmo_url(_('/en/CSS/Using_CSS_transforms')) }}">Transforms</a></li>
+ <li><a href="{{ devmo_url(_('/en/CSS/CSS_transitions')) }}">Transitions</a></li>
+ <li><a href="{{ devmo_url(_('/en/CSS/CSS_animations')) }}">Animations</a></li>
+ <li><a href="{{ devmo_url(_('/en/CSS/Media_queries')) }}">Media Queries</a></li>
</ul>
</li>
<li>
<ul>
- <li><a href="{{ devmo_url('Ajax') }}">AJAX</a></li>
- <li><a href="{{ devmo_url('WebSockets') }}">WebSockets</a></li>
- <li><a href="{{ devmo_url('HTML/Using_the_application_cache') }}">Offline Cache</a></li>
- <li><a href="{{ devmo_url('DOM/Storage') }}">Local Storage</a></li>
- <li><a href="{{ devmo_url('IndexedDB') }}">IndexedDB</a></li>
+ <li><a href="{{ devmo_url(_('/en/Ajax')) }}">AJAX</a></li>
+ <li><a href="{{ devmo_url(_('/en/WebSockets')) }}">WebSockets</a></li>
+ <li><a href="{{ devmo_url(_('/en/Offline_resources_in_Firefox')) }}">Offline Cache</a></li>
+ <li><a href="{{ devmo_url(_('/en/DOM/Storage')) }}">Local Storage</a></li>
+ <li><a href="{{ devmo_url(_('/en/IndexedDB')) }}">IndexedDB</a></li>
</ul>
</li>
<li>
<ul>
- <li><a href="{{ devmo_url('Using_geolocation') }}">Geolocation</a></li>
- <li><a href="{{ devmo_url('DragDrop/Drag_and_Drop') }}">Drag &amp; Drop</a></li>
- <li><a href="{{ devmo_url('Using_files_from_web_applications') }}">File API</a></li>
- <li><a href="{{ devmo_url('Using_web_workers') }}">Web Workers</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_geolocation')) }}">Geolocation</a></li>
+ <li><a href="{{ devmo_url(_('/en/DragDrop/Drag_and_Drop')) }}">Drag &amp; Drop</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_files_from_web_applications')) }}">File API</a></li>
+ <li><a href="{{ devmo_url(_('/en/Using_web_workers')) }}">Web Workers</a></li>
<li><a href="{{ url('docs') }}" class="more">{{_("and more")}}&hellip;</a></li>
</ul>
</li>
@@ -111,7 +111,7 @@ <h2>{{_("Demos")}}</h2>
</div>
<div class="promo" id="promo-foxdev">
- <a href="{{ devmo_url('Firefox_for_developers') }}">
+ <a href="{{ devmo_url(_('/en/Firefox_for_developers')) }}">
<h2>{{_("Firefox for Devs")}}</h2>
<p>{{_("See what's new for Web developers in the latest version of Firefox.")}}</p>
</a>
@@ -29,7 +29,7 @@ <h1 class="page-title">{{ _('Learn CSS') }}</h1>
<h2>{{ _('Introductory Level') }}</h2>
<ul class="link-list">
<li>
- <h3 class="title"><a href="{{ devmo_url('CSS/Getting_Started') }}">{{ _('CSS Getting Started') }}</a></h3>
+ <h3 class="title"><a href="{{ devmo_url('/en/CSS/Getting_Started') }}">{{ _('CSS Getting Started') }}</a></h3>
<h4 class="source">MDN</h4>
<p>{{ _('This tutorial introduces you to Cascading Style Sheets (CSS). It guides you through the basic features of CSS with practical examples that you can try for yourself on your own computer.') }}</p>
</li>
@@ -59,7 +59,7 @@ <h4 class="source">Google Code University</h4>
<p>{{ _('Video tutorial on styling pages with CSS.') }}</p>
</li>
<li>
- <h3 class="title"><a href="{{ devmo_url('Common_CSS_Questions')}}">{{ _('Common CSS Questions') }}</a></h3>
+ <h3 class="title"><a href="{{ devmo_url(_('/en/Common_CSS_Questions'))}}">{{ _('Common CSS Questions') }}</a></h3>
<h4 class="source">MDN</h4>
<p>{{ _('Common questions and answers for beginners.') }}</p>
</li>
@@ -70,7 +70,7 @@ <h4 class="source">MDN</h4>
<h2>{{ _('Intermediate Level') }}</h2>
<ul class="link-list">
<li>
- <h3 class="title"><a href="{{ devmo_url('CSS_Reference')}}">{{ _('CSS Reference') }}</a></h3>
+ <h3 class="title"><a href="{{ devmo_url(_('/en/CSS_Reference'))}}">{{ _('CSS Reference') }}</a></h3>
<h4 class="source">MDN</h4>
<p>{{ _('Complete reference to CSS, with details on support by Firefox and other browsers.') }}</p>
</li>
@@ -111,12 +111,12 @@ <h4 class="source">Addy Osmani</h4>
<p>{{ _('A quick introduction to some of the core features introduced in CSS3.') }}</p>
</li>
<li>
- <h3 class="title"><a href="{{ devmo_url('/En/CSS/Using_CSS_transforms')}}">{{ _('Using CSS Transforms') }}</a> <span class="tag css3" title="{{ _('This site features CSS3') }}">(CSS3)</span></h3>
+ <h3 class="title"><a href="{{ devmo_url(_('/En/CSS/Using_CSS_transforms'))}}">{{ _('Using CSS Transforms') }}</a> <span class="tag css3" title="{{ _('This site features CSS3') }}">(CSS3)</span></h3>
<h4 class="source">MDN</h4>
<p>{{ _('Apply rotation, skewing, scaling, and translation using CSS.') }}</p>
</li>
<li>
- <h3 class="title"><a href="{{ devmo_url('CSS/CSS_transitions')}}">{{ _('CSS Transitions') }}</a> <span class="tag css3" title="{{ _('This site features CSS3') }}">(CSS3)</span></h3>
+ <h3 class="title"><a href="{{ devmo_url(_('/en/CSS/CSS_transitions'))}}">{{ _('CSS Transitions') }}</a> <span class="tag css3" title="{{ _('This site features CSS3') }}">(CSS3)</span></h3>
<h4 class="source">MDN</h4>
<p>{{ _('CSS transitions, part of the draft CSS3 specification, provide a way to animate changes to CSS properties, instead of having the changes take effect instantly.') }}</p>
</li>
Oops, something went wrong.

0 comments on commit f92bdd0

Please sign in to comment.