Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: locales/en/files/translate.js

Issue 8560083: adblockplusopera: Port UI code from Chrome (Closed)
Patch Set: Created Oct. 19, 2012, 4:04 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « locales/en-GB/messages.json ('k') | locales/en/messages.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: locales/en/files/translate.js
===================================================================
deleted file mode 100644
--- a/locales/en/files/translate.js
+++ /dev/null
@@ -1,135 +0,0 @@
-const translate = {
- get: function(key) {
- try {
- return this.substring(this.values[key].replace(/"/g, '\\"')); //The replace is to fix the issue with " and eval
- }
- catch(e) {}
- return 'ERROR';
- },
- substring: function(value) {
- try {
- return eval('"' + value.replace(/#([a-z_0-9]*)#/g, '" + translate.get("$1") + "') + '"')
- }
- catch(e) {}
- return 'ERROR';
- },
- values: {
- //Default value, do not edit
- 'ext_name':widget.name,
- 'ext_fullname':'#ext_name# #ext_version#',
- 'ext_descript':widget.description,
- 'ext_author':widget.author,
- 'ext_email':widget.authorEmail,
- 'ext_website':widget.authorHref,
- 'ext_version':widget.version,
- 'ext_mailto':'mailto:#ext_email#?subject=#ext_fullname#',
- //licenses
- 'licenses':'Licenses',
- 'easy_license':"#gnu_gpl# - #cc_by_sa# - <a href='https://easylist.adblockplus.org/'>The EasyList authors</a>",
- 'fanboy_license':"© <a href='https://fanboy.co.nz/'>Fanboy</a>",
- 'no_license':'No license is provided for this list',
- 'gnu_gpl':"<a href='http://www.gnu.org/copyleft/gpl.html'>GNU GPL v3</a>",
- 'gnu_lgpl':"<a href='http://www.gnu.org/licenses/lgpl.html'>GNU LGPL</a>",
- 'cc_by':"<a href='https://creativecommons.org/licenses/by/3.0/'>Creative Commons 3.0 BY</a>",
- 'cc_by_sa':"<a href='https://creativecommons.org/licenses/by-sa/3.0/'>Creative Commons 3.0 BY-SA</a>",
- 'cc_by_nc_sa':"<a href='https://creativecommons.org/licenses/by-nc-sa/3.0/'>Creative Commons 3.0 BY-NC-SA</a>",
- //Sections
- 'preferences':'Preferences',
- 'to_preferences':"Go back to #ext_name#'s preferences page",
- 'adblock_lists':'Ad blocking lists',
- 'adblock_lists_info':'Choose which ad blocking list you wish to subscribe to. These lists will be updated automatically to keep your browsing free of any ads. It is not recommended to subscribe to too many lists.',
- 'css_filter':'CSS element filters',
- 'css_filter_info':'Choose which online CSS filter you wish to subscribe to. These lists will help you hide ads and collapse empty spaces left behind.',
- 'privacy_lists':'Privacy lists',
- 'privacy_lists_info':'These lists aim at blocking tracking code (Google Analytis, etc.) on websites you visit.',
- 'other_preferences':'Other preferences',
- 'about':'About',
- 'about_text':"Go to #ext_name#'s about page",
- //Help
- 'help':'Help',
- 'help_text':"Go to #ext_name#'s help page",
- 'help_not_working':'#ext_name# doesn\'t work',
- 'help_not_working_text':"<ul><li>Make sure at least one adblocking list is checked<li>#help__test_block#<li>#help__restart#<li>#help__reinstall#</ul>",
- 'help_unblocked':'Some ads are not blocked',
- 'help_unblocked_text':"<ul><li>#help__test_block#<li>#help__another_list#<li>Contact the <b>author of the list</b> you are subscribed to</ul>",
- 'help_overblocked':'Some websites are inaccessible',
- 'help_overblocked_text':"<ul><li>#help__connect#<li>#help__restart#<li>#help__another_list#<li>Add the inaccessible website to your whitelist</ul>",
- 'help_my_overblocked':'My website/domain is blocked',
- 'help_my_overblocked_text':"<ul><li>Make sure your website/domain is not an ad provider<li>#help__connect#<li>#help__restart#<li>#help__another_list#</ul>See \"<b>#help_overblocked#</b>\" to unblock it on your computer. This will not unblock your website on other user's computers. If you think your website shouldn't be blocked, please contact the provider of the list that blocks your website.",
- 'help_unsolved':'I am unable to solve my issue',
- 'help_unsolved_text':"If ever you are unable to solve your issue, you may contact me directly by <a href='#ext_mailto#'>email</a> and I will try to help you. Please don't contact me for unblocked ads as I am not the author of any of these lists and make sure you tried <b>all</b> of the steps listed before contacting me.",
- 'help__connect':"Make sure you can connect to other websites (eg: <a href='http://google.com'>Google</a>)",
- 'help__restart':'Restart your browser',
- 'help__reinstall':'Remove the extension, restart your browser and reinstall the extension',
- 'help__test_block':"Verify if ads are blocked on other websites (eg: <a href='http://nytimes.com'>New York Times</a>)",
- 'help__another_list':'Try another adblocking list',
- //About page
- 'about_ext':'About #ext_name#',
- 'about_ext_text':"After spending countless hours developing the original Opera AdBlock, I've decided to start a new extension called #ext_name#. This new extension aims to replace the old Opera AdBlock by adding new features that were missing and highly requested (whilelist, etc). The source code was completely rewritten and over a hundred hours of work was placed only on this new version (not counting the hundreds of hours invested in the old Opera AdBlock).",
- 'about_author':'About #ext_author#',
- 'about_author_text':'Currently a university student in Canada, I am the sole author of #ext_name#. I have also developed a few less popular extensions for Opera and participated in the development of some Android applications.',
- 'about_thanks':'Special Thanks',
- 'about_translators':'Translators',
- //Thanks
- 'gil':'Gil Castro %g+:114144308039128455381%',
- 'gil_text':"Provided me with great help during the whole development process, testing many versions and providing help on how to fix some issues. He is also the designer of #ext_name#'s icon.",
- //Languages
- 'bg':'Bulgarian',
- 'cz':'Czech',
- 'de':'German',
- 'el':'Greek',
- 'en':'English',
- 'es':'Spanish',
- 'fi':'Finnish',
- 'fr':'French',
- 'hu':'Hungarian',
- 'id':'Indonesian',
- 'ja':'Japanese',
- 'ko':'Korean',
- 'lv':'Latvian',
- 'nl':'Dutch',
- 'no':'Norwegian',
- 'pl':'Polish',
- 'pt':'Portuguese',
- 'ro':'Romanian',
- 'ru':'Russian',
- 'sv':'Swedish',
- 'tr':'Turkish',
- 'vi':'Vietnamese',
- 'zh':'Chinese',
- //Other lists titles
- 'main_list':'Main list',
- 'annoyance':'Annoyance Addon',
- 'other_lists':'Other lists',
- 'deprecated':'deprecated',
- //Notification
- 'notif_donate_title':'Thank you!',
- 'notif_donate_descript':'Thank you for your donation. It is greatly appreciated!',
- //Other translation
- 'whitelist':'Whitelist',
- 'whitelist_descript':'The adblocking rules and CSS filters will not be applies to the websites you enter here. You may use the following special characters:<br><b>*</b> : wildcard<br><b>^</b> : single separator character (any character from this list: <i>( ) { } [ ] , ; : ! ? / | \\\\ " \' # $ & * + < = > @ ^ ` ~</i>)<br><b>||</b> : hostname mark, also covers subdomains (<i>http://</i>, <i>http://www.</i>, <i>http://subdomain.</i>, <i>https://</i>, etc)',
- 'whitelist_holder':'Example: ||google.com^*',
- 'perso_css':'Personal CSS filter',
- 'perso_css_descript':'These CSS rules will be applied to websites you visit. <a href="http://www.w3.org/TR/css3-selectors/">Find out more on CSS selectors</a>.',
- 'perso_css_holder':'Example: div[id="sidebar"] > #ads { display:none; }',
- 'save_apply':'Save and apply',
- 'button':'Button',
- 'button_descript':"Displays a button in the Opera toolbar to allow you to easily know if the current website is part of your whitelist.",
- //Last update
- 'update_just':'Just updated',
- 'update_minute':'1 minute ago',
- 'update_minutes':'% minutes ago',
- 'update_hour':'1 hour ago',
- 'update_hours':'% hours ago',
- 'update_day':'1 day ago',
- 'update_days':'% days ago',
- 'update_old':'Over a month ago',
- //Intervals (milliseconds)
- 'interval_title':'Update frequency',
- 'interval_43200000':'Every 12 hours',
- 'interval_86400000':'Daily',
- 'interval_172800000':'Every 2 days',
- 'interval_604800000':'Weekly',
- 'interval_2592000000':'Monthly'
- }
-}
« no previous file with comments | « locales/en-GB/messages.json ('k') | locales/en/messages.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld