-
Notifications
You must be signed in to change notification settings - Fork 967
Bug 794059. Allow pages to be activated per locale. #459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
pmclanahan
merged 1 commit into
mozilla:master
from
pmclanahan:bug-794059-activate-pages-per-locale
Nov 26, 2012
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
lib/l10n_utils/tests/test_files/locale/de/active_de_lang_file.lang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ## active ## | ||
|
|
||
| ;The State of Mozilla | ||
| Die Lage von Mozilla | ||
|
|
||
|
|
||
| ;Mozilla‘s vision of the Internet is a place where anyone can access information, a place where everyone can hack and tinker; one that has openness, freedom and transparency; where users have control over their personal data and where all minds have the freedom to create and to consume without walls or tight restrictions. | ||
| Mozillas Vision des Internets ist ein Ort, wo jeder auf Informationen zugreifen kann, ein Ort, wo jeder programmieren und herumspielen kann; einer, der offen, frei und transparent ist; wo Benutzer die Kontrolle über ihre persönlichen Daten haben und wo jeder Geist die Freiheit hat, zu schaffen und zu konsumieren, ohne Mauern oder enge Einschränkungen. |
6 changes: 6 additions & 0 deletions
6
lib/l10n_utils/tests/test_files/locale/de/inactive_de_lang_file.lang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| ;The State of Mozilla | ||
| Die Lage von Mozilla | ||
|
|
||
|
|
||
| ;Mozilla‘s vision of the Internet is a place where anyone can access information, a place where everyone can hack and tinker; one that has openness, freedom and transparency; where users have control over their personal data and where all minds have the freedom to create and to consume without walls or tight restrictions. | ||
| Mozillas Vision des Internets ist ein Ort, wo jeder auf Informationen zugreifen kann, ein Ort, wo jeder programmieren und herumspielen kann; einer, der offen, frei und transparent ist; wo Benutzer die Kontrolle über ihre persönlichen Daten haben und wo jeder Geist die Freiheit hat, zu schaffen und zu konsumieren, ohne Mauern oder enge Einschränkungen. |
14 changes: 14 additions & 0 deletions
14
lib/l10n_utils/tests/test_files/templates/active_de_lang_file.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <html> | ||
| <body> | ||
| <h1>{{ _('The State of Mozilla') }}</h1> | ||
| <p> | ||
| {% trans %} | ||
| Mozilla‘s vision of the Internet is a place where anyone can | ||
| access information, a place where everyone can hack and tinker; | ||
| one that has openness, freedom and transparency; where users have | ||
| control over their personal data and where all minds have the | ||
| freedom to create and to consume without walls or tight restrictions. | ||
| {% endtrans %} | ||
| </p> | ||
| </body> | ||
| </html> |
14 changes: 14 additions & 0 deletions
14
lib/l10n_utils/tests/test_files/templates/inactive_de_lang_file.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <html> | ||
| <body> | ||
| <h1>{{ _('The State of Mozilla') }}</h1> | ||
| <p> | ||
| {% trans %} | ||
| Mozilla‘s vision of the Internet is a place where anyone can | ||
| access information, a place where everyone can hack and tinker; | ||
| one that has openness, freedom and transparency; where users have | ||
| control over their personal data and where all minds have the | ||
| freedom to create and to consume without walls or tight restrictions. | ||
| {% endtrans %} | ||
| </p> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this should get some caching or not. It should be pretty quick to check the first line of a file, but if you guys think that storing the results in memcache for a minute or so might help with load then it can be easily added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it's worth given how easy this would be to cache, although I'm curious why you'd only cache it for a minute. How often do these files change on production? Is memcache cleared when we push?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was based on the value in our settings for
DOTLANG_CACHEbeing 60. I think we should consider increasing that as well to at least the length of time between the cron runs.