Граф коммитов

321 Коммитов

Автор SHA1 Сообщение Дата
Alex Gibson d44f5c3164 Localize Protocol navigation (Fixes #6498) (#6642)
* Localize Protocol navigation (Fixes #6498)
* Add navigation.lang to DOTLANG_FILES
* Update functional tests for new navigation
* Remove some old Tabzilla cruft
2019-01-31 17:09:29 -08:00
Paul McLanahan 3bf8e8cca1 Fix #5851: Support overriding or ammending list of locales (#6035)
This modifies how several parts of translation in bedrock work:

1. You can now provide a list of locales in `active_locales` in
   the template context that will be the list of available
   translations for the page.
2. You can now provide a list of locales in `add_active_locales`
   to add extra available translations for the page.
3. The `page()` and `LangFilesMixin` helpers are updated to support
   these new context items.
4. You can now create and use `en-US` locale-specific-templates.
2018-10-04 10:50:42 -05:00
Paul McLanahan 47e86b6541 Fix #6000: Map legal-docs locales to bedrock prod locales (#6001)
* Fix #6000: Map legal-docs locales to bedrock prod locales

Also filter out legal-docs translations that are not production
bedrock locales.

* Extract translations dict function for later use as well
2018-08-13 16:25:56 -05:00
Paul McLanahan 1370d2e106 Move tests.py to tests/test_base.py so pytest will find and run them
Seems we've been ignoring these tests for quite a while.
Also move tests in l10n_utils/tests/__init__.py so pytest can find them.
2018-04-16 15:02:07 -04:00
Paul McLanahan 16a25cdd30 Fix bug 836587: Add "Source code for this page" link to footer
It will be a link to the current template source on github.

Original inspiration for this commit from:

https://github.com/l-hedgehog/bedrock/commit/36f011c0
2017-10-25 13:53:44 -04:00
Paul McLanahan 6185290ca8 Fix bug 1380229: lang file ok tag avoids untranslated skip
This allows untranslated strings with the {ok} tag
to override the same translated string from another
lang file in the set.
2017-07-12 09:33:25 -04:00
Paul McLanahan fc53c771af Convert l10n_update command to use new git util 2016-10-12 10:04:27 -04:00
Paul McLanahan 5fb4aa3c04 Switch to pathlib2 2016-10-12 10:04:27 -04:00
Paul McLanahan dcf285d4aa Remove and clone locale dir if not a repo in l10n_update 2016-10-03 12:59:32 -04:00
Paul McLanahan a471ed624f Remove remaining legacy infrastructure files 2016-08-17 09:41:31 -04:00
Paul McLanahan d2fa322020 Fix bug 1156344: Upgrade to Django 1.8
* Switch to django-jinja from jingo
* Switch to django-jinja-markdown
2016-08-15 10:52:49 -04:00
Paul McLanahan f7fe37c30f Bug 1287982: Add unit-tests for translation utilities 2016-07-19 22:47:02 -04:00
Paul McLanahan 5fbaf5624e Fix languages not recognized by Django
Using Django's i18n infra for activation of translation
means that it looks for .mo files to decide whether to
activate it. This means that only those languages that
ship with Django will activate. Since we have our own
i18n system anyway we can copy their mechnics with a
much more simple system.
2016-07-19 20:59:44 -04:00
Paul McLanahan 15410b54f9 Remove waffle and convert to env vars 2016-07-19 14:46:18 -04:00
Paul McLanahan 26a9bd16a3 Upgrade Jingo and Jinja2 2016-07-19 14:46:18 -04:00
Paul McLanahan a3c1411e10 Bug 1156344: Switch from Tower to Puente for i18n
First step on the way to the Django 1.8.x upgrade.
2016-07-19 09:36:36 -04:00
Paul McLanahan 0cbc377e78 Add management command for cloning/updating l10n files 2016-03-28 14:52:17 -04:00
Jon Petto 62f0107fa4 [fix bug 1222137] Enable bedrock locale-based templates. 2016-02-19 15:15:04 -06:00
Paul McLanahan a749d81cc2 Do not require MANAGERS setting for tests to pass 2015-11-19 12:09:14 -05:00
Paul McLanahan ba40d3526b Upgrade to product-details 0.8.1
We can now turn on p-d storage in the database.
2015-10-13 09:46:49 -04:00
Paul McLanahan 401af18ab1 Update tests to pass without l10n files. 2015-10-05 21:43:35 -04:00
Pascal Chevrel 04feec54e6 Bug 1197244 - Newsletters Control Center: use a separate .lang file for all the newsletter stuff
* newsletter.lang is no longer loaded as a default langfile for all templates (because only 8 locales do the newsletters and default files are assigned to all locales)
* all newsletter templates and newsletter python files except the hacks blog get their strings extracted to mozorg/newsletters.lang
* newsletter/views.py was loading strings from the contribute page, now they are also loaded from mozorg/newsletters.lang
* mozorg/forms.py now also loads strings from mozorg/newsletter.lang
* One string was corrected in a template (2 spaces instead of 1)
* tests and documentation updated

The mozorg/newsletters.lang file already has all the string copied from newsletter.lang and the file is on production on svn for the 8 locales that translate newsletters.

Strings in newsletter.lang that were used outside of newsletters were moved to main.lang

We will remove the old newsletter.lang from svn only once bedrock will run the new code and will no longer include newsletter.lang by default for all pages.
2015-09-28 15:43:08 +02:00
Paul McLanahan 52c9b40781 Bug 1200354: Add decorator support to redirects helper.
* Remove pytest-xdist from standard run.  It's slower than normal if testing the local server.
* Add recommendation to use it if testing a remote instance to README.
* Remove pytest.ini in favor of using setup.cfg.
* Fix tests after redirects modification.
* Add py to redirects requirements.
2015-09-16 16:12:14 -07:00
Paul McLanahan 22a2e276e5 Update all urls.py files to avoid deprecated function.
Using `patterns` is deprecated, and just using an iterable is no
preferred.
2015-09-16 15:52:24 -07:00
Josh Mize 46f1b895dc 12-factorify settings: fix bug 1182394 2015-07-20 02:46:44 -05:00
Josh Mize bb17f1004d Upgrade tower, install_gettext_callables 2015-07-10 01:55:16 -05:00
Paul McLanahan 737d214862 Add simple dict cache for more speed.
Include cache backend tests from Django.
2015-06-17 23:15:37 -04:00
Malena Andrade cd943d6b8b Bug 1159230 - Remove old mozilla.org home page template 2015-06-05 14:55:50 -04:00
Paul McLanahan 097e41cd0b Bug 1157265: Upgrade Django to 1.7.8.
* Upgrade south migrations to new Django native ones.
* Update deployment to use `migrate` in place of `syncdb`.
* Upgrade waffle and django-extensions for 1.7 compat.
2015-05-18 13:11:44 -04:00
Kohei Yoshino 5f5106391b Fix Bug 1164781 - Spanish locales are redirected to /en-US instead of /es when page is not localized 2015-05-15 00:42:43 -04:00
Paul McLanahan 11f0f9a197 Fix bug 1155810: Remove funfactory.
Well... actually it mostly just moves most of funfactory
from an external lib to bedrock.base. But at least this way
we can remove the bits we don't need and be ready to make
the changes we need to upgrade to Django 1.8.

I can't come close to writing as perfect a commit message
for this as @willkg did for fjord, so I'll just leave this here.

https://github.com/mozilla/fjord/commit/9d7c97b
2015-04-29 16:58:25 -04:00
Paul McLanahan 64c4f17758 Fix bug 1130285: Treat hsb/dsb locales as de for number formatting. 2015-02-06 11:04:31 -05:00
Kohei Yoshino 095784321b Fix Bug 1097785 - Legal-docs-based pages should not rely on active tags in .lang files 2015-01-27 14:47:57 -05:00
Paul McLanahan bc64aa0eda Fix bug 1102955: Use old contribute form for most locales on new page.
Allow us to enable the new contribute pages for all locales
without having to wait for new ET-based responders to be setup.
2014-11-26 11:35:57 -05:00
Paul McLanahan 76b2db3a1c Fix bug 1100539: Default language has all the tags. 2014-11-17 16:17:00 -05:00
Paul McLanahan 6bd7991136 Fix bug 920113, 949163: tags should be from all lang files.
Tags (including "active") should be from all .lang files associated with
a template. So l10n_has_tag() as well as the active state of a page
should include information from all included .lang files from
add_lang_file and set_lang_files calls.

This also moves the check for DEV==True to the helpers, so checking
settings.DEV in templates is no longer necessary.
2014-11-14 16:36:15 -05:00
Paul McLanahan 74eb768eec Fix test failures caused by recent changes. 2014-10-15 12:05:00 -04:00
Paul McLanahan 884158cf72 Show translations from all lang files for the template. 2014-10-15 11:31:30 -04:00
Paul McLanahan da5ea79da4 Bug 1054437: Add newsletter form to new contribute pages. 2014-10-14 12:33:24 -07:00
Paul McLanahan b03bffb5d7 Bug 1078297: Fix localized number formatting helper for jinja templates 2014-10-10 11:49:02 -04:00
Paul McLanahan 0512e72581 Bug 1078297: Change l10n_format_* helpers to use lang from context. 2014-10-10 10:49:56 -04:00
pascalc 655649f544 Bug 1078297: Need localized number formatting helper for jinja templates 2014-10-10 10:48:10 -04:00
pascalc 0607768e18 Bug 1078655: update regex in dotlang parser to allow dashes 2014-10-06 22:16:46 +02:00
Paul McLanahan bb48ae80d5 Fix bug 1061228: Fix locale redirect exemption in page() helper. 2014-09-11 13:24:02 -04:00
Paul McLanahan a730fe41da Bug 1026184: Port /security to bedrock.
Add an update_security_advisories command to pull
in and parse the advisroies from the git repository.
2014-08-21 13:26:45 -04:00
Paul McLanahan 89b2ea658b Fix bug 1004598: Enable framing of /firefox/new/ 2014-07-02 15:11:47 -04:00
Kohei Yoshino b0b6f32175 Fix Bug 975020 - Translation Bar and non-locale redirects don't work as expected in some cases; use the user's accept language list to fix it 2014-05-28 17:17:26 -04:00
Kohei Yoshino ad67bd4371 Implement The Web We Want promo on Tabzilla, Bug 993129 2014-04-28 14:46:47 -07:00
Josh Mize c7fc48ff64 Merge pull request #1356 from pmclanahan/use-locmem-cache-for-l10n
Add locmem cache for l10n use.
2014-03-18 15:41:19 -05:00
Paul McLanahan 95a490bc2a Fix bug 982755: Fix POT file conversion when string ends with quote. 2014-03-12 16:35:51 -04:00
Paul McLanahan 7fb0752d81 Add locmem cache for l10n use.
Add statsd instrumentation to locmem cache backend.
2014-03-10 11:30:03 -04:00
Josh Mize 12e04ee15e Update RNA to 98c95295 2014-02-27 19:50:06 +00:00
Josh Mize c8c7e1901e Upgrade south to 0.8.4
Use bug_list and bug_search_url fields in template

Add jingo_markdown

Upgrade RNA (4ae910da)

Add firefox.system_requirements view using RNA

Use latest RNA as submodule instead of pip install

Adjust views, settings, templates to use latest RNA

Restore lib/l10n_utils/helpers.py and tests from rebase mistake

Move django-extensions to submodule

Cleanup old rna egg-info

Move django-rest-framework to submodule

Move requests to submodule

Move Python-Markdown to submodule

Move jingo-markdown to submodule

Move six to submodule

Test RNA views + flake8 fixes

Fix flake8

Try to fix Jenkins test breakage

Clean up templates

Cleanup template some more

Reword test docstring and add comments

Update requiremnts/prod.txt to match submodules

Use settings.LANGUAGE_CODE for default locale

Try to make Jenkins happy
2014-02-26 22:28:16 +00:00
Paul McLanahan afa188a424 Bug 942273: Add template helper for langfile tags. 2013-12-05 17:18:37 -05:00
Paul McLanahan 9cc46b45a3 Bug 920067: Enable the database.
* Add sqlite config to base settings.
* Update tests to use Django's database aware TestCase.
* Install south.
* Install django-waffle.
* Update jenkins to use the database for CI.

Django admin will be enabled in a separate PR.
2013-11-14 15:11:02 -05:00
Paul McLanahan af82ffd059 Add lib to flake8 run and fix pep8 issues.
Remove schematic files.
2013-10-31 11:10:38 -04:00
Paul McLanahan 933609e6a7 Bug 920113: Use the specified lang file for activation.
If a template uses the "set_lang_files" template tag
we should check the first lang file in that list if
the lang file for the specific template name isn't
active.
2013-10-24 11:15:04 -04:00
Jon Petto f642b8258e Update /firefox/whatsnew with FxOS messaging. Bug 890114.
- Specified locales get FxOS messaging.

- Old messaging retained for legacy/other use.

- Update l10n_utils render function to handle list of
  templates.
2013-10-21 12:58:35 -05:00
Craig Cook bf1028ba70 Bug 925931 - Restore secondary home page templates
Continuing the 80/10/10 split while we work on some further design options before going 100% with the new home page.
2013-10-14 10:59:39 -07:00
Paul McLanahan fbc1b89709 Fix bug 925931: Enable new home page for all locales. 2013-10-11 18:24:53 -04:00
Craig Cook c1773d71ec Bug 916151 - home page redesign
With contributions from @pmclanahan, @alexgibson, and @pascalchevrel
2013-09-30 13:11:31 -07:00
Paul McLanahan a007ca2876 Update pot_to_langfiles function to use default lang files.
Was using old defaults instead of the list from settings.
Also should not skip untranslated since it's reading from
templates.
2013-09-05 14:07:43 -04:00
Paul McLanahan fda1ef09a3 Bug 891835: Improve test coverage of gettext.py module. 2013-09-05 11:40:08 -04:00
pascalc 384982b345 Bug 891835 : extract comments in pot files into lang files
* gettext.py/pot_to_langfiles() updated to extract comments from pot file to templates/*.lang files
* gettext.py/_append_to_lang_file() now outputs comments if they exist
* dotlang.py/parse() has a new optional parameter: extract_comments=False
* l10n_merge uses extract_comments=True
* updated test_merge_lang_file()
* added test_parse_with_comments()
* all tests pass
2013-09-05 11:40:08 -04:00
Kohei Yoshino a4f8f3e823 Bug 903886 - Expose canonical and alternate URLs on Bedrock views 2013-08-29 18:20:39 -04:00
Hector Zhao 60252c0ad1 Bug 903216: Some l10n pages show {OK} from *.lang files 2013-08-15 22:38:15 +08:00
Dan Poirier 2720952a6e Bug 868178 - Make L10N translator comment tag case-insensitive
* Update playdoh-lib to version that has that change in tower
* Fix one tower import due to a method having been moved
2013-08-02 14:19:39 -04:00
Dan Poirier d3836c1651 Bug 873087 - Generalized lang file tags
Support for lines like '## tag ##' in lang files, where tag can be any string.
For efficiency, tag lines must be the first lines in the file.
2013-08-02 11:03:23 -04:00
Hector Zhao 0386a4a41e return 500 in lib.bedrock_util.server_error_view 2013-07-09 21:51:22 +08:00
Hector Zhao 8f7dabd14a Bug 816080: Upgrade Bedrock to latest Playdoh 2013-05-15 11:14:13 -07:00
pascalc 1589f92b18 Fix bug 869538: append to lang files with unicode strings 2013-05-08 10:44:30 -04:00
Paul McLanahan 210e305921 Merge pull request #791 from dpoirier/856919-no-locale-in-request
Bug 856919 - Fix request.locale attribute error
2013-05-02 08:07:14 -07:00
Dan Poirier 5186169494 Bug 856919 - Fix request.locale attribute error
Getting an AttributeError from request.locale on the 500
error handler path. Check for .locale before referencing it.
2013-05-02 10:50:02 -04:00
Paul McLanahan 1f1dcf79af Stop unnecessary calls to cache for default lang l10n. 2013-04-29 15:20:16 -04:00
Paul McLanahan 8bcca89ccf Bug 861168: Fix regression in l10n_merge command. 2013-04-26 11:55:41 -04:00
Paul McLanahan af1a443a30 Merge pull request #687 from pascalchevrel/Bug851545-download_button_default_lang_file
replace call to base.lang by call to download_button.lang
2013-03-18 09:26:15 -07:00
pascalc 965454e4b2 replace call to base.lang by call to download_button.lang in base.py + replace references to base.lang in test files by references to download_button.lang for consistency 2013-03-15 17:49:34 +01:00
Paul McLanahan 45f2f0088b Bug 774239: Add ability to extract specific files to l10n_extract command.
Update l10n_extract docs.
2013-03-15 11:59:05 -04:00
Paul McLanahan acc9a55e0c Merge pull request #543 from pascalchevrel/Bug-8823024-langfiles-removeBOM
Bug 823024 - template lang files with ## active ## tag are not activated...
2013-03-07 08:57:59 -08:00
pascalc 05ec986523 remove template file not used by the test 2013-03-05 19:31:19 +01:00
pascalc 338335de45 add a test 2013-03-05 11:25:12 +01:00
Paul McLanahan d2d63217b1 Bug 775542: Prevent templates from overriding with default langfiles.
The base templates had specified "main" in a "set_lang_files"
tag. This was causing child templates to look in "main.lang"
before the lang file for the template. This removes those
errant calls, as well as prevents such accidental additions
from breaking things in future.
2013-02-15 14:27:37 -05:00
Paul McLanahan 620336258c Bug 775542: Query lang files in the proper order.
Skip non-translated lang file entries.
Fix bug 815573.
2013-02-12 15:15:55 -05:00
Paul McLanahan 872e98b11e Bug 774234: Add tests for l10n blocks and langs support.
Refactor template handling and parsing.
2013-02-04 11:58:05 -05:00
Kushal Das 106ba2120f Bug 774234: we can now define per locale l10n blocks
The blocks can be any of these 3 style:

{% l10n whatsnew_feature locales=ru,bn-IN 20120712 %}
{% l10n whatsnew_feature 20120712 %}
{% l10n whatsnew_feature, 20120712 %}

For the First example we will have templates in the given two
languages.
2nd and 3rd example, we will have the templates for all locales.
2013-01-30 15:15:01 -05:00
Michael Kelly 6a84f64f2e Fix Bug 823908: Preserve locale for tabzilla redirects.
- Ensures that if a locale is used with the old tabzilla URL it will 
  keep that locale through the redirect.
- Fixes a test that assumed the en-US locale was activated (and broke
  as a result of the tabzilla test activating a different one).
2013-01-02 13:31:11 -05:00
pascalc 04e2abe282 Bug 823024 - template lang files with ## active ## tag are not activated if the file has a unicode BOM 2012-12-19 13:41:12 +01:00
Steven Garrity b086b4a9d5 Bug 808762: Port firefox/all/ page to bedrock.
New design for page.
2012-12-18 12:52:26 -05:00
Paul McLanahan d1b9805bf1 Bug 821330: Fix translations on contribute page.
* Fix gettext lazy to be able to find additional lang files specified in
  python modules.
* Mark all translated strings a safe so that html entities aren't
  escaped.
* Add `lang_files` kwarg to _() and _lazy() for searching alternate
  lang files for only that string. This will _NOT_ alter extraction.
2012-12-14 11:45:30 -05:00
Anthony Ricaud 641ead0734 Import Tabzilla into Bedrock
- Make it localisable
- Add redirects for backwards compatibility
- Adds a js_escape filter

bug 744271
2012-12-11 16:03:05 +01:00
Anthony Ricaud 66bc94b6b4 Fix Python coding declaration after adding MPL2 license 2012-11-28 18:34:39 +01:00
Gervase Markham 0cc8e6cd35 Update license to MPL 2. 2012-11-28 18:26:46 +01:00
Anthony Ricaud dc6e5a6c81 jingo.render is deprecated in recent versions of jingo
bug 816080
2012-11-28 17:01:24 +01:00
Anthony Ricaud 506a96d010 Disable a failing test.
bug 815573
2012-11-27 11:56:10 +01:00
Paul McLanahan 43d591c4c2 Fix tests to pass with DEV=False 2012-11-26 10:12:48 -05:00
Paul McLanahan 1e08138bfc Merge branch 'bug-794059-activate-pages-per-locale' 2012-11-26 08:57:16 -05:00
Paul McLanahan 30130c5338 Bug 809857: Add full path to lang file to error emails. 2012-11-23 15:01:24 +01:00
Paul McLanahan 35cefae690 Allow pages to be activated per locale.
Fix bug 794059.
2012-11-21 15:04:46 -05:00
Paul McLanahan b26f3312f6 Correctly install gettext into Jinja2. Fix bug 808580. 2012-11-06 13:56:29 -05:00
Anthony Ricaud 02c535fc64 Compare independently of the order
Also improves the error message received
fix bug 807383
2012-10-31 20:11:00 +01:00
Paul McLanahan c624023524 Use SkipTest from nose as skip is only in Py 2.7+.
bug 783202.
2012-10-25 11:14:47 -04:00
Paul McLanahan e3a5eae625 Add ability to specify lang files in python src.
* Fix bug 783202.
* Update docs.
2012-10-25 16:37:55 +02:00
Anthony Ricaud a7d735dba3 Merge branch 'contribute'
Conflicts:
	apps/mozorg/forms.py
	apps/mozorg/templates/mozorg/contribute-form.html
	apps/mozorg/templates/mozorg/contribute.html
	apps/mozorg/views.py
	media/js/contribute-page.js
	settings/base.py
2012-09-21 17:25:18 +02:00
Anthony Ricaud 49eb561348 Use a list instead of a set literal
(they don't exist on Python 2.6)

bug 763913
2012-09-06 16:45:31 +02:00
Paul McLanahan 5347403198 Apply the same tweaks during translation as extraction.
Fix bug 763913.
2012-09-06 16:27:36 +02:00
Anthony Ricaud d41980b08d Update "Want to help?" form to support additional languages
fix bug 756093

- Move logic to email_contribute.py
- Refactored data structures to conform a bit more to DRY
- Remove newsletter options on non 'en' locales (fix bug 770606)
- Tests ! (fix bug 780911)
- Email backend in DEV environments writes to the console to avoid
unnecessary email sending
- PEP8 cleanups
- Fixes a dotlang test that depended on en-US
2012-08-28 14:38:14 +02:00
Giorgos Logiotatidis 30eec568cb [fix bug 774232] Parse .txt for l10n blocks.
- Allow l10n_check command to parse txt files.

- Moved mozorg/templates/emails to mozorg/templates/mozorg/emails so
  parser can find the files.

- Cleanup documentation in mozorg/views.py
2012-08-08 17:50:08 +02:00
Anthony Ricaud e55dabf0cf Detect string formatting issues
- Fallback to original string
- Mail managers

fix bug 775557
2012-08-07 18:11:38 +02:00
Anthony Ricaud 2988e08eaf Don't fail on decoding errors.
fix bug 775264
2012-08-07 11:35:50 +02:00
Anthony Ricaud fcdc18b7c6 Bug 775406 - Validate the newsletter id
newsletter becomes a FormField
2012-08-01 23:15:27 +02:00
Anthony Ricaud 45435c143e Bug 760570 - Copy the DOTLANG_FILES settings instead before appending to it
Without this, the DOTLANG_FILES setting would grow with each request.
2012-07-23 19:30:25 +02:00
Anthony Ricaud 4373a22276 Dotlang parser should ignore commented lines
- PEP8 fixes
- Rewrote parse() a bit to remove an indentation level
- Move existing tests to a directory
- Add one test for the parser
2012-07-17 01:31:07 +02:00
Anthony Ricaud d2f9517a10 Only parse .lang files if the cache is empty.
Before this, it would also parse when we cached an empty dict.
2012-07-16 16:28:09 +02:00
Anthony Ricaud cfb37582b0 Test another template because channel.html disappeared in d8921e105b 2012-07-06 16:31:27 +02:00
Michael Kelly 4afecf6db2 Fix 500 error pages not using RequestContext. 2012-06-25 18:02:45 -04:00
James Long 0cbd1d5b5c simplify product-details .gitignore 2012-06-06 18:05:17 -04:00
James Long 53934e7797 ignore product-details json 2012-06-06 13:10:16 -04:00
James Long 705b6ce05e add empty product_details_json folder 2012-06-06 13:04:06 -04:00
James Long 3bf2ef8ad0 remove product_details_json from git 2012-06-06 13:02:14 -04:00
James Long 7e5b17254d update product-details 2012-06-05 12:13:28 -04:00
James Long 4bf8d9ab9f update product-details 2012-06-05 11:44:49 -04:00
James Long 7faab4efc9 update l10n tests to use the "was" block instead of "else" 2012-05-31 15:33:59 +02:00
Anthony Ricaud bd0ba83456 Fix the testsuite so that it's possible to run tests. 2012-05-31 15:33:26 +02:00
James Long 545c2f11eb update product-details 2012-05-30 12:00:27 -04:00
James Long db01c61e8f polish l10n blocks, rewrite docs 2012-05-25 11:21:02 -04:00
James Long 98c4e868f3 update product-details 2012-05-19 09:15:41 -04:00
Steven Garrity ce7d1a70d2 Merge remote branch 'sgarrity-fork/bug-731678-channelpage' 2012-05-14 19:19:22 -03:00
James Long a479811973 create new mobile_download_button template helper 2012-05-11 10:54:19 -03:00
James Long 8dd46943af Merge branch 'l10n-docs' 2012-05-09 14:07:00 -04:00
James Long cb32df9960 update product-details 2012-04-27 16:46:00 -04:00
James Long c4ea6cb8fc update product-details 2012-04-27 16:44:46 -04:00
James Long d77df47bb5 tweak workflow for l10n 2012-04-27 15:49:30 -04:00
James Long 853af0a978 update product-details 2012-04-24 12:04:06 -04:00
James Long d0483ef2f4 update product-details 2012-04-24 12:03:39 -04:00
James Long fe7aa37c0d fix problem with djanog forcing locales to lowercase 2012-04-17 11:19:41 -04:00
James Long 64a8c551e9 make .lang library case-sensitive 2012-04-16 14:13:19 -04:00
James Long 04cb7a8d3c strip {ok} and other tags off l10n strings 2012-04-16 13:32:57 -04:00
James Long 994aae3845 refactor .lang system, less hacky and more sleeky 2012-04-13 18:56:59 -04:00
James Long 6a83042136 tweaks to l10n stuff from wenzel r? 2012-04-11 15:56:56 -04:00
James Long d680df97cc finalize .lang functionality, provide set_lang_files and add_lang_files template blocks 2012-04-11 14:46:05 -04:00
James Long 44ae5f419a merge l10n branch 2012-04-11 00:57:53 -04:00
James Long e3c369bb44 implement more .lang utilities, extracting/merging 2012-04-11 00:44:22 -04:00
James Long d9f54b132f fix bug in l10n_utils helper 2012-04-06 15:36:34 -04:00
James Long 1952dd91af better y/n checking 2012-04-05 16:31:12 -04:00
James Long 08430fa0cc move dotlang lib into l10n_utils and write l10n_extract command 2012-04-02 13:59:19 -05:00
James Long a08c0b5942 cleanup generic static view, write some documentation 2012-03-27 14:12:37 -04:00
James Long 263dd52c63 factor out generic views, install global newsletter signup 2012-03-27 14:12:07 -04:00
James Long 619f138aff a few tweaks to the l10n_check command, renamed else to was 2012-03-21 17:25:35 -04:00
James Long 518387c7cb update product details 2012-03-19 13:11:42 -04:00
James Long a1e1a6b3b7 check for DEBUG instead of DEV when forcing SSL 2012-02-27 10:14:44 -08:00
Fred Wenzel 40e8e338b0 Merge branch 'master' of github.com:mozilla/bedrock 2012-02-24 15:29:50 -08:00
James Long bd4e391624 force ssl on newsletter page 2012-02-22 18:20:23 -05:00
James Long a683aaf997 final tweaks for dotlang lib 2012-01-27 12:22:51 -05:00
James Long c748826fda write dotlang library to parse .lang files and start porting from old php site 2012-01-24 19:00:09 -05:00
James Long 8a137d7e97 make l10n_check command only output l10n template if blocks exist 2011-12-14 15:52:13 -05:00
Fred Wenzel e0f9b6f358 PEP8ification and stuff. 2011-12-12 14:44:09 -08:00
James Long 848da29e25 add locale folder until we get it in SVN 2011-12-07 12:53:31 -08:00
James Long 8a1bb9e557 update product details json 2011-12-06 11:53:48 -08:00
James Long d308933633 add tests of l10n parser and finalize how it writes out the templates 2011-12-02 15:51:22 -05:00
James Long 4c6c41a107 refactor l10n_command to keep content outside of l10n blocks 2011-12-01 18:32:11 -05:00
James Long 61c54a1305 update product details json 2011-10-14 18:41:25 -04:00
James Long 73f9147947 update docs, remove unused -t argument to l10n_check command 2011-09-19 17:33:44 -04:00
James Long f984637ba9 rewrite l10n_check command to generate locale files with else statements 2011-09-19 12:05:50 -04:00
Fred Wenzel c660832f75 Added an else clause to l10n blocks. 2011-08-31 15:37:52 -07:00
James Long 7f9b81ed21 code cleanup 2011-05-25 18:24:56 -07:00
James Long bd159e03f5 move localized templates into locale directory, enhance l10n_check command 2011-05-25 00:10:20 -07:00
James Long 2b1ddf633f move l10n_check command to lib/l10n_utils 2011-05-24 14:41:40 -07:00
Fred Wenzel 306e0e5164 Initial implementation of l10n block type with jingo-like render shortcut. 2011-04-29 13:51:50 -07:00
Fred Wenzel 34db80a468 removed decorator duplicated from Django. 2011-04-27 09:28:02 -07:00
Austin King 2a1924cd84 Missed commit 2011-02-01 14:48:46 -08:00
Jeff Balogh effd10c952 @require_post requires post 2010-12-16 14:05:46 -08:00